.quote-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: zoom-in;
}
.quote-thumb:hover {
  transform: scale(2.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 20;
  position: relative;
}

input.field-error,
select.field-error,
textarea.field-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #f1f5f9;
  color: var(--muted);
  cursor: not-allowed;
}

.stat-card.cs-stat-goto {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card.cs-stat-goto:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.alert-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: min(420px, 92vw);
  padding: 14px 20px;
  background: #1e293b;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  line-height: 1.5;
}

.alert-banner.hidden {
  display: none;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  color: var(--primary);
  font-size: 14px;
}

.inline-intent {
  min-width: 88px;
  font-size: 13px;
  padding: 2px 4px;
}

.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-bar button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

:root {
  --bg: #eef1f6;
  --sidebar: #1e293b;
  --sidebar-hover: #334155;
  --sidebar-active: #2563eb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --sidebar-width: 220px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 55%, #3b82f6 100%);
  padding: 24px;
}

.login-card {
  background: var(--card);
  border-radius: 14px;
  padding: 36px 32px;
  width: min(400px, 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.login-card h1 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.login-card .sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.login-mobile-hint {
  font-size: 0.8rem;
  margin: 0 0 20px;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .login-card {
    padding: 28px 20px;
  }

  .login-card h1 {
    font-size: 1.15rem;
  }

  .btn-mobile-menu {
    display: inline-flex;
  }

  .app-shell {
    flex-direction: row;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(288px, 88vw);
    z-index: 300;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: none;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 299;
    background: rgba(15, 23, 42, 0.45);
  }

  .sidebar-backdrop.open {
    display: block;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .sidebar-nav {
    display: block;
    padding: 12px 10px;
  }

  .nav-item {
    width: 100%;
    margin-bottom: 2px;
  }

  .main {
    width: 100%;
    min-height: 100vh;
  }

  .main-content,
  .content {
    padding: 12px;
  }

  .topbar {
    flex-wrap: nowrap;
    padding: 10px 12px;
  }

  .topbar-actions {
    flex-shrink: 0;
  }

  .grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .leads-table-wrap {
    display: none;
  }

  .mobile-lead-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
  }

  .mobile-lead-list.hidden {
    display: none !important;
  }

  .mobile-lead-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
  }

  .mobile-lead-card .mlc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
  }

  .mobile-lead-card .mlc-top strong {
    font-size: 1rem;
  }

  .mobile-lead-card .mlc-sub {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
  }

  .mobile-lead-card .mlc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .mobile-lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -8px 0 14px;
  }

  .mobile-lead-actions .mobile-action-btn.disabled,
  .mobile-lead-actions .mobile-action-btn[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
  }

  body.has-mobile-bottom-nav .main {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 280;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  }

  .mobile-bottom-nav.hidden {
    display: none !important;
  }

  .mobile-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 6px 4px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    cursor: pointer;
  }

  .mobile-tab-icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  .mobile-tab.active {
    color: var(--primary);
    font-weight: 600;
  }

  .btn-mobile-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }

  .btn-mobile-back.hidden {
    display: none !important;
  }

  #cs_lead_modal.open {
    padding: 0;
    align-items: stretch;
  }

  #cs_lead_modal.open .modal {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
    margin: 0;
  }

  body.has-mobile-lead-modal {
    overflow: hidden;
  }

  #page-cs-dashboard .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* App shell */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.sidebar-brand p {
  margin: 4px 0 0;
  font-size: 0.75rem;
  opacity: 0.65;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}

.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
}

.nav-section {
  margin-bottom: 14px;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 4px 12px 6px;
}

.nav-section-future .nav-section-title {
  color: rgba(255, 255, 255, 0.35);
}

.nav-item-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-item-disabled:hover {
  background: transparent;
  color: #cbd5e1;
}

.badge-traffic-paid {
  background: #fef3c7;
  color: #92400e;
}

.badge-traffic-organic {
  background: #d1fae5;
  color: #065f46;
}

.badge-traffic-unknown {
  background: #e2e8f0;
  color: #64748b;
}

.cs-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.cs-row-actions .btn-invalid-sep {
  margin-left: 14px;
}

.action-spacer {
  flex: 0 0 24px;
}

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.user-badge {
  color: #94a3b8;
  margin-bottom: 8px;
}

