/* Aurora-inspired surfaces for the working Winks app. Keep child themes,
   white page backgrounds, visible navigation labels and native controls. */
body { --highlight: #9BCAF0; }
body[data-theme=pink] { --highlight: #F4B9D1; }
body[data-theme=green] { --highlight: #B0D8BD; }
#app-layout {
  --surface-border: color-mix(in srgb, var(--line) 60%, #fff);
  --surface-shadow: 0 5px 22px #182b3805, 0 1px 3px #182b3803;
}
.workspace-topbar { margin-bottom: 16px; }
#child-header .child-switch {
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--surface-shadow);
}
#child-header .avatar { background: var(--light); }
#main > .heading { margin-bottom: 20px; }
.page-title-row { align-items: center; }
.page-title-row .journal-link {
  border-color: var(--surface-border);
  border-radius: 24px;
  box-shadow: var(--surface-shadow);
}
#main .card:not(.timer-card):not(.activity-picker) {
  background: #fff;
  border-color: var(--surface-border);
  border-radius: 26px;
  box-shadow: var(--surface-shadow);
}
#main .activity-picker {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px 0 0;
  box-shadow: none;
}
.activity-picker > h2 { margin-bottom: 5px; }
.activity-picker > h3 { margin-top: 20px; }
.outdoor-picker { margin: 18px 0; padding: 16px; min-width: 0; border: 1px solid var(--surface-border); border-radius: 22px; background: #fff; }
.outdoor-picker legend { padding: 0 5px; font-weight: 600; font-size: .95rem; }
.outdoor-picker:focus, #play-duration-title:focus, #screen-duration-title:focus, #running-timer:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
.outdoor-options { margin: 4px 0 0; gap: 8px; }
.outdoor-options .pill { min-height: 44px; padding: 9px 14px; white-space: normal; }
.choices { gap: 12px; margin: 16px 0; }
.choice {
  min-height: 82px;
  padding: 14px 16px;
  gap: 12px;
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 550;
  background: #fff;
  box-shadow: var(--surface-shadow);
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.choice .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background-image: linear-gradient(145deg, #ffffff40, #ffffff00);
}
.choice .check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 17px;
  height: 17px;
  padding: 3px;
  background: #ffffff26;
  color: var(--on);
}
.choice[aria-pressed=true] {
  padding: 14px 16px;
  border: 1px solid var(--accent);
  background: var(--highlight);
  color: var(--on);
  box-shadow: 0 5px 14px #182b3812;
}
.choice[aria-pressed=true] .choice-text { padding-right: 4px; }
#main .primary {
  min-height: 52px;
  border-radius: 28px;
  background: var(--highlight);
  color: var(--on);
  font-weight: 650;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--strong) 12%, transparent);
}
#main .primary:disabled {
  background: var(--light);
  color: var(--muted);
  box-shadow: none;
  opacity: 1;
}
#main .timer-card .primary { background: #fff; color: var(--on); }
#main .timer-card .primary:disabled { opacity: .55; }
#main .daily-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 1px;
  min-height: 88px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.daily-summary > .icon-box {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: var(--light);
  box-shadow: none;
}
.daily-label { grid-column: 2; grid-row: 1; font-size: .875rem; color: var(--muted); }
.daily-value {
  grid-column: 2;
  grid-row: 2;
  max-width: none;
  text-align: left;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.summary-help { grid-column: 3; grid-row: 1 / 3; background: transparent; color: var(--muted); }
.duration-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; }
.duration-options .pill {
  min-height: 46px;
  min-width: 0;
  padding: 9px 5px;
  border-radius: 16px;
  background: #fff;
  border-color: var(--surface-border);
}
.duration-options .pill[aria-pressed=true] { background: var(--light); border-color: var(--strong); color: var(--strong); box-shadow: inset 0 0 0 1px var(--strong); }
#custom-minutes { min-width: 0; font-size: 1rem; }
.reminder-setting {
  padding: 8px 14px;
  margin-top: 14px;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  background: #fff;
}
.reminder-setting > strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.timer-card + .reminder-setting { margin: -6px 0 20px; padding: 5px 14px; border-radius: 16px; }
.reminder-setting button { flex: none; min-height: 44px; }
.screen-note { line-height: 1.5; }
.sleep-choices { gap: 12px; margin: 16px 0; }
.sleep-choice {
  min-width: 0;
  min-height: 150px;
  padding: 16px;
  gap: 8px;
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--surface-shadow);
}
.sleep-choice > .icon:not(.selected-check) { width: 44px; height: 44px; padding: 10px; border-radius: 15px; background: #F5E5A4; color: #695018; }
.sleep-choice[data-kind="Night sleep"] > .icon:not(.selected-check) { background: #DFCCF3; color: #603F86; }
.sleep-choice strong { font-size: 1.25rem; }
.sleep-choice[aria-pressed=true] { background: var(--highlight); color: var(--on); border-color: var(--accent); box-shadow: 0 5px 14px #182b3812; }
.sleep-choice[aria-pressed=true] span { color: var(--on); }
.sleep-choice .selected-check { color: var(--on); width: 18px; height: 18px; top: 12px; right: 12px; }
.section-title { margin-top: 28px; margin-bottom: 12px; }
.section-title .text-button { min-height: 44px; }
.moment .icon-box { border-radius: 14px; }
.moment { padding-top: 18px; padding-bottom: 18px; border-color: var(--surface-border); }
.moment-name { font-weight: 600; }
.moment-time { font-weight: 600; }
.moment-actions { gap: 22px; }
.history-filters { padding: 5px; border-radius: 24px; border-color: var(--surface-border); box-shadow: var(--surface-shadow); }
.history-filters .pill { border-radius: 19px; }
.history-filters .pill[aria-pressed=true] { background: var(--highlight); color: var(--on); border-color: var(--accent); }
.history-date-row { flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--surface-border); border-radius: 22px; background: #fff; }
.date-input { min-height: 44px; min-width: 0; width: 160px; max-width: 100%; border-color: var(--surface-border); border-radius: 14px; font-size: 1rem; }
.summary-grid { gap: 12px; margin: 16px 0 22px; }
.summary { min-width: 0; padding: 18px 12px; border-radius: 24px; border-color: var(--surface-border); box-shadow: var(--surface-shadow); text-align: center; }
.summary-heading { flex-direction: column; justify-content: center; gap: 8px; }
.summary-heading .icon-box { width: 40px; height: 40px; border-radius: 14px; }
.summary:nth-child(1) .icon-box { background: #E8F0E0; color: #34542A; }
.summary:nth-child(2) .icon-box { background: #FCEBD8; color: #70451C; }
.summary:nth-child(3) .icon-box { background: #EFE7F8; color: #603F86; }
.summary-heading > span:last-child { font-size: .875rem; }
.summary > strong { margin: 10px 0 5px; }
.summary > span { font-size: .8125rem; }
.history-chart { padding-top: 22px; }
.chart-bar { border-radius: 12px 12px 7px 7px; }
#main .info-panel { background: #fff; border: 1px solid var(--surface-border); border-radius: 22px; }
#main .timer-card { border-radius: 28px; }
.now-bar { border-color: var(--surface-border); border-radius: 20px; }
#navigation { background: #fff; border-color: var(--surface-border); box-shadow: var(--surface-shadow); }
.nav-item[aria-current=page] { background: var(--highlight); color: var(--on); box-shadow: none; }
@media (hover: hover) {
  .choice:hover:not([aria-pressed=true]), .sleep-choice:hover:not([aria-pressed=true]) { border-color: var(--accent); box-shadow: 0 4px 14px #182b380b; }
  #main .primary:hover:not(:disabled) { filter: brightness(.97); }
}
@media (max-width: 700px) {
  .workspace-topbar { min-height: 54px; margin-bottom: 10px; }
  #child-header .child-switch { gap: 5px; padding: 4px 7px 4px 4px; }
  #child-header .avatar { width: 32px; height: 32px; }
  #main > .heading { margin-bottom: 16px; }
  #main .card:not(.timer-card):not(.activity-picker) { border-radius: 24px; }
  #main .daily-summary { min-height: 82px; padding: 12px; column-gap: 10px; margin-bottom: 18px; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .daily-summary > .icon-box { width: 44px; height: 44px; border-radius: 16px; }
  .daily-value { font-size: 1.25rem; }
  .choices { gap: 10px; margin: 12px 0 16px; }
  .choice, .choice[aria-pressed=true] { min-height: 74px; padding: 11px 10px; gap: 9px; border-radius: 22px; font-size: .9375rem; }
  .choice .icon-box { width: 38px; height: 38px; border-radius: 13px; }
  .choice .check { width: 15px; height: 15px; top: 5px; right: 5px; padding: 2px; }
  .activity-picker > h3 { margin-top: 18px; }
  .sleep-choices { gap: 10px; margin: 12px 0 16px; }
  .sleep-choice { min-height: 140px; padding: 14px; border-radius: 22px; gap: 7px; }
  .sleep-choice strong { font-size: 1.125rem; }
  .sleep-choice span { font-size: .8125rem; }
  .summary-grid { gap: 8px; }
  .summary { padding: 14px 7px; border-radius: 22px; }
  .summary > strong { font-size: 1.125rem; }
  .summary-heading > span:last-child { font-size: .8125rem; }
  .history-date-row { padding: 8px 12px; }
  #navigation { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 8px 4px; border-radius: 28px; background: #ffffffed; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 6px 28px #182b3812; }
  .nav-item { min-height: 64px; justify-content: center; padding: 0 1px; gap: 5px; border-radius: 20px; font-size: .8125rem; }
  .nav-item .nav-icon { width: 40px; height: 40px; border-radius: 15px; }
  .nav-item[aria-current=page] { background: transparent; }
  .nav-item[aria-current=page] .nav-icon { background: var(--highlight); color: var(--on); box-shadow: 0 4px 9px #182b3815; }
  .nav-item[aria-current=page] .nav-icon .icon { color: var(--on); }
  .nav-item[aria-current=page]::after { content: none; }
}
@media (max-width: 370px) {
  .choice, .choice[aria-pressed=true] { gap: 7px; padding: 10px 8px; font-size: .875rem; }
  .choice .icon-box { width: 32px; height: 36px; border-radius: 12px; }
  .choice .icon-box .icon { width: 20px; height: 20px; }
  .duration-options { gap: 6px; }
  .sleep-choice { padding: 12px; }
  .summary-grid { gap: 6px; }
  .summary { padding: 12px 5px; }
  .summary > strong { font-size: 1.0625rem; }
  .daily-value { font-size: 1.125rem; }
  .daily-label { font-size: .8125rem; }
  .history-date-row { gap: 8px; }
}

/* Keep the child's identity and Journal reachable in the normal page scroll.
   The safe-area background also covers the status bar in the installed app. */
body { --page-surface: var(--bg); }
body[data-theme=pink] { --page-surface: #fff; }
#app-layout { --app-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
#app-layout h1, #app-layout h2, #app-layout h3,
#app-layout .child-name, #app-layout .summary strong,
#app-layout .running-kind, #app-layout .timer-number {
  font-family: var(--app-font);
  font-weight: 700;
  letter-spacing: -.035em;
}
.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: calc(8px + env(safe-area-inset-top)) 0 10px;
  background: var(--page-surface);
  border-bottom: 1px solid var(--surface-border);
}
#child-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
  max-width: none;
}
#child-header .child-switch { flex: 0 1 auto; min-width: 0; }
#child-header .child-switch > span:not(.avatar) { min-width: 0; }
#child-header .child-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#child-header .child-age { white-space: nowrap; }
#child-header .journal-link {
  flex: none;
  min-height: 46px;
  border-radius: 24px;
  border-color: var(--surface-border);
  box-shadow: var(--surface-shadow);
}
#child-header .journal-link[aria-pressed=true] { background: var(--highlight); color: var(--on); border-color: var(--accent); }
html { scroll-padding-top: calc(90px + env(safe-area-inset-top)); }
#main { scroll-margin-top: calc(90px + env(safe-area-inset-top)); }
.choice, .choice[aria-pressed=true] {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: 112px;
  padding: 16px;
}
.choice .choice-text { flex: none; width: 100%; }
.choice .icon-box { box-shadow: 0 4px 9px #182b380b; }
.activity-icon[data-activity="Outdoor"] { background-image: linear-gradient(135deg, #ffffff00, #ffffff40); }
.activity-icon[data-activity="TV"] { background: #BCDDF5; color: #245C8A; }
#main .profile-family { position: relative; isolation: isolate; overflow: hidden; padding: 22px; border-radius: 30px; }
.profile-family::before { content: ""; position: absolute; top: 0; right: 0; width: 180px; height: 150px; border-bottom-left-radius: 150px; background: linear-gradient(135deg, var(--light), #ffffff00); z-index: -1; pointer-events: none; }
.profile-section-head { gap: 8px; margin-bottom: 18px; }
#main .profile-section-head h2, #main .profile-account h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.profile-count { min-width: 23px; min-height: 23px; padding: 2px 6px; border-radius: 50%; font-size: .75rem; background: var(--highlight); color: var(--on); }
.profile-section-head .text-button { padding: 8px 10px; font-size: .8125rem; font-weight: 600; border-radius: 22px; background: #ffffffc9; }
.profile-family .profile-summary { flex-direction: column; gap: 12px; text-align: center; margin: 0 0 22px; }
.profile-family .profile-summary .avatar { width: 104px; height: 104px; font-family: var(--app-font); font-size: 2.5rem; font-weight: 650; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line), 0 8px 20px #182b3809; }
#main .profile-family .profile-summary h3 { font-size: 1.65rem; }
.profile-family .profile-summary p { margin-top: 4px; font-size: .9375rem; }
.profile-child-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 0; align-items: stretch; }
.profile-child-actions > :only-child { grid-column: 1 / -1; }
.profile-child-actions > button { min-width: 0; min-height: 52px; padding: 10px; font-size: .875rem; border-radius: 18px; }
.profile-child-actions .secondary { color: var(--ink); background: #fff; border-color: var(--surface-border); font-weight: 600; }
#main .profile-child-actions .primary { background: var(--highlight); gap: 6px; }
#main .profile-child-actions .primary:disabled { background: var(--light); }
.profile-family > .small-note { text-align: center; margin-top: 16px; }
.profile-account .account-email { margin-top: 12px; color: var(--ink); font-weight: 600; }
.profile-account-actions { border-top: 0; padding-top: 0; margin-top: 18px; }
.profile-account-actions .secondary { min-width: 90px; border: 0; border-radius: 16px; background: var(--bg); font-size: .875rem; font-weight: 600; }
.profile-account-actions .danger-text { font-size: .875rem; text-decoration: none; }
.profile-help-row { gap: 12px; min-height: 64px; padding: 12px 0; border-color: var(--surface-border); color: var(--ink); }
.profile-help-row > span:not(.help-icon) { flex: 1; min-width: 0; }
.profile-help-row .help-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 13px; background: var(--light); color: var(--strong); }
.help-icon .icon { width: 20px; height: 20px; }
.profile-help-row .row-arrow { width: 15px; height: 15px; color: var(--muted); transform: rotate(-90deg); }
@media (max-width: 700px) {
  .workspace-topbar { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; gap: 8px; margin-bottom: 14px; }
  #child-header { max-width: none; gap: 6px; }
  #child-header .child-switch { max-width: calc(100% - 50px); }
  #child-header .child-name { font-size: .9375rem; letter-spacing: -.025em; }
  #child-header .child-age { font-size: .75rem; }
  #child-header .journal-link { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  #child-header .journal-link > span { display: none; }
  #child-header .journal-link .icon { width: 22px; height: 22px; }
  .mobile-brand { gap: 6px; font-size: .9375rem; }
  .mobile-brand-line { font-size: .75rem; }
  .choice, .choice[aria-pressed=true] { min-height: 102px; padding: 14px; gap: 9px; }
  .choice .icon-box { width: 36px; height: 36px; }
  #main .profile-family { padding: 20px; border-radius: 28px; }
  .profile-section-head { margin-bottom: 16px; }
  .profile-help-row { font-size: .875rem; }
}
@media (max-width: 350px) {
  .workspace-topbar { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; gap: 6px; }
  .mobile-brand-line { font-size: .6875rem; }
  #child-header .chevron { width: 13px; margin-left: 0; }
  #child-header .avatar { width: 30px; height: 30px; }
  #main .profile-family { padding: 16px; }
  .profile-child-actions { gap: 8px; }
  .choice, .choice[aria-pressed=true] { padding: 12px; }
}

/* Pastel accents also apply to reminders and feedback outside the workspace. */
.voice-words input:checked + span .voice-name-check { background: var(--highlight); border-color: var(--accent); color: var(--on); }
#toast { background: var(--main); color: var(--on); border: 1px solid var(--accent); box-shadow: 0 5px 20px #182b380d; }
.danger-button { background: #FDE9F1; color: #9b234b; border: 1px solid #EBA8BF; }

/* The same child artwork appears before and during each activity. Keep labels
   below the pictures so they can wrap without competing for thumbnail space. */
.choice-media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
  pointer-events: none;
}
.choice-media .icon-box { flex: none; }
.choice-artwork {
  display: block;
  flex: 0 1 112px;
  width: 112px;
  min-width: 0;
  max-width: calc(100% - 49px);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  pointer-events: none;
}
.choice .choice-text { line-height: 1.35; }
.choice .check, .sleep-choice .selected-check { z-index: 1; }
.sleep-choice { min-height: 184px; }
.sleep-choice .choice-artwork { flex-basis: 148px; width: 148px; max-width: calc(100% - 42px); }
.sleep-choice .choice-media .icon-box { width: 36px; height: 36px; border-radius: 13px; background: #F5E5A4; color: #695018; }
.sleep-choice[data-kind="Night sleep"] .choice-media .icon-box { background: #DFCCF3; color: #603F86; }
.sleep-choice .choice-media .icon { width: 21px; height: 21px; color: inherit; }
.sleep-choice > strong, .sleep-choice > span:not(.choice-media) { width: 100%; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .choice, .choice[aria-pressed=true] { gap: 5px; }
  .choice-media { gap: 4px; }
  .choice-artwork { flex-basis: 104px; width: 104px; max-width: calc(100% - 40px); }
  .sleep-choice { min-height: 166px; padding: 12px 10px; gap: 6px; }
  .sleep-choice .choice-artwork { flex-basis: 140px; width: 140px; max-width: calc(100% - 32px); }
  .sleep-choice .choice-media .icon-box { width: 28px; height: 32px; border-radius: 11px; }
  .sleep-choice .choice-media .icon { width: 19px; height: 19px; }
  .sleep-choice .selected-check { top: 5px; right: 5px; width: 15px; height: 15px; }
}

/* Parent account details and direct browsing of saved days. */
#main .profile-details h2 { margin:0; font-size:.875rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.profile-details .profile-section-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.profile-details .profile-section-head .text-button { min-height:44px; background:var(--light); color:var(--on); padding:9px 14px; }
.account-details-list { margin:0; display:grid; gap:16px; }
.account-details-list > div { display:grid; gap:5px; min-width:0; }
.account-details-list dt { font-size:.875rem; color:var(--muted); }
.account-details-list dd { margin:0; font-size:1rem; font-weight:550; overflow-wrap:anywhere; }
#account-email[readonly] { background:var(--bg); color:var(--muted); }
.history-period-label { margin:0 0 12px; color:var(--muted); font-size:.875rem; font-weight:600; }
.history-days { margin:24px 0; }
.history-days > .small-note { margin:0 0 14px; }
/* Compact date rows expand in place; only one day's activities is open. */
.history-day-list { border:1px solid var(--surface-border); border-radius:20px; background:#fff; box-shadow:var(--surface-shadow); }
.history-day { min-width:0; }
.history-day + .history-day { border-top:1px solid var(--surface-border); }
.history-day-button { display:grid; grid-template-columns:minmax(0,1fr) auto 18px; align-items:center; gap:12px; width:100%; min-height:58px; padding:14px 16px; border:0; border-radius:0; background:transparent; color:var(--ink); text-align:left; }
.history-day:first-child > .history-day-button { border-radius:19px 19px 0 0; }
.history-day:last-child > .history-day-button[aria-expanded="false"] { border-radius:0 0 19px 19px; }
.history-day:only-child > .history-day-button[aria-expanded="false"] { border-radius:19px; }
.history-day-button:hover, .history-day-button[aria-expanded="true"] { background:color-mix(in srgb,var(--light) 40%,#fff); }
.history-day-button:focus-visible { position:relative; z-index:1; outline-offset:-3px; }
.history-day-date { min-width:0; font-size:1rem; font-weight:600; white-space:normal; }
.history-day-count { font-size:.8125rem; color:var(--muted); white-space:nowrap; }
.history-day-arrow { width:18px; height:18px; color:var(--strong); }
.history-day-button[aria-expanded="true"] .history-day-arrow { transform:rotate(180deg); }
.history-day-panel { padding:16px; border-top:1px solid var(--surface-border); background:color-mix(in srgb,var(--light) 20%,#fff); }
.history-day:last-child > .history-day-panel { border-radius:0 0 19px 19px; }
.history-day-panel[hidden] { display:none; }
#main .history-selected-day > h3 { margin:0 0 16px; color:var(--muted); font-size:.875rem; font-weight:500; }
#main .history-selected-day > .card:not(.timer-card):not(.activity-picker) { padding:4px 12px; margin-bottom:12px; box-shadow:none; border-radius:16px; }
.history-back { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; width:100%; margin:0; padding:8px; font-weight:600; }
.history-back .icon { width:16px; height:16px; transform:rotate(180deg); }
@media(max-width:360px) {
 .history-day-button { gap:8px; padding:14px 12px; }
 .history-day-panel { padding:14px 10px; }
}
