/**
 * 增强样式 - 更紧凑、更美观的设计
 * 在 app.css 之后引入
 * v2.0 - 大刀阔斧美化版
 */

/* ==================== 全局优化 ==================== */
:root {
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
  --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
}

/* ==================== 顶部导航优化 ==================== */
.topbar {
  padding: 12px 24px;
  gap: 16px;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
  max-width: 1280px;
}

.brand {
  font-size: 18px;
  gap: 10px;
}

.brand-icon {
  font-size: 22px;
}

.nav-actions {
  gap: 8px;
}

.nav-actions .btn {
  padding: 8px 14px;
  font-size: 13px;
  height: 36px;
}

/* ==================== 主容器优化 ==================== */
.container {
  max-width: 1280px;
  padding: 16px 20px 24px;
  gap: 20px;
  grid-template-columns: 280px 1fr;
}

/* ==================== 侧边栏优化 ==================== */
.sidebar {
  padding: 16px;
  border-radius: var(--radius);
  min-width: 260px;
  max-height: calc(100vh - 120px);
  top: 100px;
}

.sidebar-header {
  margin-bottom: 12px;
}

.sidebar h3 {
  font-size: 15px;
}

.sidebar-icon {
  font-size: 18px;
}

.sidebar-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.quota-display {
  font-size: 11px;
  padding: 3px 8px;
}

/* 邮箱列表项优化 */
.mailbox-item {
  padding: 8px 10px;
  padding-left: 20px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
}

.mailbox-item .address {
  font-size: 12px;
}

.mailbox-item .time {
  font-size: 9px;
}

.mailbox-item .mailbox-actions .pin,
.mailbox-item .mailbox-actions .del {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  font-size: 11px;
}

.mailbox-item.pinned::after {
  font-size: 9px;
  top: 3px;
  left: 3px;
}

/* 搜索框优化 */
.sidebar-search {
  margin: 4px 0 8px;
}

