/* Shared chrome for the dashboard and About page: white and gray pills with a soft sheen and barely any depth. Cards and data stay flat. */
:root{
 --gel-sheen:radial-gradient(120% 75% at 50% 0,#ffffffe6 0,#fff0 100%);
 --gel:var(--gel-sheen),linear-gradient(180deg,#fcfcfd 0,#f3f3f5 100%);
 --gel-hover:var(--gel-sheen),linear-gradient(180deg,#f8f8f9 0,#ececee 100%);
 --gel-soft:linear-gradient(180deg,#ffffffa6 0,#ffffff59 100%);
 --gel-track:linear-gradient(180deg,#ebebed 0,#f2f2f3 100%);
 --gel-edge:#e8e8ea;
 --gel-text:#404040;
 --gel-lift:0 1px 2px #1a1a1a0f;
 --gel-well:inset 0 1px 2px #1a1a1a0d;
 --gel-glow:0 1px 5px #1a1a1a14;
 --gel-tint:linear-gradient(#1a1a1a0a,#1a1a1a0a);
 /* Outer corners; options inside a group sit 4px in (3px padding plus the border), so they curve 4px less. */
 --gel-radius:10px;
 --gel-radius-inner:6px;
}
/* The About page is light only. */
@media(prefers-color-scheme:dark){:root:not(.light){
 --gel-sheen:radial-gradient(120% 75% at 50% 0,#ffffff12 0,#fff0 100%);
 --gel:var(--gel-sheen),linear-gradient(180deg,#2e2e2e 0,#282828 100%);
 --gel-hover:var(--gel-sheen),linear-gradient(180deg,#353535 0,#2e2e2e 100%);
 --gel-soft:linear-gradient(180deg,#ffffff1f 0,#ffffff0d 100%);
 --gel-track:linear-gradient(180deg,#1b1b1b 0,#202020 100%);
 --gel-edge:#333;
 --gel-text:#f0f0f0;
 --gel-lift:0 1px 2px #0000004d;
 --gel-well:inset 0 1px 2px #00000040;
 --gel-glow:0 1px 4px #0000004d;
 --gel-tint:linear-gradient(#ffffff0f,#ffffff0f);
}}
/* Groups are sunken tracks; the chosen option sits raised in them. The page nav and the size stepper are groups too. */
.scope-switch,.period-switch,.page-navigation nav{background:var(--gel-track);border:1px solid transparent;border-radius:var(--gel-radius);box-shadow:var(--gel-well)}
.page-navigation nav{display:flex;align-items:stretch;gap:2px;height:var(--control-height-large);padding:3px}
.scope-switch button,.period-switch button,.view-tab{border-radius:var(--gel-radius-inner);transition:box-shadow .15s ease}
.view-tab{display:flex;align-items:center;padding:0 11px}
.scope-switch button.active,.period-switch button.active,.view-tab.active,.select-item[data-highlighted]{background:var(--gel);color:var(--gel-text);box-shadow:var(--gel-lift)}
@media(hover:hover){.view-tab:not(.active):hover,.scope-switch button:not(.active):hover,.period-switch button:not(.active):hover{background:var(--gel-soft);color:var(--gel-text)}}
/* The stepper is one raised button split in two, − and +, with a hairline between. */
.size-stepper{background:var(--gel);border:1px solid var(--gel-edge);border-radius:var(--gel-radius);box-shadow:var(--gel-lift);padding:0;gap:0;overflow:hidden}
.size-step{border-radius:0;width:34px}
.size-step+.size-step{border-left:1px solid var(--gel-edge)}
@media(hover:hover){.size-step:not([aria-disabled="true"]):hover{background:var(--gel-tint);color:var(--gel-text)}}
.size-step:not([aria-disabled="true"]):active{box-shadow:var(--gel-well)}
.gel-button,.icon-button,.countries-button,.sort-trigger,.view-settings-trigger,.small-button{background:var(--gel);border:1px solid var(--gel-edge);border-radius:var(--gel-radius);color:var(--gel-text);box-shadow:var(--gel-lift);transition:box-shadow .15s ease}
@media(hover:hover){.gel-button:hover,.icon-button:hover,.countries-button:hover,.sort-trigger:hover,.view-settings-trigger:hover,.small-button:hover{background:var(--gel-hover);color:var(--gel-text);box-shadow:var(--gel-glow)}}
.gel-button:active,.icon-button:active,.countries-button:active,.sort-trigger:active,.view-settings-trigger:active,.small-button:active{box-shadow:var(--gel-well)}
/* Primary: the same pill in black, with the same soft sheen. */
.gel-button.primary{--gel-primary-sheen:radial-gradient(120% 75% at 50% 0,#ffffff33 0,#fff0 100%);background:var(--gel-primary-sheen),linear-gradient(180deg,#262626 0,#111 100%);border-color:#111;color:#fff}
@media(hover:hover){.gel-button.primary:hover{background:var(--gel-primary-sheen),linear-gradient(180deg,#333 0,#1c1c1c 100%);color:#fff}}
.search{background:var(--surface);border:1px solid var(--gel-edge);border-radius:var(--gel-radius);box-shadow:var(--gel-well);transition:box-shadow .15s ease}
.search:focus-within{box-shadow:var(--gel-well),var(--gel-glow)}
.search input:focus-visible{outline:none}

/* Touch: no gray flash on tap, and a press settles in rather than snapping. */
.gel-button,.icon-button,.countries-button,.sort-trigger,.view-settings-trigger,.small-button,.view-tab,.scope-switch button,.period-switch button,.size-step{-webkit-tap-highlight-color:transparent;transition:box-shadow .15s ease,background-color .15s ease,color .15s ease}
/* On phones the interests collapse to one dropdown, which is a button, not a group. */
.scope-switch.interest-navigation-compact{background:var(--gel);box-shadow:var(--gel-lift)}
