/* =====================================================================
   DOMINO — Today hub
   Proactive daily command center. Loads after domino.css.
   ===================================================================== */

/* greeting */
.t-hero { margin-bottom: 24px; }
.t-greeting {
  font-size: 30px; font-weight: var(--w-head);
  letter-spacing: -0.03em; color: var(--ink-900); line-height: 1.05;
}
.t-date { font-size: 14px; color: var(--slate-400); margin-top: 6px; font-weight: 500; letter-spacing: -0.01em; }

/* proactive brief */
.brief {
  margin-top: 22px;
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 24px;
  border-radius: var(--r-card);
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--ac) 8%, var(--surface)), var(--surface) 70%);
  border: 1px solid var(--ac-line);
  box-shadow: var(--shadow-xs);
}
.brief__icon {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 11px;
  background: var(--ac-soft); color: var(--ac-700);
  display: grid; place-items: center;
}
.brief__icon svg { width: 22px; height: 22px; }
.brief__body { flex: 1; min-width: 0; }
.brief__eyebrow {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ac-700); font-weight: 700;
}
.brief__text {
  font-size: 16px; line-height: 1.5; color: var(--ink-800); margin-top: 7px;
  font-weight: 500; letter-spacing: -0.01em; max-width: 760px;
}
.brief__text b { font-weight: 700; color: var(--ink-900); }
.brief__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.brief__chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--slate-600);
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-pill); padding: 6px 13px;
}
.brief__chip svg { width: 14px; height: 14px; color: var(--slate-400); }
.brief__chip b { color: var(--ink-900); font-weight: 700; }

/* layout grid */
.t-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  margin-top: 26px;
  align-items: start;
}
.t-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* panel */
.t-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.t-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline-soft);
}
.t-panel__title {
  display: flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900);
}
.t-panel__title svg { width: 17px; height: 17px; color: var(--slate-400); }
.t-panel__title .cnt {
  font-size: 11px; font-weight: 700; color: var(--slate-500);
  background: var(--neutral-100); border-radius: var(--radius-pill);
  padding: 2px 9px; margin-left: 2px;
}
.t-panel__link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--slate-500); cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}
.t-panel__link:hover { color: var(--ink-800); }
.t-panel__link svg { width: 14px; height: 14px; }
.t-panel__body { padding: 4px 20px 12px; }

/* slate buttons (this view) */
.btn--slate {
  background: var(--slate-600); color: #fff;
  box-shadow: 0 1px 2px rgba(28,36,48,0.24), inset 0 1px 0 rgba(255,255,255,0.10);
  padding: 9px 16px; font-size: 12.5px;
}
.btn--slate:hover { background: var(--slate-700); transform: translateY(-1px); box-shadow: 0 5px 14px -5px rgba(28,36,48,0.4), inset 0 1px 0 rgba(255,255,255,0.12); }
.btn--slate:active { transform: translateY(0); }
.btn--slate-soft {
  background: var(--slate-50); color: var(--slate-700);
  border-color: var(--slate-200); box-shadow: none;
  padding: 9px 16px; font-size: 12.5px;
}
.btn--slate-soft:hover { background: var(--neutral-100); border-color: var(--slate-300); color: var(--ink-800); }
.app[data-btn="link"] .btn--slate,
.app[data-btn="link"] .btn--slate-soft { color: var(--slate-600); }

/* schedule events */
.t-event {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 16px;
  padding: 15px 0; border-top: 1px solid var(--hairline-soft);
  align-items: center;
}
.t-event:first-child { border-top: 0; }
.t-event__time { text-align: right; }
.t-event__hr { font-size: 14px; font-weight: 700; color: var(--ink-800); letter-spacing: -0.02em; font-feature-settings: "tnum" 1; }
.t-event__dur { font-size: 11px; color: var(--slate-400); margin-top: 2px; }
.t-event__main { min-width: 0; position: relative; padding-left: 18px; }
.t-event__main::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 2px; border-radius: 2px; background: var(--slate-200);
}
.t-event.is-next .t-event__main::before { background: var(--ac); }
.t-event__t { font-size: 14.5px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.t-event__meta { font-size: 12.5px; color: var(--slate-400); margin-top: 4px; display: flex; align-items: center; gap: 7px; }
.t-event__meta svg { width: 13px; height: 13px; }
.t-next-pill {
  font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ac-700); background: var(--ac-soft); border-radius: var(--radius-pill);
  padding: 2px 8px;
}

