/* =========================================================================
   Portfólio de Produtos — SEJA AP
   Design tokens "Ouro Premium on Deep Black" (Conecta AP DS) + layout do app
   sem menu lateral e sem usuário logado.
   ========================================================================= */

:root {
  /* ---- Primary — Ouro Premium ---- */
  --primary:        #C7A444;
  --primary-light:  #E8B84B;
  --primary-dark:   #9C7C21;
  --primary-hover:  #C8A654;
  --primary-subtle: rgba(199, 164, 68, 0.08);

  --secondary:       #4A4A49;
  --secondary-light: #6C6C6B;
  --secondary-dark:  #3C3C3B;

  /* ---- Surfaces (dark default) ---- */
  --background:       #141412;
  --surface:          #1E1E1C;
  --surface-light:    #282826;
  --surface-elevated: #323230;
  --surface-alt:      #1A1A18;

  /* ---- Text ---- */
  --text:           #F0F0F0;
  --text-secondary: #D0D0D0;
  --text-muted:     #A0A0A0;

  /* ---- Borders ---- */
  --border:       rgba(175, 144, 61, 0.3);
  --border-light: rgba(255, 255, 255, 0.1);

  /* ---- Status ---- */
  --success: #28A745;
  --warning: #FFC107;
  --danger:  #DC3545;
  --info:    #17A2B8;

  /* ---- Gradients & glow ---- */
  --gradient-primary: linear-gradient(135deg, #C7A444 0%, #9C7C21 100%);
  --gradient-primary-hover: linear-gradient(135deg, #E8B84B 0%, #C7A444 100%);
  --glow-primary: 0 0 20px rgba(199, 164, 68, 0.25);

  /* ---- Typography ---- */
  --font-primary:   'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  /* ---- Elevation ---- */
  --elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --elevation-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);

  /* ---- Motion ---- */
  --ease-standard:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --transition-fast: 200ms var(--ease-standard);

  --focus-ring: 0 0 0 3px rgba(199, 164, 68, 0.32);
}

/* ---- Light theme ---- */
.light-theme {
  --primary:        #B8952E;
  --primary-light:  #D4A833;
  --primary-dark:   #8A6A10;
  --primary-hover:  #A6851F;
  --primary-subtle: rgba(184, 149, 46, 0.10);

  --gradient-primary: linear-gradient(135deg, #B8952E 0%, #8A6A10 100%);
  --glow-primary: 0 0 20px rgba(184, 149, 46, 0.18);

  --background:       #EFEDE8;
  --surface:          #F7F6F2;
  --surface-light:    #EAE8E3;
  --surface-elevated: #FFFFFF;
  --surface-alt:      #E8E6E1;

  --text:           #1C1C1A;
  --text-secondary: #4A4A46;
  --text-muted:     #76766E;

  --border:       rgba(0, 0, 0, 0.14);
  --border-light: rgba(0, 0, 0, 0.09);

  --focus-ring: 0 0 0 3px rgba(184, 149, 46, 0.28);
}

/* =========================================================================
   Base
   ========================================================================= */
* { box-sizing: border-box; }
html, body, #app { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-secondary);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-primary); color: var(--text); margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 12px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
p:last-child { margin-bottom: 0; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }
a { color: var(--primary); text-decoration: none; }

.overline {
  font-family: var(--font-primary); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 12px; color: var(--text-secondary);
}
.caption { font-size: 12px; color: var(--text-muted); }
.label { font-family: var(--font-primary); font-weight: 500; font-size: 13px; letter-spacing: 0.02em; color: var(--text); }

.ms-icon {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(199,164,68,0.3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(199,164,68,0.5); }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

/* =========================================================================
   App shell (sem sidebar) — header + main
   ========================================================================= */
.app { display: grid; grid-template-rows: 64px 1fr; height: 100vh; overflow: hidden; }

.loading-screen { grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.loading-screen .ms-icon { font-size: 40px; }

/* ---- Header ---- */
.hd {
  background: rgba(18,18,18,0.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 24px; z-index: 15;
}
.light-theme .hd { background: rgba(247,246,242,0.96); }
.hd-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.hd-logo {
  width: 32px; height: 32px; border-radius: 9px; background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center; color: #1A1A18;
  font-family: var(--font-primary); font-weight: 800; font-size: 13px; flex: none;
  box-shadow: 0 4px 14px rgba(199,164,68,0.28);
}
.hd-brand .nm { font-family: var(--font-primary); font-weight: 700; font-size: 14px; color: var(--text); letter-spacing: 0.02em; white-space: nowrap; }
.hd-brand .sep { color: var(--border); }
.hd-brand .pg { font-family: var(--font-primary); font-weight: 500; font-size: 14px; color: var(--text-muted); white-space: nowrap; }

.hd-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border-light); border-radius: 10px;
  height: 40px; padding: 0 12px; min-width: 260px; max-width: 420px; flex: 1;
  color: var(--text-muted); margin-left: 12px;
}
.hd-search:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); }
.hd-search .ms-icon { font-size: 20px; }
.hd-search input { background: transparent; border: none; outline: none; color: var(--text); font-size: 13px; flex: 1; }
.hd-search input::placeholder { color: var(--text-muted); }

.hd-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }

