/*
 * ╔══════════════════════════════════════════════════════════════╗
 * ║           CGo UI Library — cgo_element.css                  ║
 * ║           页面元素样式 (UI Element Styles)                   ║
 * ║                                                              ║
 * ║  版本：1.0.0 · 2026-06                                       ║
 * ║  作者：Central Go / NaL                                      ║
 * ║                                                              ║
 * ║  内容：                                                      ║
 * ║    1. 基础重置 (Reset & Base)                                 ║
 * ║    2. 字体系统 (Typography)                                   ║
 * ║    3. 按钮系统 (Buttons)                                      ║
 * ║    4. 图标 (Icons & SVG)                                      ║
 * ║    5. 输入框 / 表单 (Forms)                                   ║
 * ║    6. 徽标 / 标签 (Badges & Tags)                             ║
 * ║    7. 筛选器标签 (Filter Tags)                                ║
 * ║    8. 选项卡 (Tabs)                                           ║
 * ║    9. 对话框 / 弹窗 (Dialog & Modal)                          ║
 * ║   10. 菜单按钮 (Menu Button) — 导航栏/菜单栏下拉菜单         ║
 * ║   11. 短消息提示                                              ║
 * ║   12. 工具提示 (Tooltip)                                      ║
 * ║   13. 加载动画 (Loading & Spinner)                            ║
 * ║   14. 卡片 (Cards)                                            ║
 * ║   15. 表格 (Tables)                                           ║
 * ║   16. 头像 (Avatar)                                           ║
 * ╚══════════════════════════════════════════════════════════════╝
 *
 * ⚠  依赖：请先引入 cgo_clr.css
 */

/* =====================================================
   §1  基础重置 (Reset & Base)
   ===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition:
        background-color 0.3s,
        color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* =====================================================
   §2  字体系统 (Typography)
   ===================================================== */
:root {
    /* 字体栈 */
    --font-sans:
        'Noto Sans SC', 'Segoe UI', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
        sans-serif;
    --font-en: 'Arimo', 'Arial', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    /* 字号阶梯 */
    --text-xs: 11px;
    --text-sm: 12px;
    --text-base: 14px;
    --text-md: 0.9rem;
    --text-lg: 1.1rem;
    --text-xl: 1.3rem;
    --text-2xl: 1.5rem;
    --text-3xl: 28px;

    /* 圆角阶梯 */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* 阴影阶梯 */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 18px 46px rgba(0, 0, 0, 0.16);

    /* 过渡速度 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 标题 ── */
.page-title {
    text-align: center;
    color: var(--text-main);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: var(--text-base);
    margin-bottom: 30px;
}

.panel-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.panel-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

/* ── 文章排版 ── */
.article-content {
    line-height: 1.8;
    color: var(--text-main);
}

.article-content h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: var(--text-2xl);
}

.article-content h3 {
    color: var(--primary-hover);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.article-content h4 {
    color: var(--text-light);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.article-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* =====================================================
   §3  按钮系统 (Buttons)
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: var(--text-md);
    font-weight: 500;
    line-height: 1;
    height: 34px;
    box-sizing: border-box;
    margin: 0;
    touch-action: manipulation;
    white-space: nowrap;
    transition: all var(--transition-base);
    user-select: none;
    text-decoration: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 96, 152, 0.3);
}

/* ── 主色按钮 ── */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--btn-text);
    border-color: var(--primary-color);
}

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

/* ── 次级按钮（灰色）── */
.btn-info {
    background-color: var(--btn-info-bg);
    color: var(--btn-info-text);
    border-color: var(--border-color);
}

.btn-info:hover {
    background-color: var(--btn-info-hover);
    color: var(--text-main);
}

/* ── 深色品牌按钮（仪表盘）── */
.btn-dark {
    background-color: #141414;
    color: #c6c6c6;
    border-color: #1a1a1a;
}

.btn-dark:hover {
    background-color: #1a1a1a;
    border-color: #1f1f1f;
}

