/* project-redesign.css — faithful port of the "Tarefas — Redesign" design system.
   All rules are scoped under .om-scope so they never leak into the rest of the app. */
.om-scope{
  --om-mut:#71717a; --om-mut2:#a1a1aa;
  --om-bd:#e4e4e7; --om-bd2:#d4d4d8; --om-soft:#f4f4f5; --om-soft2:#fafafa;
  --om-fg:#09090b; --om-accent:#4f46e5; --om-radius:12px;
  --om-shadow-sm:0 1px 2px rgba(16,24,40,.05);
  --om-shadow-md:0 1px 2px rgba(16,24,40,.04),0 8px 24px rgba(16,24,40,.06);
  --om-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color:var(--om-fg);
  font-size:14px;
  line-height:1.45;
}
.om-scope *{box-sizing:border-box}
.om-scope button{font-family:inherit;cursor:pointer}
.om-scope .om-flex{flex:1 1 auto}
.om-scope .ta-r{text-align:right}

/* ---------- shared card ---------- */
.om-scope .om-card{background:#fff;border:1px solid var(--om-bd);border-radius:14px;padding:16px 18px;position:relative}
.om-scope .om-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.om-scope .om-card-title{margin:0;display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:var(--om-fg)}
.om-scope .om-card-sub{margin:4px 0 0;font-size:12.5px;color:var(--om-mut)}
.om-scope .om-mut-sm{font-size:12.5px;color:var(--om-mut)}

/* buttons */
.om-scope .om-btn-primary{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;
  border:none;border-radius:9px;background:var(--om-accent);color:#fff;font-weight:600;font-size:13.5px;
  box-shadow:var(--om-shadow-sm);transition:filter .15s,transform .05s}
.om-scope .om-btn-primary:hover{filter:brightness(1.07)}
.om-scope .om-btn-ghost{height:32px;padding:0 12px;border:1px solid var(--om-bd);border-radius:8px;
  background:#fff;font-weight:600;font-size:13px;color:var(--om-fg);display:inline-flex;align-items:center;gap:6px}
.om-scope .om-btn-ghost:hover{background:var(--om-soft)}
.om-scope .om-btn-ghost.sm{height:30px;padding:0 11px;font-size:12.5px}
.om-scope .om-icbtn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
  border:none;border-radius:8px;background:transparent;color:var(--om-mut)}
.om-scope .om-icbtn:hover{background:var(--om-soft);color:var(--om-fg)}
.om-scope .om-icbtn.sm{width:24px;height:24px;border-radius:7px}
.om-scope .om-icbtn.lg{width:34px;height:34px}
.om-scope .om-pill-sm{display:inline-flex;align-items:center;font-size:11px;font-weight:600;padding:2px 9px;border-radius:999px}

/* ---------- overview ---------- */
.om-scope .om-overview{padding:6px 0 40px;display:flex;flex-direction:column;gap:18px}
.om-scope .om-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.om-scope .om-statcard{background:#fff;border:1px solid var(--om-bd);border-radius:14px;padding:15px 16px}
.om-scope .om-statcard-top{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.om-scope .om-statcard-ic{color:var(--om-mut2);display:flex}
.om-scope .om-statcard-l{font-size:12px;color:var(--om-mut);font-weight:600}
.om-scope .om-statcard-v{font-size:26px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.om-scope .om-statcard-sub{font-size:12px;color:var(--om-mut);margin-top:4px;line-height:1.4}
.om-scope .om-statcard-track{height:6px;background:var(--om-soft);border-radius:999px;margin-top:10px;overflow:hidden}
.om-scope .om-statcard-track span{display:block;height:100%;background:var(--om-accent);border-radius:999px;transition:width .4s}

/* phase pipeline */
.om-scope .om-pipeline{display:grid;gap:0}
.om-scope .om-pipe{position:relative;padding-right:8px;text-align:left;border:none;background:transparent}
.om-scope .om-pipe-bar{display:flex;align-items:center;height:30px;margin-bottom:10px}
.om-scope .om-pipe-node{width:28px;height:28px;border-radius:999px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;background:var(--om-soft);color:var(--om-mut);border:2px solid var(--om-bd);z-index:1}
.om-scope .om-pipe-line{flex:1;height:2px;background:var(--om-bd)}
.om-scope .om-pipe.is-done .om-pipe-node{background:#22c55e;border-color:#22c55e;color:#fff}
.om-scope .om-pipe.is-done .om-pipe-line{background:#22c55e}
.om-scope .om-pipe.is-current .om-pipe-node{background:var(--om-accent);border-color:var(--om-accent);color:#fff}
.om-scope .om-pipe-dot{width:8px;height:8px;border-radius:999px;background:#fff}
.om-scope .om-pipe-name{font-size:13px;font-weight:600;color:var(--om-fg)}
.om-scope .om-pipe.is-upcoming .om-pipe-name{color:var(--om-mut)}
.om-scope .om-pipe-meta{font-size:11.5px;color:var(--om-mut);margin:2px 0 7px}
.om-scope .om-pipe-track{height:5px;background:var(--om-soft);border-radius:999px;overflow:hidden;margin-right:8px}
.om-scope .om-pipe-track span{display:block;height:100%;background:var(--om-accent);border-radius:999px}
.om-scope .om-pipe.is-done .om-pipe-track span{background:#22c55e}

.om-scope .om-ov-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:18px;align-items:start}
.om-scope .om-ov-col{display:flex;flex-direction:column;gap:18px;min-width:0}

/* deadlines */
.om-scope .om-deadlines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.om-scope .om-deadline{display:flex;align-items:flex-start;gap:10px;border:1px solid;border-radius:11px;padding:11px 12px}
.om-scope .om-deadline-dot{width:9px;height:9px;border-radius:999px;flex:0 0 auto;margin-top:5px}
.om-scope .om-deadline-body{flex:1;min-width:0}
.om-scope .om-deadline-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.om-scope .om-deadline-title{font-size:13.5px;font-weight:600;color:var(--om-fg)}
.om-scope .om-deadline-desc{margin:4px 0 0;font-size:12px;color:var(--om-mut);line-height:1.45}
.om-scope .om-deadline-date{margin:5px 0 0;font-size:12px;color:var(--om-mut);display:inline-flex;align-items:center;gap:5px}
.om-scope .om-deadline-date-btn{margin:0;padding:0;border:none;background:none;font:inherit;color:inherit;cursor:pointer;text-align:left;border-radius:6px}
.om-scope .om-deadline-date-btn:hover{text-decoration:underline;text-underline-offset:2px}
.om-scope .om-deadline-edit{margin:5px 0 0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.om-scope .om-deadline-date-input{height:30px;width:auto;max-width:150px;font-size:12px;padding:4px 8px}
.om-scope .om-deadline-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--om-bd,#e2e8f0);border-radius:8px;background:#fff;color:var(--om-mut,#64748b);cursor:pointer;flex-shrink:0}
.om-scope .om-deadline-icon-btn:hover{background:#f8fafc;color:var(--om-fg,#0f172a)}
.om-scope .om-deadline-icon-btn:disabled{opacity:.5;cursor:not-allowed}
.om-scope .om-deadline-icon-btn.is-ok{color:#15803d;border-color:#bbf7d0;background:#f0fdf4}
.om-scope .om-deadline.is-editing{align-items:center}

/* current phase card */
.om-scope .om-phasecard{padding-top:20px;overflow:hidden}
.om-scope .om-phasecard-bar{position:absolute;top:0;left:0;right:0;height:6px}
.om-scope .om-minilist{display:flex;flex-direction:column;gap:2px}
.om-scope .om-minirow{display:flex;align-items:center;gap:10px;width:100%;border:none;background:transparent;
  padding:9px 8px;border-radius:9px;text-align:left}
.om-scope .om-minirow:hover{background:var(--om-soft2)}
.om-scope .om-minirow-title{font-size:13px;font-weight:600;color:var(--om-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-scope .om-minirow-title.is-dim{color:var(--om-mut);font-weight:500}
.om-scope .om-minirow-color{width:9px;height:9px;border-radius:999px;flex:0 0 auto}
.om-scope .om-minirow-chev{color:var(--om-mut2)}

/* phase tabs (tasks tab) */
.om-scope .om-phase-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:0 0 14px;border-bottom:1px solid var(--om-bd);margin-bottom:4px}
.om-scope .om-phase-tab{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 14px;border:none;border-radius:999px;background:transparent;
  font-size:13px;font-weight:600;color:var(--om-mut);white-space:nowrap;transition:background .15s,color .15s}
.om-scope .om-phase-tab:hover{color:var(--om-fg)}
.om-scope .om-phase-tab.is-active{background:var(--om-fg);color:#fff}
.om-scope .om-phase-tab.has-color.is-active{background:color-mix(in srgb,var(--phase-color) 14%,#fff);color:var(--phase-color)}
.om-scope .om-phase-tab.has-color.is-active .om-phase-tab-dot{box-shadow:0 0 0 2px #fff}
.om-scope .om-phase-tab-dot{width:8px;height:8px;border-radius:999px;flex:0 0 auto}
.om-scope .om-task-section{margin-bottom:18px}
.om-scope .om-task-section-head{display:flex;align-items:center;gap:7px;margin-bottom:10px;font-size:11px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;color:var(--om-mut)}
.om-scope .om-task-section-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;
  padding:0 6px;border-radius:999px;background:var(--om-soft);font-size:11px;font-weight:700;color:var(--om-mut);letter-spacing:0;text-transform:none}
.om-scope .om-phase-group{margin-bottom:4px}
.om-scope .om-phase-group-label{display:flex;align-items:center;gap:7px;margin-bottom:10px;font-size:12px;font-weight:600;color:var(--om-fg)}

/* timeline (diário) */
.om-scope .om-timeline{display:flex;flex-direction:column;gap:4px}
.om-scope .om-tl-item{display:flex;gap:10px;padding:9px 6px;border-radius:9px}
.om-scope .om-tl-item:hover{background:var(--om-soft2)}
.om-scope .om-tl-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;flex:0 0 auto}
.om-scope .om-tl-body{min-width:0;flex:1 1 auto}
.om-scope .om-tl-meta{display:flex;align-items:center;gap:5px;font-size:11.5px;color:var(--om-mut);font-weight:500;flex-wrap:wrap}
.om-scope .om-tl-meta b{color:var(--om-fg);font-weight:600}
.om-scope .om-tl-when{color:var(--om-mut2);margin-left:auto}
.om-scope .om-tl-text{font-size:13px;color:var(--om-fg);margin-top:2px;line-height:1.5}

/* outcome mini chip */
.om-scope .om-chip{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;
  padding:2px 8px;border:1px solid var(--om-bd);border-radius:999px;background:#fff;
  white-space:nowrap;font-variant-numeric:tabular-nums}

/* ---------- budgets ---------- */
.om-scope .om-budgets{padding:6px 0 40px;display:flex;flex-direction:column;gap:16px}
.om-scope .om-qtable{display:flex;flex-direction:column;border:1px solid var(--om-bd);border-radius:11px;overflow:hidden}
.om-scope .om-qrow{display:grid;align-items:center;gap:10px;padding:10px 13px;border-top:1px solid var(--om-bd);font-size:13px}
.om-scope .om-qrow:first-child{border-top:none}
.om-scope .om-qrow.is-head{background:var(--om-soft2);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--om-mut)}
.om-scope .om-qrow.bsent{grid-template-columns:2fr .9fr .9fr .8fr 40px}
.om-scope .om-qrow.bcomp{grid-template-columns:1fr .7fr 40px}
.om-scope .om-qname{display:flex;flex-direction:column;font-weight:600;color:var(--om-fg);min-width:0}
.om-scope .om-qname small{display:block;font-weight:500;color:var(--om-mut2);font-size:11px}
.om-scope .om-qval{font-weight:600;font-variant-numeric:tabular-nums}
.om-scope .om-comp-empty{display:flex;align-items:center;gap:8px;justify-content:center;padding:22px;border:1px dashed var(--om-bd2);
  border-radius:11px;color:var(--om-mut);font-size:13px}
.om-scope .om-comp-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.om-scope .om-totals{border:1px solid var(--om-bd);border-radius:11px;overflow:hidden}
.om-scope .om-total-row{display:flex;justify-content:space-between;padding:10px 15px;font-size:13.5px;border-top:1px solid var(--om-bd);font-variant-numeric:tabular-nums}
.om-scope .om-total-row:first-child{border-top:none}
.om-scope .om-total-row span:first-child{color:var(--om-mut)}
.om-scope .om-total-row span:last-child{font-weight:600}
.om-scope .om-total-row.is-grand{background:var(--om-soft2);font-weight:700;font-size:15px}
.om-scope .om-total-row.is-grand span:first-child{color:var(--om-fg)}
.om-scope .om-pedidos{display:flex;flex-direction:column;gap:14px}
.om-scope .om-budget-scope{display:flex;flex-direction:column;gap:12px;padding:14px 16px 16px;
  border:1px solid var(--om-bd2);border-radius:14px;background:linear-gradient(180deg,#fafafa 0%,#fff 42%)}
.om-scope .om-budget-scope[data-scope="architecture"]{background:linear-gradient(180deg,#f5f6ff 0%,#fff 52%);
  border-color:#d8dcf8}
.om-scope .om-budget-scope[data-scope="specialties"]{background:linear-gradient(180deg,#f2fbf8 0%,#fff 52%);
  border-color:#cfe9df}
.om-scope .om-budget-scope-title{display:inline-flex;align-self:flex-start;align-items:center;gap:6px;
  font-size:13px;font-weight:700;color:var(--om-fg);padding:8px 14px;border:1px solid var(--om-bd2);
  border-radius:10px;background:#fff;box-shadow:var(--om-shadow-sm);cursor:pointer;font:inherit;
  transition:background .15s}
.om-scope .om-budget-scope-title:hover{background:#f4f4f5}
.om-scope .om-budget-scope[data-scope="architecture"] .om-budget-scope-title{background:#eef0ff;border-color:#d8dcf8;color:#4338ca}
.om-scope .om-budget-scope[data-scope="specialties"] .om-budget-scope-title{background:#e8f7f0;border-color:#cfe9df;color:#047857}
.om-scope .om-budget-admin-scope{display:flex;flex-direction:column;gap:12px;padding:14px 16px 16px;
  border:1px solid #d8cfe8;border-radius:14px;background:linear-gradient(180deg,#f8f6fc 0%,#fff 52%)}
.om-scope .om-specialty-group{border:1px solid var(--om-bd2);border-radius:12px;background:#fff;
  box-shadow:var(--om-shadow-sm);overflow:hidden}
.om-scope .om-specialty-group-head{display:flex;width:100%;align-items:center;gap:8px;padding:11px 14px;
  text-align:left;background:linear-gradient(180deg,#fafafa 0%,#f4f4f5 100%);border:none;border-bottom:1px solid var(--om-bd);
  font:inherit;color:inherit;cursor:pointer}
.om-scope .om-specialty-group-head:hover{background:#f0f0f2}
.om-scope .om-specialty-group-label{font-size:12.5px;font-weight:700;color:var(--om-fg)}
.om-scope .om-specialty-group-meta{font-size:11.5px;color:var(--om-mut)}
.om-scope .om-specialty-group-total{margin-left:auto;font-size:12px;font-weight:700;color:var(--om-fg);
  font-variant-numeric:tabular-nums}
.om-scope .om-specialty-group-body{padding:12px 14px 14px;background:#fff}
.om-scope .om-pedido-spec{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--om-fg);
  text-transform:uppercase;letter-spacing:.03em;margin-bottom:8px}
.om-scope .om-pedido-spec svg{color:var(--om-mut2)}
.om-scope .om-group-n{background:var(--om-soft);color:var(--om-mut);border-radius:999px;padding:1px 7px;font-size:11px}
.om-scope .om-pedido-table-wrap,
.om-scope .om-budget-table-wrap{border:1px solid var(--om-bd2);border-radius:10px;overflow-x:auto;overflow-y:hidden;max-width:100%;background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85)}
.om-scope .om-budget-table-wrap[data-table-tone="composition"]{--om-table-accent:#0f766e;--om-table-soft:#d9f2ec;--om-table-soft2:#f2fbf8;--om-table-border:#b7e4d4;
  border-color:#b7e4d4;background:var(--om-table-soft2)}
.om-scope .om-budget-table-wrap[data-table-tone="sent"]{--om-table-accent:#b45309;--om-table-soft:#fdecd0;--om-table-soft2:#fff8ef;--om-table-border:#f4d4a8;
  border-color:#f4d4a8;background:var(--om-table-soft2)}
.om-scope .om-pedido-table-wrap [data-slot="table-container"],
.om-scope .om-budget-table-wrap [data-slot="table-container"]{overflow-x:auto;max-width:100%}
.om-scope .om-pedido-table-wrap table,
.om-scope .om-budget-table-wrap table{border-collapse:collapse;width:100%}
.om-scope .om-pedido-table-wrap thead tr,
.om-scope .om-budget-table-wrap thead tr{border-bottom:2px solid var(--om-bd2);background:#e8edf5}
.om-scope .om-budget-table-wrap[data-table-tone="composition"] thead tr{border-bottom-color:var(--om-table-border);background:var(--om-table-soft)}
.om-scope .om-budget-table-wrap[data-table-tone="sent"] thead tr{border-bottom-color:var(--om-table-border);background:var(--om-table-soft)}
.om-scope .om-pedido-table-wrap th,
.om-scope .om-budget-table-wrap th{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;
  color:#3f3f46;height:40px;padding:0 14px;white-space:nowrap}
.om-scope .om-budget-table-wrap[data-table-tone="composition"] th,
.om-scope .om-budget-table-wrap[data-table-tone="sent"] th{color:var(--om-table-accent)}
.om-scope .om-pedido-table-wrap td,
.om-scope .om-budget-table-wrap td{padding:10px 14px;font-size:13px;border-top:1px solid var(--om-bd);vertical-align:middle}
.om-scope .om-budget-table-wrap[data-table-tone="composition"] td,
.om-scope .om-budget-table-wrap[data-table-tone="sent"] td{border-top-color:color-mix(in srgb,var(--om-table-border) 65%,#fff)}
.om-scope .om-pedido-table-wrap tbody tr:first-child td,
.om-scope .om-budget-table-wrap tbody tr:first-child td{border-top:none}
.om-scope .om-pedido-table-wrap tbody tr:nth-child(even):not(.om-pedido-detail-row),
.om-scope .om-budget-table-wrap tbody tr:nth-child(even):not(.om-pedido-detail-row){background:var(--om-soft2)}
.om-scope .om-budget-table-wrap[data-table-tone="composition"] tbody tr:nth-child(even):not(.om-pedido-detail-row),
.om-scope .om-budget-table-wrap[data-table-tone="sent"] tbody tr:nth-child(even):not(.om-pedido-detail-row){background:color-mix(in srgb,var(--om-table-soft2) 72%,#fff)}
.om-scope .om-pedido-table-wrap tbody tr:hover:not(.om-pedido-detail-row),
.om-scope .om-budget-table-wrap tbody tr:hover:not(.om-pedido-detail-row){background:var(--om-soft)}
.om-scope .om-budget-table-wrap[data-table-tone="composition"] tbody tr:hover:not(.om-pedido-detail-row),
.om-scope .om-budget-table-wrap[data-table-tone="sent"] tbody tr:hover:not(.om-pedido-detail-row){background:color-mix(in srgb,var(--om-table-soft) 55%,#fff)}
.om-scope .om-pedido-row.is-included{background:#f6fdf8}
.om-scope .om-pedido-row.is-rejected{background:#fef2f2}
.om-scope .om-pedido-row.is-pending{opacity:.75}
.om-scope .om-pedido-row:hover:not(.om-pedido-detail-row){background:var(--om-soft)}
.om-scope .om-pedido-row.is-included:hover{background:#eefbf2}
.om-scope .om-pedido-row.is-rejected:hover{background:#fde8e8}
.om-scope .om-pill-accepted{color:#15803d;background:#e8f6ec}
.om-scope .om-pill-rejected{color:#b91c1c;background:#fee2e2}
.om-scope .om-pill-submitted{color:#1d4ed8;background:#e8f0fe}
.om-scope .om-pill-pending{color:#475569;background:#f1f5f9}
.om-scope .om-enviado-accepted{border-color:#86efac;background:#f0fdf4}
.om-scope .om-incl{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;color:#15803d}
.om-scope .om-incl-btn{background:none;border:none;padding:0;cursor:pointer;font:inherit;color:inherit}
.om-scope .om-incl-btn:hover{text-decoration:underline}
.om-scope .om-btn-mini{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:1px solid var(--om-bd);
  border-radius:8px;background:#fff;font-size:12px;font-weight:600;color:var(--om-fg)}
.om-scope .om-btn-mini:hover{background:var(--om-soft)}
.om-scope .om-btn-mini.is-primary{background:var(--om-accent);color:#fff;border-color:transparent}
.om-scope .om-btn-mini.is-primary:hover{filter:brightness(1.07)}

/* ---------- task subbar ---------- */
.om-scope .om-subbar{display:flex;align-items:center;gap:10px;padding:6px 0 16px;flex-wrap:wrap}
.om-scope .om-phases{display:flex;gap:2px;flex-wrap:wrap}
.om-scope .om-phase{border:none;background:transparent;color:var(--om-mut);font-weight:600;font-size:13.5px;
  padding:7px 11px;border-radius:8px}
.om-scope .om-phase:hover{background:var(--om-soft);color:var(--om-fg)}
.om-scope .om-phase.is-active{background:var(--om-fg);color:#fff}
.om-scope .om-segment{display:inline-flex;background:var(--om-soft);border:1px solid var(--om-bd);border-radius:9px;padding:2px}
.om-scope .om-segment button{border:none;background:transparent;color:var(--om-mut);font-weight:600;font-size:12.5px;
  padding:5px 11px;border-radius:7px}
.om-scope .om-segment button[data-active]{background:#fff;color:var(--om-fg);box-shadow:var(--om-shadow-sm)}

/* group head */
.om-scope .om-group-head{display:flex;align-items:center;gap:7px;color:var(--om-mut);font-weight:700;
  font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;margin:2px 2px 9px}
.om-scope .om-empty{color:var(--om-mut);text-align:center;padding:30px;font-size:13px}

@media(max-width:980px){
  .om-scope .om-stats{grid-template-columns:repeat(2,1fr)}
  .om-scope .om-ov-grid{grid-template-columns:1fr}
}

/* ---------- notifications center ---------- */
.om-scope .om-nav-label{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--om-mut2);padding:14px 10px 6px}
.om-scope .om-empty-soft{color:var(--om-mut);padding:14px;text-align:left;font-size:13px}
.om-scope .om-segment{display:inline-flex;background:var(--om-soft);border:1px solid var(--om-bd);border-radius:9px;padding:2px}
.om-scope .om-segment button{border:none;background:transparent;color:var(--om-mut);font-weight:600;font-size:12.5px;padding:5px 11px;border-radius:7px}
.om-scope .om-segment button[data-active]{background:#fff;color:var(--om-fg);box-shadow:var(--om-shadow-sm)}

.om-notif-scope .om-notif{display:flex;flex-direction:column;min-height:70vh}
.om-scope .om-notif-head{display:flex;align-items:center;gap:12px;padding:14px 18px;background:#fff;border:1px solid var(--om-bd);border-radius:14px;margin-bottom:16px;flex-wrap:wrap}
.om-scope .om-notif-titlewrap{display:flex;align-items:center;gap:10px;min-width:0}
.om-scope .om-notif-title{margin:0;font-size:19px;font-weight:700;letter-spacing:-.01em}
.om-scope .om-notif-sub{margin:2px 0 0;font-size:12.5px;color:var(--om-mut)}
.om-scope .om-notif-body{display:flex;gap:16px;min-height:0;align-items:flex-start}
.om-scope .om-notif-rail{width:240px;flex:0 0 auto;border:1px solid var(--om-bd);background:#fff;border-radius:14px;padding:8px 10px 16px}
.om-scope .om-filt{display:flex;align-items:center;gap:10px;width:100%;border:none;background:transparent;color:var(--om-mut);
  font-weight:600;font-size:13px;padding:8px 10px;border-radius:9px;text-align:left}
.om-scope .om-filt:hover{background:var(--om-soft);color:var(--om-fg)}
.om-scope .om-filt.is-active{background:color-mix(in srgb,var(--om-accent) 10%,#fff);color:var(--om-accent)}
.om-scope .om-filt-l{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-scope .om-filt-n{font-size:11px;font-weight:700;background:var(--om-soft);color:var(--om-mut);border-radius:999px;padding:1px 7px}
.om-scope .om-filt.is-active .om-filt-n{background:color-mix(in srgb,var(--om-accent) 16%,#fff);color:var(--om-accent)}
.om-scope .om-filt-dot{width:9px;height:9px;border-radius:999px;flex:0 0 auto;margin:0 3px}
.om-scope .om-notif-main{flex:1 1 auto;min-width:0}
.om-scope .om-notif-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}
.om-scope .om-sumcard{display:flex;flex-direction:column;gap:3px;align-items:flex-start;background:#fff;border:1px solid var(--om-bd);
  border-radius:13px;padding:14px 16px;text-align:left}
.om-scope .om-sumcard:hover{box-shadow:var(--om-shadow-sm);border-color:var(--om-bd2)}
.om-scope .om-sumcard-n{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1}
.om-scope .om-sumcard-l{font-size:12px;color:var(--om-mut);font-weight:600}
.om-scope .om-sumcard.is-rose .om-sumcard-n{color:#e11d48}
.om-scope .om-sumcard.is-amber .om-sumcard-n{color:#d97706}
.om-scope .om-sumcard.is-blue .om-sumcard-n{color:#2563eb}
.om-scope .om-alert-group{margin-bottom:22px}
.om-scope .om-alert-list{display:flex;flex-direction:column;gap:8px}
.om-scope .om-alert{position:relative;display:flex;align-items:flex-start;gap:12px;background:#fff;border:1px solid var(--om-bd);
  border-radius:13px;padding:13px 14px 13px 16px;transition:box-shadow .15s,border-color .15s}
.om-scope .om-alert:hover{background:var(--om-soft2);box-shadow:var(--om-shadow-md);border-color:var(--om-bd2)}
.om-scope .om-alert-unread{position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:transparent}
.om-scope .om-alert.is-unread .om-alert-unread{background:var(--om-accent)}
.om-scope .om-alert.is-done{opacity:.6}
.om-scope .om-alert.is-done .om-alert-title{text-decoration:line-through}
.om-scope .om-alert-ic{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.om-scope .om-alert-ic.sm{width:26px;height:26px;border-radius:8px}
.om-scope .om-alert-body{flex:1 1 auto;min-width:0;cursor:pointer}
.om-scope .om-alert-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.om-scope .om-alert-title{font-size:13.5px;font-weight:600;color:var(--om-fg)}
.om-scope .om-alert.is-unread .om-alert-title{font-weight:700}
.om-scope .om-alert-msg{margin:3px 0 0;font-size:12.5px;color:var(--om-mut);line-height:1.45}
.om-scope .om-alert-foot{display:flex;align-items:center;gap:14px;margin-top:7px;flex-wrap:wrap}
.om-scope .om-alert-proj,.om-scope .om-alert-when{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:var(--om-mut)}
.om-scope .om-alert-deadline{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:1px;padding:2px 4px 2px 16px;margin-left:auto;text-align:right}
.om-scope .om-alert-deadline-label{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--om-mut)}
.om-scope .om-alert-deadline-date{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--om-fg)}
.om-scope .om-alert-deadline.is-overdue .om-alert-deadline-date{color:#e11d48}
.om-scope .om-alert-deadline.is-today .om-alert-deadline-date{color:#d97706}
.om-scope .om-alert-deadline.is-soon .om-alert-deadline-date{color:#b45309}
.om-scope .om-alert-deadline.is-closed .om-alert-deadline-date{color:#16a34a}
.om-scope .om-alert.has-deadline{padding-right:18px}
.om-scope .om-alert-actions{display:flex;align-items:center;gap:1px;flex:0 0 auto;opacity:0;transition:opacity .14s}
.om-scope .om-alert:hover .om-alert-actions{opacity:1}
.om-scope .om-alert.om-alert--actions-bottom .om-alert-actions{
  position:absolute;right:10px;bottom:10px;flex:none;pointer-events:none;
  background:rgba(255,255,255,.97);border:1px solid var(--om-bd);border-radius:9px;
  padding:2px 3px;box-shadow:var(--om-shadow-sm);z-index:2}
.om-scope .om-alert.om-alert--actions-bottom:hover .om-alert-actions{pointer-events:auto}

/* calendar */
.om-scope .om-cal-wrap{display:flex;gap:18px;align-items:flex-start}
.om-scope .om-cal{flex:1 1 auto;min-width:0;background:#fff;border:1px solid var(--om-bd);border-radius:14px;padding:16px}
.om-scope .om-cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.om-scope .om-cal-month{margin:0;font-size:16px;font-weight:700;text-transform:capitalize}
.om-scope .om-cal-nav{display:flex;align-items:center;gap:6px}
.om-scope .om-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.om-scope .om-cal-dow{margin-bottom:6px}
.om-scope .om-cal-dowcell{font-size:11px;font-weight:700;color:var(--om-mut2);text-transform:uppercase;text-align:center;padding:4px 0}
.om-scope .om-cal-cell{min-height:92px;border:1px solid var(--om-bd);border-radius:10px;background:#fff;padding:6px;text-align:left;
  display:flex;flex-direction:column;gap:3px;overflow:hidden}
.om-scope .om-cal-cell.is-empty{border:none;background:transparent}
.om-scope .om-cal-cell:not(.is-empty):hover{border-color:var(--om-bd2);background:var(--om-soft2)}
.om-scope .om-cal-cell.is-today{border-color:var(--om-accent)}
.om-scope .om-cal-cell.is-sel{box-shadow:0 0 0 2px color-mix(in srgb,var(--om-accent) 35%,transparent);border-color:var(--om-accent)}
.om-scope .om-cal-daynum{font-size:12px;font-weight:700;color:var(--om-mut);align-self:flex-start}
.om-scope .om-cal-cell.is-today .om-cal-daynum{background:var(--om-accent);color:#fff;border-radius:999px;width:20px;height:20px;display:flex;align-items:center;justify-content:center}
.om-scope .om-cal-evs{display:flex;flex-direction:column;gap:2px}
.om-scope .om-cal-ev{display:flex;align-items:center;gap:4px;font-size:10.5px;font-weight:600;padding:2px 5px;border-radius:5px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-scope .om-cal-evdot{width:5px;height:5px;border-radius:999px;flex:0 0 auto}
.om-scope .om-cal-more{font-size:10px;color:var(--om-mut);font-weight:600;padding-left:5px}
.om-scope .om-cal-day{width:300px;flex:0 0 auto;background:#fff;border:1px solid var(--om-bd);border-radius:14px;padding:16px}
.om-scope .om-cal-day-head{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--om-bd);margin-bottom:12px}
.om-scope .om-cal-day-num{font-size:32px;font-weight:700;line-height:1}
.om-scope .om-cal-day-dow{font-size:13px;font-weight:600;text-transform:capitalize}
.om-scope .om-cal-day-mon{font-size:12px;color:var(--om-mut);text-transform:capitalize}
.om-scope .om-cal-day-list{display:flex;flex-direction:column;gap:6px}
.om-scope .om-cal-day-item{display:flex;align-items:center;gap:10px;padding:8px;border-radius:9px;border:none;background:transparent;text-align:left;width:100%}
.om-scope .om-cal-day-item:hover{background:var(--om-soft2)}
.om-scope .om-cal-day-title{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-scope .om-cal-day-meta{font-size:11.5px;color:var(--om-mut)}

@media(max-width:980px){
  .om-scope .om-notif-summary{grid-template-columns:repeat(2,1fr)}
  .om-scope .om-notif-rail{display:none}
  .om-scope .om-cal-wrap{flex-direction:column}
  .om-scope .om-cal-day{width:100%}
}

/* ---------- mensagens (3-pane) ---------- */
.om-scope.om-msgs, .om-scope .om-msgs{
  flex:1 1 auto;min-width:0;display:flex;background:#fff;position:relative;border:1px solid var(--om-bd);border-radius:14px;overflow:hidden;
  height:calc(100vh - 7.5rem);height:calc(100dvh - 7.5rem);
}
.om-scope .om-msg-list{width:332px;flex:0 0 auto;border-right:1px solid var(--om-bd);display:flex;flex-direction:column;min-height:0}
.om-scope .om-msg-list-head{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 10px}
.om-scope .om-msg-h1{margin:0;font-size:19px;font-weight:700}
.om-scope .om-btn-primary.sm{height:30px;padding:0 11px;font-size:12.5px}
.om-scope .om-msg-search{display:flex;align-items:center;gap:8px;margin:0 14px 10px;padding:8px 11px;background:var(--om-soft);border:1px solid var(--om-bd);border-radius:9px;color:var(--om-mut)}
.om-scope .om-msg-search input{border:none;background:transparent;outline:none;font:inherit;font-size:13px;flex:1;color:var(--om-fg);min-width:0}
.om-scope .om-msg-cats{display:flex;gap:4px;padding:0 12px 10px;border-bottom:1px solid var(--om-bd);overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.om-scope .om-msg-cats::-webkit-scrollbar{display:none}
.om-scope .om-msg-cat{border:none;background:transparent;color:var(--om-mut);font-weight:600;font-size:12px;padding:5px 9px;border-radius:7px;flex:0 0 auto;white-space:nowrap}
.om-scope .om-msg-cat:hover{background:var(--om-soft)}
.om-scope .om-msg-cat.is-active{background:var(--om-fg);color:#fff}
.om-scope .om-thread-scroll{flex:1 1 auto;overflow-y:auto;padding:8px;min-height:0}
.om-scope .om-thread-sec{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--om-mut2);padding:10px 8px 5px;display:flex;align-items:center;gap:5px}
.om-scope .om-thread{display:flex;gap:11px;width:100%;text-align:left;border:none;background:transparent;padding:10px;border-radius:11px;margin-bottom:2px}
.om-scope .om-thread:hover{background:var(--om-soft2)}
.om-scope .om-thread.is-active{background:color-mix(in srgb,var(--om-accent) 9%,#fff)}
.om-scope .om-thread-av{position:relative;flex:0 0 auto}
.om-scope .om-thread-cat{position:absolute;right:-3px;bottom:-3px;width:17px;height:17px;border-radius:999px;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #fff}
.om-scope .om-thread-body{flex:1 1 auto;min-width:0}
.om-scope .om-thread-top{display:flex;align-items:center;gap:6px}
.om-scope .om-thread-subj{font-size:13.5px;font-weight:600;color:var(--om-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.om-scope .om-thread.is-unread .om-thread-subj{font-weight:700}
.om-scope .om-thread-pin{color:var(--om-accent);flex:0 0 auto;transform:rotate(40deg)}
.om-scope .om-thread-time{font-size:11px;color:var(--om-mut2);flex:0 0 auto}
.om-scope .om-thread-bottom{display:flex;align-items:center;gap:8px;margin-top:2px}
.om-scope .om-thread-prev{font-size:12px;color:var(--om-mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.om-scope .om-thread.is-unread .om-thread-prev{color:var(--om-fg)}
.om-scope .om-thread-badge{flex:0 0 auto;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--om-accent);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.om-scope .om-thread-ctx{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;color:var(--om-mut2);margin-top:4px}
.om-scope .om-msg-convo{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;background:var(--om-soft2);min-height:0}
.om-scope .om-convo-head{display:flex;align-items:center;gap:10px;padding:12px 18px;background:#fff;border-bottom:1px solid var(--om-bd)}
.om-scope .om-convo-titlewrap{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}
.om-scope .om-convo-cat{width:30px;height:30px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.om-scope .om-convo-subj{display:flex;align-items:center;gap:7px;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-scope .om-convo-ctx{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--om-mut);border:none;background:transparent;padding:2px 0;margin-top:1px}
.om-scope .om-convo-ctx:hover{color:var(--om-accent)}
.om-scope .om-icbtn.is-on{background:color-mix(in srgb,var(--om-accent) 12%,#fff);color:var(--om-accent)}
.om-scope .om-convo-scroll{flex:1 1 auto;overflow-y:auto;padding:18px 22px;display:flex;flex-direction:column;gap:10px;min-height:0}
.om-scope .om-day-div,.om-scope .om-unread-div{display:flex;align-items:center;justify-content:center;margin:6px 0}
.om-scope .om-day-div span{font-size:11px;font-weight:600;color:var(--om-mut);background:#fff;border:1px solid var(--om-bd);border-radius:999px;padding:3px 12px}
.om-scope .om-unread-div{position:relative}
.om-scope .om-unread-div::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:#fca5a5}
.om-scope .om-unread-div span{position:relative;font-size:10.5px;font-weight:700;color:#dc2626;background:var(--om-soft2);padding:2px 10px;text-transform:uppercase;letter-spacing:.04em}
.om-scope .om-sys{text-align:center;margin:4px 0}
.om-scope .om-sys span{font-size:11.5px;color:var(--om-mut2);background:#fff;border:1px solid var(--om-bd);border-radius:999px;padding:3px 12px}
.om-scope .om-msg{display:flex;gap:9px;max-width:74%;align-self:flex-start}
.om-scope .om-msg.is-mine{align-self:flex-end;flex-direction:row-reverse}
.om-scope .om-msg-col{min-width:0;display:flex;flex-direction:column;gap:3px}
.om-scope .om-msg-name{font-size:11.5px;font-weight:600;color:var(--om-mut);padding-left:2px}
.om-scope .om-msg-time{font-size:10.5px;color:var(--om-mut2);font-weight:500}
.om-scope .om-bubble{background:#fff;border:1px solid var(--om-bd);border-radius:14px;border-top-left-radius:5px;padding:9px 13px;font-size:13.5px;line-height:1.5;color:var(--om-fg);word-wrap:break-word}
.om-scope .om-msg.is-mine .om-bubble{background:var(--om-accent);color:#fff;border-color:transparent;border-radius:14px;border-top-right-radius:5px}
.om-scope .om-mention{font-weight:700;color:var(--om-accent);background:color-mix(in srgb,var(--om-accent) 12%,#fff);border-radius:5px;padding:0 4px}
.om-scope .om-msg.is-mine .om-mention{color:#fff;background:rgba(255,255,255,.22)}
.om-scope .om-msg-meta{display:flex;align-items:center;gap:8px;padding:0 2px}
.om-scope .om-msg.is-mine .om-msg-meta{justify-content:flex-end}
.om-scope .om-read{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;color:var(--om-mut2);font-weight:500}
.om-scope .om-attach{display:flex;align-items:center;gap:9px;margin-top:8px;padding:8px 10px;background:var(--om-soft2);border:1px solid var(--om-bd);border-radius:9px}
.om-scope .om-msg.is-mine .om-attach{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.25)}
.om-scope .om-attach-ic{color:var(--om-mut);flex:0 0 auto}
.om-scope .om-msg.is-mine .om-attach-ic,.om-scope .om-msg.is-mine .om-attach-name,.om-scope .om-msg.is-mine .om-attach-size{color:#fff}
.om-scope .om-attach-name{font-size:12.5px;font-weight:600;color:var(--om-fg);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-scope .om-attach-size{font-size:11px;color:var(--om-mut2);flex:0 0 auto}
.om-scope .om-attach-badge{font-size:10px;font-weight:700;padding:2px 6px;border-radius:999px;background:#fef3c7;color:#92400e;flex:0 0 auto;white-space:nowrap}
.om-scope .om-msg.is-mine .om-attach-badge{background:rgba(254,243,199,.95);color:#92400e}
.om-scope .om-uncat-row{display:flex;flex-direction:column;gap:6px;width:100%;text-align:left;padding:12px 14px;border:none;border-bottom:1px solid var(--om-bd);background:transparent;cursor:pointer}
.om-scope .om-uncat-row:hover{background:var(--om-soft)}
.om-scope .om-uncat-top{display:flex;align-items:center;gap:8px}
.om-scope .om-uncat-name{font-size:13px;font-weight:650;color:var(--om-fg);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-scope .om-uncat-meta{font-size:11.5px;color:var(--om-mut);display:flex;flex-wrap:wrap;gap:4px 10px}
.om-scope .om-convert{display:inline-flex;align-items:center;gap:5px;margin-top:8px;font-size:11.5px;font-weight:600;color:var(--om-accent);
  background:color-mix(in srgb,var(--om-accent) 8%,#fff);border:1px solid color-mix(in srgb,var(--om-accent) 22%,#fff);border-radius:7px;padding:4px 9px}
.om-scope .om-composer-bar{display:flex;flex-direction:column;gap:8px;padding:12px 16px;background:#fff;border-top:1px solid var(--om-bd)}
.om-scope .om-composer-row{display:flex;align-items:flex-end;gap:8px;width:100%}
.om-scope .om-composer-attachs{display:flex;flex-direction:column;gap:6px;width:100%}
.om-scope .om-msg-actions{display:inline-flex;align-items:center;gap:2px;margin-left:6px}
.om-scope .om-error-text{font-size:13px;color:#dc2626;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:8px 10px}
.om-scope .om-msg-input{flex:1 1 auto;border:1px solid var(--om-bd);border-radius:11px;padding:10px 13px;font:inherit;font-size:13.5px;resize:none;max-height:120px;background:var(--om-soft2)}
.om-scope .om-msg-input:focus{outline:none;border-color:var(--om-accent);background:#fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--om-accent) 14%,transparent)}
.om-scope .om-msg-details{width:288px;flex:0 0 auto;border-left:1px solid var(--om-bd);background:#fff;overflow-y:auto;padding:14px;min-height:0}
.om-scope .om-msg-details-scrim{display:none}
.om-scope .om-details-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.om-scope .om-details-sec{padding:12px 0;border-top:1px solid var(--om-bd)}
.om-scope .om-details-label{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--om-mut2);margin-bottom:9px}
.om-scope .om-ctx-chip{display:flex;align-items:center;gap:8px;width:100%;border:1px solid var(--om-bd);border-radius:9px;padding:9px 11px;background:var(--om-soft2);font-size:13px;font-weight:600;color:var(--om-fg);margin-bottom:6px}
.om-scope .om-ctx-chip svg:last-child{margin-left:auto;color:var(--om-mut2)}
.om-scope .om-ctx-chip:hover{border-color:var(--om-accent);color:var(--om-accent)}
.om-scope .om-ctx-chip.ghost{color:var(--om-mut);font-weight:500;cursor:default}
.om-scope .om-part-list{display:flex;flex-direction:column;gap:7px}
.om-scope .om-part{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:500}
.om-scope .om-list-action{display:flex;align-items:center;gap:9px;width:100%;border:none;background:transparent;padding:8px 6px;border-radius:8px;font-size:13px;font-weight:600;color:var(--om-fg);text-align:left}
.om-scope .om-list-action:hover{background:var(--om-soft)}
.om-scope .om-list-action.danger{color:#dc2626}
.om-scope .om-list-action.danger:hover{background:#fef2f2}
.om-scope .om-add-row{display:inline-flex;align-items:center;gap:7px;border:1px dashed var(--om-bd2);background:transparent;color:var(--om-mut);font-weight:600;font-size:12.5px;padding:8px 11px;border-radius:9px;width:100%;justify-content:center}
.om-scope .om-add-row:hover{background:var(--om-soft2);color:var(--om-fg);border-color:var(--om-mut2)}
.om-modal-scrim{position:fixed;inset:0;background:rgba(9,9,11,.34);backdrop-filter:blur(2px);z-index:90;display:flex;align-items:center;justify-content:center;padding:24px}
.om-modal{width:min(560px,96vw);background:#fff;border-radius:16px;box-shadow:var(--om-shadow-md);overflow:hidden}
.om-modal .om-scope, .om-modal.om-scope{}
.om-modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--om-bd)}
.om-modal-head h3{margin:0;font-size:16px;font-weight:700}
.om-modal-body{padding:18px;display:flex;flex-direction:column;gap:14px;max-height:64vh;overflow-y:auto}
.om-modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px;border-top:1px solid var(--om-bd);background:var(--om-soft2)}
.om-fld{display:flex;flex-direction:column;gap:6px}
.om-fld>span{font-size:12px;font-weight:600;color:var(--om-mut)}
.om-fld-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.om-scope .om-segment.fill, .om-segment.fill{display:flex}
.om-segment.fill button{flex:1}
.om-input{width:100%;border:1px solid var(--om-bd);border-radius:9px;padding:9px 11px;font:inherit;font-size:13px;background:#fff}
.om-input:focus{outline:none;border-color:var(--om-accent)}
.om-textarea{width:100%;border:1px solid var(--om-bd);border-radius:9px;padding:9px 11px;font-family:inherit;font-size:13px;background:#fff;resize:vertical}
.om-part-groups{display:flex;flex-direction:column;gap:12px}
.om-part-group{display:flex;flex-direction:column;gap:8px}
.om-part-group-label{font-size:11px;font-weight:700;color:var(--om-mut);text-transform:uppercase;letter-spacing:.04em}
.om-part-chips{display:flex;flex-wrap:wrap;gap:8px}
.om-part-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--om-bd);border-radius:999px;padding:4px 11px 4px 5px;font-size:12.5px;font-weight:600;background:#fff;color:var(--om-fg)}
.om-part-chip:hover{background:var(--om-soft)}
.om-part-chip.is-on{border-color:var(--om-accent);background:color-mix(in srgb,var(--om-accent) 10%,#fff);color:var(--om-accent)}
.om-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:95;display:flex;align-items:center;gap:8px;
  background:#0f172a;color:#fff;padding:11px 16px;border-radius:11px;font-size:13px;font-weight:600;box-shadow:var(--om-shadow-md)}
.om-toast svg{color:#4ade80}
.om-avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;color:#fff;font-weight:600;flex:0 0 auto}
.om-avstack{display:inline-flex;align-items:center}
.om-avstack .om-avatar{box-shadow:0 0 0 2px #fff}
.om-scope .om-btn-label{display:inline}
.om-scope .om-convo-back{display:none}
/* Tablet & below: one pane at a time + details as overlay sheet (sidebar + list would crush the convo). */
@media(max-width:980px){
  .om-scope .om-msg-list{width:100%;border-right:none}
  .om-scope.om-msgs:not(.has-active-thread) .om-msg-convo,
  .om-scope .om-msgs:not(.has-active-thread) .om-msg-convo{display:none}
  .om-scope.om-msgs.has-active-thread .om-msg-list,
  .om-scope .om-msgs.has-active-thread .om-msg-list{display:none}
  .om-scope .om-convo-back{display:inline-flex;flex:0 0 auto}
  .om-scope .om-convo-head .om-avstack{display:none}
  .om-scope .om-msg-details-scrim{
    display:block;position:absolute;inset:0;z-index:24;
    background:rgba(9,9,11,.28);backdrop-filter:blur(1px);border:none;padding:0;cursor:pointer;
  }
  .om-scope .om-msg-details{
    position:absolute;top:0;right:0;bottom:0;z-index:25;
    width:min(320px,92vw);box-shadow:var(--om-shadow-md);
  }
}
/* Phone: denser chrome, safe areas, full-screen compose, 16px inputs (no iOS zoom). */
@media(max-width:767px){
  .om-scope.om-msgs, .om-scope .om-msgs{
    height:calc(100vh - 6.5rem);height:calc(100dvh - 6.5rem);
    border-radius:12px;
  }
  .om-scope .om-convo-head{padding:10px 12px;gap:8px}
  .om-scope .om-convo-subj{font-size:14px}
  .om-scope .om-convo-ctx{
    font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    max-width:100%;display:block;
  }
  .om-scope .om-convo-scroll{padding:14px 12px}
  .om-scope .om-msg{max-width:88%}
  .om-scope .om-composer-bar{padding:10px 12px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .om-scope .om-composer-row{gap:6px}
  .om-scope .om-composer-bar .om-btn-primary{padding:0 12px;height:36px}
  .om-scope .om-composer-bar .om-btn-label{display:none}
  .om-scope .om-msg-search input,
  .om-scope .om-composer-bar textarea,
  .om-scope .om-composer-bar input,
  .om-modal .om-input,
  .om-modal .om-textarea{font-size:16px}
  .om-modal-scrim{padding:0;align-items:stretch;justify-content:stretch}
  .om-modal{
    width:100%;max-width:none;min-height:100%;max-height:100dvh;border-radius:0;
    display:flex;flex-direction:column;
  }
  .om-modal-body{max-height:none;flex:1 1 auto;padding:16px}
  .om-modal-foot{padding-bottom:max(14px,env(safe-area-inset-bottom))}
  .om-fld-row{grid-template-columns:1fr}
  .om-toast{left:12px;right:12px;bottom:max(16px,env(safe-area-inset-bottom));transform:none;width:auto}
}

/* ---------- oportunidades ---------- */
.om-scope .om-opps{display:flex;flex-direction:column;min-height:0}
.om-scope .om-opps-head{display:flex;align-items:center;gap:18px;padding:0 0 16px;flex-wrap:wrap}
.om-scope .om-opps-stats{display:flex;gap:26px;flex-wrap:wrap}
.om-scope .om-ostat{display:flex;flex-direction:column}
.om-scope .om-ostat-n{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.1}
.om-scope .om-ostat-l{font-size:11.5px;color:var(--om-mut);font-weight:600}
.om-scope .om-opps-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.om-scope .om-board{display:flex;gap:14px;overflow-x:auto;align-items:flex-start;padding-bottom:24px;min-height:400px}
.om-scope .om-col{flex:0 0 270px;width:270px;background:var(--om-soft);border:1px solid var(--om-bd);border-radius:14px;display:flex;flex-direction:column;max-height:calc(100vh - 260px)}
.om-scope .om-col.is-over{background:color-mix(in srgb,var(--om-accent) 8%,var(--om-soft));border-color:var(--om-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--om-accent) 14%,transparent)}
.om-scope .om-col-head{display:flex;align-items:center;gap:8px;padding:12px 13px 10px;border-bottom:1px solid var(--om-bd)}
.om-scope .om-col-dot{width:9px;height:9px;border-radius:999px;flex:0 0 auto}
.om-scope .om-col-label{font-size:13px;font-weight:700;color:var(--om-fg)}
.om-scope .om-col-n{font-size:11px;font-weight:700;background:#fff;border:1px solid var(--om-bd);border-radius:999px;padding:1px 7px;color:var(--om-mut)}
.om-scope .om-col-val{font-size:12px;font-weight:700;color:var(--om-mut);font-variant-numeric:tabular-nums;margin-left:auto}
.om-scope .om-col-body{padding:9px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;min-height:60px}
.om-scope .om-col-empty{border:1px dashed var(--om-bd2);border-radius:10px;padding:16px;text-align:center;font-size:12px;color:var(--om-mut2)}
.om-scope .om-opp{background:#fff;border:1px solid var(--om-bd);border-radius:12px;padding:11px;cursor:grab;transition:box-shadow .15s,border-color .15s;text-align:left;width:100%}
.om-scope .om-opp:hover{box-shadow:var(--om-shadow-md);border-color:var(--om-bd2)}
.om-scope .om-opp:active{cursor:grabbing}
.om-scope .om-opp-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}
.om-scope .om-opp-prio{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600}
.om-scope .om-opp-src{font-size:10.5px;color:var(--om-mut2);background:var(--om-soft);border-radius:5px;padding:1px 6px}
.om-scope .om-opp-client{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:var(--om-fg);line-height:1.35;margin-bottom:5px}
.om-scope .om-opp-title{font-size:12px;color:var(--om-mut);margin-bottom:9px}
.om-scope .om-opp-foot{display:flex;align-items:center;justify-content:space-between}
.om-scope .om-opp-val{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.om-scope .om-opp-meta{margin-top:8px;padding-top:8px;border-top:1px solid var(--om-soft)}
.om-scope .om-opp-due{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--om-mut)}
.om-scope .om-opp-due.is-urgent{color:#d97706;font-weight:600}
.om-scope .om-opp-due.is-ok{color:#0f766e;font-weight:600}
/* drawer */
.om-scope .om-opp-drawer{width:50vw;max-width:94vw;height:100%;background:var(--om-soft2);display:flex;flex-direction:column;box-shadow:var(--om-shadow-lg)}
.om-scope .om-opp-dr-head{display:flex;align-items:flex-start;gap:10px;padding:16px 18px;background:#fff;border-bottom:1px solid var(--om-bd);position:relative}
.om-scope .om-opp-dr-head::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--accent,#4f46e5)}
.om-scope .om-opp-dr-title{margin:6px 0 0;font-size:17px;font-weight:700;line-height:1.3}
.om-scope .om-opp-dr-body{flex:1 1 auto;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:14px}
.om-scope .om-opp-pipe{display:flex;align-items:flex-start;justify-content:space-between;background:#fff;border:1px solid var(--om-bd);border-radius:12px;padding:13px 8px}
.om-scope .om-opp-pipe-step{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;text-align:center;position:relative}
.om-scope .om-opp-pipe-step::before{content:"";position:absolute;top:13px;left:-50%;width:100%;height:2px;background:var(--om-bd);z-index:0}
.om-scope .om-opp-pipe-step:first-child::before{display:none}
.om-scope .om-opp-pipe-step.is-done::before,.om-scope .om-opp-pipe-step.is-current::before{background:var(--om-accent)}
.om-scope .om-opp-pipe-node{position:relative;z-index:1;width:26px;height:26px;border-radius:999px;background:#fff;border:2px solid var(--om-bd);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--om-mut)}
.om-scope .om-opp-pipe-lbl{font-size:10px;font-weight:600;color:var(--om-mut);white-space:nowrap}
.om-scope .om-opp-pipe-step.is-current .om-opp-pipe-lbl{color:var(--om-fg)}
.om-scope .om-opp-bigval{background:#fff;border:1px solid var(--om-bd);border-radius:12px;padding:14px;font-size:26px;font-weight:700;font-variant-numeric:tabular-nums;display:flex;flex-direction:column}
.om-scope .om-opp-bigval span{font-size:12px;font-weight:500;color:var(--om-mut);margin-top:2px}
.om-scope .om-kv{background:#fff;border:1px solid var(--om-bd);border-radius:12px;overflow:hidden}
.om-scope .om-kv-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border-top:1px solid var(--om-bd);font-size:13px}
.om-scope .om-kv-row:first-child{border-top:none}
.om-scope .om-kv-k{display:inline-flex;align-items:center;gap:8px;color:var(--om-mut);font-weight:500}
.om-scope .om-kv-v{font-weight:600;text-align:right;max-width:60%}
.om-scope .om-opp-notes{background:#fff;border:1px solid var(--om-bd);border-radius:12px;padding:13px}
.om-opp-notes-combined{display:flex;flex-direction:column;gap:10px}
.om-opp-doc-drop{display:flex;align-items:center;justify-content:center;gap:8px;border:1.5px dashed var(--om-bd);border-radius:10px;padding:14px 12px;font-size:12.5px;color:var(--om-mut);background:#fafbfc;cursor:pointer;transition:background .15s,border-color .15s,color .15s;text-align:center}
.om-opp-doc-drop.is-over,.om-opp-doc-drop:hover:not(.is-readonly){border-color:#2563eb;background:#eef4ff;color:#1d4ed8}
.om-opp-doc-drop.is-uploading{cursor:wait;opacity:.85}
.om-opp-doc-drop.is-readonly{cursor:default;opacity:.7}
.om-opp-doc-drop-icon{flex-shrink:0;opacity:.75}
.om-opp-doc-section{margin-top:2px}
.om-opp-doc-section-label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--om-mut2);margin-bottom:8px}
.om-opp-doc-list{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow-y:auto}
.om-opp-doc-empty{font-size:12px;color:var(--om-mut);margin:0}
.om-opp-doc-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid var(--om-bd);border-radius:9px;background:#fff}
.om-opp-doc-thumb{width:36px;height:36px;border-radius:7px;border:1px solid var(--om-bd);overflow:hidden;background:#f8fafc;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;padding:0}
.om-opp-doc-thumb img{width:100%;height:100%;object-fit:cover}
.om-opp-doc-type{font-size:9px;font-weight:700;color:var(--om-mut2)}
.om-opp-doc-meta{flex:1;min-width:0;text-align:left;background:none;border:none;padding:0;cursor:pointer}
.om-opp-doc-name{display:block;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-opp-doc-sub{display:block;font-size:11px;color:var(--om-mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-opp-doc-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}
.om-opp-doc-panel{background:#fff;border:1px solid var(--om-bd);border-radius:12px;padding:13px}
.om-scope .om-opp-dr-foot{display:flex;align-items:center;gap:10px;padding:13px 16px;background:#fff;border-top:1px solid var(--om-bd)}
/* table */
.om-scope .om-opps-table-wrap{overflow-x:auto}
.om-scope .om-qrow.otab{grid-template-columns:1.2fr 2fr .7fr .8fr .9fr .8fr .8fr .9fr auto}
.om-scope .om-qrow.otab.is-click{border:none;border-top:1px solid var(--om-bd);background:transparent;text-align:left;width:100%;cursor:pointer;font:inherit;display:grid;align-items:center;gap:10px;padding:10px 13px;font-size:13px}
.om-scope .om-qrow.otab.is-click:hover{background:var(--om-soft2)}
.om-scope .om-qrow.otab .om-opp-row-actions{display:flex;align-items:center;gap:1px;opacity:0;transition:opacity .14s}
.om-scope .om-qrow.otab:hover .om-opp-row-actions{opacity:1}
.om-scope .om-qrow.is-head.otab .om-sort-head{display:inline-flex;align-items:center;gap:2px;border:none;background:transparent;padding:0;font:inherit;font-size:inherit;font-weight:inherit;text-transform:inherit;letter-spacing:inherit;color:inherit;cursor:pointer}
.om-scope .om-qrow.is-head.otab .om-sort-head:hover{color:var(--om-fg)}
.om-scope .om-sort-ind{font-size:10px;color:var(--om-mut2);margin-left:2px}

/* shared scrim + banner (used by opp drawer & modals) */
.om-sheet-scrim{position:fixed;inset:0;background:rgba(9,9,11,.32);backdrop-filter:blur(2px);z-index:80;display:flex;justify-content:flex-end}
.om-scope .om-banner{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;padding:11px 14px;border-radius:11px;border:1px solid}
.om-scope .om-banner.is-ok{color:#15803d;background:#f0fdf4;border-color:#bbf7d0}
.om-scope .om-banner.is-warn{color:#b45309;background:#fffbeb;border-color:#fde68a}
.om-scope .om-statusbadge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;border:1px solid}
.om-scope .om-details-label{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--om-mut2);margin-bottom:6px}

/* ---------- OverviewTaskRow expanded — docs + comments + actions columns ---------- */
.om-scope .om-exp-cols, .om-exp-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(160px,13rem);gap:18px 24px;margin-top:14px;border-top:1px solid var(--om-bd);padding-top:14px}
.om-scope .om-exp-block, .om-exp-block{padding-top:0;min-width:0}
.om-scope .om-exp-sidebar, .om-exp-sidebar{display:flex;flex-direction:column;gap:12px;min-width:0}
.om-scope .om-exp-head, .om-exp-head{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}
.om-scope .om-exp-title, .om-exp-title{display:inline-flex;align-items:center;gap:7px;font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--om-fg, var(--foreground))}
.om-scope .om-exp-sub, .om-exp-sub{font-size:11.5px;color:var(--om-mut2, var(--muted-foreground))}
.om-scope .om-exp-docs, .om-exp-docs{display:flex;flex-direction:column;gap:5px;margin-top:2px}
.om-scope .om-exp-doc-row, .om-exp-doc-row{display:flex;align-items:center;gap:8px;padding:6px 9px;border:1px solid var(--om-bd, var(--border));border-radius:8px;color:var(--om-mut, var(--muted-foreground))}
.om-scope .om-exp-doc-name, .om-exp-doc-name{font-size:12.5px;font-weight:500;color:var(--om-fg, var(--foreground));flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-scope .om-exp-timeline, .om-exp-timeline{display:flex;flex-direction:column;gap:3px;margin-top:2px}
.om-scope .om-exp-tl-item, .om-exp-tl-item{display:flex;gap:9px;padding:6px 5px;border-radius:8px}
.om-scope .om-exp-tl-item:hover, .om-exp-tl-item:hover{background:var(--om-soft2, var(--muted)/20)}
.om-scope .om-exp-tl-ic, .om-exp-tl-ic{width:24px;height:24px;border-radius:999px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.om-scope .om-exp-tl-body, .om-exp-tl-body{min-width:0;flex:1 1 auto}
.om-scope .om-exp-tl-meta, .om-exp-tl-meta{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--om-mut, var(--muted-foreground));font-weight:500;flex-wrap:wrap}
.om-scope .om-exp-tl-when, .om-exp-tl-when{margin-left:auto;color:var(--om-mut2, var(--muted-foreground))}
.om-scope .om-exp-tl-text, .om-exp-tl-text{font-size:12px;color:var(--om-fg, var(--foreground));margin-top:1px;line-height:1.45}
.om-scope .om-exp-actions, .om-exp-actions{display:flex;flex-direction:column;gap:3px;padding:11px;background:var(--om-soft2, var(--muted)/30);border:1px solid var(--om-bd, var(--border));border-radius:11px}
.om-scope .om-exp-actions-head, .om-exp-actions-head{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--om-mut2, var(--muted-foreground));margin-bottom:4px;padding:0 2px}
.om-scope .om-exp-action, .om-exp-action{display:flex;align-items:center;gap:9px;width:100%;padding:7px 9px;border-radius:8px;border:1px solid var(--om-bd, var(--border));background:#fff;font-size:12.5px;font-weight:500;color:var(--om-fg, var(--foreground));text-align:left}
.om-scope .om-exp-action:hover, .om-exp-action:hover{border-color:var(--om-bd2, var(--border));color:var(--om-accent, #4f46e5)}
.om-scope .om-exp-action.is-primary, .om-exp-action.is-primary{background:var(--om-accent, #4f46e5);border-color:var(--om-accent, #4f46e5);color:#fff}
.om-scope .om-exp-action.is-primary:hover, .om-exp-action.is-primary:hover{filter:brightness(1.06);color:#fff}
.om-scope .om-exp-action.sm, .om-exp-action.sm{padding:6px 8px;font-size:12px;border:none;background:transparent;color:var(--om-mut, var(--muted-foreground))}
.om-scope .om-exp-action.sm:hover, .om-exp-action.sm:hover{background:#fff;color:var(--om-accent, #4f46e5)}
.om-scope .om-exp-actions-more, .om-exp-actions-more{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin-top:3px;border-top:1px solid var(--om-bd, var(--border));padding-top:3px}
@media (max-width:768px){
.om-scope .om-exp-cols, .om-exp-cols{grid-template-columns:1fr}
}

/* ---------- adaptive phase pipeline (strip + summary + scrollable rail) ---------- */
.om-scope .om-pipe-strip{display:flex;gap:3px;margin:2px 0 12px}
.om-scope .om-pipe-seg{position:relative;flex:1 1 0;min-width:6px;height:7px;border-radius:999px;overflow:hidden;background:var(--om-bd)}
.om-scope .om-pipe-seg.is-done{background:#22c55e}
.om-scope .om-pipe-seg-fill{position:absolute;inset:0;border-radius:999px}
.om-scope .om-pipe-summary{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:16px}
.om-scope .om-pipe-sumitem{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:var(--om-mut)}
.om-scope .om-pipe-sumdot{width:9px;height:9px;border-radius:999px;flex:0 0 auto}
.om-scope .om-pipe-sumdot.is-done{background:#22c55e}
.om-scope .om-pipe-sumdot.is-upcoming{background:var(--om-bd2)}
.om-scope .om-pipeline-wrap{position:relative;overflow:hidden}
.om-scope .om-pipeline-wrap::before,.om-scope .om-pipeline-wrap::after{content:"";position:absolute;top:0;bottom:8px;width:28px;pointer-events:none;z-index:2}
.om-scope .om-pipeline-wrap::before{left:0;background:linear-gradient(90deg,#fff,transparent)}
.om-scope .om-pipeline-wrap::after{right:0;background:linear-gradient(270deg,#fff,transparent)}
.om-scope .om-pipeline{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px;scroll-behavior:smooth}
.om-scope .om-pipeline::-webkit-scrollbar{height:5px}
.om-scope .om-pipeline::-webkit-scrollbar-thumb{background:var(--om-bd2);border-radius:999px}
.om-scope .om-pipe{position:relative;padding-right:8px;flex:1 0 150px;min-width:150px;scroll-snap-align:start;border:none;background:transparent;text-align:left}
.om-scope .om-pipe-bar{display:flex;align-items:center;height:30px;margin-bottom:10px}
.om-scope .om-pipe-name{font-size:13px;font-weight:600;color:var(--om-fg);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-right:8px}
.om-scope .om-pipe.is-upcoming .om-pipe-name{color:var(--om-mut)}
