* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Premium Smart-Watch Stack for high legibility and athletic aesthetic */
  font-family: "SF Pro Rounded", "Inter", "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Crucial for fitness apps: stops timers and stats from shifting/shaking layout */
  font-variant-numeric: tabular-nums; 
}


body {
  background-color: #faf9f5;
  color: #1e2420;
}

.app-container {
  max-width: 980px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Screen Switching */
.screen {
  display: none;
  animation: fadeIn 0.18s ease-out;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none !important;
}

.clickable {
  cursor: pointer;
}

/* Header */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: #ffffff;
  border-bottom: 1px solid #e6e4dd;
}

.brand {
  cursor: pointer;
}

.brand h1 {
  color: #2c6e49;
  font-size: 22px;
}

.brand p {
  font-size: 12px;
  color: #6c756b;
}

.nav-pills {
  display: flex;
  gap: 8px;
  border: 1px solid #e2e5dc;
  padding: 6px 12px;
  border-radius: 14px;
}

.nav-item {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  color: #4a544c;
  cursor: pointer;
}

.nav-item.active {
  background-color: #e6f2ea;
  color: #2c6e49;
  font-weight: 600;
}

/* Workspace Typography */
.workspace {
  flex: 1;
  padding: 28px 32px;
}

.back-link {
  text-decoration: none;
  color: #4a544c;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 8px;
}

.page-title {
  font-size: 26px;
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 13px;
  color: #6c756b;
  margin-bottom: 20px;
}

/* Grids & Cards */
.content-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: start;
}

.card {
  background: #ffffff;
  border: 1px solid #e6e4dd;
  border-radius: 16px;
  padding: 22px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.two-col-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

/* Mascot Rows & Status Banners */
.mascot-row,
.status-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.mascot-row {
  background: #f7f6f1;
}

.cat-avatar {
  width: 84px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mascot-svg {
  width: 100%;
  height: 100%;
}

/* Optional: Automatically switches jacket to brown/tan on Caution state like R02 */
.status-banner.caution .mascot-jacket {
  fill: #7c5836;
}
.mascot-row strong,
.status-banner strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.mascot-row p,
.status-banner p {
  font-size: 13px;
  color: #4a544c;
}

/* Dynamic Colors for Status & Alert Boxes */
.alert-box {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.alert-box strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.alert-box p {
  font-size: 13px;
}

.danger {
  background-color: #f9e6e4;
  border-color: #f1c9c5;
}
.danger strong {
  color: #8c2a22;
}
.danger p {
  color: #4a211d;
}

.caution {
  background-color: #faeed7;
  border-color: #efd8ad;
}
.caution strong {
  color: #855213;
}
.caution p {
  color: #4d3311;
}

.clear {
  background-color: #e6f2ea;
  border-color: #c4e2ce;
}
.clear strong {
  color: #24583c;
}
.clear p {
  color: #1e3a2b;
}

/* Inputs & Toggle Buttons */
.section-label {
  display: block;
  font-size: 12px;
  color: #6c756b;
  margin-bottom: 6px;
}

.input-box {
  border: 1px solid #e6e4dd;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: #ffffff;
}

.input-label {
  display: block;
  font-size: 11px;
  color: #6c756b;
  margin-bottom: 3px;
}

.input-box strong {
  font-size: 14px;
}

.choice-btn {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d4dad1;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: #1e2420;
  cursor: pointer;
}

.choice-btn.active {
  background-color: #dfece3;
  border-color: #2c6e49;
  color: #1e3a2b;
}

/* Buttons */
.btn {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.full-width {
  width: 100%;
  margin-top: 8px;
}

.btn-primary {
  background-color: #35684d;
  color: #ffffff;
  border: none;
}

.btn-outline {
  background-color: #ffffff;
  color: #2c6e49;
  border: 1px solid #d4dad1;
}

.run-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.run-actions .btn {
  margin-top: 0;
}

.action-feedback {
  min-height: 18px;
  margin-top: 8px;
  color: #2c6e49;
  font-size: 12px;
  line-height: 1.4;
}

.saved-session-box {
  background-color: #e6f2ea;
  border-color: #c4e2ce;
}

.saved-session-status {
  display: inline-block;
  margin-top: 8px;
  color: #24583c;
  font-size: 12px;
  font-weight: 600;
}

.active-run-panel {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid #b9ddc5;
  border-radius: 12px;
  background: #f0f8f2;
}

.active-run-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.active-run-heading .section-label {
  margin-bottom: 3px;
}

.active-run-heading strong {
  color: #24583c;
  font-size: 15px;
}

.run-live-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #d7eddd;
  color: #24583c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.timer-display {
  margin-top: 16px;
  color: #1e3a2b;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.timer-caption {
  margin-top: 8px;
  color: #5c645d;
  font-size: 12px;
}

.timer-track {
  height: 8px;
  margin: 14px 0 2px;
  overflow: hidden;
  border-radius: 999px;
  background: #dcebe0;
}

.timer-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #35684d;
  transition: width 0.4s linear;
}

/* Info & Metric Boxes */
.run-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #e9eff5;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.run-banner strong {
  color: #224268;
  font-size: 14px;
}

.run-banner p {
  color: #5c6c7c;
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.4;
}

.info-box {
  border: 1px solid #e6e4dd;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: #ffffff;
}

.info-box.blue-tint {
  background-color: #e9eff5;
  border-color: #d8e3ee;
}

.info-box.blue-tint strong {
  color: #224268;
}

.info-box strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.info-box p,
.helper-text {
  font-size: 12px;
  color: #5c645d;
  line-height: 1.45;
}

.helper-text {
  margin: 12px 0;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-box {
  border: 1px solid #e6e4dd;
  border-radius: 12px;
  padding: 14px;
}

.metric-box.white-bg {
  background: #ffffff;
}

.metric-label {
  display: block;
  font-size: 12px;
  color: #6c756b;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 20px;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 32px;
  border-top: 1px solid #e6e4dd;
  font-size: 12px;
  color: #6c756b;
}

.input-box input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #1e2420;
  outline: none;
  margin-top: 2px;
}

.input-box:focus-within {
  border-color: #2c6e49;
  background-color: #f7fbf8;
}

/* Hourly Forecast Screen Grid */
.hourly-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 18px;
  scroll-snap-type: x mandatory;
}

