/* Ward changes: quiet surfaces, clear type, and comfortable touch targets. */
#view-moves,.moves-dialog {
  --moves-accent:#246f69;
  --moves-muted:#5e7180;
  --moves-ink:#203e4c;
  --moves-line:#e2e9ed;
  color:var(--moves-ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
#view-moves .eyebrow,.moves-dialog .eyebrow {color:#527d7b;font-size:10px;font-weight:650;letter-spacing:.15em;line-height:1.5}
.moves-hero {display:flex;align-items:center;justify-content:space-between;gap:32px;margin:16px 0 28px}
#view-moves .moves-hero h2 {font-size:clamp(24px,2.5vw,32px);font-weight:650;line-height:1.18;letter-spacing:-.04em;margin:10px 0 12px;text-wrap:balance}
.moves-hero p,.moves-trend p,.moves-list-heading p {color:var(--moves-muted);font-size:14px;line-height:1.65;margin:6px 0;text-wrap:pretty}
.moves-hero p {max-width:490px}
#view-moves button,.moves-dialog button {font-family:inherit;min-height:44px;font-size:13px;font-weight:600;letter-spacing:-.01em;transition:background .15s,box-shadow .15s,border-color .15s}
#view-moves .primary-btn,.moves-dialog .primary-btn {background:#246f69;color:#fff;border:1px solid #246f69;border-radius:12px;padding:12px 18px;box-shadow:0 3px 8px #246f6917;white-space:nowrap}
#view-moves .primary-btn:hover,.moves-dialog .primary-btn:hover {background:#1d5e59;border-color:#1d5e59}
#view-moves .primary-btn:disabled,.moves-dialog .primary-btn:disabled {opacity:.5;cursor:default;box-shadow:none}
#view-moves .small-action-btn,.moves-dialog .small-action-btn {background:#fff;color:#486472;border:1px solid var(--moves-line);border-radius:10px;padding:8px 14px;box-shadow:none;white-space:nowrap}
#view-moves .small-action-btn:hover,.moves-dialog .small-action-btn:hover {background:#f3f7f8;border-color:#bbcfd1}
#view-moves :is(button,input,select):focus-visible,.moves-dialog :is(button,input,select):focus-visible {outline:3px solid #7bb9b4;outline-offset:3px}
.moves-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
#view-moves .moves-metrics article {position:relative;background:#fff;border:1px solid #e2e9ed;border-radius:18px;padding:22px;box-shadow:0 3px 12px #203e4c04;min-width:0}
.moves-metric-icon {display:grid;place-items:center;background:#edf6f2;color:#367f73;border-radius:11px;width:32px;height:32px;font-size:21px;line-height:1}
.moves-metric-icon.departure {background:#f0f1f9;color:#737daa}
.moves-metrics article:nth-child(3) .moves-metric-icon {background:#fbf4e8;color:#957539}
.moves-metrics p {margin:17px 0 9px;font-weight:550;font-size:13px;line-height:1.4;color:#4f6674;min-height:1.4em}
.moves-metrics strong {display:block;font-size:38px;line-height:1.1;font-weight:600;letter-spacing:-.055em;font-variant-numeric:tabular-nums;color:#203e4c}
.moves-metrics small {display:block;color:var(--moves-muted);margin-top:10px;font-size:11px;line-height:1.5}
#view-moves .panel {background:#fff;border:1px solid #e2e9ed;border-radius:20px;box-shadow:0 4px 20px #203e4c04}
.moves-trend {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:24px 32px;padding:28px;margin-bottom:24px}
#view-moves .moves-trend h3,#view-moves .moves-list-heading h3 {font-size:19px;font-weight:650;letter-spacing:-.025em;line-height:1.3;margin:0 0 8px;color:#203e4c}
.moves-trend p {max-width:280px;font-size:13px}
.moves-legend {display:flex;gap:18px;font-size:12px;font-weight:500;margin-top:22px;color:#327e73}
.moves-legend span+span {color:#707ba7}
.moves-chart {min-width:0;display:flex;justify-content:space-around;gap:10px;align-items:end;min-height:150px;padding-top:6px}
.moves-month {min-width:0;text-align:center;flex:1;font-size:11px;font-weight:500;color:var(--moves-muted);font-variant-numeric:tabular-nums}
.moves-bars {display:flex;justify-content:center;align-items:end;gap:6px;height:125px;margin-bottom:12px;border-bottom:1px solid #e2e9ed}
.moves-bars>div {width:23px;max-width:40%;display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%}
.moves-bars b {font-size:11px;font-weight:500;color:#4f6674;margin-bottom:6px}
.moves-bars i {display:block;width:100%;min-height:2px;border-radius:5px 5px 0 0}
.moves-bar-in {background:linear-gradient(180deg,#5da79a,#3f8e81)}
.moves-bar-out {background:linear-gradient(180deg,#a6afce,#8793ba)}
.moves-chart-note {grid-column:1/-1;color:var(--moves-muted);font-size:11px;line-height:1.65;border-top:1px solid #edf1f4;padding-top:16px}
.moves-workspace {padding:26px 28px}
.moves-toolbar {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:28px}
.moves-segments {display:flex;background:#f0f4f5;padding:4px;border-radius:12px;gap:4px;border:1px solid #e8eef0}
#view-moves .moves-segments button {border:0;background:transparent;border-radius:8px;min-height:38px;padding:8px 22px;color:#5e7180;font-size:13px}
#view-moves .moves-segments button[aria-pressed=true] {background:#fff;color:#246f69;box-shadow:0 1px 4px #23384d14}
.moves-list-heading p {font-size:13px}
.moves-filters {display:flex;align-items:center;gap:12px;margin:22px 0 10px}
.moves-filters>input {flex:1;min-width:100px}
#view-moves .moves-filters :is(input[type=search],select),.moves-dialog-body label :is(input,select) {font-family:inherit;font-size:14px;line-height:1.4;background:#f8fafb;color:#294652;border:1px solid #dfe7eb;border-radius:11px;min-height:46px;padding:11px 13px;box-shadow:none}
.moves-filters input::placeholder {color:#6b7d89;opacity:1}
.moves-filters>label {display:flex;align-items:center;gap:8px;font-size:12px;color:#526b78;white-space:nowrap;min-height:44px}
.moves-filters input[type=checkbox],.moves-select input {width:18px;height:18px;accent-color:#287d79;flex-shrink:0;margin:0}
.moves-person {display:flex;align-items:center;gap:16px;padding:22px 2px;border-bottom:1px solid #edf1f4}
.moves-person:last-child {border-bottom:0}
.moves-avatar {width:42px;height:42px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#edf4f4;color:#4e7a7a;font-size:12px;font-weight:600;letter-spacing:.02em;border:1px solid #e4eeee}
.moves-person-copy {flex:1;min-width:0;overflow-wrap:anywhere}
.moves-person-copy strong {display:block;font-size:14px;font-weight:600;letter-spacing:-.015em;line-height:1.4}
.moves-person-copy small {display:block;color:var(--moves-muted);font-size:12px;line-height:1.65;margin:4px 0 8px}
.moves-status {display:inline-block;font-size:11px;font-weight:550;line-height:1.5;color:#526b78;background:#f1f5f7;padding:4px 9px;border-radius:6px}
.moves-status.complete {color:#286c57;background:#edf7f0}
.moves-status.overdue {color:#8a642a;background:#faf3e6}
.moves-progress {height:3px;background:#edf1f5;max-width:160px;border-radius:4px;margin-top:9px;overflow:hidden}
.moves-progress span {display:block;height:100%;background:#79b6aa}
.moves-person:has(.overdue) .moves-progress span {background:#d7b77a}
.moves-select {cursor:pointer;min-height:76px;padding:16px 12px;border-radius:10px;transition:background .15s}
.moves-select:hover {background:#f8fafb}
.moves-select:has(input:checked) {background:#eef7f3}
.moves-select .moves-person-copy small {margin:3px 0}
.moves-bulk {position:sticky;bottom:calc(80px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:12px;background:#f1f8f5;border:1px solid #cee2db;border-radius:14px;padding:14px;margin-top:20px;box-shadow:0 6px 22px #23384d0a;z-index:2}
.moves-bulk>span {flex:1;font-size:13px;font-weight:550}
.moves-history {margin-top:24px;border-top:1px solid var(--moves-line)}
.moves-history summary {cursor:pointer;padding:20px 0;font-weight:600;font-size:13px;color:#4b6572}
.moves-history-row {display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid #edf1f4;font-size:12px;line-height:1.5}
.moves-history-row small {display:block;margin-top:4px;color:var(--moves-muted)}
#view-moves .empty-state {padding:36px 16px;color:var(--moves-muted);font-size:13px;line-height:1.65;text-align:center}
.moves-dialog {border:1px solid #dce4eb;border-radius:22px;padding:0;width:min(520px,calc(100vw - 24px));max-height:90vh;max-height:90dvh;box-shadow:0 24px 100px #18304433;background:#fff;overflow:hidden}
.moves-dialog::backdrop {background:#14243966;backdrop-filter:blur(5px)}
.moves-dialog form {display:flex;flex-direction:column;max-height:90vh;max-height:90dvh;margin:0;gap:0}
.moves-dialog header,.moves-dialog footer {display:flex;align-items:center;gap:16px;padding:22px 26px;flex-shrink:0}
.moves-dialog header {justify-content:space-between;border-bottom:1px solid #e7ecf1}
.moves-dialog h2 {font-size:23px;line-height:1.25;font-weight:650;letter-spacing:-.035em;margin:7px 0 2px}
.moves-dialog header button {background:#f2f5f6;border:0;border-radius:50%;width:40px;height:40px;min-height:40px;flex-shrink:0;font-size:24px;font-weight:400;color:#607086;padding:0}
.moves-dialog-body {padding:10px 26px 26px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.moves-dialog-body label {display:block;margin:20px 0 0;font-size:12px;font-weight:600;color:#48616e}
.moves-dialog-body label input,.moves-dialog-body label select {display:block;width:100%;box-sizing:border-box;margin-top:8px}
.moves-dialog-body p {font-size:13px;line-height:1.7;color:#5e7180}
.moves-dialog-body small,.moves-help {color:#65758a;font-weight:400}
.moves-dialog-body .moves-help {font-size:12px;margin-top:20px}
.moves-dialog footer {justify-content:flex-end;border-top:1px solid #e7ecf1;background:#fbfcfd;padding-top:17px;padding-bottom:17px}
.moves-dialog [role=alert],#moves-error {color:#a04337;font-size:13px;line-height:1.6}
.moves-dialog [role=alert]:empty,#moves-error:empty {display:none}
.moves-dialog [hidden],#view-moves [hidden] {display:none!important}
#moves-out-names {padding-left:22px;line-height:1.9;font-size:14px}
@media(min-width:1100px){.moves-bulk{bottom:24px}.moves-metrics p{font-size:12px}}
@media(max-width:800px){
  .moves-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .moves-filters{flex-wrap:wrap}.moves-filters>input{flex-basis:100%}
  .moves-trend{grid-template-columns:minmax(0,1fr);gap:16px}.moves-chart-note{grid-column:auto}.moves-trend p{max-width:none}
  .moves-legend{margin-top:16px}.moves-hero{align-items:start;flex-direction:column;gap:16px;margin:12px 0 24px}
  .moves-trend,.moves-workspace{padding:22px}.moves-bulk{flex-wrap:wrap}.moves-bulk>span{flex-basis:50%}
}
@media(max-width:480px){
  #view-moves .moves-hero h2{font-size:26px;line-height:1.2;max-width:300px;margin:8px 0 10px}
  .moves-hero p{font-size:13px;line-height:1.65;max-width:310px}
  #view-moves .moves-metrics article{padding:17px 16px;border-radius:16px}
  .moves-metrics p{font-size:12px;min-height:34px;margin:12px 0 5px}
  .moves-metrics strong{font-size:32px}.moves-metrics small{font-size:11px;margin-top:8px;line-height:1.5}
  .moves-metric-icon{width:28px;height:28px;border-radius:9px;font-size:18px}
  #view-moves .panel{border-radius:17px}.moves-trend,.moves-workspace{padding:20px 16px}
  .moves-toolbar{gap:8px;margin-bottom:24px}#view-moves .moves-segments button{padding:8px 14px;font-size:12px}
  #view-moves .moves-toolbar>.small-action-btn{padding:8px 10px;font-size:12px}
  .moves-filters{gap:8px;margin-top:18px}.moves-filters>select{flex:1;min-width:0}
  #view-moves .moves-filters :is(input[type=search],select),.moves-dialog-body label :is(input,select){font-size:16px}
  .moves-filters>label{font-size:11px;gap:6px}
  .moves-person{gap:10px;align-items:flex-start;padding:20px 0}
  .moves-avatar{width:32px;height:32px;font-size:10px;margin-top:2px}
  .moves-person-copy small{font-size:11px}.moves-person-copy strong{font-size:14px}
  #view-moves .moves-person>.small-action-btn{font-size:11px;padding:7px 9px;min-height:36px;margin-top:0}
  .moves-select{align-items:center;padding:15px 8px}.moves-select .moves-avatar{margin-top:0}
  .moves-status{font-size:11px;padding:4px 7px}.moves-progress{max-width:120px}
  .moves-bulk{padding:12px;gap:8px}.moves-bulk>.primary-btn{flex:1}
  .moves-dialog header,.moves-dialog footer,.moves-dialog-body{padding-left:20px;padding-right:20px}
  .moves-dialog h2{font-size:22px}.moves-dialog footer{gap:10px}
}
@media(prefers-reduced-motion:reduce){#view-moves button,.moves-dialog button,.moves-select{transition:none}}
/* Keep global full-width form controls from squeezing the directory search. */
#view-moves .moves-filters>input[type=search]{width:auto;flex:1 1 240px}
#view-moves .moves-filters>select{width:auto;flex:0 1 210px;max-width:100%}
@media(max-width:800px){#view-moves .moves-filters>input[type=search]{flex-basis:100%}#view-moves .moves-filters>select{flex:1 1 160px}}
/* Two equally visible starting points, before the overview. */
.moves-entry-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 28px}
#view-moves .moves-entry-actions>button{display:flex;align-items:center;gap:16px;text-align:left;padding:20px;border:1px solid #c9ded9;border-radius:16px;background:#f5fbf8;color:#246f69;box-shadow:0 3px 12px #203e4c04;min-width:0}
#view-moves .moves-entry-actions>button+button{background:#f7f8fc;border-color:#d9dfed;color:#52668c}
#view-moves .moves-entry-actions>button:hover{background:#eaf5ef;border-color:#9fc5b9}
#view-moves .moves-entry-actions>button+button:hover{background:#edf0f8;border-color:#b3bfd9}
.moves-entry-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:12px;background:#e2f0e9;font-size:26px;font-weight:400}
button+button .moves-entry-icon{background:#e9edf7}
.moves-entry-actions strong{display:block;font-size:16px;letter-spacing:-.025em;line-height:1.4;font-weight:650}
.moves-entry-actions small{display:block;color:#5e7180;font-size:12px;font-weight:400;line-height:1.5;margin-top:4px}
.moves-entry-arrow{margin-left:auto;font-size:20px;font-weight:400}
#view-moves .moves-entry-actions>button:disabled{opacity:.55;cursor:wait}
#moves-list-title{scroll-margin-top:110px}
.moves-dialog .moves-name-input{display:block;width:100%;font:inherit;font-size:16px;background:#f8fafb;color:#294652;border:1px solid #dfe7eb;border-radius:11px;min-height:46px;padding:11px 13px;margin-top:8px}
.moves-dialog-body .moves-name-hint{font-size:12px;line-height:1.6;margin:9px 0;color:#527469}
.moves-name-results{border:1px solid #dfe7eb;border-radius:12px;overflow:hidden;margin:12px 0;background:#fff;max-height:220px;overflow-y:auto;overscroll-behavior:contain}
.moves-dialog .moves-name-results button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #edf1f4;border-radius:0;background:#fff;padding:12px 14px;min-height:62px;color:#294652;box-shadow:none}
.moves-name-results button:last-child{border-bottom:0}
.moves-dialog .moves-name-results button:hover,.moves-dialog .moves-name-results button:focus{background:#edf7f1;outline-offset:-3px}
.moves-name-results strong{display:block;font-size:14px;font-weight:600}
.moves-name-results small{display:block;font-size:11px;line-height:1.5;margin-top:4px;color:#5e7180;font-weight:400}
@media(max-width:600px){.moves-entry-actions{grid-template-columns:1fr;gap:10px;margin-bottom:24px}#view-moves .moves-entry-actions>button{padding:16px;gap:13px}.moves-entry-actions strong{font-size:15px}.moves-entry-actions small{font-size:11px}.moves-entry-icon{width:36px;height:36px;font-size:23px}}
/* Keep the review action above the app's floating shortcuts. */
.moves-bulk{bottom:calc(156px + env(safe-area-inset-bottom,0px))}
@media(min-width:1100px){.moves-bulk{bottom:100px}}
.moves-select-person{display:flex;align-items:center;gap:14px;flex:1;min-width:0;cursor:pointer}
#moves-out-names{border:0;padding:0;margin:18px 0 0;min-width:0}
.moves-out-person{padding:18px;border:1px solid #e2e9ed;border-radius:13px;background:#f9fbfc;margin-top:12px}
.moves-out-person>strong{display:block;font-size:14px;line-height:1.5;color:#294652}
.moves-out-person>small{display:block;font-size:12px;margin-top:2px}
.moves-dialog .moves-out-person label{margin-top:14px;font-size:12px}
.moves-out-person input{display:block;width:100%;min-width:0;font:inherit;font-size:16px;min-height:46px;padding:10px 12px;border:1px solid #dfe7eb;border-radius:10px;background:#fff;color:#294652;margin-top:7px}
.moves-out-person label small{margin-left:5px}
@media(max-width:480px){.moves-select-person{gap:9px}.moves-select-person .moves-avatar{display:none}#view-moves .moves-select>.small-action-btn{min-height:44px;padding:9px 12px;font-size:12px}.moves-out-person{padding:15px}}
.moves-out-person-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.moves-out-person-heading strong{font-size:14px;line-height:1.5;color:#294652}.moves-dialog .moves-out-person-heading button{font-size:11px;padding:5px 10px;min-height:36px}
#view-moves .moves-return-btn{min-height:44px;color:#246f69;background:#f0f8f4;border-color:#cce0d7}
@media(max-width:480px){#view-moves .moves-return-btn{white-space:normal;max-width:90px;line-height:1.35;flex-shrink:0}}

/* Departures retain a warm, distinct identity alongside welcome timelines. */
#view-moves .moves-person-departed{padding:22px;margin:12px 0;border:1px solid #e6e0d8;border-radius:18px;background:linear-gradient(115deg,#fbf8f3 0%,#fff 80%);gap:18px;align-items:center}
#view-moves .moves-person-departed:last-child{border-bottom:1px solid #e6e0d8}
#view-moves .moves-person-departed .moves-avatar{width:46px;height:46px;flex:0 0 46px;background:#efe5d6;color:#8a6945;border:1px solid #e5d7c3;border-radius:15px;font-size:14px;font-weight:600}
#view-moves .moves-departure-label{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#99794f;margin-bottom:6px}
#view-moves .moves-person-departed .moves-person-copy>strong{font-size:16px;color:#3c4d54}
#view-moves .moves-person-departed .moves-person-copy>small{margin:3px 0 12px}
#view-moves .moves-departure-date{display:flex;align-items:center;gap:7px;color:#796c5b;font-size:12px;line-height:1.5}
#view-moves .moves-return-btn{border:1px solid #d9e5df;background:#eef5f1;color:#3e7161;padding:10px 14px;border-radius:11px;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:none}
#view-moves .moves-return-btn:hover{background:#e2eee7;border-color:#b8d2c4}
#view-moves .moves-return-btn>span{font-size:16px;margin-right:3px}
@media(max-width:600px){#view-moves .moves-person-departed{display:grid;grid-template-columns:40px 1fr;gap:12px;padding:18px}#view-moves .moves-person-departed .moves-avatar{width:40px;height:40px;align-self:start;border-radius:13px}#view-moves .moves-person-departed .moves-return-btn{grid-column:2;justify-self:start;padding:9px 12px;margin-top:2px;max-width:none}#view-moves .moves-person-departed .moves-person-copy>strong{font-size:15px}}

.moves-departure-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}@media(max-width:600px){.moves-departure-actions{grid-column:2;justify-content:flex-start}#view-moves .moves-departure-actions .moves-return-btn{max-width:none;white-space:nowrap}}
