/* KTS Research Desk - follows claude/05_Design_Rules.md */
:root {
  --navy: #0B1F3A;
  --gold: #F2C987;
  --brass: #C9A227;
  --cream: #EEF3F8;
  --bluegrey: #96AAC4;   /* secondary text on navy only */
  --white: #FFFFFF;
  --muted: #5B6B82;      /* secondary text on light */
  --border: #DCE3EC;
  --green: #1E7B4F;
  --red: #B23A3A;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--navy); }
.sr-only { position: absolute; left: -9999px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* Loading */
.center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.loading-emblem { width: 56px; height: 56px; opacity: .8; }

/* Login + set password */
.auth-screen {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 24px; background: var(--navy);
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--white); border-radius: 12px;
  padding: 32px; border-top: 3px solid var(--brass);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.auth-brand img { width: 44px; height: 44px; background: var(--navy); border-radius: 50%; padding: 4px; }
.auth-brand span { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; }
.auth-card h1 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 34px; margin: 0 0 16px; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.auth-card input {
  height: 50px; border: 1px solid var(--border); border-radius: 8px; padding: 0 14px;
  font: inherit; font-weight: 400; font-size: 17px; color: var(--navy);
}
.hint { color: var(--muted); font-size: 14px; margin: -8px 0 16px; }
.form-msg { min-height: 22px; font-size: 15px; margin: 0 0 10px; }
.form-msg.error { color: var(--red); }
.form-msg.ok { color: var(--green); }
.auth-foot { color: var(--bluegrey); font-size: 14px; margin-top: 20px; text-align: center; }

.btn-primary {
  width: 100%; height: 52px; border: 0; border-radius: 10px; background: var(--navy);
  color: var(--cream); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
}
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-link {
  display: block; margin: 14px auto 0; background: none; border: 0; color: var(--navy);
  font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; min-height: 44px;
}
.btn-ghost {
  height: 40px; padding: 0 14px; border: 1px solid var(--bluegrey); border-radius: 8px;
  background: transparent; color: var(--cream); font: inherit; font-size: 14px; cursor: pointer;
}

/* Top bar */
.topbar { background: var(--navy); border-bottom: 2px solid var(--brass); }
.topbar-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px; min-height: 72px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: var(--cream); }
.menu { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.menu a {
  color: var(--bluegrey); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 10px 16px; border-radius: 8px;
}
.menu a:hover { color: var(--white); }
.menu a.active { background: var(--gold); color: var(--navy); font-weight: 600; }
.menu a.soon { opacity: .7; }
.user { display: flex; align-items: center; gap: 10px; color: var(--cream); font-size: 15px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--cream); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}

/* Page */
.page { max-width: 1320px; margin: 0 auto; padding: 32px 24px 64px; }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.title-row h1 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 44px; line-height: 1.1; margin: 0; }
.title-row p { margin: 0; font-size: 14px; }
.notice { background: var(--white); border: 1px solid var(--red); border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }

.search-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 20px; }
.search-box {
  flex: 1 1 420px; display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; height: 60px;
}
.search-box input { flex: 1; border: 0; outline: none; font: inherit; font-size: 18px; color: var(--navy); background: transparent; height: 100%; }
.filter { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.filter select {
  height: 60px; min-width: 150px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--white); font: inherit; font-size: 16px; color: var(--navy); padding: 0 12px;
}