[data-theme='dark'] .btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-dark .btn-icon path,
.btn-dark .btn-icon circle {
    fill: #ffffff !important;
}

/* ── 危险按钮 ── */
.btn-danger {
    background-color: var(--danger-color);
    color: #ffffff;
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    border-color: var(--danger-hover);
}

/* ── 成功按钮 ── */
.btn-success {
    background-color: var(--success-color);
    color: #ffffff;
    border-color: var(--success-color);
}

.btn-success:hover {
    filter: brightness(1.1);
}

/* ── 幽灵按钮 ── */
.btn-ghost {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-ghost:hover {
    background-color: var(--info-bg);
}

/* ── 尺寸变体 ── */
.btn-sm {
    padding: 4px 10px;
    font-size: var(--text-sm);
    height: 28px;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
    height: 44px;
}

.btn-xl {
    padding: 14px 28px;
    font-size: 1.05rem;
    height: 52px;
}

.btn-full {
    width: 100%;
}

/* ── 圆角胶囊按钮（筛选 / 控制栏）── */
.ctrl-btn {
    background-color: var(--btn-info-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0 20px;
    height: 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-slow);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1;
    touch-action: manipulation;
    white-space: nowrap;
}

.ctrl-btn:hover {
    background-color: var(--btn-info-hover);
}

.ctrl-btn.primary,
.ctrl-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--btn-text);
}

.ctrl-btn.primary:hover,
.ctrl-btn.active:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.ctrl-btn.sm {
    padding: 0 14px;
    height: 30px;
    font-size: var(--text-sm);
}

/* ── 纯图标按钮（固定 34×34，仅含图标无文字）── */
/* 用法：<button class="btn btn-info btn-icon-only"> */
.btn-icon-only {
    width: 34px;
    height: 34px;
    padding: 0;
    flex-shrink: 0;
}

.btn-icon-only.btn-sm {
    width: 28px;
    height: 28px;
}

.btn-icon-only.btn-lg {
    width: 44px;
    height: 44px;
}

/* ── 悬浮操作按钮基础（canvas 工具栏等）── */
.btn-float-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 34px;
    border-radius: var(--radius-xs);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 600;
    gap: 6px;
    transition: all var(--transition-base);
    white-space: nowrap;
    touch-action: manipulation;
}

/* =====================================================
   §4  图标 (Icons & SVG)
   ===================================================== */

/* ── SVG 内联图标基础（用于 <svg class="btn-icon"> 内的 <path>）── */
.btn-icon {
    width: 1.1em;
    height: 1.1em;
    fill: currentColor;
    flex-shrink: 0;
    margin-top: -1px;
    pointer-events: none;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(1px);
}

/* ── <i class="cgo-icon" data-icon="xxx"> 自动渲染图标基础 ── */
/* 渲染逻辑由 cgo_icons.js 的 CGO.renderIcons() 完成         */
.cgo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}

.cgo-icon svg {
    display: block;
    fill: currentColor;
    pointer-events: none;
}

/* ── 图标尺寸变体 ── */
.cgo-icon,
.icon-md {
    width: 20px;
    height: 20px;
}

.icon-xs {
    width: 12px;
    height: 12px;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

.icon-xl {
    width: 32px;
    height: 32px;
}

.icon-2xl {
    width: 40px;
    height: 40px;
}

/* ── 图标颜色工具类 ── */
.icon-primary {
    color: var(--primary-color);
    fill: var(--primary-color);
}

.icon-muted {
    color: var(--text-light);
    fill: var(--text-light);
}

.icon-danger {
    color: var(--danger-color);
    fill: var(--danger-color);
}

.icon-success {
    color: var(--success-color);
    fill: var(--success-color);
}

.icon-warning {
    color: var(--warning-color);
    fill: var(--warning-color);
}

.icon-white {
    color: #ffffff;
    fill: #ffffff;
}

/* ── 导航项图标 ── */
.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    fill: currentColor;
    flex-shrink: 0;
    pointer-events: none;
}

