:root{--ink:#17242c;--muted:#74818a;--paper:#f3f5f1;--panel:#fff;--line:#e7ebe5;--green:#c8f05e;--green-dark:#35511c;--navy:#121d25;--red:#bd4c3c;--amber:#a36b19;--shadow:0 18px 55px rgba(24,43,37,.07)}
*{box-sizing:border-box}html{min-height:100%;background:var(--paper)}body{margin:0;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 8% 0%,rgba(200,240,94,.17),transparent 32%),var(--paper);min-height:100vh}.ambient{position:fixed;pointer-events:none;border-radius:50%;filter:blur(80px);opacity:.18;z-index:0}.ambient-one{width:300px;height:300px;right:-120px;top:220px;background:#b9e95d}.ambient-two{width:260px;height:260px;left:-150px;bottom:5%;background:#a9c8d0}.topbar,.app-shell,.login-layout{position:relative;z-index:1}.topbar{height:76px;padding:0 max(24px,calc((100vw - 1120px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(23,36,44,.07);background:rgba(255,255,255,.56);backdrop-filter:blur(18px)}.brand{text-decoration:none;color:var(--ink);font-weight:900;letter-spacing:.13em;font-size:14px;display:flex;align-items:center;gap:10px}.brand-mark{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:var(--green);font-size:20px;color:#213312;font-weight:700}.brand-light{font-weight:500;letter-spacing:.1em;color:#718078}.top-actions{display:flex;align-items:center;gap:20px}.live-pill{font-size:10px;font-weight:800;letter-spacing:.13em;color:#718077;display:flex;align-items:center;gap:8px}.pulse{width:7px;height:7px;background:#8ecb3c;border-radius:50%;box-shadow:0 0 0 4px rgba(142,203,60,.13)}.profile{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700}.profile img{width:29px;height:29px;border-radius:50%;object-fit:cover;background:#e5eadf}.icon-button{border:0;background:transparent;color:#728078;font-size:22px;cursor:pointer;padding:2px 7px;border-radius:8px}.icon-button:hover{background:#f0f3ed}.hidden{display:none!important}.app-shell{max-width:1120px;margin:0 auto;padding:42px 24px 24px}.welcome-row{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:850;color:#849087}.welcome-row h1{font-size:clamp(30px,4vw,44px);letter-spacing:-.055em;margin:9px 0 4px;line-height:1}.welcome-row h1 span{color:#83a83d}.welcome-row p{margin:10px 0 0;color:var(--muted);font-size:14px}.refresh-button{border:1px solid #dce3d8;background:#fff;color:#45564a;padding:11px 15px;border-radius:11px;font-size:12px;font-weight:750;cursor:pointer;box-shadow:0 5px 15px rgba(20,40,30,.035)}.refresh-button:hover{border-color:#a4bc75}.refresh-icon{font-size:16px;margin-right:5px}.panel{background:var(--panel);border:1px solid rgba(26,49,34,.065);border-radius:17px;box-shadow:var(--shadow)}.route-toolbar{display:flex;align-items:center;padding:14px 18px;gap:18px;margin-bottom:18px}.route-select-wrap{display:flex;flex-direction:column;gap:5px;min-width:190px}.route-select-wrap label,.field label{font-size:9px;letter-spacing:.12em;font-weight:850;color:#849087}.route-select-wrap select{border:0;padding:0;background:transparent;color:var(--ink);font-size:14px;font-weight:750;outline:none;max-width:300px}.route-toolbar-meta{display:flex;align-items:center;gap:8px;color:#86918a;font-size:11px;flex:1}.mini-star{color:#a8c956;font-size:16px}.text-button{border:0;background:transparent;color:#62716a;font-size:11px;font-weight:750;cursor:pointer}.text-button span{color:#93b84a;font-size:15px;margin-left:5px}.route-editor{padding:23px;margin-bottom:18px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:19px}.panel-heading h2{font-size:21px;letter-spacing:-.04em;margin:5px 0 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:7px;position:relative}.field input{height:42px;border:1px solid #e1e7df;border-radius:9px;padding:0 12px;font:inherit;font-size:13px;color:var(--ink);outline:none;background:#fcfdfa}.field input:focus{border-color:#a6c75e;box-shadow:0 0 0 3px rgba(166,199,94,.13)}.field small{font-size:10px;color:#8b968e}.full-field{grid-column:1/-1}.form-actions{display:flex;justify-content:space-between;align-items:center;margin-top:19px}.form-status{font-size:11px;color:#849087}.primary-button{border:0;background:var(--green);color:#24361a;padding:12px 17px;border-radius:10px;font-size:12px;font-weight:850;cursor:pointer;box-shadow:0 6px 14px rgba(139,181,55,.16)}.primary-button:hover{background:#b9e64e}.primary-button span{margin-left:12px;font-size:16px}.suggestions{position:absolute;top:62px;left:0;right:0;z-index:5;background:#fff;border:1px solid #e1e7df;border-radius:10px;box-shadow:0 12px 25px rgba(22,39,30,.12);overflow:hidden}.suggestions:empty{display:none}.suggestion{display:block;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #eff2ed;background:#fff;text-align:left;color:#314138;cursor:pointer;font-size:12px}.suggestion:hover{background:#f4f8eb}.suggestion small{display:block;color:#859188;margin-top:3px}.verdict{padding:25px 30px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;background:linear-gradient(112deg,#17272c,#203a37);color:#fff;border:0;box-shadow:0 20px 45px rgba(18,40,36,.14)}.verdict:after{content:"";position:absolute;width:280px;height:280px;border-radius:50%;background:rgba(200,240,94,.08);right:120px;top:-190px}.verdict .eyebrow{color:#a9bbb0}.checked-at{letter-spacing:0;margin-left:10px;color:#9aac9f;font-weight:500}.verdict-line{display:flex;align-items:center;gap:12px;margin:12px 0 6px}.verdict-line>span{font-size:27px}.verdict-line h2{font-size:clamp(26px,3vw,34px);letter-spacing:-.05em;margin:0}.verdict-main>p{margin:0;color:#c0cec5;font-size:13px;max-width:650px;line-height:1.55}.verdict-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.verdict-tag{font-size:10px;color:#dbe5dc;border:1px solid rgba(255,255,255,.17);padding:6px 9px;border-radius:99px}.verdict-score{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:7px;margin-left:20px}.score-ring{width:86px;height:86px;border-radius:50%;border:5px solid rgba(200,240,94,.85);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#d5f68b;box-shadow:0 0 0 7px rgba(200,240,94,.08)}.score-ring span{font-size:27px;font-weight:850;line-height:1}.score-ring small{font-size:7px;letter-spacing:.12em;text-align:center;margin-top:3px;color:#c3d3b1}.verdict-score>span{font-size:9px;color:#b1c1b6;letter-spacing:.08em}.verdict.caution{background:linear-gradient(112deg,#302b1d,#4b4227)}.verdict.no-go{background:linear-gradient(112deg,#342322,#50302b)}.verdict.caution .score-ring{border-color:#e7bd67;color:#f5d28c}.verdict.no-go .score-ring{border-color:#ec8b79;color:#ffb4a5}.section-label{display:flex;align-items:center;gap:12px;margin:25px 1px 11px;color:#87938a;font-size:9px;font-weight:850;letter-spacing:.13em}.section-label .section-line{height:1px;background:#dfe5dc;flex:1}.section-label span:last-child{letter-spacing:.02em;font-weight:600}.trip-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.trip-card{padding:19px 21px 16px}.trip-head{display:flex;justify-content:space-between;align-items:flex-start}.trip-direction{font-size:9px;letter-spacing:.14em;color:#86948b;font-weight:850}.trip-head h3{font-size:16px;margin:5px 0 0;letter-spacing:-.025em}.trip-icon{width:31px;height:31px;background:#f2f7e8;color:#6d9137;display:grid;place-items:center;border-radius:9px;font-size:17px}.return-card .trip-icon{background:#edf4f4;color:#4d7f7d}.trip-temp{display:flex;align-items:baseline;gap:11px;margin:13px 0 2px}.trip-temp strong{font-size:40px;letter-spacing:-.07em;font-weight:750}.trip-temp span{font-size:11px;color:#87918a}.weather-meta{display:flex;justify-content:space-between;gap:10px;color:#627168;font-size:11px}.weather-meta span:last-child{color:#89958d}.trip-foot{border-top:1px solid #edf0eb;margin-top:15px;padding-top:11px;display:flex;gap:25px;color:#89938d;font-size:10px}.trip-foot b{color:#415149;font-weight:750;margin-left:4px}.insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:15px}.insight-card{display:flex;gap:14px;padding:19px 20px}.insight-icon{width:39px;height:39px;flex:0 0 39px;border-radius:12px;background:#f1f7e8;display:grid;place-items:center;font-size:19px}.gear-card .insight-icon{background:#eef3f4}.insight-card h3{font-size:14px;margin:4px 0 5px;letter-spacing:-.02em}.insight-card p{font-size:11px;color:#7d8a81;line-height:1.5;margin:0}.gear-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}.gear-chip{background:#f2f5ef;color:#57665b;border-radius:6px;padding:5px 7px;font-size:9px;font-weight:700}.coach-panel{display:flex;align-items:center;gap:17px;margin-top:15px;padding:18px 22px;background:#edf3e4;border-color:#e2ebd6;box-shadow:none}.coach-mark{font-family:Georgia,serif;font-size:54px;line-height:.8;color:#8cae48}.coach-panel .eyebrow{color:#82936f}.coach-panel h3{font-size:15px;margin:5px 0 3px;letter-spacing:-.02em}.coach-panel p{font-size:12px;margin:0;color:#65745f;line-height:1.5}.coach-spark{margin-left:auto;color:#9fbd5a;font-size:25px}.disclaimer{font-size:9px;color:#9aa49c;text-align:center;margin:13px 0 0}.error-panel{background:#fff2ef;border:1px solid #f1d4cd;color:#934b3d;border-radius:10px;margin-top:12px;padding:11px 14px;font-size:12px}.empty-state{text-align:center;margin:30px 0;padding:45px 20px}.empty-illustration{font-size:42px}.empty-state h2{font-size:23px;letter-spacing:-.04em;margin:12px 0 7px}.empty-state p{font-size:13px;color:var(--muted);max-width:450px;margin:0 auto 19px;line-height:1.6}.footer{display:flex;justify-content:space-between;color:#9ba69d;font-size:9px;letter-spacing:.08em;margin:27px 1px 0}.footer b{color:#b3d66a}.toast{position:fixed;left:50%;bottom:23px;transform:translate(-50%,20px);background:#17272c;color:#fff;padding:11px 16px;border-radius:10px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:10;box-shadow:0 9px 30px rgba(0,0,0,.15)}.toast.show{opacity:1;transform:translate(-50%,0)}.login-layout{max-width:1000px;min-height:calc(100vh - 76px);margin:0 auto;padding:70px 25px;display:grid;grid-template-columns:1.2fr .8fr;gap:65px;align-items:center}.login-copy .eyebrow{color:#839078}.login-copy h1{font-size:clamp(43px,6vw,68px);line-height:.99;letter-spacing:-.07em;margin:20px 0}.login-copy h1 em{font-family:Georgia,serif;font-weight:500;color:#789e38}.login-copy>p{max-width:510px;color:#728078;font-size:15px;line-height:1.75}.login-points{display:grid;gap:15px;margin-top:33px}.login-points div{font-size:12px;font-weight:650;color:#526158}.login-points span{font-size:9px;letter-spacing:.1em;color:#9dbd5b;margin-right:12px}.login-card{background:#fff;border:1px solid #e8ede5;border-radius:19px;padding:31px;box-shadow:var(--shadow)}.login-icon{width:47px;height:47px;border-radius:14px;background:#eef7df;display:grid;place-items:center;font-size:23px}.login-card h2{font-size:25px;letter-spacing:-.04em;margin:17px 0 5px}.login-card>p{font-size:12px;color:#7b8980;margin:0 0 22px}.google-button{height:47px;display:flex;align-items:center;justify-content:center;gap:11px;border:1px solid #dfe5df;border-radius:9px;text-decoration:none;color:#34423b;font-size:12px;font-weight:750}.google-button:hover{background:#f8faf6;border-color:#c5d2bc}.google-g{font-family:Arial,sans-serif;font-size:17px;font-weight:800;color:#4285f4}.privacy-note{font-size:10px;line-height:1.6;color:#9aa39d;margin-top:18px}.config-warning{background:#fff4e6;color:#936018;border-radius:8px;padding:10px;margin-top:12px;font-size:11px;line-height:1.5}
@media(max-width:760px){.topbar{height:65px;padding:0 17px}.app-shell{padding:28px 15px 18px}.welcome-row{align-items:flex-start;gap:13px}.welcome-row h1{font-size:34px}.welcome-row p{font-size:12px;max-width:260px}.refresh-button{font-size:0;padding:10px 12px}.refresh-icon{font-size:17px;margin:0}.route-toolbar{gap:9px;padding:12px}.route-select-wrap{min-width:0;flex:1}.route-toolbar-meta{display:none}.route-select-wrap select{max-width:100%;font-size:12px}.text-button{font-size:10px}.verdict{padding:21px 17px}.verdict-line h2{font-size:25px}.verdict-line>span{font-size:22px}.verdict-main>p{font-size:11px}.verdict-score{margin-left:8px}.score-ring{width:66px;height:66px;border-width:4px}.score-ring span{font-size:21px}.trip-grid,.insight-grid{grid-template-columns:1fr}.trip-card{padding:17px}.trip-temp strong{font-size:36px}.coach-panel{padding:17px;gap:10px}.coach-mark{font-size:43px}.coach-spark{display:none}.form-grid{grid-template-columns:1fr}.full-field{grid-column:auto}.form-actions{align-items:flex-start;gap:12px;flex-direction:column}.form-actions .primary-button{align-self:flex-end}.login-layout{grid-template-columns:1fr;gap:30px;padding:43px 20px}.login-copy h1{font-size:49px}.login-points{gap:11px;margin-top:22px}.login-card{padding:24px}.footer{font-size:8px}.section-label{font-size:8px}.section-label span:last-child{font-size:8px}}

.route-toolbar-actions{display:flex;align-items:center;gap:15px}.text-button.is-favorite{color:#789b36}.text-button.is-favorite:first-letter{color:#a8c956}@media(max-width:760px){.route-toolbar-actions{gap:7px;flex-direction:column;align-items:flex-end}.route-toolbar{align-items:center}}

.form-buttons{display:flex;align-items:center;gap:12px}.delete-button{border:0;background:transparent;color:#b35c4f;font-size:11px;font-weight:750;cursor:pointer;padding:10px}.delete-button:hover{text-decoration:underline}@media(max-width:760px){.form-buttons{width:100%;justify-content:flex-end}}


/* Day selector: focused, accessible tabs instead of uneven side-by-side reports. */
.day-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  margin: 18px 0 23px;
  border: 1px solid #e4eae1;
  border-radius: 17px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 24px rgba(24,43,37,.045);
}
.day-tab {
  min-width: 0;
  min-height: 75px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #536159;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.day-tab:hover { background: rgba(246,249,242,.9); }
.day-tab:focus-visible { outline: 3px solid rgba(143,177,77,.36); outline-offset: 2px; }
.day-tab.is-active {
  background: #fff;
  border-color: #e5ebdf;
  box-shadow: 0 5px 17px rgba(24,43,37,.075);
  color: var(--ink);
}
.day-tab-number {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0f5e8;
  color: #789743;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.day-tab:nth-child(2) .day-tab-number { background: #edf3f3; color: #5c8581; }
.day-tab.is-active .day-tab-number { background: #eaf2d9; color: #668b2c; }
.day-tab:nth-child(2).is-active .day-tab-number { background: #e7f0ef; color: #477a75; }
.day-tab-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.day-tab-copy strong { font-size: 15px; font-weight: 850; letter-spacing: -.025em; line-height: 1.1; }
.day-tab-copy small { overflow: hidden; color: #8a968d; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.day-tab-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #e5ebe2;
  border-radius: 99px;
  background: #f7f9f5;
  color: #7b8a7f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}
.day-tab-status.go { background: #edf6e2; border-color: #dfebd0; color: #5f842f; }
.day-tab-status.caution { background: #fbf3df; border-color: #f0e3bd; color: #9a711f; }
.day-tab-status.no-go { background: #faeae7; border-color: #f0d6d0; color: #aa5144; }
.day-tab-status.is-loading { background: #f4f6f2; color: #8a968d; }
.day-panels { min-width: 0; }
.day-column { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; animation: day-panel-in .2s ease both; }
.day-column[hidden] { display: none !important; }
@keyframes day-panel-in { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.day-heading { margin: 0 1px 13px; }
.day-heading #today-date, .day-heading #tomorrow-date { display: none; }
.tomorrow-section-label { margin-top: 0; }
.day-column .verdict { padding: 25px 30px; border-radius: 17px; min-height: 0; box-shadow: 0 18px 42px rgba(18,40,36,.12); }
.day-column .verdict-line { gap: 12px; margin: 12px 0 6px; }
.day-column .verdict-line > span { font-size: 27px; }
.day-column .verdict-line h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.08; }
.day-column .verdict-main > p { font-size: 13px; }
.day-column .verdict-tag { font-size: 10px; padding: 6px 9px; }
.day-column .verdict-score { margin-left: 20px; }
.day-column .score-ring { width: 86px; height: 86px; border-width: 5px; }
.day-column .score-ring span { font-size: 27px; }
.day-column .trip-grid { gap: 15px; }
.day-column .trip-card { padding: 19px 21px 16px; border-radius: 17px; box-shadow: 0 10px 28px rgba(20,40,30,.055); }
.day-column .trip-direction { font-size: 9px; letter-spacing: .12em; }
.day-column .trip-head h3 { font-size: 16px; }
.day-column .trip-icon { width: 31px; height: 31px; font-size: 17px; }
.day-column .trip-temp { gap: 11px; margin: 13px 0 2px; }
.day-column .trip-temp strong { font-size: 40px; }
.day-column .trip-temp span { font-size: 11px; }
.day-column .weather-meta { font-size: 11px; gap: 10px; }
.day-column .trip-foot { gap: 25px; margin-top: 15px; padding-top: 11px; font-size: 10px; }
.day-column .insight-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; margin-top: 15px; }
.day-column .insight-card { padding: 19px 20px; gap: 14px; border-radius: 17px; min-height: 112px; box-shadow: 0 9px 26px rgba(20,40,30,.045); }
.day-column .insight-icon { width: 39px; height: 39px; flex-basis: 39px; font-size: 19px; border-radius: 12px; }
.day-column .insight-card h3 { font-size: 14px; }
.day-column .insight-card p { font-size: 11px; }
.day-column .gear-chip { font-size: 9px; padding: 5px 7px; }
.day-column .coach-panel { margin-top: 15px; padding: 18px 22px; gap: 17px; border-radius: 17px; }
.day-column .coach-mark { font-size: 54px; }
.day-column .coach-panel h3 { font-size: 15px; }
.day-column .coach-panel p { font-size: 12px; }
.day-column .coach-spark { font-size: 25px; }
.day-column .verdict.no-go { background: linear-gradient(112deg,#342322,#50302b); }
.day-column .verdict.caution { background: linear-gradient(112deg,#302b1d,#4b4227); }
@media (max-width: 760px) {
  .day-tabs { gap: 5px; padding: 5px; margin: 15px 0 19px; }
  .day-tab { min-height: 76px; padding: 10px 11px; gap: 9px; }
  .day-tab-number { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; font-size: 9px; }
  .day-tab-copy strong { font-size: 13px; }
  .day-tab-copy small { font-size: 9px; }
  .day-tab-status { padding: 5px 7px; font-size: 8px; }
  .day-column .verdict { padding: 21px 17px; }
  .day-column .verdict-line h2 { font-size: 25px; }
  .day-column .verdict-score { margin-left: 8px; }
  .day-column .score-ring { width: 66px; height: 66px; border-width: 4px; }
  .day-column .score-ring span { font-size: 21px; }
  .day-column .trip-grid, .day-column .insight-grid { grid-template-columns: 1fr; }
  .day-column .trip-card { padding: 17px; }
  .day-column .trip-temp strong { font-size: 36px; }
  .day-column .insight-card { padding: 16px 17px; }
  .day-column .coach-panel { padding: 17px; gap: 10px; }
  .day-column .coach-mark { font-size: 43px; }
  .day-column .coach-spark { display: none; }
}
@media (max-width: 420px) {
  .day-tab { align-items: flex-start; flex-wrap: wrap; }
  .day-tab-number { align-self: center; }
  .day-tab-copy { padding-top: 2px; }
  .day-tab-status { margin-left: 41px; }
  .day-tab-copy small { white-space: normal; line-height: 1.25; min-height: 22px; }
  .day-column .verdict { gap: 10px; }
  .day-column .verdict-line h2 { font-size: 22px; }
}

/* Route planning workspace */
.route-planner{padding:24px;margin:0 0 20px;overflow:visible}
.planner-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.planner-header h2{font-size:25px;letter-spacing:-.045em;margin:6px 0}
.planner-header p{font-size:12px;color:#77857c;line-height:1.6;margin:0;max-width:660px}
.planner-layout{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr);gap:18px;align-items:stretch}
.planner-controls{min-width:0;display:flex;flex-direction:column;gap:14px}
.planner-mode-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px;border:1px solid #e5ebe1;border-radius:12px;background:#f6f8f3}
.planner-mode{border:0;border-radius:8px;padding:10px 8px;background:transparent;color:#77847a;font-size:10px;font-weight:800;cursor:pointer}
.planner-mode.is-active{background:#fff;color:#31442c;box-shadow:0 3px 10px rgba(20,40,30,.07)}
.planner-mode-panel{display:flex;flex-direction:column;gap:10px}
.field-help{font-size:10px;color:#849087;line-height:1.55;margin:0}
.planner-waypoints{display:flex;flex-direction:column;gap:6px;max-height:250px;overflow:auto}
.planner-empty{padding:14px;border:1px dashed #dbe3d7;border-radius:10px;color:#8c988f;font-size:11px;line-height:1.5;background:#fafbf9}
.planner-waypoint{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e9eee6;border-radius:10px;background:#fff}
.planner-waypoint-index{width:24px;height:24px;flex:0 0 24px;border-radius:8px;background:#eef4e5;color:#779744;display:grid;place-items:center;font-size:10px;font-weight:900}
.planner-waypoint-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.planner-waypoint-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#344239}
.planner-waypoint-copy small{font-size:9px;color:#9aa49c}
.planner-waypoint-actions{display:flex;gap:3px}
.planner-waypoint-actions button{border:0;background:#f5f7f3;color:#7a887e;border-radius:6px;width:24px;height:24px;font-size:13px;cursor:pointer}
.planner-waypoint-actions button:disabled{opacity:.3;cursor:default}
.planner-map-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.secondary-button{border:1px solid #dfe6dc;background:#fff;color:#526158;border-radius:9px;padding:10px 12px;font-size:10px;font-weight:800;cursor:pointer}
.secondary-button:hover,.secondary-button.is-active{border-color:#afc987;background:#f4f8ec;color:#5c7d30}
.primary-button:disabled,.secondary-button:disabled{opacity:.45;cursor:not-allowed}
.planner-common-fields{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.planner-common-fields .field input,.planner-common-fields .field select{height:39px;border:1px solid #e1e7df;border-radius:9px;padding:0 10px;background:#fcfdfa;color:#344239;font:inherit;font-size:11px}
.planner-summary{padding:13px 14px;border:1px solid #e4ebdc;border-radius:11px;background:#f7f9f3;display:flex;flex-direction:column;gap:4px}
.planner-summary span{font-size:13px;font-weight:850;color:#40533a}
.planner-summary small{font-size:10px;color:#87948a;line-height:1.5}
.planner-elevation{padding:12px 13px;border:1px solid #e8ede5;border-radius:11px;background:#fff}
.planner-elevation-head,.planner-elevation-foot{display:flex;justify-content:space-between;gap:10px;color:#839086;font-size:9px}
.planner-elevation-head strong{font-size:10px;color:#526158}
.planner-elevation svg{width:100%;height:90px;display:block;margin:7px 0 3px}
.planner-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:4px}
.planner-footer .form-status{line-height:1.45;max-width:220px}
.planner-footer .status-error{color:#af5547}
.planner-map-wrap{position:relative;min-width:0;min-height:610px;border:1px solid #e0e7dc;border-radius:15px;overflow:hidden;background:#eaf0e7}
#planner-map{width:100%;height:100%;min-height:610px;background:#eaf0e7;z-index:1}
.map-tip{position:absolute;z-index:500;left:12px;bottom:12px;max-width:calc(100% - 24px);padding:8px 11px;border:1px solid rgba(255,255,255,.8);border-radius:9px;background:rgba(255,255,255,.94);box-shadow:0 4px 16px rgba(20,40,30,.1);font-size:10px;color:#5e6b62;pointer-events:none}
.upload-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:28px 14px;border:1px dashed #cad8c0;border-radius:12px;background:#f8faf5;text-align:center;cursor:pointer}
.upload-drop:hover{background:#f2f7e9;border-color:#a9c27c}
.upload-drop strong{font-size:12px;color:#475647}
.upload-drop small{font-size:9px;color:#89958c}
.upload-drop input{max-width:100%;font-size:10px;color:#758277;margin-top:5px}
.upload-icon{width:34px;height:34px;border-radius:10px;background:#eaf2dd;color:#789b41;display:grid;place-items:center;font-size:22px;font-weight:800}
.planner-open-button{color:#6d8e35}
.route-stats-card[hidden],.return-card[hidden]{display:none!important}
.route-stats-card{display:flex;flex-direction:column;justify-content:space-between}
.route-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:18px 0 12px}
.route-metrics div{display:flex;flex-direction:column;gap:3px}
.route-metrics strong{font-size:23px;letter-spacing:-.05em;color:#293a30}
.route-metrics span{font-size:9px;color:#89958c}
.route-weather-note{font-size:10px;line-height:1.5;color:#89958c;margin:0}
.empty-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}

/* Seven-day route forecast */
.day-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.week-intro{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.week-intro h2{font-size:20px;letter-spacing:-.04em;margin:6px 0}
.week-intro p{font-size:11px;color:#7d8a81;margin:0;line-height:1.5;max-width:500px}
.week-controls{display:grid;grid-template-columns:auto 92px;align-items:center;gap:7px 10px;flex:0 0 auto}
.week-controls label{font-size:9px;font-weight:800;color:#839087}
.week-controls input{width:92px;height:34px;border:1px solid #e1e7df;border-radius:8px;padding:0 8px;color:#344239;background:#fbfcfa;font:inherit;font-size:11px}
.week-controls button{grid-column:1/-1;justify-self:end}
.week-best{display:flex;align-items:center;gap:15px;margin-top:14px;padding:17px 20px;background:#edf4e4;border-color:#e1ebd6;box-shadow:none}
.week-best-icon{width:38px;height:38px;display:grid;place-items:center;background:#dcebc6;color:#779d3d;border-radius:12px;font-size:20px;flex:0 0 38px}
.week-best .eyebrow{color:#82956d}
.week-best strong{display:block;font-size:14px;margin:4px 0;color:#374b32}
.week-best p{font-size:10px;line-height:1.5;color:#74836e;margin:0}
.week-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:14px}
.week-day-card{min-width:0;padding:14px;border:1px solid #e6ebe3;border-radius:13px;background:#fff;box-shadow:0 7px 20px rgba(20,40,30,.035)}
.week-day-card.go{border-top:3px solid #9fbe6a}.week-day-card.caution{border-top:3px solid #e1bd6c}.week-day-card.no-go{border-top:3px solid #d98d7c}.week-day-card.passed{opacity:.55}
.week-day-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
.week-day-head strong{font-size:11px;color:#435147;text-transform:capitalize}
.week-day-head span{font-size:8px;font-weight:900;letter-spacing:.07em;color:#728078;background:#f2f5ef;border-radius:99px;padding:5px 7px}
.week-day-card.go .week-day-head span{background:#edf5e4;color:#668c36}.week-day-card.caution .week-day-head span{background:#faf3e3;color:#9b742d}.week-day-card.no-go .week-day-head span{background:#faeeeb;color:#a95b4d}
.week-day-score{font-size:30px;font-weight:850;letter-spacing:-.07em;color:#2d3c31;margin:11px 0 3px}.week-day-score small{font-size:9px;font-weight:700;color:#9aa49c;letter-spacing:0;margin-left:3px}
.week-day-weather{display:flex;align-items:center;gap:8px}.week-day-weather strong{font-size:20px;letter-spacing:-.05em}.week-day-weather span{font-size:9px;color:#829087;line-height:1.3}
.week-day-metrics{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px;padding-top:9px;border-top:1px solid #edf0eb;color:#77857b;font-size:8px}
.week-day-time{font-size:8px;color:#8d9990;margin-top:9px;font-weight:750}
.week-day-card p{font-size:9px;line-height:1.45;color:#829087;margin:7px 0 0;min-height:27px}
.week-loading{grid-column:1/-1;padding:28px;border:1px dashed #dfe7d9;border-radius:12px;text-align:center;color:#8a968d;font-size:11px}
.week-note{font-size:9px;color:#98a39b;line-height:1.5;margin:13px 2px 0}
@media(max-width:900px){.planner-layout{grid-template-columns:1fr}.planner-map-wrap,#planner-map{min-height:430px}.week-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.week-intro{align-items:flex-start;flex-direction:column}.week-controls{grid-template-columns:auto 100px auto 100px;align-items:center}.week-controls button{grid-column:auto}}
@media(max-width:760px){.day-tabs{grid-template-columns:1fr}.day-tab{min-height:65px}.day-tab-status{margin-left:auto}.planner-layout{grid-template-columns:1fr}.route-planner{padding:17px}.planner-header h2{font-size:22px}.planner-map-wrap,#planner-map{min-height:390px}.planner-common-fields{grid-template-columns:1fr 1fr}.planner-footer{align-items:flex-start;flex-direction:column}.planner-footer .primary-button{align-self:flex-end}.week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.week-controls{grid-template-columns:auto 1fr;flex:1;width:100%}.week-controls input{width:100%}.week-controls button{grid-column:1/-1}.week-intro{padding:17px}.week-intro h2{font-size:18px}.route-metrics strong{font-size:21px}}
@media(max-width:420px){.planner-common-fields{grid-template-columns:1fr}.planner-mode{font-size:9px;padding:9px 5px}.week-grid{grid-template-columns:1fr 1fr;gap:7px}.week-day-card{padding:11px}.week-day-head strong{font-size:10px}.week-day-score{font-size:26px}.week-controls{grid-template-columns:1fr 1fr}.week-controls label{align-self:end}.route-metrics{gap:3px}}

/* Route gradient breakdown */
.planner-gradient{padding:13px 14px;border:1px solid #e8ede5;border-radius:11px;background:#fff;display:flex;flex-direction:column;gap:11px}
.planner-gradient-head,.gradient-climbs-title{display:flex;align-items:baseline;justify-content:space-between;gap:9px}
.planner-gradient-head strong,.gradient-climbs-title strong{font-size:10px;color:#526158}
.planner-gradient-head span,.gradient-climbs-title span{font-size:8px;color:#96a097;text-align:right}
.planner-gradient-bars{display:flex;flex-direction:column;gap:8px}
.gradient-row{display:grid;grid-template-columns:110px minmax(40px,1fr) 44px;gap:8px;align-items:center}
.gradient-row>span{font-size:8px;color:#7c897f}
.gradient-row>strong{font-size:8px;color:#506054;text-align:right}
.gradient-track{height:7px;border-radius:99px;background:#f0f3ee;overflow:hidden}
.gradient-track i{height:100%;display:block;border-radius:99px}
.planner-gradient-climbs{padding-top:9px;border-top:1px solid #edf0eb;display:flex;flex-direction:column;gap:7px}
.gradient-climbs-title{margin-bottom:2px}
.climb-chip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 9px;border:1px solid #edf0ea;border-radius:8px;background:#fafbf9;color:#7d897f;font-size:8px}
.climb-chip b{color:#53664b;margin-right:auto}
.gradient-empty{font-size:9px;color:#8b968e;margin:0}
.gradient-note{font-size:8px;color:#9aa49c;line-height:1.45}


/* BikeCoach 5.2/5.3 visual refinement: calmer hierarchy, clearer navigation,
   consistent controls and more breathing room without changing data layouts. */
:root{--accent:#8cab4b;--accent-soft:#eef4e5;--focus:rgba(132,166,75,.25)}
html{scroll-behavior:smooth;scroll-padding-top:96px}
.topbar{position:sticky;top:0;z-index:1000;height:70px;box-shadow:0 8px 28px rgba(25,42,32,.035)}
.brand-mark{box-shadow:0 5px 14px rgba(124,160,65,.22)}
.app-shell{padding-top:32px;max-width:1180px}
.welcome-row{align-items:center;margin-bottom:22px}
.welcome-row h1{letter-spacing:-.055em}
.workspace-nav{display:flex;align-items:center;gap:8px;padding:8px;margin:0 0 15px;border:1px solid rgba(220,229,216,.9);border-radius:16px;background:rgba(255,255,255,.76);box-shadow:0 8px 24px rgba(22,42,32,.035);backdrop-filter:blur(14px)}
.workspace-nav-link{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 13px;border:1px solid transparent;border-radius:11px;background:transparent;color:#718078;text-decoration:none;text-align:left;font:inherit;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.workspace-nav-link:hover{background:#f7f9f4;border-color:#e8eee2;transform:translateY(-1px)}
.workspace-nav-link.is-active{background:#f0f5e8;border-color:#e2ebd6;color:#425d2d}
.workspace-nav-link>span:last-child{display:flex;flex-direction:column;gap:2px}
.workspace-nav-link strong{font-size:11px;font-weight:850;letter-spacing:.01em}
.workspace-nav-link small{font-size:9px;color:#89958b;white-space:nowrap}
.workspace-nav-icon{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:#f0f3ec;color:#769447;font-size:18px}
.workspace-nav-link.is-active .workspace-nav-icon{background:#e2edcf;color:#638335}
.workspace-nav-spacer{flex:1}
.workspace-nav-hint{padding:0 10px;color:#a0aaa0;font-size:8px;font-weight:850;letter-spacing:.13em}
.route-toolbar{padding:16px 18px;gap:14px;border-radius:15px;box-shadow:0 9px 26px rgba(25,42,32,.045)}
.route-toolbar-actions{gap:7px;flex-wrap:wrap}
.route-toolbar-actions .text-button{padding:9px 11px;border:1px solid #e7ece3;border-radius:9px;background:#fff;transition:all .18s ease}
.route-toolbar-actions .text-button:hover{background:#f3f7ed;border-color:#d9e5ca;color:#557633}
.panel{transition:box-shadow .2s ease,border-color .2s ease}
.day-tabs{gap:9px;margin:18px 0 22px}
.day-tab{border-radius:14px;box-shadow:0 5px 18px rgba(22,42,32,.025);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.day-tab:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(22,42,32,.06)}
.day-tab.is-active{box-shadow:0 10px 26px rgba(70,100,42,.09)}
.verdict{border-radius:20px}
.trip-card,.insight-card,.coach-panel,.week-intro,.week-best{border-radius:17px}
button,input,select,a{ -webkit-tap-highlight-color:transparent }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.primary-button,.google-button,.refresh-button{transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.primary-button:hover,.google-button:hover,.refresh-button:hover{transform:translateY(-1px);filter:saturate(1.04);box-shadow:0 8px 20px rgba(85,120,47,.16)}
.secondary-button,.icon-button,.text-button{transition:background .16s ease,border-color .16s ease,color .16s ease}
.field input,.field select,.planner-common-fields .field input,.planner-common-fields .field select{transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.field input:focus,.field select:focus,.planner-common-fields .field input:focus,.planner-common-fields .field select:focus{border-color:#a9c27c;box-shadow:0 0 0 3px rgba(169,194,124,.16);background:#fff;outline:0}
.route-planner{border-radius:19px;box-shadow:0 18px 50px rgba(20,40,30,.07)}
.planner-mode-switch{position:sticky;top:80px;z-index:5;box-shadow:0 4px 14px rgba(20,40,30,.035)}
.planner-map-wrap,#planner-map{border-radius:16px}
.disclaimer{max-width:920px;margin:20px auto 0;line-height:1.65}
.footer{padding-top:24px}
@media(max-width:760px){
 .app-shell{padding:25px 14px 20px}.topbar{height:62px;padding:0 16px}.workspace-nav{gap:4px;padding:5px;border-radius:13px}.workspace-nav-link{flex:1;justify-content:center;gap:6px;padding:8px 5px}.workspace-nav-link strong{font-size:9px}.workspace-nav-link small{font-size:8px}.workspace-nav-icon{width:26px;height:26px;flex-basis:26px;font-size:15px}.workspace-nav-hint,.workspace-nav-spacer{display:none}.route-toolbar{padding:13px}.route-toolbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.route-toolbar-actions .text-button{font-size:10px;justify-content:center}.planner-mode-switch{top:65px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
/* BikeCoach Midnight Pro theme — visual-only layer, preserving existing layout and behavior. */
:root {
  color-scheme: dark;
  --ink: #e6edf7;
  --muted: #91a2b9;
  --paper: #0b1220;
  --panel: #111c2e;
  --line: #29394f;
  --green: #38bdf8;
  --green-dark: #0b2234;
  --navy: #0b1220;
  --red: #fb7185;
  --amber: #f59e0b;
  --accent: #38bdf8;
  --accent-soft: #102b40;
  --focus: rgba(56, 189, 248, .32);
  --shadow: 0 18px 55px rgba(0, 0, 0, .24);
  --surface-2: #162338;
  --surface-3: #1c2b42;
  --cyan: #38bdf8;
  --cyan-dim: #123650;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
}

html { background: var(--paper); color-scheme: dark; }
body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 7% -8%, rgba(14, 165, 233, .14), transparent 34%),
    radial-gradient(ellipse at 96% 15%, rgba(99, 102, 241, .10), transparent 28%),
    #0b1220;
}
::selection { color: #06111d; background: #7dd3fc; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b1220; }
::-webkit-scrollbar-thumb { background: #2a3c55; border: 2px solid #0b1220; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #3b536f; }
.ambient-one { background: #0ea5e9; opacity: .12; }
.ambient-two { background: #6366f1; opacity: .10; }

.topbar {
  background: rgba(11, 18, 32, .84);
  border-bottom: 1px solid rgba(148, 163, 184, .13);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
.brand { color: #f3f7ff; }
.brand-light { color: #8fa3be; }
.brand-mark {
  color: #061421;
  background: linear-gradient(145deg, #7dd3fc, #38bdf8);
  box-shadow: 0 5px 18px rgba(56, 189, 248, .24);
}
.live-pill { color: #8fa3bd; }
.pulse { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .13); }
.profile { color: #dbe7f7; }
.profile img { background: #1c2b42; }
.icon-button { color: #9aacc3; }
.icon-button:hover { color: #e8f2ff; background: #1b2b42; }

.app-shell { color: var(--ink); }
.eyebrow { color: #8ea2bc; }
.welcome-row h1 { color: #f3f7ff; }
.welcome-row h1 span { color: var(--cyan); }
.welcome-row p { color: var(--muted); }
.refresh-button {
  color: #d8e6f7;
  background: #15243a;
  border-color: #30435d;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
}
.refresh-button:hover { border-color: #38bdf8; background: #192c44; }
.panel {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(20, 33, 53, .98), rgba(16, 28, 46, .98));
  border: 1px solid rgba(111, 138, 171, .19);
  box-shadow: var(--shadow);
}
.route-toolbar { background: rgba(17, 28, 46, .94); }
.route-select-wrap label, .field label { color: #8ea2bc; }
.route-select-wrap select {
  color: #eaf2ff;
  background: transparent;
}
.route-toolbar-meta { color: #8ea2bc; }
.mini-star, .text-button span { color: #fbbf24; }
.text-button { color: #a9bad0; }
.text-button:hover { color: #7dd3fc; }
.route-toolbar-actions .text-button {
  color: #b7c7da;
  background: #17263c;
  border-color: #30435d;
}
.route-toolbar-actions .text-button:hover {
  color: #eaf7ff;
  background: #1c3450;
  border-color: #3a7195;
}
.text-button.is-favorite { color: #fbbf24; }
.route-editor { background: #111c2e; }
.panel-heading h2 { color: #eff6ff; }

.field input, .field select,
.planner-common-fields .field input,
.planner-common-fields .field select,
.week-controls input {
  color: #e5eefb;
  background: #0d1728;
  border: 1px solid #2b3c54;
  color-scheme: dark;
}
.field input::placeholder { color: #61758f; }
.field input:focus, .field select:focus,
.planner-common-fields .field input:focus,
.planner-common-fields .field select:focus,
.week-controls input:focus {
  color: #f4f8ff;
  background: #101e32;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .15);
}
.field small, .field-help { color: #8295ad; }
.form-status { color: #8ea2bc; }
.primary-button {
  color: #061522;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  box-shadow: 0 7px 20px rgba(14, 165, 233, .20);
}
.primary-button:hover { color: #04101a; background: #7dd3fc; box-shadow: 0 9px 25px rgba(14, 165, 233, .27); }
.primary-button:disabled, .secondary-button:disabled { opacity: .38; }
.secondary-button {
  color: #cfdef0;
  background: #1a2b42;
  border: 1px solid #344a66;
}
.secondary-button:hover { background: #223954; border-color: #47779a; }
.delete-button { color: #fb8797; }
.suggestions {
  background: #142238;
  border-color: #344a66;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.suggestion {
  color: #dce8f8;
  background: #142238;
  border-bottom-color: #263951;
}
.suggestion:hover { background: #1c3550; }
.suggestion small { color: #8ea2bc; }

.workspace-nav {
  background: rgba(17, 28, 46, .86);
  border-color: #293b54;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .17);
}
.workspace-nav-link { color: #9aacc3; }
.workspace-nav-link:hover { background: #1b2d45; border-color: #304861; }
.workspace-nav-link.is-active {
  color: #eaf7ff;
  background: #132e45;
  border-color: #285476;
}
.workspace-nav-link small { color: #849ab4; }
.workspace-nav-icon { color: #7dd3fc; background: #1b3048; }
.workspace-nav-link.is-active .workspace-nav-icon { color: #071724; background: #38bdf8; }
.workspace-nav-hint { color: #657b96; }

.day-tabs {
  background: rgba(17, 28, 46, .84);
  border-color: #293b54;
  box-shadow: 0 9px 28px rgba(0, 0, 0, .20);
}
.day-tab { color: #a9bad0; }
.day-tab:hover { background: #1a2b42; }
.day-tab:focus-visible { outline-color: rgba(56, 189, 248, .42); }
.day-tab.is-active {
  color: #f1f7ff;
  background: #1a2e47;
  border-color: #38536f;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .23), inset 0 0 0 1px rgba(56, 189, 248, .08);
}
.day-tab-number { color: #7dd3fc; background: #17334d; }
.day-tab:nth-child(2) .day-tab-number { color: #a5b4fc; background: #282d50; }
.day-tab.is-active .day-tab-number { color: #061522; background: #38bdf8; }
.day-tab:nth-child(2).is-active .day-tab-number { color: #0d1022; background: #a5b4fc; }
.day-tab-copy small { color: #8196af; }
.day-tab-status { color: #a5b5ca; background: #1b2b42; border-color: #344962; }
.day-tab-status.go { color: #6ee7b7; background: #12382f; border-color: #245847; }
.day-tab-status.caution { color: #fcd34d; background: #3c2e17; border-color: #62491f; }
.day-tab-status.no-go { color: #fda4af; background: #40232e; border-color: #653445; }
.day-tab-status.is-loading { color: #92a4ba; background: #1a293d; }
.day-heading, .section-label { color: #8095af; }
.section-label .section-line { background: #293b54; }

.verdict {
  color: #f1f7ff;
  background: radial-gradient(circle at 83% 18%, rgba(56, 189, 248, .17), transparent 27%), linear-gradient(112deg, #101d30, #142c45);
  border: 1px solid rgba(91, 169, 211, .24);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .28);
}
.verdict:after { background: rgba(56, 189, 248, .10); }
.verdict .eyebrow { color: #9ab5ce; }
.checked-at { color: #88a2bc; }
.verdict-main > p { color: #c0d1e4; }
.verdict-tag { color: #d8e9f9; border-color: rgba(180, 211, 239, .20); background: rgba(10, 24, 41, .24); }
.score-ring {
  border-color: rgba(56, 189, 248, .92);
  color: #7dd3fc;
  box-shadow: 0 0 0 7px rgba(56, 189, 248, .10);
}
.score-ring small { color: #b3d9f1; }
.verdict-score > span { color: #9db5cd; }
.verdict.caution, .day-column .verdict.caution {
  background: radial-gradient(circle at 83% 18%, rgba(245, 158, 11, .15), transparent 28%), linear-gradient(112deg, #2b2419, #3c2d1a);
  border-color: rgba(245, 158, 11, .25);
}
.verdict.no-go, .day-column .verdict.no-go {
  background: radial-gradient(circle at 83% 18%, rgba(251, 113, 133, .14), transparent 28%), linear-gradient(112deg, #2d1d2b, #3d202d);
  border-color: rgba(251, 113, 133, .25);
}
.verdict.caution .score-ring { border-color: #fbbf24; color: #fcd34d; }
.verdict.no-go .score-ring { border-color: #fb7185; color: #fda4af; }

.trip-card, .insight-card, .week-day-card, .planner-elevation, .planner-gradient {
  color: var(--ink);
  background: #142238;
  border-color: #293e59;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
.trip-direction { color: #8ea5bf; }
.trip-head h3, .insight-card h3 { color: #edf5ff; }
.trip-icon { color: #7dd3fc; background: #183b56; }
.return-card .trip-icon { color: #c4b5fd; background: #302b52; }
.trip-temp strong { color: #f3f8ff; }
.trip-temp span, .weather-meta, .weather-meta span:last-child { color: #9db0c8; }
.trip-foot { border-top-color: #2b3d55; color: #869bb4; }
.trip-foot b { color: #d8e6f7; }
.insight-icon { color: #7dd3fc; background: #17354e; }
.gear-card .insight-icon { color: #c4b5fd; background: #302b52; }
.insight-card p { color: #9aadc5; }
.gear-chip { color: #c7d8eb; background: #1d314a; border: 1px solid #2c4562; }
.coach-panel {
  color: #e7f3ff;
  background: linear-gradient(110deg, #142840, #192b43);
  border-color: #2d4965;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}
.coach-mark, .coach-spark { color: #38bdf8; }
.coach-panel .eyebrow { color: #8fb5d2; }
.coach-panel h3 { color: #eff7ff; }
.coach-panel p { color: #b1c4d9; }
.disclaimer { color: #71869f; }
.error-panel { color: #fecaca; background: #3b2028; border-color: #713542; }
.empty-state h2 { color: #edf5ff; }
.empty-state p { color: #9aadc5; }
.empty-illustration { color: #7dd3fc; }
.footer { color: #71869f; }
.footer b { color: #7dd3fc; }
.toast { color: #e9f3ff; background: #1c2d45; border: 1px solid #38516f; box-shadow: 0 15px 45px rgba(0, 0, 0, .35); }

/* Planner workspace */
.route-planner { background: #111c2e; border-color: #293d57; box-shadow: 0 20px 58px rgba(0, 0, 0, .24); }
.planner-header h2 { color: #f0f6ff; }
.planner-header p { color: #9aadc5; }
.planner-mode-switch { background: #0d1728; border-color: #2a3d56; box-shadow: 0 5px 18px rgba(0, 0, 0, .22); }
.planner-mode { color: #8ea2bb; }
.planner-mode:hover { color: #dcecff; background: #1a2b42; }
.planner-mode.is-active { color: #eaf7ff; background: #1c3b56; box-shadow: inset 0 0 0 1px #34698b, 0 3px 12px rgba(0, 0, 0, .20); }
.planner-empty { color: #8fa3bc; background: #0e192b; border-color: #354b66; }
.planner-waypoint { background: #142238; border-color: #2c415d; }
.planner-waypoint-index { color: #061522; background: #38bdf8; }
.planner-waypoint-copy strong { color: #e5eefb; }
.planner-waypoint-copy small { color: #8ea2bb; }
.planner-waypoint-actions button { color: #a9bed5; background: #1d3048; }
.planner-waypoint-actions button:hover { color: #eaf7ff; background: #28435f; }
.planner-map-actions .secondary-button { color: #d3e3f5; background: #1a2b42; border-color: #344b67; }
.planner-map-actions .secondary-button:hover { background: #223b57; border-color: #47779a; }
.planner-common-fields .field input, .planner-common-fields .field select { background: #0d1728; color: #e5eefb; border-color: #2b3c54; }
.planner-summary { background: #132940; border-color: #31516e; }
.planner-summary span { color: #d9efff; }
.planner-summary small { color: #91abc4; }
.planner-elevation-head, .planner-elevation-foot { color: #8ea2bb; }
.planner-elevation-head strong { color: #d6e7f8; }
.planner-gradient-head strong, .gradient-climbs-title strong { color: #d7e7f8; }
.planner-gradient-head span, .gradient-climbs-title span, .gradient-row > span { color: #8da3bc; }
.gradient-row > strong { color: #c5d6e9; }
.gradient-track { background: #263a54; }
.planner-gradient-climbs { border-top-color: #2b405b; }
.climb-chip { color: #a6bad1; background: #192b42; border-color: #2d435f; }
.climb-chip b { color: #7dd3fc; }
.gradient-empty, .gradient-note { color: #8297b1; }
.planner-footer .form-status { color: #91a5bd; }
.status-error { color: #fda4af !important; }
.planner-map-wrap { background: #0d1728; border-color: #30445e; }
.map-tip {
  color: #dbeafe;
  background: rgba(15, 28, 46, .94);
  border-color: rgba(125, 211, 252, .22);
  box-shadow: 0 7px 24px rgba(0, 0, 0, .35);
}
/* Keep the map itself legible; its cartographic layer remains independently styled. */
.leaflet-container { background: #101c2c; font-family: inherit; }
.leaflet-control-zoom a, .leaflet-bar a {
  color: #dcecff !important;
  background: #17283e !important;
  border-bottom-color: #344a64 !important;
}
.leaflet-bar { border: 1px solid #344a64 !important; box-shadow: 0 4px 14px rgba(0,0,0,.25) !important; }
.leaflet-control-attribution { color: #53657a !important; background: rgba(235, 242, 250, .84) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { color: #e5eefb; background: #17283e; }
.leaflet-popup-content { color: #e5eefb; }

/* Seven-day planner */
.week-intro { background: #142238; }
.week-intro h2 { color: #eff6ff; }
.week-intro p, .week-controls label { color: #91a5bd; }
.week-controls input { color: #e5eefb; background: #0d1728; border-color: #2b3c54; }
.week-best { background: linear-gradient(110deg, #132e45, #172c45); border-color: #2c526f; }
.week-best-icon { color: #061522; background: #38bdf8; }
.week-best .eyebrow { color: #8fb6d4; }
.week-best strong { color: #e9f6ff; }
.week-best p { color: #a9c0d7; }
.week-day-card { background: #142238; border-color: #2a405b; }
.week-day-card.go { border-top-color: #34d399; }
.week-day-card.caution { border-top-color: #fbbf24; }
.week-day-card.no-go { border-top-color: #fb7185; }
.week-day-card.passed { opacity: .48; }
.week-day-head strong { color: #e1ecf9; }
.week-day-head span { color: #a3b5ca; background: #20334c; }
.week-day-card.go .week-day-head span { color: #6ee7b7; background: #12382f; }
.week-day-card.caution .week-day-head span { color: #fcd34d; background: #3b2d18; }
.week-day-card.no-go .week-day-head span { color: #fda4af; background: #40232e; }
.week-day-score { color: #7dd3fc; }
.week-day-score small { color: #8297b1; }
.week-day-weather strong { color: #f0f6ff; }
.week-day-weather span, .week-day-metrics, .week-day-time, .week-day-card p { color: #91a5bd; }
.week-day-metrics { border-top-color: #2b405a; }
.week-loading { color: #8fa4bd; border-color: #344b66; }
.week-note { color: #7f94ad; }

/* Login view */
.login-layout { color: #e6edf7; }
.login-copy .eyebrow { color: #7dd3fc; }
.login-copy h1 { color: #f2f7ff; }
.login-copy h1 em { color: #7dd3fc; }
.login-copy > p { color: #a4b5cb; }
.login-points div { color: #d0deef; }
.login-points span { color: #38bdf8; }
.login-card { color: #e6edf7; background: #111c2e; border-color: #2b405b; box-shadow: 0 22px 65px rgba(0,0,0,.34); }
.login-icon { color: #7dd3fc; background: #17354e; }
.login-card h2 { color: #f3f8ff; }
.login-card > p, .privacy-note { color: #9aadc5; }
.google-button { color: #e5eefb; background: #192b42; border-color: #3a4f69; }
.google-button:hover { color: #fff; background: #213a56; border-color: #5484a6; }
.config-warning { color: #fcd38a; background: #3a2b19; border: 1px solid #62491f; }

/* Generic dialogs, uploads and validation states */
.upload-drop { color: #a8bad0; background: #0e1a2b; border-color: #344b66; }
.upload-drop:hover { color: #e7f4ff; background: #14263d; border-color: #4b789b; }
.upload-icon { color: #7dd3fc; }
.empty-actions { color: #9aadc5; }
.toast { color: #eaf4ff; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(56, 189, 248, .42);
  outline-offset: 2px;
}
.primary-button, .google-button, .refresh-button { transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.primary-button:hover, .google-button:hover, .refresh-button:hover { transform: translateY(-1px); }

@media (max-width: 760px) {
  .topbar { background: rgba(11, 18, 32, .92); }
  .workspace-nav { background: rgba(17, 28, 46, .95); }
  .route-toolbar { background: #111c2e; }
  .planner-mode-switch { background: #0d1728; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Precise address selection for commute routes */
.commute-country-field { max-width: 360px; }
.commute-country-field select,
.commute-address-field input,
.route-editor .field select {
  min-height: 44px;
  width: 100%;
  border: 1px solid #344761;
  border-radius: 11px;
  padding: 0 13px;
  color: #e5eefb;
  background: #0d1728;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.commute-address-field input:focus,
.commute-country-field select:focus,
.route-editor .field select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}
.commute-address-field input::placeholder { color: #71849b; }
.commute-address-field > small { min-height: 28px; line-height: 1.45; color: #91a5bd; }
.map-pick-button {
  align-self: flex-start;
  margin-top: 2px;
  padding: 7px 10px;
  border: 1px solid #34506c;
  border-radius: 9px;
  color: #a9dfff;
  background: #14263d;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.map-pick-button:hover, .map-pick-button.is-active {
  color: #071522;
  border-color: #38bdf8;
  background: #38bdf8;
}
.commute-address-field .suggestions {
  top: 66px;
  z-index: 30;
  background: #142238;
  border-color: #344b66;
  box-shadow: 0 16px 35px rgba(0,0,0,.42);
}
.commute-address-field .suggestion {
  color: #e5eefb;
  background: #142238;
  border-bottom-color: #263b55;
  line-height: 1.4;
}
.commute-address-field .suggestion:hover { background: #203650; }
.commute-address-field .suggestion small { color: #91a5bd; }
.address-no-result { color: #fcd38a !important; line-height: 1.5; }
.commute-map-wrap {
  overflow: hidden;
  border: 1px solid #304762;
  border-radius: 15px;
  background: #111c2e;
}
.commute-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid #2a405b;
}
.commute-map-heading strong { display: block; color: #eaf4ff; font-size: 13px; }
.commute-map-heading small { display: block; margin-top: 3px; color: #91a5bd; font-size: 10px; }
.commute-map-wrap #commute-map { width: 100%; height: 340px; min-height: 280px; background: #0d1728; }
.commute-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 9px 13px;
  color: #91a5bd;
  font-size: 10px;
  background: #0d1728;
}
.commute-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.commute-map-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.commute-map-legend .origin-dot { background: #34d399; }
.commute-map-legend .destination-dot { background: #fb7185; }
.route-editor .form-actions { gap: 14px; }
.route-editor .form-status { color: #91a5bd; line-height: 1.5; }
@media (max-width: 760px) {
  .commute-map-wrap #commute-map { height: 300px; min-height: 260px; }
  .commute-map-heading { align-items: flex-start; }
  .commute-map-heading .secondary-button { white-space: nowrap; }
  .route-editor .form-actions .form-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
  .route-editor .form-actions .form-buttons button { flex: 1 1 auto; }
}
