/* Focus view — calm first view. Applies only while <html data-view="focus">. */

/* Alert banners -> slim, neutral one-line notice */
html[data-view="focus"] [data-rf="notice"] {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-inline-start: 3px solid var(--rf-tone, #D92D20) !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
  padding-top: 0 !important; padding-bottom: 0 !important;
  cursor: pointer;
}
html[data-view="focus"] [data-rf="notice"][data-tone="bad"]  { --rf-tone: #D92D20; }
html[data-view="focus"] [data-rf="notice"][data-tone="warn"] { --rf-tone: #DC6803; }
html[data-view="focus"] [data-rf="notice"][data-tone="ok"]   { --rf-tone: #12B76A; }
/* the old thick coloured stripe is replaced by the 3px edge */
html[data-view="focus"] [data-rf="notice"] > span:first-child:empty { display: none !important; }
html[data-view="focus"] [data-rf="notice"] [data-rf-row] { flex-wrap: nowrap !important; align-items: center !important; }
html[data-view="focus"] [data-rf="notice"] { color: #334155 !important; }
html[data-view="focus"] [data-rf="notice"] svg { color: var(--rf-tone) !important; stroke: var(--rf-tone) !important; }
html[data-view="focus"] [data-rf="notice"]:not([data-open]) [data-rf-msg] {
  flex: 1 1 0 !important; min-width: 0 !important;
  display: block !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
}
html[data-view="focus"] [data-rf="notice"]:not([data-open]) [data-rf-msg] * { display: inline !important; white-space: nowrap !important; }
html[data-view="focus"] [data-rf="notice"]:not([data-open]) [data-rf-msg] br { display: none !important; }
html[data-view="focus"] [data-rf="notice"] [data-rf-msg] b,
html[data-view="focus"] [data-rf="notice"] [data-rf-msg] strong { color: #0F172A !important; font-weight: 600 !important; }
html[data-view="focus"] [data-rf="notice"] [data-rf-msg] { font-size: 12.5px !important; line-height: 1.5 !important; }
/* actions become quiet outline buttons */
html[data-view="focus"] [data-rf="notice"] a,
html[data-view="focus"] [data-rf="notice"] button {
  background: transparent !important; color: #0F172A !important;
  border: 1px solid #CBD5E1 !important; border-radius: 5px !important;
  height: 26px !important; min-height: 26px !important; padding: 0 10px !important;
  font-size: 12px !important; font-weight: 500 !important; text-decoration: none !important;
  white-space: nowrap !important; flex: none !important;
}
html[data-view="focus"] [data-rf="notice"] button[aria-label] { border-color: transparent !important; padding: 0 6px !important; color: #64748B !important; }
html[data-view="focus"] [data-rf="notice"] a:hover,
html[data-view="focus"] [data-rf="notice"] button:hover { background: #F1F5F9 !important; }
/* status label ("Needs attention") keeps its tone, smaller */
html[data-view="focus"] [data-rf="notice"] [data-rf-row] > span:first-child:not([data-rf-msg]) {
  color: var(--rf-tone) !important; font-size: 12px !important; white-space: nowrap !important; flex: none !important;
}
html[data-view="focus"] [data-rf="notice"]:not([data-open]) [data-rf-row] { padding-top: 7px !important; padding-bottom: 7px !important; }

/* Secondary text tucked away in focus view */
html[data-view="focus"] [data-rf="caption"],
html[data-view="focus"] [data-rf="helper"],
html[data-view="focus"] [data-rf="footnote"],
html[data-view="focus"] [data-rf="sample"],
html[data-view="focus"] [data-rf="note"],
html[data-view="focus"] [data-rf="email"] { display: none !important; }
html[data-view="focus"] [data-rf-title] { cursor: help; }