/* ── 下拉展开箭头（stroke 风格）── */
.dropdown-arrow-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: transform var(--transition-base);
    pointer-events: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dropdown.is-open .dropdown-arrow-icon,
.dropdown:focus-within .dropdown-arrow-icon {
    transform: rotate(180deg);
}

/* ── 悬浮/地图操作图标（stroke 风格，用于 canvas 按钮）── */
.stroke-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* 强制覆盖所有描边型图标的 fill 为 none */
.cgo-stroke-icon,
.cgo-stroke-icon * {
    fill: none !important;
}

/* ── 纯 CSS Mask 图标（无需 JS，使用内联 SVG Data URI）── */
/* 用法：<span class="css-icon icon-back"></span>           */
.css-icon {
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    flex-shrink: 0;
}

/* 常用 mask 图标 */
.css-icon.icon-back {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E");
}

.css-icon.icon-forward {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13h12.17l-5.59 5.59L12 20l8-8-8-8-1.41 1.41L16.17 11H4v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13h12.17l-5.59 5.59L12 20l8-8-8-8-1.41 1.41L16.17 11H4v2z'/%3E%3C/svg%3E");
}

.css-icon.icon-close {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

.css-icon.icon-add {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E");
}

.css-icon.icon-delete {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
}

.css-icon.icon-search {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}

.css-icon.icon-chevron-down {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E");
}

/* 工具类 */
.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

.icon-xl {
    width: 32px;
    height: 32px;
}

/* =====================================================
   §5  输入框 / 表单 (Forms)
   ===================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--panel-bg);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: var(--text-md);
    transition: all var(--transition-base);
    appearance: none;
    -webkit-appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 96, 152, 0.15);
}

.form-control::placeholder {
    color: transparent;
    transition: color var(--transition-fast);
}

.form-control:focus::placeholder {
    color: var(--text-light) !important;
}

.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--btn-info-bg);
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row .form-control {
    flex: 1;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--danger-color);
    margin-top: 6px;
    min-height: 18px;
}

.form-hint.success {
    color: var(--success-color);
}

/* 非错误型辅助说明（灰色，用于字数限制/格式提示等）*/
.form-hint-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
    line-height: 1.5;
}

/* 表单底部操作区（按钮行，统一留上边距）*/
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

/* 搜索框 */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.search-clear-btn:hover {
    background: var(--btn-info-hover);
    color: var(--text-main);
}

.search-clear-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* =====================================================
   §6  徽标 / 标签 (Badges & Tags)
   ===================================================== */
.smart-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: var(--text-sm);
    font-weight: 600;
    color: #ffffff;
    margin-left: 4px;
    vertical-align: middle;
    background: var(--primary-color);
}

.user-group-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: var(--text-md);
    background: var(--primary-color);
    color: var(--btn-text);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.4;
}

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

.badge-success {
    background: var(--success-color);
    color: #fff;
}

.badge-danger {
    background: var(--danger-color);
    color: #fff;
}

.badge-warning {
    background: var(--warning-color);
    color: #fff;
}

.badge-info {
    background: var(--info-bg);
    color: var(--info-color);
}

.badge-muted {
    background: var(--btn-info-bg);
    color: var(--text-light);
}

/* =====================================================
   §7  筛选器标签 (Filter Tags)
   ===================================================== */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.filter-tag {
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background-color: var(--filter-tag-bg);
    color: var(--text-light);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    transition: all var(--transition-base);
    user-select: none;
}

.filter-tag:hover {
    background-color: var(--btn-info-hover);
    color: var(--text-main);
}

.filter-tag.active {
    box-shadow: 0 0 0 2px var(--primary-color) inset;
    border-color: transparent;
    font-weight: 700;
    color: var(--text-main);
}

.filter-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-modes {
    display: none;
    align-items: center;
    gap: 10px;
}

.filter-modes.visible {
    display: flex;
}

.mode-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.compare-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--filter-toolbar-bg);
    padding: 5px 15px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.compare-info {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}

