/* ============================================================
   FitBridge — Notifications · Status · Settings · Info · chat dock
   ============================================================ */
.std-screen {
  width: 100%; min-width: 0; padding: 30px 30px 26px;
  display: flex; flex-direction: column; gap: 18px;
}

/* ---------- Notifications ---------- */
.notif-feed { display: flex; flex-direction: column; gap: 11px; overflow: hidden; }
.notif-card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  padding: 15px 18px; display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: start;
  border-left: 4px solid var(--cat, var(--dim-2));
}
.notif-card .nc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cat-soft, var(--bg)); color: var(--cat, var(--ink)); }
.notif-card .nc-ic svg { width: 19px; height: 19px; }
.notif-card .nc-title { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.notif-card .nc-cat { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; background: var(--cat-soft); color: var(--cat); }
.notif-card .nc-summary { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-top: 4px; }
.notif-card .nc-when { font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin-top: 6px; }
.notif-card .nc-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.notif-undo {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  padding: 7px 13px; border-radius: 9px; border: 1px solid var(--card-border); color: var(--ink);
  white-space: nowrap;
}
.notif-undo svg { width: 14px; height: 14px; }
.notif-undo:hover { background: var(--hover-tint); }
.notif-undo.is-ask { color: var(--accent-strong); border-color: var(--accent-soft); background: var(--accent-soft); }
.notif-undo.is-done { color: var(--good); border-color: transparent; background: transparent; cursor: default; }
.notif-applied { font-size: 11px; color: var(--dim-2); }

/* category colors */
.cat-safety { --cat: var(--warn); --cat-soft: #FEF3DC; }
.cat-sync   { --cat: #4F66E3; --cat-soft: #E4E8FB; }
.cat-plan   { --cat: var(--good); --cat-soft: #E2F0E8; }

/* grouped variant */
.notif-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.notif-group { display: flex; flex-direction: column; gap: 10px; }
.notif-group > .ng-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid var(--cat, var(--hairline)); }
.notif-group .ng-head .ng-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--cat-soft); color: var(--cat); }
.notif-group .ng-head .ng-ic svg { width: 13px; height: 13px; }
.notif-group .ng-head .ng-count { margin-left: auto; font-size: 11px; color: var(--dim); font-weight: 700; }
.notif-rail-item {
  position: relative; padding: 0 0 4px 20px; border-left: 2px solid var(--cat-soft); margin-left: 8px;
}
.notif-rail-item::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--cat); border: 2px solid var(--card-bg); }
.notif-rail-item .nri-title { font-size: 13.5px; font-weight: 700; }
.notif-rail-item .nri-summary { font-size: 12px; color: var(--ink-2); line-height: 1.45; margin: 3px 0 5px; }
.notif-rail-item .nri-when { font-family: var(--font-mono); font-size: 10.5px; color: var(--dim); }
.notif-rail-item .notif-undo { margin-top: 6px; padding: 5px 10px; font-size: 11.5px; }

/* ---------- Status ---------- */
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 16px; flex: 1; min-height: 0; }
.widget {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden;
}
.widget .w-name { font-size: 13px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }
.widget .w-val { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.widget .w-val .u { font-size: 17px; color: var(--dim); font-weight: 700; margin-left: 2px; }
.widget .w-trend { font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.widget .w-trend.up { color: var(--good); } .widget .w-trend.down { color: var(--crit); }
.widget .w-spark { margin-top: auto; height: 46px; }
.widget .w-spark svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- Settings ---------- */
.settings-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.settings-form { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 22px 24px; }
.settings-form h3 { margin: 0 0 16px; font-size: 17px; font-weight: 800; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.span-2 { grid-column: span 2; }
.field label { font-size: 12px; font-weight: 700; color: var(--dim); }
.field input, .field select { padding: 10px 12px; border: 1px solid var(--card-border); border-radius: 10px; font-size: 14px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.settings-actions { margin-top: 18px; display: flex; gap: 10px; }
.settings-side { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.settings-side h3 { margin: 0; font-size: 16px; font-weight: 800; }
.settings-side p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Info ---------- */
.info-screen { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 40px; }
.info-mark { width: 300px; height: 78px;
  background-image: url("../assets/brand/wordmark.png");
  background-repeat: no-repeat; background-position: center; background-size: contain; }
.info-tagline { font-size: 14px; color: var(--dim); margin-top: -10px; }
.info-meta { display: grid; grid-template-columns: repeat(4, auto); gap: 0 40px; }
.info-meta > div { text-align: center; }
.info-meta .k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim-2); }
.info-meta .v { font-size: 18px; font-weight: 800; font-family: var(--font-mono); margin-top: 4px; }
.info-foot { font-size: 11.5px; color: var(--dim-2); font-family: var(--font-mono); }

/* ---------- chat dock ---------- */
.chat-dock { position: absolute; left: 88px; right: 0; bottom: 0; z-index: 40; padding: 14px 22px; background: linear-gradient(to top, rgba(43,47,56,.18), transparent); }
/* conversation log — shows the slot-filling Q&A above the composer */
.chat-log { max-width: 760px; margin: 0 auto 8px; display: flex; flex-direction: column; gap: 8px;
  max-height: 320px; overflow-y: auto; padding: 14px 16px; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: 14px; box-shadow: var(--card-shadow); }
.chat-log:empty { display: none; }
.cd-msg { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-word; }
.cd-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.cd-msg.bot { align-self: flex-start; background: var(--accent-soft); color: var(--ink); border-bottom-left-radius: 5px; }
.cd-msg.pending { opacity: .55; }
.chat-dock-inner {
  display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px;
  padding: 7px 7px 7px 16px; box-shadow: var(--card-shadow);
}
.chat-dock .cd-icon { color: var(--accent); display: inline-flex; }
.chat-dock .cd-icon svg { width: 18px; height: 18px; }
.chat-dock input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); padding: 9px 0; }
.chat-dock input::placeholder { color: var(--dim-2); }
.chat-dock .cd-send { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.chat-dock .cd-send:hover { background: var(--accent-strong); }
.chat-dock .cd-send svg { width: 17px; height: 17px; }