.user-badge strong {
  color: #f1f5f9;
  display: block;
  font-size: 0.9rem;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar h2 {
  margin: 0;
  font-size: 1.15rem;
}

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

.topbar-left h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-mobile-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-mobile-back {
  display: none;
}

.mobile-lead-actions {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

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

.funnel-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 100px 1fr 80px 72px;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.funnel-bar-wrap {
  background: #e2e8f0;
  border-radius: 6px;
  height: 22px;
  overflow: hidden;
}

.funnel-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 6px;
  min-width: 4px;
  transition: width 0.3s ease;
}

.funnel-conversions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.funnel-conv-chip {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.content {
  padding: 24px;
  flex: 1;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
}

.card h3 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--muted);
}

label .req {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

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

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

.btn-secondary {
  background: #f1f5f9;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-danger {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  padding: 0;
  font-size: 0.85rem;
}

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

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: linear-gradient(135deg, #f8fafc, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.stat-card .num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-card .lbl {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar select {
  width: auto;
  min-width: 130px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-assigned {
  background: #dbeafe;
  color: #1e40af;
}

.badge-active {
  background: #d1fae5;
  color: #065f46;
}

.badge-inactive {
  background: #f1f5f9;
  color: #64748b;
}

.badge-other {
  background: #f3f4f6;
  color: #374151;
}

.empty {
  text-align: center;
  padding: 36px;
  color: var(--muted);
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  width: min(440px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.modal h3 {
  margin: 0 0 16px;
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

.toast.error {
  background: var(--danger);
}

.info-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.info-box code {
  background: #e0f2fe;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.notify-wrap {
  position: relative;
}

.notify-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, 90vw);
  max-height: 420px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 50;
}

.notify-panel.open {
  display: block;
}

.notify-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
}

.notify-panel-list {
  padding: 8px 12px 12px;
}

.notify-item {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.notify-item:last-child {
  border-bottom: none;
}

.notify-item p {
  margin: 4px 0;
  font-size: 0.88rem;
  color: #475569;
}

.notify-unread strong {
  color: #0f172a;
}

.notify-ws-status {
  font-size: 0.75rem;
  color: #94a3b8;
}

.notify-ws-status.notify-ws-on {
  color: #059669;
}

.dashboard-widgets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.dashboard-widget h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.dashboard-edit-panel {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.dashboard-widget-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-toggle-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.dashboard-toggle-item input {
  margin-top: 3px;
}

tr.clickable-row {
  cursor: pointer;
}

tr.clickable-row:hover td {
  background: #f1f5f9;
}

.modal-wide {
  width: min(720px, 94vw);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.workbench-canvas {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workbench-module-stats {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.workbench-editing .workbench-module {
  outline: 2px dashed #93c5fd;
  outline-offset: 4px;
}

.workbench-module-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.workbench-module-head h3 {
  flex: 1;
  margin: 0;
}

.workbench-drag-handle {
  cursor: grab;
  color: #64748b;
  font-size: 1.1rem;
  user-select: none;
}

.workbench-draggable.wb-dragging {
  opacity: 0.55;
}

.workbench-draggable.wb-drag-over {
  outline-color: #2563eb;
}

.workbench-edit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

.workbench-palette-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
}

.workbench-palette-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.workbench-palette-item:hover:not(:disabled) {
  border-color: #2563eb;
  background: #f8fafc;
}

.workbench-palette-item.is-added {
  opacity: 0.55;
  cursor: not-allowed;
}

.workbench-no-access,
.workbench-placeholder {
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.stat-card.dash-stat-goto {
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.stat-card.dash-stat-goto:hover {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.wb-inner-stats .stat-card.dash-stat-goto .num {
  font-size: inherit;
}

.team-tasks-widget {
  max-height: 320px;
  overflow: hidden;
}

.team-task-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-task-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafafa;
}

.team-task-item-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.team-task-item-meta {
  margin-top: 4px;
  font-size: 0.78rem;
}

.team-task-image {
  max-width: 100%;
  max-height: 280px;
  border-radius: var(--radius);
  margin-top: 8px;
}

.team-task-user-checklist {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

.team-task-user-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
}

.team-task-chat-messages {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--bg-subtle, #f8f9fb);
}

.team-task-chat-msg {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.team-task-chat-msg .chat-time {
  color: var(--text-muted, #888);
  font-size: 11px;
  margin-right: 4px;
}

.team-task-chat-msg.chat-system,
.team-task-chat-msg.chat-invite {
  color: var(--text-muted, #666);
  font-style: italic;
}

.team-task-chat-msg.chat-confirm {
  color: #0d6e3f;
}

.personal-event-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.personal-event-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.personal-event-item.is-done {
  opacity: 0.65;
}

.personal-event-item .pe-title {
  font-weight: 600;
}

.personal-event-item .pe-body {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .dashboard-split,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