/* Scoller */
.hourly-grid::-webkit-scrollbar {
  height: 8px;
}
.hourly-grid::-webkit-scrollbar-track {
  background: #e6e4dd;
  border-radius: 999px;
}
.hourly-grid::-webkit-scrollbar-thumb {
  background: #2c6e49;
  border-radius: 999px;
}

.hour-card {
  flex: 0 0 180px;
  background: #ffffff;
  border: 1px solid #e6e4dd;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 215px;
  scroll-snap-align: start;
}

.hour-card.active-start-hour {
  border-color: #2c6e49;
  background-color: #f0f8f2;
}

.hour-time {
  font-size: 15px;
  color: #1e2420;
}

.hour-icon {
  font-size: 20px;
}

.hour-main {
  font-size: 18px;
  color: #1e2420;
}

.hour-desc {
  font-size: 13px;
  color: #4a544c;
  line-height: 1.45;
}

.hour-humidity {
  font-size: 12px;
  color: #6c756b;
  margin-top: auto;
  padding-top: 6px;
}

.back-btn-fixed {
  width: 200px;
  margin-top: 6px;
}


/* Added Demo & UC1/UC2 Styles */
.three-col-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.pill-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.danger-pill {
  background: #8c2a22;
  color: #ffffff;
}

.caution-pill {
  background: #855213;
  color: #ffffff;
}

.neutral-banner {
  background-color: #eef1ef;
  border: 1px solid #d5dcd7;
}

.gear-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e6e4dd;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #ffffff;
}

.gear-check-row:hover {
  border-color: #2c6e49;
  background: #f9fbf9;
}

.gear-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #2c6e49;
  flex-shrink: 0;
}

.gear-check-row strong {
  display: block;
  font-size: 14px;
  color: #1e2420;
  margin-bottom: 2px;
}

.gear-check-row p {
  font-size: 12px;
  color: #5c645d;
  line-height: 1.35;
}

.clean-list {
  list-style: none;
  padding-left: 0;
  margin-top: 6px;
}

.clean-list li {
  font-size: 13px;
  color: #243c35;
  font-weight: 600;
  padding: 4px 0;
}

.tag-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-pill {
  border: 1px solid #d4dad1;
  background: #ffffff;
  color: #243c35;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tag-pill.active {
  background: #dfece3;
  border-color: #2c6e49;
  color: #1e3a2b;
}

.input-box textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #1e2420;
  outline: none;
  resize: vertical;
  margin-top: 4px;
  line-height: 1.4;
}

.annotations-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.annotation-item {
  background: #f7f9f7;
  border: 1px solid #e1e8e3;
  border-radius: 10px;
  padding: 10px 12px;
}

.annotation-item .ann-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5c645d;
  margin-bottom: 4px;
}

.annotation-item .ann-tag {
  font-weight: 700;
  color: #2c6e49;
}

.annotation-item p {
  font-size: 12px;
  color: #1e2420;
  line-height: 1.4;
}

/* Live Location Search & Production UI Additions */
.clear-pill {
  background: #24583c;
  color: #ffffff;
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  flex-shrink: 0;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #d4dad1;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.search-result-item:hover {
  border-color: #2c6e49;
  background: #f0f8f2;
}

.search-result-item strong {
  font-size: 13px;
  color: #1e2420;
}

.search-result-item span {
  font-size: 11px;
  color: #6c756b;
}

.delete-note-btn {
  background: none;
  border: none;
  color: #8c2a22;
  font-size: 14px;
  font-weight: 700;
  margin-left: 6px;
  cursor: pointer;
  line-height: 1;
}

.precip-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: #224268;
  background-color: #e9eff5;
  padding: 4px 10px;
  border-radius: 999px;
}