/* 选搜弹出层 */
.search-filter-popover {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    position: absolute;
    z-index: 200;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.filter-keyword {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--btn-info-bg);
    color: var(--text-light);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.filter-keyword:hover,
.filter-keyword.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.filter-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.filter-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.filter-confirm-btn {
    padding: 5px 14px;
    border-radius: var(--radius-xs);
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
}

/* =====================================================
   §8  选项卡 (Tabs)
   ===================================================== */
.tabs-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--tab-bg);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.modern-tabs {
    display: flex;
    padding: 0 5px;
    width: max-content;
}

.tab-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: var(--text-base);
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all var(--transition-base);
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
}

.tab-item:hover {
    color: var(--text-main);
    background-color: var(--tab-hover);
}

.tab-item.active {
    color: var(--primary-color);
    font-weight: 700;
    background-color: var(--card-bg);
    border-bottom-color: var(--primary-color);
}

/* =====================================================
   §9  对话框 / 弹窗 (Dialog & Modal)
   ===================================================== */

/* 遮罩层 */
.help-overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: overlayIn 0.2s ease;
}

@keyframes overlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.help-overlay.closing,
.modal-overlay.closing {
    animation: overlayOut 0.2s ease forwards;
}

@keyframes overlayOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* 对话框主体 */
.text-dialog,
.help-dialog,
.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--panel-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    z-index: 9001;
    width: min(560px, 92dvw);
    max-height: 90dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: dialogIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dialogIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.text-dialog.closing,
.help-dialog.closing,
.modal-dialog.closing {
    animation: dialogOut 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dialogOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.96);
    }
}

/* 关闭按钮 */
.dialog-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 1;
    line-height: 1;
    padding: 0;
}

.dialog-close-btn:hover {
    color: var(--text-main);
}

/* 对话框底部按钮区 */
.dialog-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 0 25px 20px;
    flex-shrink: 0;
}

/* 帮助弹窗专属 */
.help-container {
    max-height: 70dvh;
    overflow-y: auto;
    padding: 24px 25px 20px 25px;
    text-align: left;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
    color: var(--text-main);
}

.help-container::-webkit-scrollbar {
    width: 6px;
}

.help-container::-webkit-scrollbar-track {
    background: transparent;
}

.help-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
}

.help-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.help-icon-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
}

.help-title-group h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: var(--text-main);
}

.help-title-group p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-light);
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.help-card {
    background-color: var(--help-code-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text-main);
}

.help-card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.help-card h4 {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.help-card ul {
    margin: 0;
    padding-left: 12px;
    color: var(--text-light);
    font-size: 11px;
    line-height: 1.5;
}

.help-action-btn {
    padding: 9px 20px;
    border-radius: var(--radius-xs);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: var(--text-md);
    font-weight: 600;
    transition: all var(--transition-base);
}

.help-action-btn.primary {
    background: var(--primary-color);
    color: #fff;
}

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

.help-action-btn.secondary {
    background: var(--btn-info-bg);
    color: var(--btn-info-text);
}

.help-action-btn.secondary:hover {
    background: var(--btn-info-hover);
}

.help-data-info,
.help-data-info2 {
    background-color: var(--help-code-bg);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.6;
    margin: 15px 0;
    border: 1px solid var(--border-color);
}

/* 帮助弹窗内设置行组件 */
.help-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.help-setting-row h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 600;
}

.help-setting-row p {
    margin: 0;
    font-size: 12px;
    color: var(--text-light);
}

.help-setting-select {
    width: 120px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--help-code-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition-base);
}

.help-setting-select:focus {
    border-color: var(--primary-color);
}

.help-footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
}

.help-footer a {
    color: var(--text-light);
}

.help-footer-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.help-beian-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.help-beian-icon {
    width: 14px;
    height: auto;
    vertical-align: middle;
}