.sidebar-search-input {
  height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

/* ==================== 卡片优化 ==================== */
.card {
  padding: 20px;
  border-radius: var(--radius);
}

.card::before {
  height: 3px;
}

.card h2 {
  margin: 0 0 16px 0;
  font-size: 20px;
  gap: 10px;
}

.card-icon {
  font-size: 20px;
}

/* ==================== 邮箱显示区优化 ==================== */
.mailbox-layout {
  gap: 20px;
}

.mailbox-display-section {
  min-height: 240px;
  gap: 10px;
}

.mailbox-config-section {
  min-height: 240px;
  gap: 10px;
}

.section-header {
  margin-bottom: 2px;
}

.section-icon {
  font-size: 16px;
}

.section-title {
  font-size: 14px;
}

.email-display {
  padding: 14px;
  font-size: 15px;
  min-height: 60px;
  border-radius: var(--radius-sm);
}

.email-display.has-email {
  font-size: 16px;
}

/* 操作按钮优化 */
.mailbox-actions {
  gap: 10px;
}

.mailbox-actions .btn {
  height: 44px;
  font-size: 13px;
}

.generate-action .btn {
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

/* 配置表单优化 */
.config-form {
  gap: 12px;
}

.config-item {
  gap: 6px;
}

.config-label {
  font-size: 13px;
}

.label-icon {
  font-size: 14px;
}

/* 自定义输入覆盖层 */
.custom-overlay {
  padding: 10px;
  gap: 10px;
}

.custom-input {
  min-width: 240px;
  height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}

.custom-overlay .btn {
  height: 40px;
  padding: 0 14px;
}

/* ==================== 收件箱列表优化 ==================== */
.listcard-header {
  gap: 10px;
  margin-bottom: 12px;
}

.listcard-title {
  font-size: 18px;
}

.view-switch {
  border-radius: 20px;
}

.seg-btn {
  padding: 6px 14px;
  font-size: 12px;
}

/* 邮件列表项 */
.email-item {
  padding: 12px 14px;
  margin-bottom: 6px;
  border-radius: var(--radius-sm);
}

.email-item .sender {
  font-size: 13px;
}

.email-item .subject {
  font-size: 14px;
}

.email-item .preview {
  font-size: 12px;
}

.email-item .time {
  font-size: 11px;
}

/* 验证码徽章 */
.code-badge {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
}

/* ==================== 邮件卡片视图优化 ==================== */
.email-card {
  padding: 14px;
  border-radius: var(--radius-sm);
}

.email-card .card-header {
  margin-bottom: 8px;
}

.email-card .card-sender {
  font-size: 12px;
}

.email-card .card-subject {
  font-size: 13px;
  margin: 6px 0;
}

.email-card .card-preview {
  font-size: 11px;
}

.email-card .card-footer {
  margin-top: 8px;
  padding-top: 8px;
}

.email-card .card-time {
  font-size: 10px;
}

/* ==================== 模态框优化 ==================== */
.modal-content {
  padding: 20px;
  border-radius: var(--radius);
  max-width: 700px;
}

.modal-header {
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-body {
  padding: 12px 0;
}

.modal-footer {
  padding-top: 12px;
  gap: 10px;
}

.modal-footer .btn {
  padding: 10px 18px;
  font-size: 13px;
}

/* ==================== 按钮优化 ==================== */
.btn {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  gap: 6px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

/* 按钮悬停效果增强 */
.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* ==================== 输入框优化 ==================== */
input, select, textarea {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

select {
  height: 40px;
}

/* ==================== 表格优化 ==================== */
.table {
  font-size: 13px;
}

.table th {
  padding: 10px 12px;
  font-size: 12px;
}

.table td {
  padding: 10px 12px;
}

/* ==================== Toast 优化 ==================== */
.toast {
  padding: 12px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* ==================== 加载动画优化 ==================== */
.spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.loading-indicator {
  font-size: 12px;
  gap: 6px;
}

/* ==================== 角色徽章优化 ==================== */
.role-badge {
  padding: 4px 10px;
  font-size: 12px;
  margin-left: 10px;
}

/* ==================== 状态徽章优化 ==================== */
.status-badge {
  padding: 3px 8px;
  font-size: 11px;
  gap: 4px;
}

/* ==================== 空状态优化 ==================== */
.empty-state {
  padding: 30px 20px;
}

.empty-state .icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-state .title {
  font-size: 16px;
  margin-bottom: 6px;
}

.empty-state .desc {
  font-size: 13px;
}

/* ==================== 发件箱优化 ==================== */
.sent-item {
  padding: 12px 14px;
  margin-bottom: 6px;
}

.sent-item .recipient {
  font-size: 13px;
}

.sent-item .subject {
  font-size: 14px;
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 1200px) {
  .container {
    grid-template-columns: 260px 1fr;
    gap: 16px;
  }
  
  .sidebar {
    min-width: 240px;
  }
}

@media (max-width: 1024px) {
  .container {
    grid-template-columns: 240px 1fr;
    padding: 12px 16px 20px;
  }
  
  .mailbox-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .mailbox-display-section,
  .mailbox-config-section {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 10px 16px;
    border-radius: 0;
  }
  
  .brand {
    font-size: 16px;
  }
  
  .container {
    grid-template-columns: 1fr;
    padding: 10px 12px 16px;
    gap: 12px;
  }
  
  .sidebar {
    position: relative;
    top: 0;
    max-height: none;
    padding: 12px;
  }
  
  .card {
    padding: 16px;
  }
  
  .card h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .mailbox-actions {
    grid-template-columns: 1fr 1fr;
  }
  
  .mailbox-actions .btn {
    height: 40px;
    font-size: 12px;
  }
  
  .generate-action .btn {
    height: 40px;
    font-size: 13px;
    flex: 1 1 180px;
  }
}

/* ==================== 动画优化 ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.card {
  animation: fadeInUp 0.3s ease-out;
}

.mailbox-item {
  animation: fadeInUp 0.2s ease-out;
}

.email-item,
.email-card {
  animation: fadeInUp 0.25s ease-out;
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.5);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.3) transparent;
}

/* ==================== 选中效果优化 ==================== */
::selection {
  background: rgba(59, 130, 246, 0.2);
  color: inherit;
}

/* ==================== 焦点样式优化 ==================== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* ==================== Generate Card 重新设计 ==================== */
.generate-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.08);
  position: relative;
  overflow: hidden;
}

.generate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.generate-card h2 {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 邮箱布局重新设计 */
.mailbox-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* 邮箱显示区重新设计 */
.mailbox-display-section {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(16, 185, 129, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mailbox-display-content {
  flex: 1;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.section-icon {
  font-size: 14px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.email-display {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.8) 100%);
  border: 2px dashed rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
}

.email-display.has-email {
  border-style: solid;
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.9) 0%, rgba(236, 254, 255, 0.8) 100%);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  justify-content: flex-start;
}

.email-display.has-email:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

/* 操作按钮区重新设计 - 紧凑精致 */
.mailbox-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mailbox-actions .btn {
  height: 36px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mailbox-actions .btn .btn-icon {
  font-size: 13px;
}

.mailbox-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 配置区重新设计 */
.mailbox-config-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.config-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.config-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.config-item {
  flex: 1;
  min-width: 120px;
}

.config-item select {
  width: 100%;
  height: 34px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(255,255,255,0.8);
  padding: 0 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.config-item select:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.config-item select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* 长度滑块美化 */
.range-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-container .range {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--primary) 0%, rgba(59, 130, 246, 0.2) 0%);
  cursor: pointer;
}

.range-container .range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
  transition: all 0.2s ease;
}

.range-container .range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.range-display {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 6px;
  padding: 4px 10px;
  min-width: 50px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  font-size: 13px;
}

/* 生成按钮区重新设计 */
.generate-action {
  margin-top: 4px;
}

.generate-buttons {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
}

.generate-buttons .btn {
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.generate-buttons .btn .btn-icon {
  font-size: 14px;
}

/* 主生成按钮特殊样式 */
.btn-generate {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-generate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-generate:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-generate:hover::before {
  left: 100%;
}

.btn-generate:active {
  transform: translateY(-1px);
}

/* 自定义输入覆盖层美化 */
.custom-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  z-index: 10;
}

.custom-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  font-size: 13px;
  background: white;
  transition: all 0.2s ease;
}

.custom-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.custom-overlay .btn {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

/* ==================== 邮件详情页美化 ==================== */
.email-detail-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  flex-shrink: 0;
}

.email-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 6px;
  border: 1px solid rgba(226, 232, 240, 0.5);
  flex: 1 1 auto;
  min-width: 140px;
}

.meta-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}

/* 附件区域美化 */
.attachment-section {
  margin: 16px 0;
  padding: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.att-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
}

.att-header::before {
  content: '📎';
  font-size: 14px;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  transition: all 0.2s ease;
}

.attachment-item:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
  transform: translateY(-2px);
}

.att-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.att-info {
  flex: 1;
  min-width: 0;
}

.att-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.att-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.att-dl-btn {
  flex-shrink: 0;
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.att-dl-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* 邮件操作栏美化 */
.email-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: none;
}

.email-actions-bar .btn {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.email-actions-bar .btn:hover {
  transform: translateY(-2px);
}

.email-actions-bar .btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.email-actions-bar .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 邮件正文容器美化 */
.email-body-container {
  background: white;
  border-radius: var(--radius-md);
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.5);
  min-height: 100px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.email-body-container iframe {
  border-radius: 8px;
  width: 100%;
  border: none;
  display: block;
}

.email-body-container pre {
  background: rgba(248, 250, 252, 0.8);
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.email-no-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ==================== 模态框美化 ==================== */
.modal-content {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.modal-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

/* ==================== 收件箱列表美化 ==================== */
.inbox-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(240,253,250,0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.1);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.08);
}

.inbox-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #3b82f6);
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
}

.email-item {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.email-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: all 0.2s ease;
}

.email-item:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
  transform: translateX(4px);
}