/* tiny tag */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--radius-pill); white-space: nowrap;
}
.tag .d { width: 5px; height: 5px; border-radius: 50%; }
.tag--accent { background: var(--ac-soft); color: var(--ac-700); }
.tag--accent .d { background: var(--ac); }
.tag--success { background: var(--success-bg); color: #2F5A42; }
.tag--success .d { background: var(--success); }
.tag--warn { background: var(--warning-bg); color: #8B5A1E; }
.tag--warn .d { background: var(--warning); }
.tag--info { background: var(--info-bg); color: var(--info); }
.tag--info .d { background: var(--info); }
.tag--danger { background: var(--danger-bg); color: var(--danger); }
.tag--danger .d { background: var(--danger); }
.tag--neutral { background: var(--neutral-100); color: var(--slate-500); }
.tag--neutral .d { background: var(--slate-300); }

/* deal-strategy chips — distinct hues: Acquisition blue · Credit teal · Development gold */
.tag--acq     { background: color-mix(in oklab, var(--strat-acq) 13%, var(--surface));    color: var(--strat-acq); }
.tag--credit  { background: color-mix(in oklab, var(--strat-credit) 14%, var(--surface)); color: var(--strat-credit); }
.tag--develop { background: color-mix(in oklab, var(--strat-dev) 17%, var(--surface));    color: var(--strat-dev); }
/* no leading dot on strategy chips */
.tag--acq .d, .tag--credit .d, .tag--develop .d { display: none; }

/* email rows */
.t-mail {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 13px;
  padding: 14px 0; border-top: 1px solid var(--hairline-soft); align-items: start;
}
.t-mail:first-child { border-top: 0; }
.t-mail.is-done { opacity: 0.5; }
.t-mail__av {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--neutral-100); color: var(--slate-600);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  border: 1px solid var(--hairline);
}
.t-mail__c { min-width: 0; }
.t-mail__top { display: flex; align-items: center; gap: 8px; }
.t-mail__from { font-size: 13.5px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; }
.t-mail__org { font-size: 11.5px; color: var(--slate-400); }
.t-mail__prio { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); flex: 0 0 auto; }
.t-mail__subj { font-size: 13.5px; color: var(--ink-800); margin-top: 3px; font-weight: 500; }
.t-mail__snip { font-size: 12.5px; color: var(--slate-400); margin-top: 2px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.t-mail__r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.t-mail__time { font-size: 11.5px; color: var(--slate-400); white-space: nowrap; }

/* deals */
.t-deal {
  padding: 16px 0; border-top: 1px solid var(--hairline-soft);
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center;
}
.t-deal:first-child { border-top: 0; }
.t-deal__name { font-size: 14.5px; font-weight: 600; color: var(--ink-900); letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.t-deal__meta { font-size: 12px; color: var(--slate-400); margin-top: 4px; }
.t-deal__bar { grid-column: 1 / 2; height: 4px; border-radius: 2px; background: var(--neutral-100); overflow: hidden; margin-top: 10px; max-width: 280px; }
.t-deal__fill { height: 100%; border-radius: 2px; background: var(--ac); }
.t-deal__r { grid-row: 1 / 3; grid-column: 2; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.t-deal__next { font-size: 12px; color: var(--slate-500); }
.t-deal__next b { color: var(--ink-800); font-weight: 600; }

/* tasks */
.t-task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline-soft); cursor: pointer; }
.t-task:first-child { border-top: 0; }
.t-check {
  width: 19px; height: 19px; flex: 0 0 auto; border-radius: 6px;
  border: 1.6px solid var(--slate-300); background: var(--surface);
  display: grid; place-items: center; transition: all var(--duration-fast) var(--ease-out);
}
.t-check svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.t-task.is-done .t-check { background: var(--slate-600); border-color: var(--slate-600); }
.t-task.is-done .t-check svg { opacity: 1; }
.t-task__c { flex: 1; min-width: 0; }
.t-task__label { font-size: 13.5px; font-weight: 500; color: var(--ink-800); letter-spacing: -0.01em; }
.t-task.is-done .t-task__label { text-decoration: line-through; color: var(--slate-400); }
.t-task__due { font-size: 11.5px; margin-top: 2px; color: var(--slate-400); }
.t-task__due.is-urgent { color: var(--danger); font-weight: 600; }

/* agents */
.t-agent { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid var(--hairline-soft); }
.t-agent:first-child { border-top: 0; }
.t-agent__icon {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px;
  background: var(--neutral-100); border: 1px solid var(--hairline); color: var(--ink-700);
  display: grid; place-items: center;
}
.t-agent__icon svg { width: 18px; height: 18px; }
.t-agent.is-live .t-agent__icon { background: var(--ac-soft); border-color: var(--ac-line); color: var(--ac-700); }
.t-agent__c { flex: 1; min-width: 0; }
.t-agent__name { font-size: 13.5px; font-weight: 600; color: var(--ink-900); display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.t-agent__live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ac-700); }
.t-agent__live .d { width: 6px; height: 6px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }
.t-agent__desc { font-size: 12px; color: var(--slate-400); margin-top: 3px; line-height: 1.4; }

/* mini stat snapshot */
.t-snap { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline-soft); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--hairline); }
.t-snap__cell { background: var(--surface); padding: 16px 18px; }
.t-snap__lbl { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; }
.t-snap__val { font-size: 26px; font-weight: var(--w-stat); color: var(--ink-900); letter-spacing: -0.02em; margin-top: 8px; font-feature-settings: "tnum" 1; }
.t-snap__val .u { font-size: 15px; color: var(--slate-400); font-weight: 400; }

@media (max-width: 1080px) {
  .t-grid { grid-template-columns: 1fr; }
}