/* =====================================================
   §10  菜单按钮 (Menu Button)
   ===================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 500;
    padding: 6px;
    overflow: hidden;
    animation: dropdownIn 0.15s ease;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown.is-open .dropdown-content,
.dropdown-content.show {
    display: block;
}

/* 菜单按钮选项 */
.dropdown-content a,
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--radius-xs);
    color: var(--text-main);
    font-size: var(--text-base);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-base);
    white-space: nowrap;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
}

.dropdown-content a:hover,
.dropdown-item:hover {
    background-color: var(--btn-info-hover);
}

.dropdown-content .btn-icon,
.dropdown-item .btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 5px 0;
}

/* 工具切换下拉（header 中央）*/
.tool-switcher-menu {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    min-width: 220px;
    padding: 8px;
}

.tool-switcher-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background var(--transition-base);
    color: var(--text-main);
}

.tool-switcher-item:hover {
    background-color: var(--btn-info-hover);
}

.tool-switcher-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-xs);
    object-fit: contain;
}

.tool-switcher-name {
    font-size: var(--text-base);
    font-weight: 500;
}

/* =====================================================
   §11  短消息提示 (Toast Notifications)
   ===================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 12px 24px;
    background: var(--text-main);
    color: var(--bg-color);
    border-radius: var(--radius-full);
    font-size: var(--text-md);
    font-family: var(--font-sans);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    animation:
        toastSlideUp 0.3s ease,
        toastFadeOut 0.3s ease 2.7s forwards;
}

.toast.toast-success {
    background: var(--success-color);
    color: #fff;
}

.toast.toast-danger {
    background: var(--danger-color);
    color: #fff;
}

.toast.toast-warning {
    background: var(--warning-color);
    color: #fff;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
    }
}

/* =====================================================
   §12  工具提示 (Tooltip)
   ===================================================== */
#theme-reset-tooltip,
.cgo-tooltip {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: rgba(0, 0, 0, 0.82);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    pointer-events: none;
    z-index: 11000;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

[data-theme='dark'] #theme-reset-tooltip,
[data-theme='dark'] .cgo-tooltip {
    background-color: rgba(255, 255, 255, 0.92);
    color: #000;
}

#theme-reset-tooltip.show,
.cgo-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* data-tooltip 属性式工具提示 */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    border-radius: var(--radius-xs);
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: var(--text-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 200;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* =====================================================
   §13  加载动画 (Loading & Spinner)
   ===================================================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   §14  卡片 (Cards)
   ===================================================== */
.tool-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-bottom: 30px;
    color: var(--text-main);
    transition: box-shadow var(--transition-base);
}

.tool-card:hover {
    box-shadow: var(--shadow-lg);
}

/* 玻璃态卡片（admin / cgoauth 风格）*/
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
}

/* 渐变信息卡 */
.info-card {
    background: linear-gradient(120deg, var(--primary-color), #003366);
    color: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 30px;
}

.info-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
}

.info-card p {
    opacity: 0.9;
    font-size: 15px;
    margin-bottom: 15px;
}

.info-card a {
    color: #3498db;
    text-decoration: underline;
}

/* 悬停升级卡 */
.upgrade-tier-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.upgrade-tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color) !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

[data-theme='dark'] .upgrade-tier-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05) !important;
}

/* 空状态 */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* 免责声明块 */
.disclaimer {
    background-color: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-color);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* =====================================================
   §15  表格 (Tables)
   ===================================================== */
.table-container,
.table-responsive {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.modern-table,
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}

th,
td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid var(--table-cell-border);
}

th {
    background-color: var(--table-head-bg);
    color: var(--table-head-text);
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

td {
    font-size: var(--text-base);
    line-height: 1.3;
    color: var(--text-main);
    transition: background var(--transition-base);
    cursor: pointer;
}

tr:hover,
tbody tr:hover {
    background-color: var(--table-row-hover);
}

/* 对比高亮 */
td.diff {
    background-color: var(--diff-bg) !important;
    color: var(--diff-text) !important;
    font-weight: 700;
}

td.same {
    background-color: var(--same-bg) !important;
    color: var(--same-text) !important;
    opacity: 0.9;
}

th.selected,
td.selected {
    background-color: var(--selected-bg);
    color: var(--primary-color);
}

th.selected::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3498db;
    z-index: 1;
}