.email-item:hover::before {
  background: linear-gradient(180deg, var(--primary) 0%, #764ba2 100%);
}

.email-item.unread {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(255,255,255,0.9) 100%);
  border-left: 3px solid var(--primary);
}

.email-item .sender {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.email-item .subject {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 500;
}

.email-item .preview {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.email-item .time {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* 验证码徽章美化 */
.code-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  font-family: 'Monaco', 'Menlo', monospace;
}

.code-badge::before {
  content: '🔐';
  font-size: 10px;
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
  .mailbox-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .mailbox-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .generate-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .generate-buttons .btn {
    height: 42px;
  }
  
  .email-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .attachment-grid {
    grid-template-columns: 1fr;
  }
}


/* ==================== 统一按钮样式 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s ease;
}


/* ==================== 整体页面美化增强 ==================== */

/* 顶部导航栏美化 */
.topbar {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.85) 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.brand {
  font-size: 17px;
  font-weight: 700;
}

.brand-icon {
  font-size: 20px;
  animation: float 3s ease-in-out infinite;
}

.brand-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 导航按钮美化 */
.nav-actions .btn {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.nav-actions .btn:hover {
  transform: translateY(-2px);
}

/* 角色徽章美化 */
.role-badge {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 侧边栏美化 */
.sidebar {
  background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.85) 100%);
  border: 1px solid rgba(59, 130, 246, 0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.sidebar h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* 邮箱列表项美化 */
.mailbox-item {
  padding: 10px 12px;
  padding-left: 16px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.25s ease;
}

.mailbox-item:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateX(3px);
}

.mailbox-item .address {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.mailbox-item .time {
  font-size: 10px;
  color: var(--text-muted);
}

.mailbox-item .mailbox-actions .pin,
.mailbox-item .mailbox-actions .del {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.mailbox-item .mailbox-actions .pin:hover,
.mailbox-item .mailbox-actions .del:hover {
  transform: scale(1.1);
}

/* 置顶邮箱美化 */
.mailbox-item.pinned {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.9) 0%, rgba(254, 243, 199, 0.7) 100%);
  border-left: 3px solid #f59e0b;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.12);
}

.mailbox-item.pinned:hover {
  background: linear-gradient(135deg, rgba(255, 248, 220, 0.95) 0%, rgba(254, 240, 180, 0.85) 100%);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.18);
}

/* 卡片通用美化 */
.card {
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.card h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-icon {
  font-size: 18px;
}

/* 按钮统一美化 */
.btn {
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.btn:active::after {
  width: 200px;
  height: 200px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.9);
  color: var(--text);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.btn-secondary:hover {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px dashed rgba(226, 232, 240, 0.8);
}

.btn-ghost:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: var(--primary);
  border-style: solid;
  color: var(--primary);
}

/* 输入框美化 */
input, select, textarea {
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255,255,255,0.9);
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* 模态框美化 */
.modal-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.95) 100%);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.5);
}