.card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 15px; }
.table-wrap { overflow-x: auto; }
table.funds { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 720px; }
table.funds th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 12px 20px; }
table.funds td { padding: 14px 20px; border-top: 1px solid var(--border); vertical-align: top; }
table.funds .num { text-align: right; }
table.funds tbody tr:hover { background: #F6F9FC; }
.fund-name { font-weight: 600; font-size: 16px; }
.fund-amc { font-size: 13px; color: var(--muted); margin-top: 3px; }
.pill { display: inline-block; border: 1px solid var(--border); border-radius: 8px; padding: 3px 10px; font-size: 13px; }
.pill.warn { border-color: var(--red); color: var(--red); }

/* Fund list (Week 2) */
.neg { color: var(--red); }
table.funds tr.click { cursor: pointer; }
table.funds a.fund-name { text-decoration: none; color: var(--navy); }
table.funds a.fund-name:hover { text-decoration: underline; }
table.funds .fund-amc .pill { font-size: 12px; padding: 1px 8px; }

/* Fund page */
.back-link { display: inline-block; margin-bottom: 16px; font-size: 15px; text-decoration: none; min-height: 44px; line-height: 44px; }
.back-link:hover { text-decoration: underline; }
#fund-body > * + * { margin-top: 18px; }
.fund-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: flex-start; }
.fund-head h1 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 40px; line-height: 1.12; margin: 0 0 6px; max-width: 820px; }
.fund-head p { margin: 0; }
.head-right { text-align: right; }
.nav-big { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fund-head > div:first-child { flex: 1 1 480px; }
.head-btns { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.btn-small, .btn-icon {
  height: 40px; border: 1px solid var(--border); border-radius: 8px; background: var(--white);
  font: inherit; font-size: 14px; color: var(--navy); cursor: pointer; padding: 0 14px;
}
.btn-icon { width: 40px; padding: 0; font-size: 17px; }
.btn-small:disabled, .btn-icon:disabled { opacity: .45; cursor: not-allowed; }
.card.pad { padding: 20px 22px; }
.card h2 { font-size: 19px; margin: 0 0 12px; font-weight: 700; }
.flags { margin: 0 0 8px; padding-left: 20px; }
.flags li { margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.fact { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.fact-v { font-weight: 600; margin-top: 4px; }
.info {
  display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px;
  border-radius: 50%; border: 1px solid var(--muted); color: var(--muted); font-size: 11px; font-weight: 700;
  font-style: normal; cursor: help; vertical-align: 2px; margin-left: 4px;
}
.chart-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.chart-top h2 { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--white); font: inherit; font-size: 14px; padding: 0 14px; height: 40px; cursor: pointer; color: var(--navy); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--navy); color: var(--cream); font-weight: 600; }
.chart-sub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; min-height: 40px; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.chart { position: relative; min-height: 300px; }
.chart-area { position: relative; }
.chart svg { display: block; touch-action: pan-y; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: 'DM Sans', sans-serif; }
.chart .line-f { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.chart .line-b { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot-f { fill: var(--navy); stroke: var(--white); stroke-width: 2; }
.chart .dot-b { fill: var(--brass); stroke: var(--white); stroke-width: 2; }
.tip {
  position: absolute; top: 8px; width: 170px; background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font-size: 14px; box-shadow: 0 4px 14px rgba(11,31,58,.12); pointer-events: none;
}
.legend { display: flex; gap: 18px; font-size: 14px; margin-bottom: 6px; }
.legend .sw { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend .sw.f { background: var(--navy); }
.legend .sw.b { background: var(--brass); }
table.grid { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.grid th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 10px; white-space: nowrap; }
table.grid td { padding: 10px; border-top: 1px solid var(--border); white-space: nowrap; }
table.grid .num { text-align: right; }
table.grid tr.strong td { font-weight: 700; }
.band { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 8px; border: 1px solid var(--border); }
.band.top { border-color: var(--green); color: var(--green); }
.band.bottom { border-color: var(--red); color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 18px; }
.stat-v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2px 0; }
.btn-link.left { margin: 10px 0 0; padding: 0; }
#more { margin-top: 10px; }
.coming { border-style: dashed; }
.as-on { line-height: 1.6; }

@media (max-width: 860px) {
  .two { grid-template-columns: 1fr; }
  .head-right { text-align: left; }
  .fund-head h1 { font-size: 30px; }
}

/* Week 3 tools */
.h3 { font-size: 16px; margin: 0 0 8px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr 56px; gap: 10px; align-items: center; font-size: 14px; padding: 5px 0; }
.bar-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { background: var(--border); height: 8px; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
ul.tight { margin: 4px 0 0; padding-left: 18px; }
ul.tight li { margin: 2px 0; }
ul.plain.big { font-size: 16px; color: var(--navy); }
ul.plain.big li { padding: 8px 0; }
.nowrap { white-space: nowrap; }
.objective { margin: 12px 0 0; font-size: 15px; line-height: 1.5; max-width: 980px; }
a.btn-small { display: inline-flex; align-items: center; text-decoration: none; }
.pad { padding: 16px 20px; }
.pad6 { padding: 6px 10px; }
#tool-page > * + * { margin-top: 18px; }
.btn-small.on { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-primary.narrow { width: auto; padding: 0 22px; height: 48px; }
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: var(--cream);
  padding: 12px 20px; border-radius: 10px; font-size: 15px; z-index: 50; max-width: 90vw;
}
dialog#note-dialog { border: 1px solid var(--border); border-radius: 12px; padding: 0; width: min(640px, 94vw); color: var(--navy); }
dialog#note-dialog::backdrop { background: rgba(11,31,58,.45); }
.note-form { padding: 22px 24px; }
.note-form h2 { font-family: 'Cormorant Garamond', serif; font-size: 28px; margin: 0; }
.note-form h3 { font-size: 15px; margin: 18px 0 6px; }
.note-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; margin-top: 12px; }
.note-form label.check { flex-direction: row; font-weight: 400; margin-top: 4px; }
.note-form input:not([type=checkbox]), .note-form select, .note-form textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; font-weight: 400; color: var(--navy); background: var(--white);
}
.note-form input:not([type=checkbox]), .note-form select { height: 46px; }
.note-form fieldset { border: 1px solid var(--border); border-radius: 10px; margin: 14px 0 0; padding: 8px 14px 12px; }
.note-form legend { font-weight: 600; font-size: 15px; padding: 0 4px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.row3 label { min-width: 0; }
.row3 select { width: 100%; min-width: 0; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
ul.plain { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
ul.plain li { padding: 4px 0; border-top: 1px solid var(--border); }

.picker { position: relative; max-width: 640px; }
.picker input { width: 100%; height: 54px; border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--navy); background: var(--white); }
.pick-list { position: absolute; z-index: 20; left: 0; right: 0; top: 58px; margin: 0; padding: 4px; list-style: none; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(11,31,58,.12); max-height: 360px; overflow: auto; }
.pick-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--navy); border-radius: 8px; cursor: pointer; }
.pick-list button:hover, .pick-list button:focus { background: var(--cream); }

table.cmp th.cmp-col { vertical-align: top; white-space: normal; min-width: 190px; font-size: 14px; color: var(--navy); }
table.cmp th[scope=row] { color: var(--navy); font-weight: 500; font-size: 14px; white-space: normal; min-width: 180px; }
table.cmp td { white-space: normal; }
table.cmp td.best { font-weight: 700; }
table.cmp tr.sec td { background: var(--cream); font-weight: 700; font-size: 13px; color: var(--muted); padding: 6px 10px; }
.sw.big { width: 22px; height: 4px; display: block; margin-bottom: 6px; }
.tip .sw { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.chart .tip { width: 230px; }

.sip-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-top: 14px; }
.sip-form input { height: 48px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--navy); min-width: 180px; }

/* Client summary (A4) */
.pdf-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.pdf-tools .back-link { margin: 0 12px 0 0; }
.pdf-tools input { height: 48px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; font: inherit; min-width: 260px; }
.pdf-tools p { flex-basis: 100%; margin: 0; }
.a4 { background: var(--white); width: 210mm; min-height: 297mm; margin: 0 auto; padding: 16mm 16mm 12mm; border: 1px solid var(--border); font-size: 13px; display: flex; flex-direction: column; }
.a4-head { display: flex; align-items: center; gap: 12px; background: var(--navy); color: var(--cream); margin: -16mm -16mm 8mm; padding: 8mm 16mm; border-bottom: 3px solid var(--brass); }
.a4-head img { width: 40px; height: 40px; }
.a4-brand { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; }
.a4-sub { font-size: 12px; color: var(--bluegrey); }
.a4-date { margin-left: auto; text-align: right; font-size: 12px; }
.a4-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; margin: 0 0 4px; line-height: 1.15; }
.a4-meta { color: var(--muted); margin: 0 0 12px; }
.a4-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.a4-facts div { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.a4-facts span, .a4-facts small { color: var(--muted); font-size: 11px; }
.a4 h2 { font-size: 15px; margin: 14px 0 6px; }
.a4-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.a4-t th { text-align: right; color: var(--muted); font-size: 11px; font-weight: 600; padding: 5px 8px; border-bottom: 1px solid var(--border); }
.a4-t td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.a4-t td:first-child, .a4-t th:first-child { text-align: left; }
.a4-t tr.strong td { font-weight: 700; }
.a4-note { color: var(--muted); font-size: 11px; margin: 4px 0 0; }
.a4-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.a4-two p { margin: 0; line-height: 1.5; }
.a4-foot { margin-top: auto; padding-top: 10px; border-top: 2px solid var(--brass); font-size: 11px; line-height: 1.5; }
.a4-foot p { margin: 4px 0; }
.a4-src { color: var(--muted); }

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .topbar, .no-print, #toast { display: none !important; }
  .page { padding: 0; max-width: none; }
  .a4 { border: 0; margin: 0; width: 210mm; min-height: 297mm; }
  .a4-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #tool-page > * + * { margin-top: 0; }
}
@media screen and (max-width: 860px) {
  .row3 { grid-template-columns: 1fr; }
  .a4 { width: 100%; min-height: 0; padding: 16px; }
  .a4-head { margin: -16px -16px 16px; padding: 14px 16px; }
  .a4-facts { grid-template-columns: 1fr 1fr; }
  .a4-two { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fact { padding: 10px 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdf-tools input, .sip-form input, .sip-form .filter { min-width: 0; width: 100%; }
  .sip-form .filter, .pdf-tools .filter { flex: 1 1 100%; }
  .a4 { overflow-x: auto; }
  .head-btns .btn-small { padding: 0 10px; }
  table.cmp th[scope=row] { min-width: 120px; position: sticky; left: 0; background: var(--white); z-index: 1; box-shadow: 1px 0 0 var(--border); }
  table.cmp th.cmp-col { min-width: 150px; }
  table.cmp tr.sec td { position: sticky; left: 0; }
  .topbar-inner { padding: 10px 16px; }
  .user span#user-name { display: none; }
  .page { padding: 20px 16px 48px; }
  .title-row h1 { font-size: 34px; }
}

.hi52 { margin-top: 6px; text-align: right; line-height: 1.5; }
@media (max-width: 700px) { .hi52 { text-align: left; } }
.btn-small.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* cap split */
.capbar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; margin: 6px 0 8px; background: var(--border); }
.capbar i { display: block; min-width: 3px; }
.caplegend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.caplegend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: baseline; }
.cap-large { background: #2B63B5; } .cap-mid { background: #C9861A; } .cap-small { background: #8A5CC2; } .cap-foreign { background: #1F8A70; } .cap-unlisted { background: #9AA5B4; }
i.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: baseline; }
i.sw.big { width: 22px; height: 4px; display: block; margin-bottom: 6px; }

/* riskometer label: text always shown, colour only adds to it */
.risk-pill { display: inline-block; font-weight: 600; font-size: 15px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; }
.risk-pill::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: #9AA5B4; }
.risk-low::before { background: #1F8A70; } .risk-low-to-moderate::before { background: #6FA83A; } .risk-moderate::before { background: #C9A21A; }
.risk-moderately-high::before { background: #C9861A; } .risk-high::before { background: #C25A1A; } .risk-very-high::before { background: #B3261E; }

/* category peers page */
table.peers tr.me td { background: #FFF6E0; }
table.peers td.sel, table.peers th.sel { font-weight: 700; }
table.peers tr.sep td { background: var(--bg, #F4F6FA); padding-top: 10px; }
a.rank-link { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

/* fund picker: search + Regular/Direct switch */
.picker-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.picker-row input { flex: 1 1 260px; }
label.filter.grow { flex: 1 1 260px; }
label.filter.grow input { width: 100%; }