/* 站名表头交互 */
.station-table th {
    cursor: pointer;
    transition: background var(--transition-base);
}

.station-table th:hover {
    background-color: var(--border-color);
}

.station-table th:nth-child(1),
.station-table th:nth-child(2) {
    cursor: default;
    background-color: var(--table-head-bg);
}

/* =====================================================
   §16  头像 (Avatar)
   ===================================================== */
.avatar-preview-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 6px;
}

.avatar-preview-small svg {
    width: 100%;
    height: 100%;
}

.avatar-preview-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-color: var(--panel-bg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 12px;
    transition: all var(--transition-slow);
}

.avatar-preview-large svg {
    width: 100%;
    height: 100%;
    transition: fill var(--transition-slow);
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
    margin-bottom: 16px;
    width: 100%;
}

.avatar-opt {
    aspect-ratio: 1;
    min-width: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    transition: all var(--transition-base);
    opacity: 0.5;
}

.avatar-opt svg {
    width: 100%;
    height: 100%;
    fill: var(--text-light);
    transition: fill var(--transition-base);
}

.avatar-opt:hover {
    border-color: var(--border-color);
    transform: translateY(-2px);
    opacity: 0.85;
}

.avatar-opt.active {
    border-color: transparent;
    opacity: 1;
}

.avatar-opt.active svg {
    fill: currentColor;
}

.color-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-opt {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.color-opt:hover {
    transform: scale(1.15);
}

.color-opt.active {
    border-color: var(--text-main);
    box-shadow: 0 0 0 2px var(--card-bg) inset;
}

/* 等级卡片渐变背景 */
.current-level-card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border: none !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: #ffffff;
    color-scheme: only light;
    forced-color-adjust: none;
    background: var(--level-default-gradient);
    box-shadow: 0 8px 32px rgba(0, 150, 85, 0.18);
}

.current-level-card.level-card-test {
    background: var(--level-test-gradient);
    box-shadow: 0 8px 32px rgba(233, 137, 19, 0.22);
}

.current-level-card.level-card-prime {
    background: var(--level-prime-gradient);
    box-shadow: 0 8px 32px rgba(95, 25, 133, 0.25);
}

.current-level-card.level-card-admin {
    background: var(--level-admin-gradient);
    box-shadow: 0 8px 32px rgba(92, 28, 36, 0.25);
}

.current-level-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.level-badge-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* 磨砂玻璃等级胶囊 */
.current-level-card .user-group-tag {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.current-level-card .user-group-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.level-card-svg {
    height: 120px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* =====================================================
   §15  移动端 (宽度 <= 600px) 对话框与弹窗靠底样式
   ===================================================== */
@media screen and (max-width: 600px) {

    /* 普通对话框和弹窗自动转为底部抽屉 */
    .text-dialog:not(.help-dialog):not(.modal-dialog-keep-center),
    .modal-dialog:not(.help-dialog):not(.modal-dialog-keep-center) {
        display: flex;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100dvw !important;
        min-width: 100dvw !important;
        max-width: 100dvw !important;
        max-height: 85dvh !important;
        border-radius: 20px 20px 0 0 !important;
        border: none !important;
        border-top: 1px solid var(--border-color) !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35) !important;
        z-index: 9001 !important;
        transform: none !important;
        padding: 0 !important;
        overflow-y: auto !important;
        animation: drawerIn 0.3s cubic-bezier(0.32, 0.94, 0.6, 1) !important;
    }

    /* 帮助弹窗在移动端保持居中，不作为底置弹窗 */
    .text-dialog.help-dialog,
    .modal-dialog.help-dialog {
        top: 50% !important;
        bottom: auto !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        min-width: 0 !important;
        max-width: 450px !important;
        border-radius: 12px !important;
        overflow-y: auto !important;
        animation: dialogIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }
}

@keyframes drawerIn {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}