/* Sofi 1.1: fluid surfaces, original vector motifs and motion. */
.menu-close {
  position: absolute;
  right: 12px;
  top: 19px;
  z-index: 2;
}
#sidebar .brand {
  padding-right: 42px;
}
:root {
  --radius: 26px;
  --background: #eef3f0;
  --surface: #ffffff;
  --border: #dce7e1;
  --shadow: 0 14px 44px #153e2b08;
  --primary: #205a49;
}
body {
  background: var(--background);
  isolation: isolate;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(
    --scene,
    radial-gradient(ellipse at 90% 0%, #b8d6c940, transparent 65%)
  );
  background-size: cover;
  background-position: center;
  opacity: 1;
}
body.background-image:before {
  background-image: var(--custom-background);
  opacity: 0.18;
}
.dark body:before {
  opacity: 0.16;
}
#sidebar {
  width: 290px;
  transform: translateX(-105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 20px 0 80px #153c2620;
  padding: 28px 22px;
  border: 0;
  inset: 0 auto 0 0;
}
#sidebar.open {
  transform: translateX(0);
}
#sidebar .brand {
  padding: 0 12px 26px;
}
.brand-dot {
  display: none;
}
.scrim {
  position: fixed;
  inset: 0;
  background: #101e245c;
  backdrop-filter: blur(7px);
  z-index: 39;
}
.workspace {
  margin-left: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 86px;
  max-width: none;
  padding: 0 max(28px, calc((100vw - 1270px) / 2));
  background: color-mix(in srgb, var(--surface) 87%, transparent);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  gap: 17px;
}
.topbar .mobile-only {
  display: inline-grid;
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    29px Georgia,
    serif;
  min-width: 0;
  margin-right: auto;
}
.mobile-brand .app-name {
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-symbol {
  width: 42px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--primary), #133e36);
  box-shadow: inset 0 1px 0 #ffffff3f;
  display: grid;
  place-items: center;
}
.brand-symbol img {
  width: 36px;
  height: 36px;
  padding: 4px;
  object-fit: contain;
}
.mobile-brand .brand-symbol {
  width: 39px;
  height: 42px;
}
.avatar {
  display: none;
}
.search-open {
  min-width: 200px;
}
.install-button {
  border: 0;
  border-radius: 99px;
  padding: 10px 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  background: var(--primary);
  color: var(--surface);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px #214d4320;
}
.install-button svg {
  width: 18px;
  height: 18px;
}
.install-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px #214d4330;
}
.install-button:active {
  transform: translateY(0);
}
main {
  max-width: 1270px;
  padding: 38px 28px;
}
.page-footer {
  max-width: 1270px;
  padding-inline: 28px;
}
.welcome {
  margin-bottom: 29px;
}
.welcome h1 {
  font-size: 2.8rem;
  letter-spacing: -1.3px;
}
.welcome p {
  font-size: 0.875rem;
}
.date-chip {
  background: transparent;
  border: 0;
  padding: 0;
}
.dashboard-date {
  margin: 0;
}
.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}
.card {
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.program-hero {
  min-height: 267px;
  padding: 34px;
  color: white;
  border: 0;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--primary) 90%, #102b2b),
    var(--primary)
  );
  isolation: isolate;
  overflow: hidden;
}
.program-hero:before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -110px;
  top: -155px;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  box-shadow:
    0 0 0 30px #ffffff05,
    0 0 0 70px #ffffff05,
    0 0 0 110px #ffffff05,
    0 0 0 150px #ffffff05;
  z-index: -1;
  animation: orbit-breathe 12s ease-in-out infinite alternate;
}
.program-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse at 100% 100%, #a9e2b643, transparent 60%);
}
.program-hero h2 {
  font-size: 2.15rem;
  max-width: 270px;
  line-height: 1.15;
  margin: 0 0 15px;
}
.program-hero p {
  max-width: 260px;
  margin-bottom: 26px;
  font-size: 0.875rem;
  color: #d7ece3;
}
.program-hero .button {
  border-radius: 100px;
  padding-inline: 22px;
  min-height: 44px;
  font-weight: 600;
  background: #ebf6d7;
}
.hero-ring {
  width: 160px;
  height: 160px;
  padding: 6px;
  background: conic-gradient(#d9efb1 calc(var(--progress) * 1%), #ffffff20 0);
  box-shadow:
    0 0 0 12px #ffffff06,
    0 0 0 13px #ffffff12;
}
.hero-ring > div {
  background: color-mix(in srgb, var(--primary) 85%, #123129);
}
.hero-ring strong {
  font-size: 45px;
  color: #fff;
}
.hero-ring small {
  font-size: 12px;
}
.quick-grid {
  gap: 13px;
}
.quick-card {
  padding: 19px 17px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  font-size: 0.875rem;
}
.quick-card:after {
  content: "↗";
  position: absolute;
  right: 13px;
  top: 10px;
  color: var(--muted);
  opacity: 0.55;
  font-size: 17px;
}
.quick-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px #173f2910;
}
.quick-card .icon-tile {
  border-radius: 15px;
  width: 48px;
  height: 48px;
  transform: rotate(-5deg);
  transition: transform 0.25s;
}
.quick-card:hover .icon-tile {
  transform: rotate(0);
}
.icon-tile svg {
  width: 24px;
  height: 24px;
}
.section-heading h2 {
  font-weight: 600;
  letter-spacing: -0.4px;
}
.quote-card {
  background: #ece6f7;
  color: #3e3059;
  border: 0;
}
.quote-card .eyebrow,
.quote-card small {
  color: #6a567d;
}
.quote-card blockquote {
  font-size: 1.8rem;
  line-height: 1.4;
}
.quote-mark {
  color: #987cb4;
}
.quote-card:after {
  content: "✦";
  font-size: 37px;
  position: absolute;
  right: 23px;
  top: 14px;
  color: #af96c777;
  animation: star-turn 30s linear infinite;
}
.mini-counter {
  background: linear-gradient(160deg, var(--surface) 60%, var(--secondary));
}
.mini-count {
  font-size: 65px;
}
.learn-icon {
  border-radius: 20px 20px 6px 20px;
  background: linear-gradient(145deg, var(--secondary), var(--surface));
}
.content-card {
  padding: 25px;
  min-height: 245px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px #233b3210;
}
.content-card .pill {
  border-radius: 100px;
  padding: 5px 12px;
}
.content-card h2 {
  font-size: 1.6rem;
}
.content-card:nth-child(4n + 2) {
  border-top: 3px solid #c4acdb;
}
.content-card:nth-child(4n + 3) {
  border-top: 3px solid #b0cfc5;
}
.content-card:nth-child(4n + 4) {
  border-top: 3px solid #d3c4a7;
}
.section-intro h1 {
  font-size: 2.7rem;
  margin-bottom: 13px;
}
.section-intro > p {
  font-size: 0.875rem;
}
.counter-page {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 25px 90px #234e4310;
}
.counter-circle {
  box-shadow:
    0 0 0 13px color-mix(in srgb, var(--secondary) 50%, transparent),
    0 20px 60px #234e4310;
  transition: transform 0.12s;
}
.counter-inner {
  box-shadow: inset 0 0 0 12px var(--surface);
  background: radial-gradient(
    circle at 30% 20%,
    var(--surface) 50%,
    var(--secondary)
  );
}
.counter-value {
  font-style: italic;
}
.theme-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.theme-option {
  padding: 0 0 10px;
  overflow: hidden;
  border-radius: 15px;
  gap: 10px;
  transition: transform 0.2s;
  font-size: 0.8125rem;
}
.theme-option:hover {
  transform: translateY(-3px);
}
.theme-swatches {
  width: 100%;
  height: 57px;
  overflow: hidden;
  position: relative;
  background: var(--secondary);
}
.theme-swatches i {
  margin: 0;
  width: 55%;
  height: 100%;
  border: 0;
  border-radius: 0;
  position: absolute;
  left: 0;
}
.theme-swatches i:nth-child(2) {
  left: 35%;
  transform: skew(-22deg);
  height: 110%;
}
.theme-swatches i:nth-child(3) {
  left: 72%;
  transform: skew(-22deg);
  height: 110%;
}
.theme-option[aria-pressed="true"] {
  outline-offset: 3px;
}
.visual-previews {
  margin-bottom: 24px;
}
.visual-previews h3 {
  font-size: 0.9375rem;
  margin: 0 0 14px;
}
.visual-previews h3:not(:first-child) {
  margin-top: 25px;
}
.background-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.background-option {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background: var(--surface);
  text-align: left;
}
.background-option img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
  transition: transform 0.3s;
}
.background-option span {
  display: block;
  padding: 9px;
  font-size: 0.8125rem;
}
.background-option:hover img {
  transform: scale(1.08);
}
.background-option[aria-pressed="true"],
.logo-option[aria-pressed="true"] {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.logo-option {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 4px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}
.logo-option img {
  width: 47px;
  height: 47px;
  background: var(--primary);
  padding: 6px;
  border-radius: 14px;
  transition: transform 0.3s;
}
.logo-option:hover img {
  transform: rotate(-8deg);
}
.settings-section .field {
  margin-top: 16px;
}
.page-footer {
  justify-content: flex-end;
}
.page-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}
.dark .program-hero {
  background: linear-gradient(130deg, #163a31, #265849);
}
.dark .hero-ring > div {
  background: #234e40;
}
.dark .quote-card {
  background: #363043;
  color: #ebe1f4;
}
.dark .quote-card small,
.dark .quote-card .eyebrow {
  color: #c7b5d9;
}
.dark .brand-symbol {
  background: #285144;
}
.dark .install-button {
  background: var(--primary);
  color: #17291f;
}
.dark .logo-option img {
  background: #285144;
}
.compact .card {
  border-radius: 14px;
}
.flat .card {
  border-radius: 6px;
}
@keyframes orbit-breathe {
  from {
    transform: translate(0, 0) scale(0.94);
  }
  to {
    transform: translate(-20px, 14px) scale(1.07);
  }
}
@keyframes star-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes surface-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
main > .section-intro,
main > .welcome,
main > .dashboard-grid,
main > .grid,
main > .two-col,
main > .counter-page {
  animation: surface-in 0.45s ease both;
}
@media (max-width: 1024px) {
  .topbar {
    padding: 0 24px;
    gap: 12px;
  }
  .search-open {
    min-width: 150px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .program-hero {
    padding: 27px;
    gap: 15px;
  }
  .hero-ring {
    width: 130px;
    height: 130px;
  }
  .hero-ring strong {
    font-size: 37px;
  }
  .program-hero h2 {
    font-size: 1.9rem;
  }
  .quick-card {
    padding: 17px 12px;
  }
  .quick-card:after {
    display: none;
  }
}
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .right-column {
    grid-template-columns: 1fr 1fr;
  }
  .program-hero h2 {
    max-width: none;
  }
  .program-hero {
    min-height: 245px;
  }
  .hero-ring {
    width: 155px;
    height: 155px;
  }
  .search-open {
    min-width: 44px;
    width: 44px;
    font-size: 0;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .search-open kbd {
    display: none;
  }
  .search-open span {
    font-size: 26px;
  }
}
@media (max-width: 767px) {
  .topbar {
    height: 76px;
    padding: env(safe-area-inset-top) 14px 0;
    gap: 7px;
  }
  .mobile-brand {
    font-size: 24px;
    gap: 6px;
  }
  .mobile-brand .app-name {
    max-width: 90px;
  }
  .mobile-brand .brand-symbol {
    width: 32px;
    height: 36px;
    border-radius: 12px;
  }
  .brand-symbol img {
    width: 30px;
    height: 30px;
    padding: 4px;
  }
  .topbar #dark-toggle {
    display: none;
  }
  .install-button {
    padding: 9px 12px;
    font-size: 11px;
    gap: 6px;
    min-height: 44px;
    margin-left: 0;
  }
  .install-button svg {
    width: 16px;
    height: 16px;
  }
  .topbar .search-open {
    display: none;
  }
  .topbar #menu-toggle {
    width: 44px;
    min-width: 44px;
  }
  .workspace main {
    padding: 27px 18px;
  }
  .welcome h1 {
    font-size: 2.1rem;
  }
  .welcome p {
    font-size: 0.8rem;
  }
  .welcome {
    margin-bottom: 23px;
  }
  .program-hero {
    min-height: 244px;
    padding: 25px 22px;
    gap: 15px;
    border-radius: 25px;
  }
  .program-hero h2 {
    font-size: 1.8rem;
    max-width: 180px;
  }
  .program-hero p {
    font-size: 12px;
    margin-bottom: 23px;
    max-width: 160px;
  }
  .hero-ring {
    width: 116px;
    height: 116px;
    box-shadow:
      0 0 0 7px #ffffff06,
      0 0 0 8px #ffffff12;
  }
  .hero-ring strong {
    font-size: 34px;
  }
  .hero-ring small {
    font-size: 10px;
  }
  .program-hero .button {
    padding: 9px 16px;
    font-size: 12px;
  }
  .quick-grid {
    gap: 9px;
  }
  .quick-card {
    font-size: 11px;
    padding: 16px 7px;
    border-radius: 17px;
  }
  .quick-card .icon-tile {
    width: 39px;
    height: 39px;
    border-radius: 13px;
  }
  .card {
    border-radius: 23px;
  }
  .right-column {
    display: flex;
  }
  .section-intro h1 {
    font-size: 2rem;
  }
  .content-card h2 {
    font-size: 1.5rem;
  }
  .theme-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .theme-option {
    font-size: 11px;
  }
  .theme-swatches {
    height: 48px;
  }
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .logo-option {
    font-size: 12px;
  }
  .background-grid {
    gap: 10px;
  }
  .background-option span {
    font-size: 11px;
  }
  .background-option img {
    height: 65px;
  }
  .counter-circle {
    width: min(280px, 74vw);
    height: min(280px, 74vw);
  }
  #bottom-nav {
    padding-top: 11px;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -5px 30px #25493308;
  }
  .page-footer {
    padding-bottom: 110px;
  }
}
@media (max-width: 359px) {
  .topbar {
    padding-inline: 10px;
    gap: 4px;
  }
  .mobile-brand .app-name {
    max-width: 65px;
  }
  .mobile-brand {
    font-size: 21px;
  }
  .install-button {
    font-size: 10px;
    padding: 9px 10px;
  }
  .install-button svg {
    display: none;
  }
  .workspace main {
    padding-inline: 13px;
  }
  .program-hero {
    padding: 22px 17px;
    gap: 10px;
  }
  .hero-ring {
    width: 95px;
    height: 95px;
  }
  .hero-ring strong {
    font-size: 29px;
  }
  .program-hero h2 {
    font-size: 1.55rem;
  }
  .program-hero p {
    max-width: 130px;
  }
  .quick-card {
    font-size: 10px;
  }
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
