/* Approved component owner: real-home-actions; scope: real theme7. */
body[data-theme="7"] .tgl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
body[data-theme="7"] .mb,
body[data-theme="7"] .mini,
body[data-theme="7"] .br,
body[data-theme="7"] .rb { min-width: 0; border: 1px solid var(--divider); background: var(--surface); color: var(--text); border-radius: var(--radius); min-height: 43px; padding: 9px 11px; font-size: 13px; font-weight: 600; box-shadow: none; }
body[data-theme="7"] .mb.a,
body[data-theme="7"] .rb.a { background: var(--surface-selected); color: var(--main); border-color: var(--field-border); }
body[data-theme="7"] .mb:active,
body[data-theme="7"] .mini:active,
body[data-theme="7"] .br:active,
body[data-theme="7"] .rb:active { opacity: .8; }
body[data-theme="7"] .goal-btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 8px 4px; min-height: 40px; font-size: 12px; width: 100%; }
body[data-theme="7"] .search-box { margin: 14px 0 12px; }
body[data-theme="7"] .search-box input { width: 100%; min-width: 0; min-height: 45px; background: var(--surface); border: 1px solid var(--field-border); color: var(--text); border-radius: var(--radius); padding: 10px 13px; font-size: 14px; }
body[data-theme="7"] .search-box input::placeholder { color: var(--muted); }
body[data-theme="7"] .range-row { display: flex; gap: 5px; align-items: stretch; min-width: 0; width: 100%; margin: 12px 0; }
body[data-theme="7"] .rb { flex: 1 1 0; padding: 8px 2px; min-height: 42px; font-size: 12px; white-space: nowrap; }
body[data-theme="7"] .date-range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body[data-theme="7"] .date-range-field input { min-width: 0; width: 100%; color: var(--text); background: var(--surface); border: 1px solid var(--field-border); border-radius: var(--radius); min-height: 44px; }
body[data-theme="7"] .date-range-lbl { font-size: 12px; color: var(--muted); }
body[data-theme="7"] #biz-withdraw-wrap .br { background: var(--main); color: var(--on-main); border-color: var(--main); }
@media (max-width:420px) {
body[data-theme="7"] .rb { font-size: 11px; }
body[data-theme="7"] .mb { padding: 9px 6px; font-size: 12px; }
body[data-theme="7"] .goal-btn { font-size: 11px; }
}

/* v1091 compact fixes — theme 7 only; retain functional DOM/handlers. */

/* Both debt filters have one outline, radius and touch target (inline old style neutralized). */
body[data-theme="7"] #v-debts #debts-filter-wrap {
 padding:0 !important;margin:12px 0 !important;
 background:transparent;border:0;box-shadow:none;
}
body[data-theme="7"] #v-debts #debts-filter-wrap > div {
 grid-template-columns:minmax(0,88px) minmax(0,1fr) !important;
 align-items:center;gap:8px;
}
body[data-theme="7"] #v-debts #debt-status-filter,
body[data-theme="7"] #v-debts #search-debt {
 box-sizing:border-box;width:100% !important;
 min-width:0 !important;height:48px !important;min-height:48px !important;
 margin:0 !important;padding:0 12px !important;
 border:1px solid var(--field-border) !important;border-radius:12px !important;
 background:var(--surface) !important;color:var(--text) !important;
 -webkit-text-fill-color:var(--text) !important;
 box-shadow:none !important;font-size:13px !important;font-weight:500 !important;
 line-height:1.3 !important;
}
body[data-theme="7"] #v-debts #search-debt::placeholder {color:var(--muted);}
body[data-theme="7"]:has(#bp.a) #v-debts #btn-calc-open {display:none !important;}

/* Theme 7: compact tool launcher on the existing Work screen. */
body[data-theme="7"] #v-debts .kit-work-tools { width:100%; min-width:0; }
body[data-theme="7"] #v-debts .kit-work-tools-toggle {
  width:100%; min-height:49px; padding:11px 14px;
  display:flex; gap:11px; align-items:center;
  border:1px solid var(--field-border); border-radius:var(--radius);
  background:var(--surface); color:var(--text); box-shadow:none;
  text-align:left; font-size:14px; font-weight:650;
}
body[data-theme="7"] #v-debts .kit-work-tools-symbol {flex:none; color:var(--muted);}
body[data-theme="7"] #v-debts .kit-work-tools-chevron {
  flex:none; margin-left:auto; color:var(--main);
  transition:transform .16s ease;
}
body[data-theme="7"] #v-debts .kit-work-tools-toggle[aria-expanded="true"] .kit-work-tools-chevron { transform:rotate(90deg); }
body[data-theme="7"] #v-debts #kit-work-tools-grid { display:none !important; }
body[data-theme="7"] #v-debts #kit-work-tools-grid.is-open {
  display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:9px !important; width:100%; margin-top:9px;
}
body[data-theme="7"] #v-debts #kit-work-tools-grid .mini {
  width:100%; min-height:48px; margin:0; font-size:13px;
}
body[data-theme="7"]:has(#bp.a) #v-debts #kit-work-tools { display:none; }
/* Pre-existing themes retain their original always-visible buttons. */
body:not([data-theme="7"]) #v-debts .kit-work-tools-toggle { display:none !important; }
@media (prefers-reduced-motion:reduce) {
  body[data-theme="7"] #v-debts .kit-work-tools-chevron { transition:none; }
}