.modal-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  padding: 18px 24px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.modal-header h3,
.modal-header > div {
  font-size: 16px;
  font-weight: 600;
}

.modal-body {
  padding: 24px;
}

.close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* 分页器美化 */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.pager .btn {
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

/* 空状态美化 */
.empty-state {
  padding: 40px 20px;
  text-align: center;
}

.empty-state .icon,
.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state .title,
.empty-state .empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state .desc,
.empty-state .empty-description {
  font-size: 13px;
  color: var(--text-muted);
}

/* Toast 美化 */
.toast {
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}

/* 加载指示器美化 */
.loading-indicator {
  font-size: 13px;
  color: var(--text-muted);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--primary);
}

/* 视图切换美化 */
.view-switch {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 25px;
  padding: 3px;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.seg-btn {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 22px;
  transition: all 0.2s ease;
}

.seg-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.seg-btn:hover:not([aria-pressed="true"]) {
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
}

/* 配额显示美化 */
.quota-display {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.5);
  font-weight: 600;
}

/* 搜索框美化 */
.sidebar-search-input {
  height: 34px;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.sidebar-search-input:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 发件表单美化 */
.compose-form .field-group {
  margin-bottom: 16px;
}

.compose-form .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}

.compose-form .field-input,
.compose-form .field-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 13px;
  transition: all 0.2s ease;
}