/* ---- Main ---- */
.main { overflow-y: auto; padding: 28px 32px; background: var(--background); }
.main-inner { max-width: 1280px; margin: 0 auto; }

/* =========================================================================
   Buttons & controls
   ========================================================================= */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: none; cursor: pointer;
  background: var(--gradient-primary); color: #1A1A18;
  font-family: var(--font-primary); font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(199,164,68,0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(199,164,68,0.45); }
.btn-primary .ms-icon { font-size: 20px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--border-light); background: transparent;
  color: var(--text-secondary); font-family: var(--font-primary); font-weight: 600; font-size: 13px; cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--text); }
.btn-ghost .ms-icon { font-size: 19px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; background: transparent;
  border: 1px solid var(--border-light); color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center; position: relative;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-subtle); }
.icon-btn .ms-icon { font-size: 20px; }

.back-btn {
  background: transparent; border: 1px solid var(--border-light); border-radius: 8px;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); cursor: pointer; flex: none;
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }

.field-input, .field-select, .field-textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 8px; color: var(--text); font-size: 13px; padding: 9px 12px;
}
.field-textarea { line-height: 1.55; resize: vertical; }
.field-input:focus, .field-select:focus, .field-textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.field-select { height: 38px; padding: 0 10px; cursor: pointer; }

/* =========================================================================
   Página / listagem
   ========================================================================= */
.page-head { margin-bottom: 22px; }
.page-head h1 { font-family: var(--font-primary); font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; margin: 0 0 6px; }
.page-head p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .kpi-grid { grid-template-columns: 1fr; } }

.kpi {
  position: relative; overflow: hidden;
  background: var(--surface-elevated); border: 1px solid var(--border-light); border-radius: 14px;
  padding: 18px; min-height: 140px;
  transition: transform 300ms var(--ease-standard), box-shadow 300ms, border-color 300ms;
  animation: slideUpFade 500ms var(--ease-decelerate) backwards;
}
.kpi:nth-child(1) { animation-delay: 60ms; }
.kpi:nth-child(2) { animation-delay: 150ms; }
.kpi:nth-child(3) { animation-delay: 240ms; }
.kpi:nth-child(4) { animation-delay: 330ms; }
.kpi::before { content:''; position:absolute; top:0; left:10%; right:10%; height:1px; background: linear-gradient(90deg, transparent, rgba(199,164,68,0.45), transparent); }
.kpi:hover { transform: translateY(-4px); border-color: rgba(199,164,68,0.5); box-shadow: var(--elevation-3); }
.kpi .orb { position: absolute; right: -30px; bottom: -30px; width: 140px; height: 140px; border-radius: 50%; opacity: 0.08; }
.kpi-icn { width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; transition: transform 300ms var(--ease-standard); }
.kpi:hover .kpi-icn { transform: rotate(-10deg) scale(1.12); }
.kpi-icn .ms-icon { font-size: 24px; }
.kpi-label { font-family: var(--font-primary); font-weight: 800; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); margin: 14px 0 6px; }
.kpi-val { font-family: var(--font-primary); font-weight: 800; font-size: 32px; color: var(--text); letter-spacing: -0.02em; line-height: 1; }

.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-filter {
  padding: 7px 14px; border-radius: 9px; font-family: var(--font-primary); font-weight: 600; font-size: 12.5px;
  cursor: pointer; transition: all 200ms var(--ease-standard);
  border: 1px solid var(--border-light); background: var(--surface); color: var(--text-secondary);
}
.chip-filter:hover { border-color: rgba(199,164,68,0.5); color: var(--text); }
.chip-filter.active { border-color: var(--primary); background: var(--primary-subtle); color: var(--primary); }

