/* Home-only presentation. Model, speech and calendar availability stay in the
   capability-aware Home/Assistant controllers; CSS does not simulate features. */

#rf-home.rf-home {
  display:block;
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  width:100%;
  padding:50px clamp(22px,4vw,54px) 64px;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-gutter:stable;
  background:var(--canvas,#101112);
  color:var(--text,#e7e8ec);
}
#rf-home > * {
  width:100%;
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}
#rf-home .rf-home-header { margin-bottom:25px; }
#rf-home .rf-home-greeting {
  margin:0;
  color:var(--text,#e7e8ec);
  font-size:29px;
  line-height:1.3;
  font-weight:600;
  letter-spacing:-.85px;
}
#rf-home .rf-home-header > p {
  margin:8px 0 0;
  color:var(--muted,#a7a9b2);
  font-size:12px;
  line-height:1.6;
}

#rf-home .rf-home-composer {
  display:flex;
  position:relative;
  flex-direction:column;
  gap:8px;
  min-width:0;
  min-height:145px;
  margin-top:0;
  margin-bottom:0;
  padding:16px 16px 12px;
  border:1px solid var(--border-strong,#40434b);
  border-radius:10px;
  background:var(--surface,#17181a);
  box-shadow:0 2px 7px #00000008;
}
#rf-home .rf-home-composer:focus-within {
  border-color:var(--rf-theme-link,#82b1ff);
}
#rf-home .rf-home-prompt {
  display:block;
  flex:1 0 76px;
  width:100%;
  min-width:0;
  min-height:76px;
  height:76px;
  max-height:260px;
  margin:0;
  padding:0;
  resize:vertical;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--text,#e7e8ec);
  font-family:inherit;
  font-size:13px;
  line-height:1.7;
  box-shadow:none;
  overflow-y:auto;
}
#rf-home .rf-home-prompt::placeholder { color:var(--muted,#a7a9b2); opacity:1; }
#rf-home .rf-home-prompt:focus-visible { outline:none; }
#rf-home .rf-home-composer-tools {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  min-width:0;
  min-height:29px;
  margin-top:auto;
}
#rf-home .rf-home-composer-tools > :is(button,.btn) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:29px;
  min-height:29px;
  margin:0;
  padding:5px 7px;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  color:var(--muted,#a7a9b2);
  font-size:11.5px;
  font-weight:450;
  line-height:1.3;
  white-space:nowrap;
  box-shadow:none;
}
#rf-home .rf-home-composer-tools > :is(button,.btn):hover {
  background:var(--rf-theme-hover,#222428);
  color:var(--text,#e7e8ec);
}
#rf-home .rf-home-composer-tools > [type="submit"] {
  min-width:30px;
  background:var(--rf-accent,#266df0);
  color:var(--rf-accent-contrast,#fff);
}
#rf-home .rf-home-composer-tools > [type="submit"]:hover {
  background:var(--rf-accent,#266df0);
  color:var(--rf-accent-contrast,#fff);
  filter:brightness(1.08);
}
#rf-home .rf-home-composer-tools > [aria-pressed="true"] {
  background:var(--red-soft,#48242a);
  color:var(--red,#ffc0c8);
}
#rf-home .rf-home-hint {
  min-height:15px;
  margin-top:7px;
  margin-bottom:0;
  color:var(--muted,#a7a9b2);
  font-size:10.5px;
  line-height:1.55;
  overflow-wrap:anywhere;
}
#rf-home .rf-home-hint:empty { min-height:0; margin-top:0; }
#rf-home .rf-home-hint:is(.error,[data-state="error"]) { color:var(--red,#ffc0c8); }
#rf-home .rf-home-prep-row {
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
  margin-bottom:42px;
}
#rf-home .rf-home-prep-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:31px;
  max-width:100%;
  padding:6px 10px;
  border:1px solid var(--border,#2b2d32);
  border-radius:6px;
  background:transparent;
  color:var(--muted,#a7a9b2);
  font-size:11px;
  font-weight:450;
  line-height:1.4;
  text-align:left;
}
#rf-home .rf-home-prep-button:hover {
  background:var(--surface,#17181a);
  border-color:var(--border-strong,#40434b);
  color:var(--text,#e7e8ec);
}

/* Agenda and tasks follow each other, instead of dashboard card columns. */
#rf-home .rf-home-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:36px;
  min-width:0;
  padding:0;
}
#rf-home :is(.rf-home-agenda,.rf-home-tasks) {
  position:relative;
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#rf-home :is(.rf-home-agenda,.rf-home-tasks) > :is(header,.rf-home-section-header) {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
#rf-home :is(.rf-home-agenda,.rf-home-tasks) :is(h2,h3) {
  margin:0;
  color:var(--text,#e7e8ec);
  font-size:13px;
  line-height:1.45;
  font-weight:600;
  letter-spacing:-.12px;
}
#rf-home .rf-home-agenda-toolbar {
  display:flex;
  position:relative;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  min-height:32px;
  margin-bottom:8px;
}
#rf-home .rf-home-agenda-toolbar > div {
  display:flex;
  align-items:center;
  gap:4px;
}
#rf-home .rf-home-agenda-date,
#rf-home .rf-home-agenda-toolbar .icon-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:28px;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  color:var(--muted,#a7a9b2);
  font-size:11px;
  line-height:1.4;
}
#rf-home .rf-home-agenda-date { padding:4px 7px; }
#rf-home .rf-home-agenda-toolbar .icon-btn { min-width:28px; padding:4px; }
#rf-home :is(.rf-home-agenda-date,.rf-home-agenda-toolbar .icon-btn):hover {
  background:var(--rf-theme-hover,#222428);
  color:var(--text,#e7e8ec);
}
#rf-home .rf-home-meeting-row {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  min-width:0;
  min-height:59px;
  padding:13px 9px;
  border:0;
  border-bottom:1px solid var(--border,#2b2d32);
  border-radius:5px;
  background:transparent;
  color:var(--text,#e7e8ec);
  font-size:12px;
  line-height:1.5;
  text-align:left;
}
#rf-home .rf-home-meeting-row:hover { background:var(--surface,#17181a); text-decoration:none; }
#rf-home .rf-home-meeting-open {
  display:flex;
  align-items:center;
  gap:15px;
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text,#e7e8ec);
  text-align:left;
  line-height:1.5;
}
#rf-home .rf-home-meeting-open > span { flex:1; min-width:0; }
#rf-home .rf-home-meeting-open > svg { flex-shrink:0; color:var(--muted,#a7a9b2); }
#rf-home .rf-home-meeting-row > time,
#rf-home .rf-home-meeting-open > time,
#rf-home .rf-home-meeting-time {
  flex:0 0 70px;
  color:var(--muted,#a7a9b2);
  font-size:11px;
  line-height:1.5;
}
#rf-home .rf-home-meeting-row > :is(div,.grow) { min-width:0; }
#rf-home .rf-home-meeting-row :is(strong,b) { font-size:12px; font-weight:500; }
#rf-home .rf-home-meeting-row :is(small,p) {
  display:block;
  margin:3px 0 0;
  color:var(--muted,#a7a9b2);
  font-size:10.5px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
#rf-home .rf-home-meeting-detail { padding-left:85px; color:var(--muted,#a7a9b2); font-size:11px; }
#rf-home .rf-home-task-row {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:10px 9px;
  border-bottom:1px solid var(--border,#2b2d32);
  color:var(--text,#e7e8ec);
  font-size:12px;
  line-height:1.5;
}
#rf-home .rf-home-task-row > input[type="checkbox"] { flex:0 0 15px; margin:0; }
#rf-home .rf-home-task-row > :is(button,a,div) { min-width:0; }
#rf-home .rf-home-task-row > div { flex:1; }
#rf-home .rf-home-task-row strong { font-weight:500; }
#rf-home .rf-home-task-row small { display:block; margin-top:3px; }
#rf-home .rf-home-task-title {
  display:inline;
  max-width:100%;
  margin:0;
  padding:0;
  border:0;
  border-radius:2px;
  background:transparent;
  color:inherit;
  font:inherit;
  line-height:inherit;
  text-align:left;
  white-space:normal;
  overflow-wrap:anywhere;
  box-shadow:none;
  cursor:pointer;
}
#rf-home .rf-home-task-title:hover {
  background:transparent;
  color:var(--rf-theme-link,#82b1ff);
  text-decoration:underline;
  text-underline-offset:2px;
}
#rf-home .rf-home-task-title:focus-visible {
  outline:2px solid var(--rf-theme-link,#82b1ff);
  outline-offset:3px;
}
#rf-home .rf-home-task-row > button {
  flex:1;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text,#e7e8ec);
  text-align:left;
  font-size:12px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
#rf-home .rf-home-task-row :is(time,small) { color:var(--muted,#a7a9b2); font-size:10.5px; }
#rf-home .rf-home-task-row:is(.completed,[data-completed="true"]) > :is(button,a) { color:var(--muted,#a7a9b2); text-decoration:line-through; }
#rf-home .rf-home-empty {
  margin:0;
  padding:23px 9px;
  border-top:1px solid var(--border,#2b2d32);
  color:var(--muted,#a7a9b2);
  font-size:11.5px;
  line-height:1.65;
}
#rf-home .rf-home-empty p { margin:0 0 8px; }
#rf-home .rf-home-empty a { color:var(--rf-theme-link,#82b1ff); }

/* Every popover stays attached to its triggering Home control. */
#rf-home :is(.rf-home-menu,.rf-home-auto-menu,.rf-home-slash-menu) {
  position:absolute;
  z-index:65;
  top:calc(100% + 6px);
  right:0;
  min-width:210px;
  max-width:min(340px,100%);
  max-height:280px;
  padding:5px;
  overflow-y:auto;
  border:1px solid var(--border-strong,#40434b);
  border-radius:7px;
  background:var(--rf-theme-raised,#202226);
  color:var(--text,#e7e8ec);
  box-shadow:var(--rf-theme-shadow,0 12px 28px #00000040);
}
#rf-home :is(.rf-home-menu,.rf-home-auto-menu,.rf-home-slash-menu)[hidden] { display:none!important; }
#rf-home :is(.rf-home-menu,.rf-home-auto-menu,.rf-home-slash-menu) > :is(button,a) {
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:34px;
  padding:7px 9px;
  border:0;
  border-radius:4px;
  background:transparent;
  color:var(--text,#e7e8ec);
  font-size:11.5px;
  line-height:1.5;
  text-align:left;
  white-space:normal;
}
#rf-home :is(.rf-home-menu,.rf-home-auto-menu,.rf-home-slash-menu) > :is(button,a):hover {
  background:var(--rf-theme-hover,#222428);
  text-decoration:none;
}
#rf-home :is(.rf-home-menu,.rf-home-auto-menu,.rf-home-slash-menu) small {
  display:block;
  color:var(--muted,#a7a9b2);
  font-size:10px;
  line-height:1.5;
}
#rf-home :is(.rf-home-menu,.rf-home-auto-menu,.rf-home-slash-menu) > :is(p,.rf-home-menu-label) {
  display:block;
  margin:5px 0;
  padding:3px 9px;
  color:var(--muted,#a7a9b2);
  font-size:10.5px;
  line-height:1.5;
}
#rf-home .rf-home-menu > label {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:6px 9px;
  color:var(--text,#e7e8ec);
  font-size:11px;
  line-height:1.5;
}
#rf-home .rf-home-slash-menu > button { display:grid; grid-template-columns:minmax(0,1fr); gap:2px; }
#rf-home .rf-home-slash-menu > button > strong { font-size:11.5px; font-weight:550; }
#rf-home .rf-home-slash-menu > button.active { background:var(--rf-theme-selected,#292c32); }
#rf-home .rf-home-date-label { margin:0 0 6px; color:var(--muted,#a7a9b2); font-size:11px; }
#rf-home #rf-home-timezone { display:block; margin-top:7px; color:var(--muted,#a7a9b2); font-size:10px; }
#rf-home :is(button,select,input,a):focus-visible {
  outline:2px solid var(--rf-theme-link,#82b1ff);
  outline-offset:2px;
}
#rf-home button:disabled { opacity:.45; cursor:not-allowed; filter:none; }

@media (max-width:820px) {
  #rf-home.rf-home { padding:30px 24px 46px; }
  #rf-home .rf-home-greeting { font-size:25px; }
  #rf-home .rf-home-header { margin-bottom:21px; }
  #rf-home .rf-home-prep-row { margin-bottom:32px; }
  #rf-home .rf-home-grid { gap:28px; }
}
@media (max-width:600px) {
  #rf-home.rf-home { padding:25px 16px 40px; scrollbar-gutter:auto; }
  #rf-home .rf-home-greeting { font-size:23px; letter-spacing:-.6px; }
  #rf-home .rf-home-composer { min-height:145px; padding:13px 12px 10px; }
  #rf-home .rf-home-prompt { min-height:76px; font-size:16px; line-height:1.5; }
  #rf-home .rf-home-composer-tools > :is(button,.btn) { min-height:34px; min-width:34px; }
  #rf-home .rf-home-prep-button { min-height:36px; font-size:10.5px; }
  #rf-home .rf-home-agenda > .rf-home-section-header {
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
  #rf-home .rf-home-agenda-toolbar {
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:5px;
    margin-bottom:0;
  }
  #rf-home .rf-home-agenda-date { flex:0 1 auto; min-width:0; padding:0; }
  #rf-home .rf-home-agenda-date > input {
    width:132px;
    min-width:0;
    min-height:30px;
    padding:4px 7px;
    font-size:11px;
  }
  #rf-home .rf-home-meeting-row { gap:9px; padding:12px 3px; }
  #rf-home .rf-home-meeting-row > time,
  #rf-home .rf-home-meeting-open > time,
  #rf-home .rf-home-meeting-time { flex-basis:59px; font-size:10px; }
  #rf-home .rf-home-meeting-open { gap:9px; }
  #rf-home .rf-home-meeting-detail { padding-left:68px; }
  #rf-home .rf-home-task-row { padding:12px 3px; min-height:46px; }
  #rf-home .rf-home-agenda-date { max-width:100%; overflow-wrap:anywhere; }
  #rf-home :is(.rf-home-menu,.rf-home-auto-menu,.rf-home-slash-menu) { min-width:min(240px,100%); max-width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  #rf-home * { transition:none; animation:none; scroll-behavior:auto; }
}
