/* Mobile layout uses the Evercare 2026 standard blue and light content surfaces. */
@media (max-width: 680px) {
  :root {
    color-scheme: light;
    --blue: #143080;
    --deep: #0f245d;
    --gold: #8c6c4c;
    --aqua: #143080;
    --ink: #143080;
    --muted: #64728a;
    --line: #dce4f2;
    --paper: #f4f6fb;
    --radius: 17px;
  }
  body {background: radial-gradient(ellipse at 85% 0, #14308010, transparent 40%), #f4f6fb; color: #143080;}
  .preview-bar {background: #eaf0fb; color: #526585; border-bottom: 1px solid #dce4f2; font-size: 9px;}
  .preview-bar i {background: #143080;}
  .masthead {min-height: 76px; padding: 12px 14px; background: #fffffff2; border-color: #dce4f2; box-shadow: 0 4px 18px #0002;}
  .wordmark {color: #143080; font-size: 18px;}
  .wordmark span {color: #143080;}
  .masthead-title {display: none;}
  .masthead > .outline {color: #143080; border-color: #dce4f2; background: #edf2fb;}
  .outline {color: #233451; border-color: #dce4f2; background: #edf2fb;}
  .outline:hover {background: #e2eaf8;}
  .primary {background: #143080; color: #0f245d; border: 1px solid #143080; box-shadow: 0 2px 8px #0002;}
  .primary:hover {background: #204399; color: #0f245d;}
  .shell {display: block;}
  .sidebar {background: #f4f6fb; border-color: #dce4f2; padding: 14px; position: static; min-height: 0;}
  .sidebar-head, .sidebar-bottom {display: none;}
  .search {background: #edf2fb; border-color: #dce4f2; margin: 0 0 9px; padding: 5px 10px;}
  .search input {font-size: 12px; min-height: 30px; color: #143080;}
  .search input::placeholder {color: #64728a;}
  .search span {color: #64728a;}
  .select-label select {color: #233451; background: #edf2fb; border-color: #dce4f2; padding: 8px;}
  .list-tabs {border: 1px solid #dce4f2; padding: 3px; margin: 10px 0 5px; background: #edf2fb; border-radius: 10px; gap: 4px;}
  .list-tabs button {border: 0; border-radius: 7px; min-height: 36px; color: #a8bdc5; font-size: 11px;}
  .list-tabs .active {background: #143080; color: #0f245d;}
  .people-list {display: flex; overflow: auto; max-height: 85px; gap: 6px; scrollbar-color: #49616b #edf2fb;}
  .person-button {width: 154px; flex: 0 0 154px; padding: 10px; border-color: #2f444d; background: #f2f5fb; color: #143080;}
  .person-button .initial {background: #273b45; color: #c4d4dc; width: 30px; height: 30px;}
  .person-button.selected {border-color: #9abb51; background: #eaf0fb; color: #eaf4d4;}
  .person-button.selected .initial {background: #14308012; color: #143080;}
  .person-button.selected small {color: #b9caa8;}
  .person-button:hover:not(.selected) {background: #e2eaf8;}
  .person-button .arrow {display: none;}
  main {padding: 24px 14px max(32px, env(safe-area-inset-bottom));}
  .hero h1 {font-size: 29px; letter-spacing: -.8px; color: #143080;}
  .hero h1 span {color: #64728a; font-size: 12px;}
  .hero .eyebrow {color: #143080; font-size: 9px; letter-spacing: 1.3px;}
  .anniversary-number {color: #8c6c4c;}
  .anniversary-number:after {border-color: #8c6c4c40;}
  .anniversary-number span {color: #8c6c4c;}
  .disclaimer {background: #d6be7710; border-color: #d6be7744; padding: 11px 12px;}
  .disclaimer > span {color: #8c6c4c;}
  .disclaimer p {color: #7c715c; font-size: 10px; line-height: 1.8;}
  .profile {border-color: #dce4f2; background: linear-gradient(145deg, #ffffff, #ffffff); border-radius: 17px; padding: 16px; grid-template-columns: 1fr 1fr; gap: 12px;}
  .avatar {display: none;}
  .profile-name {grid-column: 1 / -1;}
  .profile-name h2 {color: #143080;}
  .profile-stat {grid-column: auto; display: block; padding: 0; border: 0;}
  .profile-stat > span {font-size: 10px; color: #64728a;}
  .profile-stat > strong {color: #8c6c4c; font-size: 25px; margin-top: 3px;}
  .profile-stat > strong small {color: #64728a;}
  .profile > .primary {grid-column: 1 / -1; font-size: 12px;}
  .section-title h2, .card-heading h3, .product-info h4 {color: #143080;}
  .section-note {color: #64728a;}
  .dashboard-grid {display: flex; flex-direction: column; gap: 18px;}
  .reward-card {width: 100%; padding: 20px; background: linear-gradient(145deg, #ffffff, #ffffff); border-color: #dce4f2; border-radius: 17px; box-shadow: 0 8px 25px #0002;}
  .card-heading {border-bottom: 1px solid #ffffff14; padding-bottom: 13px; margin-bottom: 17px;}
  .card-heading h3 {font-size: 17px;}
  .text-button {color: #8c6c4c;}
  .card-heading .text-button {min-height: 36px; font-size: 11px;}
  .big-value, .cash-result strong {color: #8c6c4c;}
  .gift-visual {background: #edf2fb;}
  .gift-node {background: transparent;}
  .gift-node b {background: #ffffff; color: #64728a; border-color: #dce4f2;}
  .gift-node.reached b {background: #eaf0fb; color: #143080; border-color: #9fb2da;}
  .gift-node.next b {background: #8c6c4c; color: #25303b; border-color: #8c6c4c;}
  .gift-node span {color: #64728a;}
  .next-line {background: #d6be7712; border: 1px solid #d6be7730; color: #233451; border-radius: 10px;}
  .next-line strong {color: #8c6c4c;}
  .challenge input {background: #f2f5fb; color: #8c6c4c; border-color: #dce4f2;}
  .track {background: #ffffff12;}
  .track i {background: #143080;}
  .product-row {grid-template-columns: 100px minmax(0, 1fr); gap: 17px;}
  .product-art {background: #edf0f2; border-radius: 10px;}
  .product-art.radiesse {background: #edf0f2;}
  .product-brand {color: #64728a;}
  .product-score strong {color: #78c4ff;}
  .product-info p {color: #64728a;}
  .reward-label {color: #8c6c4c;}
  .image-caption {background: #fffffff2; color: #5b6571;}
  .card-foot {color: #64728a; line-height: 1.85;}
  .scope-note {background: #ffffff08; color: #64728a; border-color: #dce4f2;}
  .status-chip {background: #14308012; color: #143080;}
  .n6-gallery figure {background: #edf0e9; border-radius: 10px;}
  .n6-gallery figure.locked {opacity: .6;}
  .n6-gallery figcaption {color: #34434b; padding-bottom: 8px;}
  .art-note {color: #64728a; margin-top: 10px;}
  .wake-tiers > div {background: #ffffff; border-color: #dce4f2;}
  .wake-tiers strong {color: #233451;}
  .wake-tiers .reached {background: #eaf0fb; border-color: #9fb2da;}
  .wake-tiers .reached strong {color: #143080;}
  .performance-card {order: 0;}
  .performance-intro h4 {color: #8c6c4c;}
  .choice-tag {color: #8c6c4c;}
  .level-steps button {background: #ffffff; border-color: #dce4f2; color: #64728a;}
  .level-steps button.achieved {background: #eaf0fb; border-color: #9fb2da; color: #143080;}
  .level-steps button.viewing {background: #8c6c4c; border-color: #8c6c4c; color: #24323d;}
  .pool-heading strong {color: #8c6c4c;}
  .pool-option {background: #ffffff; border-color: #dce4f2; color: #143080; min-height: 85px;}
  .pool-option.wished {border-color: #8c6c4c; background: #d6be7717; color: #70512d;}
  .pool-option small {color: #64728a;}
  .wish-note {color: #8c6c4c; font-size: 11px;}
  .opportunity-card {order: 4; width: 100%; background: linear-gradient(145deg, #ffffff, #ffffff); border: 1px solid #dce4f2; box-shadow: 0 8px 25px #0002;}
  .opportunity-card .primary {background: #143080; color: #0f245d;}
  .opportunity-card h3 {color: #143080;}
  .opportunity-card > p {color: #64728a;}
  .pocket-card {order: 5; background: #f2f5fb; border-color: #dce4f2; grid-template-columns: 1fr;}
  .pocket-item {background: #ffffff; border-color: #dce4f2; color: #8c6c4c;}
  .pocket-card h3 {color: #143080;}
  .table-wrap {border-color: #dce4f2; background: #ffffff;}
  table th {background: #ffffff; color: #526585;}
  table td {color: #233451;}
  table td button {color: #8c6c4c; border-color: #dce4f2;}
  .selected-row td {background: #eaf0fb;}
  .source-notes summary {color: #143080;}
  .source-notes details > div {background: #ffffff; border-color: #dce4f2; color: #64728a;}
  a {color: #143080;}
  footer {color: #64728a; border-color: #2f444d;}
  dialog {background: #ffffff; color: #143080; border-color: #dce4f2; box-shadow: 0 25px 100px #0008;}
  .dialog-head {background: #ffffff; border-color: #dce4f2;}
  .dialog-head h2, .rule-body h3, .simulation-result h3 {color: #8c6c4c;}
  .rule-body .rule-callout {background: #d6be7717; color: #70512d;}
  .rule-body img {background: #fff;}
  .simulation-inputs input {background: #f4f6fb; color: #8c6c4c; border-color: #dce4f2;}
  .simulation-inputs input:invalid {border-color: #ff9ba0;}
  .simulation-result .delta {color: #143080;}
  .simulation-result .hint {color: #8c6c4c;}
  .error-message {color: #ffb0ad;}
}
@media (max-width: 350px) {
  .reward-card {padding: 16px;}
  .card-heading h3 {font-size: 16px;}
  .product-row {grid-template-columns: 82px minmax(0, 1fr); gap: 12px;}
  .profile-stat > strong {font-size: 22px;}
  .hero h1 {font-size: 25px;}
}

@media(max-width:680px){.top-disclaimer{width:calc(100% - 28px);margin:14px}.top-disclaimer strong{color:#8c6c4c;font-size:11px;line-height:1.8}.top-disclaimer>span{white-space:nowrap;font-size:10px}}