.filial-picker { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.filial-picker .ms-icon { color: var(--text-muted); font-size: 20px; }
.filial-picker select { width: auto; }

.result-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

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

.prod-card {
  position: relative; overflow: hidden; text-align: left;
  background: var(--surface-elevated); border: 1px solid var(--border-light); border-radius: 14px;
  padding: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 12px; color: var(--text);
  transition: transform 300ms var(--ease-standard), box-shadow 300ms, border-color 300ms;
  animation: slideUpFade 450ms var(--ease-decelerate) backwards;
}
.prod-card::before { content:''; position:absolute; top:0; left:10%; right:10%; height:1px; background: linear-gradient(90deg, transparent, rgba(199,164,68,0.4), transparent); }
.prod-card:hover { transform: translateY(-4px); border-color: rgba(199,164,68,0.5); box-shadow: var(--elevation-3); }
.prod-card .pc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-card .pc-icn { width: 44px; height: 44px; border-radius: 13px; background: rgba(199,164,68,0.12); color: var(--primary); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(199,164,68,0.25); flex: none; }
.prod-card .pc-icn .ms-icon { font-size: 24px; }
.prod-card h3 { font-family: var(--font-primary); font-weight: 600; font-size: 16px; margin: 0; letter-spacing: -0.01em; }
.prod-card .pc-desc { font-size: 12.5px; color: var(--text-secondary); margin: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--border-light); }
.prod-card .pc-price { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--primary); font-weight: 600; }

