/* Brand controls: restrained geometry and clear action hierarchy. */
:root{--border:#dce3eb;--muted:#647184}
.app{padding-bottom:104px}
.brand{margin-bottom:22px}
.brand strong{font-weight:700;letter-spacing:0}
.avatar{border-radius:8px;background:#fff;border-color:var(--border);color:var(--blue);font-size:13px}
.toolbar{gap:8px}
.search{border-radius:8px;min-height:44px;padding:10px 12px}
.square{border-radius:8px;width:44px;height:44px;color:var(--blue)}
svg{stroke-width:1.6}
.tabs{border:0;border-bottom:1px solid var(--border);border-radius:0;padding:0;gap:0;margin-bottom:16px}
.tabs button{position:relative;border-radius:0;padding:13px 5px;font-size:13px;font-weight:500}
.tabs button.active{background:none;box-shadow:none;color:var(--blue);font-weight:700}
.tabs button.active:after{content:'';position:absolute;bottom:-1px;left:8px;right:8px;height:3px;background:var(--accent)}
.categories{gap:6px;margin-bottom:22px}
.categories button{border:1px solid var(--border);border-radius:6px;background:#fff;padding:8px 12px;font-weight:500;min-height:36px}
.categories button.active{background:#e7f8f4;border-color:#76d4c3;color:var(--blue)}
.section-title h1,.form h1{font-size:22px;letter-spacing:0;font-weight:700}
.count{background:#eaf0f6;padding:4px 8px;border-radius:4px;font-variant-numeric:tabular-nums}
.ticket{border-radius:10px;padding:18px;box-shadow:none;margin-bottom:10px}
.ticket:hover{border-color:#9aafc9;background:#fcfdff}
.ticket-top{margin-bottom:12px}
.ticket-number{font-size:12px;letter-spacing:.5px;color:#455c7c}
.ticket h2{font-size:17px;font-weight:700}
.badge{border-radius:4px;border:0;font-size:11px;font-weight:600;padding:5px 8px}
.priority{font-weight:500}
.description{margin:10px 0 16px;color:#536174}
.mini-avatar{border-radius:5px;background:#eef2f7;color:var(--blue);font-size:11px}
.ticket-footer{gap:8px}
.primary,.secondary{border-radius:7px;min-height:44px;padding:11px 16px;font-size:14px;font-weight:600;line-height:1.4;transition:background .15s,border-color .15s}
.primary{background:var(--blue);color:#fff}
.primary:hover{background:#123e96}
.secondary{border-color:#ccd6e3;color:var(--blue);background:#fff}
.secondary:hover{background:#f1f5fa;border-color:#9aafc9}
.secondary.danger{color:#a82738;border-color:#e5c9ce}
.secondary.danger:hover{background:#fff4f5}
.primary svg{width:18px;height:18px}
#nav{bottom:env(safe-area-inset-bottom);width:640px;max-width:100%;border-radius:0;border:0;border-top:1px solid var(--border);padding:6px 12px;background:#fff;backdrop-filter:none;box-shadow:none;gap:4px}
#nav button{position:relative;min-height:62px;border-radius:6px;padding:9px 4px;gap:6px;font-size:11px;font-weight:500}
#nav button.active{background:#f0f4fa;color:var(--blue);font-weight:700}
#nav button.active:before{content:'';position:absolute;top:-7px;left:22%;right:22%;height:3px;background:var(--accent)}
#nav .plus{background:none;color:var(--blue)}
#nav .plus svg{background:var(--blue);color:#fff;border-radius:5px;padding:3px;width:24px;height:24px}
#nav .plus.active{background:#f0f4fa}
input,textarea,select{border-radius:7px;border-color:#ccd6e3;padding:12px}
input[type=file]{padding:7px;font-size:13px;font-weight:400;color:var(--muted)}
input[type=file]::file-selector-button{font:inherit;font-weight:500;color:var(--blue);background:#f0f4fa;border:1px solid #ccd6e3;border-radius:5px;padding:8px 10px;margin-right:10px;cursor:pointer}
.field{margin:20px 0;font-size:13px;font-weight:500}
.field span{margin-bottom:7px}
.impact label{border-radius:7px;font-size:13px;background:#fff}
.impact label:has(input:checked){background:#f0faf7;border-color:#58beaa}
#sheet{border-radius:12px 12px 0 0;padding:24px 20px calc(24px + env(safe-area-inset-bottom))}
.sheet-header h2{font-size:19px;font-weight:700}
.sheet-header button{width:40px;height:40px;border-radius:7px;border:1px solid var(--border);background:#fff;color:var(--muted);font-size:16px;flex-shrink:0}
.actions{gap:10px}
.actions button{flex:1 1 160px}
.small-title{font-size:13px;font-weight:700;color:var(--blue);border-bottom:1px solid var(--border);padding-bottom:10px}
.chat-message{border-radius:7px;background:#f2f6f9;border-left:3px solid #a5d9cd}
.chat-message.system{border-left-color:#d4dce7;background:#f5f7fa}
.menu-item{border-radius:8px;padding:16px;min-height:56px;font-size:14px}
.menu-item svg{color:var(--blue);width:20px;height:20px}
.menu-item:hover{background:#f5f8fc;border-color:#b0bfd1}
#toast{border-radius:7px;font-size:13px;bottom:90px;box-shadow:0 4px 16px #03257e15}
#banner{border-radius:6px}
@media(min-width:700px){#nav{bottom:18px;border:1px solid var(--border);border-radius:10px;max-width:608px}#sheet{border-radius:12px}.ticket{padding:20px}}
@media(max-width:360px){.app{padding-left:12px;padding-right:12px}.tabs button{font-size:12px}.brand strong{font-size:17px}.brand span{font-size:12px}.brand-logo{width:50px}}
