/* Alpha 11 additions: scoped controls; original theme.css and bottom navigation unchanged. */
.home-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.home-tools-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lang-picker,.mini-clock{display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid var(--line,#c8d5e5);border-radius:10px;font-size:12px}
.lang-picker select{border:0;background:transparent;color:inherit;max-width:125px;font:inherit}
.mini-clock{font-variant-numeric:tabular-nums;min-width:64px;justify-content:center}
.period-expanded{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.period-choice{border:1px solid var(--line,#c8d5e5);background:transparent;color:inherit;border-radius:10px;padding:10px 14px;cursor:pointer;font:inherit}
.period-choice.selected{outline:2px solid currentColor;outline-offset:-2px;font-weight:700}
.period-choice:focus-visible,.lang-picker select:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.chat-placeholder{margin-bottom:12px}
@media(max-width:520px){.period-choice{flex:1 1 28%;padding:10px 6px}.home-tools{align-items:stretch}}

/* Alpha 13: range dates; no palette or navigation changes */
.date-range-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.date-range-fields label{display:flex;flex-direction:column;gap:5px;font-size:13px}
.date-range-fields input{max-width:100%;min-width:0}
@media(max-width:480px){.date-range-fields{grid-template-columns:1fr}}

/* Alpha 30: group two existing-style home action buttons, preserve MENU/COLOR LOCK. */
.home-tools-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:520px){.home-tools-actions{width:100%}.home-tools-actions .white-btn{flex:1 1 145px}}

/* Keep wide trip tables scrollable inside their dashboard grid cell. */
.panels > .panel{min-width:0}

/* Alpha 66: home shortcuts are ALWAYS one compact three-column row. */
.home-tools-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  flex:1 1 600px;
  max-width:720px;
  min-width:0;
}
.home-tools-actions > .home-shortcut{
  width:100%;min-width:0;min-height:44px;
  display:flex;align-items:center;justify-content:center;
  gap:5px;padding:10px 8px;
  text-align:center;line-height:1.2;
  white-space:normal;overflow-wrap:anywhere;
}
.home-action-icon{flex:0 0 auto;font-size:18px;line-height:1;font-weight:750}
.home-action-label-short{display:none}
@media(max-width:880px){
  .home-tools-actions{width:100%;flex:1 1 100%;max-width:none}
}
@media(max-width:640px){
  .home-tools-actions{gap:6px}
  .home-tools-actions > .home-shortcut{
    flex-direction:column;gap:4px;min-height:52px;
    padding:7px 3px;font-size:clamp(11px,2.8vw,13px);
    border-radius:10px;
  }
  .home-action-label-long{display:none}
  .home-action-label-short{display:block}
  .home-action-icon{font-size:18px}
}
@media(max-width:360px){
  .home-tools-actions{gap:4px}
  .home-tools-actions > .home-shortcut{padding:6px 2px;font-size:11px;min-height:50px}
}