.chip-tag { font-family: var(--font-primary); font-weight: 500; font-size: 10.5px; padding: 3px 9px; border-radius: 6px; background: var(--surface-light); color: var(--text-secondary); border: 1px solid var(--border-light); }
.chip-tipo { display: inline-block; font-family: var(--font-primary); font-weight: 600; font-size: 11px; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 6px; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.place { display: inline-flex; align-items: center; gap: 5px; }
.place .ms-icon { font-size: 15px; }

.empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty .ms-icon { font-size: 48px; opacity: 0.5; }

/* =========================================================================
   Detalhe / edição
   ========================================================================= */
.detail-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.detail-icn { width: 52px; height: 52px; border-radius: 15px; background: rgba(199,164,68,0.12); color: var(--primary); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(199,164,68,0.25); flex: none; }
.detail-icn .ms-icon { font-size: 28px; }
.detail-head h1 { font-family: var(--font-primary); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.detail-actions { display: flex; gap: 10px; flex: none; }

.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.section {
  background: var(--surface); border: 1px solid var(--border-light); border-radius: 14px;
  padding: 20px; position: relative; overflow: hidden;
  animation: slideUpFade 450ms var(--ease-decelerate) backwards;
}
.section::before { content:''; position:absolute; top:0; left:10%; right:10%; height:1px; background: linear-gradient(90deg, transparent, rgba(199,164,68,0.4), transparent); }
.section-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-hd .t { font-family: var(--font-primary); font-weight: 600; font-size: 16px; color: var(--text); letter-spacing: -0.01em; }

.list-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.list-item:last-child { border-bottom: none; }
.list-item .ms-icon { font-size: 20px; flex: none; }
.list-item span.txt { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }

.dores-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.dores-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.dor-box { background: rgba(220,53,69,0.06); border: 1px solid rgba(220,53,69,0.18); border-radius: 10px; padding: 11px 13px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; }
.sol-box { background: rgba(76,175,80,0.06); border: 1px solid rgba(76,175,80,0.18); border-radius: 10px; padding: 11px 13px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; }
@media (max-width: 640px) { .dores-head, .dores-row { grid-template-columns: 1fr; } }

.aside-panel { position: sticky; top: 0; display: flex; flex-direction: column; gap: 16px; }
.panel-block { display: flex; flex-direction: column; gap: 15px; }
.panel-price { border-top: 1px solid var(--border-light); padding-top: 15px; display: flex; flex-direction: column; gap: 15px; }
.price-online { font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--primary); font-weight: 600; }
.nota-box { background: var(--primary-subtle); border: 1px solid rgba(199,164,68,0.2); border-radius: 9px; padding: 10px 12px; }

.form-col { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.formato-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-toggle {
  font-family: var(--font-primary); font-weight: 500; font-size: 11px; padding: 5px 10px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--border-light); background: var(--surface); color: var(--text-muted);
  transition: all 150ms var(--ease-standard);
}
.chip-toggle.active { border-color: var(--primary); background: var(--primary-subtle); color: var(--primary); }

/* ---- Campos repetíveis (Diferenciais, Entregas, Dores/Soluções) ---- */
.repeat-list { display: flex; flex-direction: column; gap: 8px; }
.repeat-list:not(:empty) { margin-bottom: 8px; }
.repeat-item { display: flex; align-items: center; gap: 8px; }
.repeat-item .repeat-input { flex: 1; }
.repeat-del {
  width: 36px; height: 36px; flex: none; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-light); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.repeat-del:hover { border-color: var(--danger); color: #F08A93; background: rgba(220,53,69,0.08); }
.repeat-del .ms-icon { font-size: 18px; }

.repeat-add { display: flex; align-items: center; gap: 8px; }
.repeat-add > input { flex: 1; }
.btn-add {
  width: 36px; height: 36px; flex: none; border-radius: 8px; cursor: pointer;
  background: var(--primary-subtle); color: var(--primary); border: 1px solid rgba(199,164,68,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.btn-add:hover { background: var(--gradient-primary); color: #1A1A18; transform: translateY(-1px); }
.btn-add .ms-icon { font-size: 20px; }

/* Dores × Soluções em pares (dois inputs + ação) */
.dores-cols { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; margin-bottom: 2px; }
.repeat-item.dores-item { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; align-items: center; }
.repeat-add.dores-add { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .dores-cols { display: none; }
  .repeat-item.dores-item { grid-template-columns: 1fr 36px; grid-auto-rows: auto; }
  .repeat-item.dores-item .repeat-sol { grid-column: 1 / 2; }
  .repeat-item.dores-item .repeat-del { grid-row: 1 / span 2; grid-column: 2; height: 100%; }
  .repeat-add.dores-add { grid-template-columns: 1fr 36px; }
  .repeat-add.dores-add .add-sol { grid-column: 1 / 2; }
  .repeat-add.dores-add .btn-add { grid-row: 1 / span 2; grid-column: 2; height: 100%; }
}

/* ---- Conteúdo completo (renderizado do Notion) ---- */
.notion-content { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.notion-content > :first-child { margin-top: 0; }
.notion-content h2, .notion-content h3, .notion-content h4, .notion-content h5, .notion-content h6 {
  font-family: var(--font-primary); color: var(--text); letter-spacing: -0.01em; line-height: 1.3;
  margin: 20px 0 8px;
}
.notion-content h2 { font-size: 17px; }
.notion-content h3 { font-size: 15px; }
.notion-content h4, .notion-content h5, .notion-content h6 { font-size: 13.5px; color: var(--text-secondary); text-transform: none; }
.notion-content p { margin: 0 0 10px; }
.notion-content ul { margin: 0 0 10px; padding-left: 20px; }
.notion-content li { margin: 3px 0; }
.notion-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.notion-content a:hover { color: var(--primary-hover); }
.notion-content strong { color: var(--text); font-weight: 600; }
.notion-content code { font-family: 'JetBrains Mono', monospace; font-size: 0.86em; background: var(--surface-light); border: 1px solid var(--border-light); border-radius: 5px; padding: 1px 5px; }
.notion-content hr { border: none; border-top: 1px solid var(--border-light); margin: 18px 0; }
.notion-content blockquote { margin: 0 0 10px; padding: 8px 14px; border-left: 3px solid var(--primary); background: var(--primary-subtle); border-radius: 0 8px 8px 0; color: var(--text-secondary); }
.notion-content .nc-ref { color: var(--text-muted); font-style: italic; }
.nc-table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--border-light); border-radius: 10px; }
.notion-content table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.notion-content th, .notion-content td { border: 1px solid var(--border-light); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.45; }
.notion-content th { background: var(--surface-light); color: var(--text); font-family: var(--font-primary); font-weight: 600; }
.notion-content td ul { margin: 0; }

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 18px; color: var(--text); font-size: 13px; font-family: var(--font-primary); font-weight: 500;
  box-shadow: var(--elevation-3); z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity 250ms, transform 250ms; display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ms-icon { font-size: 18px; color: var(--primary); }
.toast.error .ms-icon { color: var(--danger); }

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