.compose-form .field-input:focus,
.compose-form .field-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.compose-form .field-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.compose-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 确认对话框美化 */
.confirm-card {
  max-width: 400px;
}

.confirm-message {
  font-size: 14px;
  color: var(--text);
  text-align: center;
  padding: 20px 0;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-actions .btn {
  min-width: 100px;
}

/* 演示模式横幅美化 */
.demo-banner {
  background: linear-gradient(90deg, #fde68a 0%, #fca5a5 50%, #c4b5fd 100%);
  color: #1f2937;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.demo-banner strong {
  font-weight: 700;
}

/* 页脚美化 */
footer, .footer {
  background: linear-gradient(135deg, rgba(248,250,252,0.9) 0%, rgba(241,245,249,0.8) 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* 微交互动画 */
@keyframes bounce-in {
  0% { transform: scale(0.9); opacity: 0; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

.modal.show .modal-card {
  animation: bounce-in 0.3s ease-out;
}

/* 骨架屏加载效果 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 高对比度焦点状态 */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* 打印样式优化 */
@media print {
  .topbar, .sidebar, .nav-actions, .mailbox-actions, .email-actions-bar {
    display: none !important;
  }
  
  .card, .modal-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ==================== 全新生成面板设计 ==================== */
.generate-card {
  padding: 16px 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.generate-card::before {
  display: none;
}

.gen-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 第一行：邮箱 + 域名选择 */
.gen-row-1 {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.email-box {
  flex: 1;
  position: relative;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%);
  border: 1px solid #d1fae5;
  border-radius: 10px;
  padding: 0 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}

.email-box.has-email {
  background: linear-gradient(135deg, #dcfce7 0%, #cffafe 100%);
  border-color: #86efac;
}

.email-addr {
  font-size: 15px;
  font-weight: 600;
  color: #059669;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  letter-spacing: -0.3px;
  word-break: break-all;
  line-height: 1.3;
}

.email-addr .placeholder {
  color: #94a3b8;
  font-weight: 400;
  font-family: system-ui, sans-serif;
  font-size: 13px;
}

.domain-sel {
  height: 44px;
  min-width: 160px;
  max-width: 200px;
  padding: 0 32px 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: white;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  flex-shrink: 0;
}

.domain-sel:hover {
  border-color: #3b82f6;
}

.domain-sel:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 第二行：按钮 + 长度控制 */
.gen-row-2 {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* 统一按钮样式 */
.btn-pill {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-pill:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #f8fafc;
}

.btn-pill.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-pill.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.btn-pill.btn-accent {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.btn-pill.btn-accent:hover {
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
  transform: translateY(-1px);
}

.btn-pill.btn-danger {
  color: #ef4444;
  border-color: #fecaca;
  background: #fef2f2;
}

.btn-pill.btn-danger:hover {
  background: #fee2e2;
  border-color: #ef4444;
}

/* 长度控制 */
.len-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 36px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.len-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.len-slider {
  width: 80px;
  height: 4px;
  border-radius: 2px;
  appearance: none;
  background: #e2e8f0;
  cursor: pointer;
}

.len-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.4);
}

.len-num {
  min-width: 24px;
  font-size: 12px;
  font-weight: 700;
  color: #3b82f6;
  text-align: center;
}

/* 操作按钮组 */
.action-btns {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* 自定义输入框 */
.custom-input-box {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  z-index: 10;
}

.custom-input {
  flex: 1;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.custom-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 响应式 */
@media (max-width: 768px) {
  .gen-row-1 {
    flex-direction: column;
    gap: 10px;
  }
  
  .domain-sel {
    width: 100%;
    max-width: none;
  }
  
  .gen-row-2 {
    gap: 6px;
  }
  
  .btn-pill {
    padding: 0 10px;
    font-size: 12px;
  }
  
  .btn-pill span {
    display: none;
  }
  
  .btn-pill svg {
    width: 18px;
    height: 18px;
  }
  
  .len-ctrl {
    flex: 1;
    min-width: 120px;
  }
  
  .action-btns {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}