:root {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-hover: #f2f6fc;
    --surface-unread: #ffffff;
    --surface-read: #f2f6fc;
    --border: #e1e5ea;
    --text: #1f1f1f;
    --text-muted: #5f6368;
    --primary: #0b57d0;
    --primary-hover: #0842a0;
    --compose-bg: #c2e7ff;
    --compose-hover: #b3dcfa;
    --nav-active: #d3e3fd;
    --danger: #d93025;
    --star: #f4b400;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.16);
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
    height: 100vh;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
}

/* AUTH SCREEN */
.auth-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #eef3fc 0%, #f6f8fc 50%, #e8f0fe 100%);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--surface);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a73e8, #0f9d58);
    color: #fff;
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo.small {
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-radius: 10px;
}

.auth-brand h1 {
    font-size: 22px;
    font-weight: 700;
}

.brand-domain {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: var(--bg);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.auth-tab {
    padding: 9px;
    border-radius: 9px;
    font-weight: 600;
    color: var(--text-muted);
    transition: 0.15s;
}

.auth-tab.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.auth-alert {
    background: #fce8e6;
    color: #c5221f;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.input-with-suffix {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.input-with-suffix:focus-within {
    border-color: var(--primary);
}

.input-with-suffix input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.input-suffix {
    padding: 10px 12px;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 20px;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-full {
    width: 100%;
    padding: 11px;
    border-radius: 12px;
}

.btn-outline {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: background 0.15s;
}

.btn-outline:hover {
    background: var(--surface-hover);
}

.btn-text {
    color: var(--text-muted);
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
}

.btn-text:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-text.danger {
    color: var(--danger);
}

.demo-box {
    margin-top: 18px;
    padding: 12px;
    background: var(--bg);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.demo-box code {
    color: var(--text);
    font-weight: 600;
}

/* APP SHELL */
.app-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 64px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 230px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.logo-badge {
    font-size: 11px;
    font-weight: 600;
    background: #e8f0fe;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 99px;
}

.search-wrap {
    flex: 1;
    max-width: 680px;
    background: #eaf1fb;
    border-radius: 28px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 46px;
    transition: background 0.15s, box-shadow 0.15s;
}

.search-wrap:focus-within {
    background: var(--surface);
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.2);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 10px;
    flex-shrink: 0;
}

.search-wrap input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 15px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background 0.15s;
}

.icon-btn:hover {
    background: rgba(60, 64, 67, 0.08);
    color: var(--text);
}

.icon-btn.small {
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.user-menu-wrap {
    position: relative;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: box-shadow 0.15s;
}

.user-pill:hover {
    box-shadow: var(--shadow-sm);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar.large {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.user-email-short {
    font-size: 13px;
    font-weight: 500;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-card {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    min-width: 260px;
    padding: 10px;
    z-index: 200;
}

.dropdown-card.small {
    min-width: 180px;
    left: 0;
    right: auto;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.dropdown-name {
    font-weight: 600;
}

.dropdown-email {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-card hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
}

.dropdown-item {
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--surface-hover);
}

.dropdown-item.danger {
    color: var(--danger);
}

/* WORKSPACE */
.workspace {
    flex: 1;
    display: flex;
    overflow: hidden;
    padding: 0 16px 16px 0;
}

.sidebar {
    width: 256px;
    padding: 4px 12px 16px 12px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    transition: width 0.2s, padding 0.2s;
}

.sidebar.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
}

.btn-compose {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--compose-bg);
    color: #001d35;
    font-weight: 600;
    font-size: 14px;
    padding: 15px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    width: fit-content;
    transition: background 0.15s, box-shadow 0.15s;
}

.btn-compose:hover {
    background: var(--compose-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.folder-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 0 20px 20px 0;
    font-size: 14px;
    color: var(--text);
    transition: background 0.12s;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-item.active {
    background: var(--nav-active);
    font-weight: 600;
    color: #001d35;
}

.nav-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.labels-section {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.labels-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.label-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 0 20px 20px 0;
    width: 100%;
    text-align: left;
    font-size: 13px;
}

.label-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.label-item.active {
    background: var(--nav-active);
    font-weight: 600;
}

.label-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.label-delete {
    margin-left: auto;
    opacity: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.label-item:hover .label-delete {
    opacity: 1;
}

/* MAIN PANEL */
.main-panel {
    flex: 1;
    background: var(--surface);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mail-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.toolbar {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 8px;
    border-left: 1px solid var(--border);
}

.label-assign-wrap {
    position: relative;
}

.folder-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* THREAD LIST */
.thread-list {
    flex: 1;
    overflow-y: auto;
}

.thread-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    background: var(--surface-read);
    transition: box-shadow 0.1s, background 0.1s;
}

.thread-row.unread {
    background: var(--surface-unread);
    font-weight: 600;
}

.thread-row:hover {
    box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60, 64, 67, 0.18);
    z-index: 1;
}

.thread-row.selected {
    background: #c2dbff;
}

.star-btn {
    font-size: 18px;
    color: #bdc1c6;
    line-height: 1;
    padding: 2px;
}

.star-btn.starred {
    color: var(--star);
}

.row-sender {
    width: 190px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.draft-tag {
    color: var(--danger);
    font-weight: 600;
    margin-right: 4px;
}

.row-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 4px;
}

.row-content {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.row-labels {
    display: inline-flex;
    gap: 4px;
    flex-shrink: 0;
}

.label-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 6px;
    background: #e8f0fe;
    color: var(--primary);
}

.row-subject {
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-snippet {
    color: var(--text-muted);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.row-actions-hover {
    display: none;
    gap: 2px;
}

.thread-row:hover .row-actions-hover {
    display: flex;
}

.thread-row:hover .row-date {
    display: none;
}

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 10px;
}

.empty-icon {
    font-size: 46px;
}

/* THREAD READER */
.thread-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px 40px;
}

.thread-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.thread-header h2 {
    font-size: 22px;
    font-weight: 500;
}

.tv-messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    background: var(--surface);
}

.message-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.message-sender-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-sender-name {
    font-weight: 600;
}

.message-sender-email {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 6px;
}

.message-recipients {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.message-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.message-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    word-break: break-word;
}

.message-body ul,
.message-body ol {
    padding-left: 22px;
    margin: 8px 0;
}

.message-body blockquote {
    border-left: 3px solid var(--border);
    padding-left: 12px;
    color: var(--text-muted);
    margin: 10px 0;
}

.message-attachments {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.att-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
    background: var(--bg);
}

.att-chip:hover {
    background: #e8f0fe;
    border-color: #c2dbff;
}

.tv-reply-bar {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* COMPOSE MODAL */
.compose-modal {
    position: fixed;
    right: 24px;
    bottom: 0;
    width: 560px;
    max-width: calc(100vw - 24px);
    background: var(--surface);
    border-radius: 14px 14px 0 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 300;
}

.compose-modal.expanded {
    width: 820px;
    height: 82vh;
    right: 50%;
    transform: translateX(50%);
}

.compose-modal.minimized .compose-body {
    display: none;
}

.compose-header {
    background: #f2f6fc;
    padding: 10px 14px;
    border-radius: 14px 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.compose-header-actions {
    display: flex;
    gap: 8px;
}

.compose-header-actions button {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: var(--text-muted);
}

.compose-header-actions button:hover {
    background: rgba(0, 0, 0, 0.08);
}

.compose-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 390px;
}

.compose-field {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border-bottom: 1px solid #f0f2f5;
    gap: 8px;
    position: relative;
}

.compose-field label {
    color: var(--text-muted);
    font-size: 13px;
    min-width: 40px;
}

.compose-field input {
    border: none;
    outline: none;
    flex: 1;
    padding: 4px 0;
}

.cc-bcc-toggles {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.cc-bcc-toggles button:hover {
    color: var(--text);
    text-decoration: underline;
}

.autocomplete-list {
    position: absolute;
    left: 54px;
    right: 14px;
    top: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 400;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: var(--surface-hover);
}

.compose-format-bar {
    display: flex;
    gap: 4px;
    padding: 6px 12px;
    border-bottom: 1px solid #f0f2f5;
    background: #fafbfd;
}

.compose-format-bar button {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.compose-format-bar button:hover {
    background: #e8eaed;
    color: var(--text);
}

.compose-editor {
    flex: 1;
    min-height: 200px;
    max-height: 360px;
    overflow-y: auto;
    padding: 12px 14px;
    outline: none;
    font-size: 14px;
    line-height: 1.55;
}

.compose-modal.expanded .compose-editor {
    max-height: none;
}

.compose-editor:empty::before {
    content: attr(data-placeholder);
    color: #9aa0a6;
}

.attachments-preview {
    padding: 0 14px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.compose-att-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
}

.compose-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.compose-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* MODALS */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 16px;
}

.modal-card {
    background: var(--surface);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-card.small {
    max-width: 380px;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

/* TOASTS */
.toast-container {
    position: fixed;
    left: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 600;
}

.toast {
    background: #202124;
    color: #fff;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.2s ease-out;
}

.toast.error {
    background: #c5221f;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .topbar-left { min-width: auto; }
    .logo-badge, .user-email-short { display: none; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 64px;
        bottom: 0;
        background: var(--bg);
        z-index: 150;
        box-shadow: var(--shadow-lg);
    }
    .row-sender { width: 120px; }
}

/* ADMIN PANEL */
.btn-admin-pill {
    background: #1e293b;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.btn-admin-pill:hover {
    background: #0f172a;
}

.admin-title-bar {
    font-weight: 600;
    font-size: 15px;
}

.admin-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-top: 6px;
    color: var(--text);
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
}

.admin-card h3 {
    font-size: 15px;
    margin-bottom: 14px;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.admin-card-header h3 {
    margin-bottom: 0;
}

.admin-search-input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 240px;
    outline: none;
}

.admin-create-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    align-items: center;
}

.admin-create-grid > input,
.admin-select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: var(--surface);
    font-family: inherit;
    font-size: 14px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f2f5;
    white-space: nowrap;
}

.admin-table th {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

.badge.admin {
    background: #e8f0fe;
    color: var(--primary);
}

.badge.user {
    background: #f1f3f4;
    color: var(--text-muted);
}

.badge.active {
    background: #e6f4ea;
    color: #137333;
}

.badge.suspended {
    background: #fce8e6;
    color: #c5221f;
}

.admin-actions {
    display: flex;
    gap: 6px;
}

.btn-mini {
    padding: 4px 9px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 500;
    background: var(--surface);
}

.btn-mini:hover {
    background: var(--surface-hover);
}

.btn-mini.danger {
    color: var(--danger);
    border-color: #f6c7c4;
}

.btn-mini.danger:hover {
    background: #fce8e6;
}
