:root{--brand-primary: #0052cc;--brand-primary-dark: #003d99;--brand-secondary: #00b386;--brand-bg: #f8fafc;--brand-text: #1a202c;--brand-text-muted: #6b7280;--brand-success: #16a34a;--brand-danger: #dc2626}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--brand-bg);color:var(--brand-text)}.dashboard{display:flex;height:100vh;overflow:hidden}.sidebar{width:240px;flex-shrink:0;background:#10141a;color:#f3f4f6;display:flex;flex-direction:column;padding:20px 0}.sidebar-brand{font-size:18px;font-weight:700;padding:0 20px 20px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:12px;display:flex;align-items:center;gap:10px}.sidebar-brand img{width:28px;height:28px;border-radius:6px}.sidebar-nav{flex:1;display:flex;flex-direction:column;gap:4px;padding:0 12px}.sidebar-link{display:block;padding:10px 12px;border-radius:8px;color:#d1d5db;text-decoration:none;font-size:14px}.sidebar-link:hover{background:#ffffff0f}.sidebar-link-active{background:var(--brand-primary);color:#fff}.sidebar-empty{color:#6b7280;font-size:13px;padding:0 12px}.sidebar-footer{padding:16px 20px 0;border-top:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:10px}.sidebar-user{display:flex;flex-direction:column;font-size:13px}.sidebar-user strong{color:#fff}.sidebar-user span{color:#9ca3af;font-size:12px}.sidebar-footer button{padding:8px 12px;border-radius:8px;border:1px solid rgba(255,255,255,.15);background:transparent;color:#f3f4f6;cursor:pointer}.sidebar-footer button:hover{background:#ffffff14}.dashboard-content{flex:1;height:100vh;overflow-y:auto;display:flex;flex-direction:column}.auth-page{display:flex;align-items:center;justify-content:center;min-height:100vh}.auth-card{background:#fff;padding:32px;border-radius:12px;box-shadow:0 4px 16px #00000014;width:320px;display:flex;flex-direction:column;gap:14px}.auth-logo{width:72px;height:72px;border-radius:16px;align-self:center;margin-bottom:4px;box-shadow:0 4px 12px #0052cc40}.auth-card h1{text-align:center;margin:0 0 4px;color:var(--brand-text)}.google-signin-button{background:#fff!important;color:#1a1a1a!important;border:1px solid #d8dbe0!important;padding:10px!important;border-radius:8px!important;font-weight:600!important;cursor:pointer}.google-signin-button:hover{background:#f4f5f7!important}.error-text{color:#dc2626;font-size:13px;margin:0}.page{width:100%;padding:32px 40px;box-sizing:border-box}.page-wide{max-width:none}.page-hint{color:var(--brand-text-muted);font-size:14px}.empty-state{background:#fff;border:1px dashed #d8dbe0;border-radius:12px;padding:40px;text-align:center;color:var(--brand-text-muted)}.chat-page{flex:1;display:flex;flex-direction:column;height:100%;min-height:0;width:100%;margin:0;padding:32px 40px;box-sizing:border-box}.chat-page-header{flex-shrink:0}.chat-page-header h1{flex:1;font-size:20px;margin:0}.chat-page-actions{display:flex;gap:8px}.btn-danger{background:#fff!important;color:var(--brand-danger)!important;border:1px solid var(--brand-danger)!important}.btn-danger:hover{background:#fef2f2!important}.chat-page-user-detail{flex-shrink:0}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:12px;flex-wrap:wrap}.page-header h1{font-size:22px;margin:0}.page-header-actions{display:flex;gap:8px}.page-header button,.page-header select{padding:8px 14px;border-radius:8px;border:1px solid #d8dbe0;background:#fff;cursor:pointer;font-size:13px;font-weight:500;transition:background .15s ease}.page-header button:hover{background:#f4f5f7}.ticket-list{display:flex;flex-direction:column;gap:10px;width:100%}.ticket-row{display:flex;align-items:flex-start;gap:14px;background:#fff;border-radius:10px;padding:16px 20px;cursor:pointer;box-shadow:0 1px 3px #0000000f;border:1px solid transparent;transition:box-shadow .15s ease,border-color .15s ease}.ticket-row:hover{box-shadow:0 2px 10px #0000001a;border-color:#e5e7eb}.ticket-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;background:var(--brand-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px}.ticket-row-body{flex:1;min-width:0}.ticket-row-main{display:flex;justify-content:space-between;align-items:center;gap:12px}.ticket-row-main-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.ticket-row-main strong{font-size:15px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.badge{font-size:11px;padding:2px 8px;border-radius:20px;color:#fff;text-transform:capitalize}.badge-open{background:var(--brand-success)}.badge-closed{background:#6b7280}.ticket-user{margin:6px 0 0;color:var(--brand-primary);font-size:12px;font-weight:600}.ticket-preview{margin:4px 0 0;color:#4b5563;font-size:13px}.ticket-user-detail{margin:-8px 0 16px;color:var(--brand-text-muted);font-size:13px}.ticket-user-id{font-family:monospace;font-size:11px;opacity:.8}.ticket-row-footer{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#6b7280}.unread-dot{background:var(--brand-primary);color:#fff;border-radius:999px;padding:1px 8px;font-weight:700}.chat-thread{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;overflow-y:auto;padding:20px;background:#fff;border-radius:12px;border:1px solid #e5e7eb}.chat-bubble{max-width:65%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.4;box-shadow:0 1px 2px #0000000a}.chat-bubble p{margin:0;white-space:pre-wrap;word-break:break-word}.chat-bubble-user{align-self:flex-start;background:#eef1f5;border-bottom-left-radius:4px}.chat-bubble-admin{align-self:flex-end;background:var(--brand-primary);color:#fff;border-bottom-right-radius:4px}.chat-timestamp{display:block;font-size:10px;opacity:.7;margin-top:4px}.chat-input-bar{display:flex;gap:8px;margin-top:12px;flex-shrink:0}.chat-input-bar textarea{flex:1;padding:12px 14px;border-radius:10px;border:1px solid #d8dbe0;resize:none;min-height:48px;max-height:140px;font-family:inherit;font-size:14px;outline:none;transition:border-color .15s ease}.chat-input-bar textarea:focus{border-color:var(--brand-primary)}.chat-input-bar button{padding:0 24px;border-radius:10px;border:none;background:var(--brand-primary);color:#fff;font-weight:600;cursor:pointer;transition:opacity .15s ease}.chat-input-bar button:disabled{opacity:.5;cursor:not-allowed}
