
/* /src/style.css */
:root {
  color: #202528;
  background: #f1f2ee;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #202528;
  --muted: #626966;
  --subtle: #68706c;
  --line: #e5e7e1;
  --canvas: #f5f5f1;
  --surface: #ffffff;
  --dark: #202528;
  --orange: #ee6337;
  --orange-dark: #d94a20;
  --orange-soft: #fff0e9;
  --lime: #d6f04a;
  --shadow: 0 16px 44px rgba(35, 42, 37, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #a83b19;
  outline-offset: 3px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 30px 20px 22px;
  color: #f8f8f3;
  background: radial-gradient(circle at 8% 0, rgba(214, 240, 74, 0.12), transparent 25%), var(--dark);
  overflow: hidden;
}

.sidebar::after {
  position: absolute;
  right: -74px;
  bottom: 108px;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(255, 255, 255, 0.025),
    0 0 0 48px rgba(255, 255, 255, 0.018);
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: var(--orange);
  transform: rotate(-5deg);
  overflow: hidden;
}

.brand-mark span {
  position: absolute;
  right: -5px;
  width: 28px;
  height: 8px;
  border-radius: 50%;
  border-top: 2px solid #fff;
  transform: rotate(-8deg);
}

.brand-mark span:nth-child(1) {
  top: 8px;
}

.brand-mark span:nth-child(2) {
  top: 15px;
  right: -2px;
}

.brand-mark span:nth-child(3) {
  top: 22px;
  right: 2px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.06rem;
  letter-spacing: -0.04em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.main-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 56px;
}

.main-nav a,
.sidebar-bottom > a,
.sidebar-bottom > button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 13px;
  color: #b8bdb9;
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  transition: 160ms ease;
}

.sidebar-bottom > button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.main-nav a:hover,
.sidebar-bottom > a:hover,
.sidebar-bottom > button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-bottom > .logout-link {
  color: #e8a08a;
}

.sidebar-bottom > .logout-link:hover {
  color: #fff;
  background: rgba(238, 99, 55, 0.14);
}

.main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.main-nav a.active::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 24px;
  content: "";
  border-radius: 0 4px 4px 0;
  background: var(--lime);
}

.sidebar-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.sidebar-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 16px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  color: #322f1b;
  background: var(--lime);
  font-size: 0.72rem;
  font-weight: 850;
}

.sidebar-profile strong,
.sidebar-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile strong {
  font-size: 0.82rem;
}

.sidebar-profile small {
  margin-top: 4px;
  color: #a7ada9;
  font-size: 0.7rem;
}

.sidebar-profile > svg {
  color: #707773;
}

.dashboard-main {
  min-width: 0;
  padding: 0 clamp(28px, 4vw, 64px);
}

.dashboard-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 132px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line);
}

.mobile-account-menu {
  position: relative;
  z-index: 30;
  display: none;
  flex: 0 0 auto;
}

.mobile-account-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
  min-height: 46px;
  padding: 4px 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(36, 43, 39, 0.07);
  cursor: pointer;
  list-style: none;
}

.mobile-account-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-account-menu summary .avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 0.66rem;
}

.mobile-account-menu summary > svg {
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.mobile-account-menu[open] summary > svg {
  transform: rotate(-90deg);
}

.mobile-account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(240px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 20px 55px rgba(25, 29, 27, 0.17);
}

.mobile-account-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 7px 8px 13px;
  border-bottom: 1px solid var(--line);
}

.mobile-account-person strong,
.mobile-account-person small {
  display: block;
}

.mobile-account-person strong {
  font-size: 0.82rem;
}

.mobile-account-person small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.mobile-account-popover nav {
  display: grid;
  gap: 2px;
  padding-top: 8px;
}

.mobile-account-popover nav a,
.mobile-account-popover nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-account-popover nav button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.mobile-account-popover nav a:hover,
.mobile-account-popover nav button:hover {
  background: var(--canvas);
}

.mobile-account-popover nav .logout-link {
  color: #a63d20;
}

.login-page,
.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(214, 240, 74, 0.14), transparent 30%),
    radial-gradient(circle at 88% 86%, rgba(238, 99, 55, 0.16), transparent 34%), var(--dark);
}

.login-card {
  width: min(100%, 410px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  color: #f8f8f3;
  background: rgba(34, 39, 42, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-copy {
  margin: 38px 0 28px;
}

.login-copy h1 {
  margin: 8px 0 0;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.login-copy > p:last-child {
  margin: 10px 0 0;
  color: #aeb5b1;
  font-size: 0.82rem;
}

.login-field {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.login-field > span {
  color: #c7ccc8;
  font-size: 0.72rem;
  font-weight: 750;
}

.login-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
}

.login-field input:focus {
  border-color: var(--lime);
  outline: none;
  box-shadow: 0 0 0 3px rgba(214, 240, 74, 0.1);
}

.login-error {
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(238, 99, 55, 0.36);
  border-radius: 11px;
  color: #ffc6b4;
  background: rgba(238, 99, 55, 0.1);
  font-size: 0.74rem;
}

.login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  background: var(--orange);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  transition: 150ms ease;
}

.login-submit:hover {
  background: #f07850;
  transform: translateY(-1px);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.not-found-page {
  align-content: center;
  color: #f8f8f3;
  text-align: center;
}

.not-found-page p {
  margin: 0;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.not-found-page h1 {
  margin: 12px 0 22px;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.not-found-page a {
  justify-self: center;
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.welcome-copy p,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.welcome-copy p::first-letter {
  text-transform: uppercase;
}

.welcome-copy h1 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.dashboard-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 328px);
  gap: clamp(24px, 3vw, 42px);
  padding: 40px 0 34px;
}

.launcher-section {
  min-width: 0;
}

.section-heading,
.time-card-header,
.today-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.time-card h2,
.today-card h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 1.42rem;
  line-height: 1;
  letter-spacing: -0.045em;
}

.favorites-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #775705;
  background: #fff3c9;
  font-size: 0.67rem;
  font-weight: 800;
  white-space: nowrap;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.favorite-apps-grid {
  margin-top: 20px;
}

.favorite-empty {
  margin: 20px 0 0;
  padding: 18px;
  border: 1px dashed #cdd1ca;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.other-apps {
  margin-top: 18px;
}

.other-apps-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 7px 10px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  text-align: left;
  cursor: pointer;
}

.other-apps-toggle:hover {
  border-color: #d2d6ce;
  background: var(--surface);
}

.other-apps-toggle strong,
.other-apps-toggle small {
  display: block;
}

.other-apps-toggle strong {
  font-size: 0.78rem;
}

.other-apps-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.65rem;
}

.other-apps-action {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.other-apps-toggle > svg {
  color: var(--muted);
  transition: transform 160ms ease;
}

.other-apps.expanded .other-apps-toggle > svg {
  transform: rotate(90deg);
}

.other-apps-grid {
  margin-top: 14px;
}

.app-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.app-card:hover {
  z-index: 1;
  border-color: #d7d9d2;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.app-card.dragging {
  opacity: 0.48;
  transform: scale(0.98);
}

.app-card.drop-target {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 99, 55, 0.11);
}

.app-card > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 17px 56px 17px 17px;
  text-decoration: none;
}

.app-card > a:focus-visible {
  border-radius: inherit;
}

.app-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.app-icon small {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  font-size: 0.58rem;
  font-weight: 800;
}

.app-copy {
  min-width: 0;
}

.app-copy strong,
.app-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-copy strong {
  font-size: 0.89rem;
  letter-spacing: -0.018em;
}

.app-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.69rem;
}

.favorite-button {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #878e89;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: 150ms ease;
}

.app-card:hover .favorite-button,
.favorite-button:focus-visible,
.favorite-button.selected {
  opacity: 1;
}

.favorite-button:hover {
  background: #f2f3ef;
}

.favorite-button:focus-visible {
  background: #f2f3ef;
  box-shadow: 0 0 0 3px rgba(168, 59, 25, 0.18);
  outline: none;
}

.favorite-button.selected {
  color: #e0a511;
}

.drag-handle {
  position: absolute;
  z-index: 3;
  right: 5px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: #7f8782;
  background: transparent;
  cursor: grab;
  touch-action: none;
  transition: 150ms ease;
}

.drag-handle:hover,
.drag-handle:focus-visible {
  color: var(--ink);
  background: #f2f3ef;
  box-shadow: 0 0 0 3px rgba(168, 59, 25, 0.18);
  outline: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.dashboard-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.time-card,
.today-card {
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(36, 43, 39, 0.04);
}

.time-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.time-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: #e5e7e1;
  transition: background 200ms ease;
}

.time-card.active::before {
  background: var(--lime);
}

.time-card-header,
.today-heading {
  align-items: flex-start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  color: #626965;
  background: #f0f1ed;
  font-size: 0.63rem;
  font-weight: 800;
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #acb0ac;
}

.status-pill.running {
  color: #3e5912;
  background: #edf7c7;
}

.status-pill.running i {
  background: #7ca618;
  box-shadow: 0 0 0 3px rgba(124, 166, 24, 0.13);
}

.time-card-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.time-overview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 44px;
  padding: 0 2px 0 7px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
  text-decoration: none;
}

.time-overview-link:hover {
  color: var(--ink);
}

.time-display {
  margin-top: 28px;
  font-size: clamp(2.35rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
}

.time-progress {
  height: 4px;
  margin-top: 22px;
  border-radius: 99px;
  background: #eceee9;
  overflow: hidden;
}

.time-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 500ms linear;
}

.time-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.63rem;
}

.time-meta strong {
  margin-left: 3px;
  color: var(--ink);
  font-weight: 750;
}

.time-primary,
.time-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 13px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.time-primary {
  width: 100%;
  margin-top: 24px;
  border: 0;
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 8px 16px rgba(238, 99, 55, 0.18);
  transition: 150ms ease;
}

.time-primary:hover {
  background: #f07850;
  transform: translateY(-1px);
}

.time-actions {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 9px;
  margin-top: 24px;
}

.time-primary.compact {
  margin-top: 0;
}

.time-secondary {
  border: 1px solid var(--line);
  background: #f5f6f2;
}

.today-card {
  padding: 22px;
}

.calendar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 11px;
  color: #505854;
  background: #f0f1ed;
  font-size: 0.68rem;
  font-weight: 750;
  text-decoration: none;
}

.calendar-link:hover {
  color: var(--ink);
  background: #e8eae4;
}

.appointments {
  margin-top: 20px;
}

.appointments article {
  display: grid;
  grid-template-columns: 38px 3px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  min-height: 54px;
}

.appointments article + article {
  margin-top: 14px;
}

.appointments time {
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.appointment-line {
  border-radius: 99px;
  background: #826ae8;
}

.appointment-line.orange {
  background: var(--orange);
}

.appointments strong,
.appointments small {
  display: block;
}

.appointments strong {
  font-size: 0.75rem;
  line-height: 1.25;
}

.appointments small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
}

.dashboard-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.64rem;
}

@media (max-width: 1100px) {
  .dashboard-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .sidebar {
    align-items: center;
    padding-inline: 14px;
  }

  .brand {
    padding: 0;
  }

  .brand-copy,
  .main-nav span,
  .sidebar-bottom > a span,
  .sidebar-bottom > button span,
  .sidebar-profile div,
  .sidebar-profile > svg {
    display: none;
  }

  .main-nav,
  .sidebar-bottom {
    width: 100%;
  }

  .main-nav a,
  .sidebar-bottom > a {
    justify-content: center;
    padding: 0;
  }

  .sidebar-profile {
    display: flex;
    justify-content: center;
    padding-inline: 0;
  }

  .dashboard-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .app-card > a {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (max-width: 850px) {
  body {
    overflow: hidden;
  }

  .dashboard-shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    height: 100dvh;
    overflow: hidden;
  }

  .sidebar {
    position: relative;
    z-index: 20;
    grid-row: 2;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    width: auto;
    height: 74px;
    margin: 8px 12px max(12px, env(safe-area-inset-bottom));
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    box-shadow: 0 16px 45px rgba(25, 29, 27, 0.26);
  }

  .sidebar .brand,
  .sidebar-bottom,
  .sidebar::after {
    display: none;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 100%;
    margin: 0;
  }

  .main-nav a {
    flex-direction: column;
    gap: 5px;
    min-height: 58px;
    padding: 5px 0 4px;
  }

  .main-nav a span {
    display: block;
    font-size: 0.61rem;
    line-height: 1;
  }

  .main-nav a.active::before {
    top: auto;
    bottom: 2px;
    left: 50%;
    width: 18px;
    height: 2px;
    transform: translateX(-50%);
  }

  .dashboard-main {
    grid-row: 1;
    min-height: 0;
    padding-inline: 24px;
    padding-bottom: 24px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-block: 20px;
  }

  .dashboard-header {
    min-height: 110px;
  }

  .mobile-account-menu {
    display: block;
  }

  #programme,
  #arbeitszeit,
  #termine {
    scroll-margin-block: 20px calc(102px + env(safe-area-inset-bottom));
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .dashboard-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-row: 1;
  }

  .launcher-section {
    grid-row: 2;
  }
}

@media (max-width: 600px) {
  .dashboard-main {
    padding-inline: 16px;
  }

  .dashboard-header {
    align-items: flex-start;
    padding-top: 21px;
  }

  .welcome-copy h1 {
    font-size: 1.75rem;
  }

  .dashboard-content {
    gap: 24px;
    padding-top: 28px;
  }

  .launcher-section {
    display: contents;
  }

  .launcher-section > .section-heading {
    grid-row: 1;
  }

  .favorite-apps-grid,
  .favorite-empty {
    grid-row: 2;
    margin-top: 0;
  }

  .dashboard-rail {
    display: flex;
    grid-row: 3;
    margin-top: 8px;
  }

  .other-apps {
    grid-row: 4;
    margin-top: 0;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .favorite-apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .app-card > a {
    min-height: 108px;
  }

  .favorite-apps-grid .app-card > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    min-height: 124px;
    padding: 13px 52px 13px 14px;
  }

  .favorite-apps-grid .app-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .favorite-apps-grid .app-copy small {
    display: none;
  }

  .favorite-apps-grid .app-copy strong {
    font-size: 0.82rem;
  }

  .other-apps-grid {
    margin-top: 12px;
  }

  .favorite-button {
    opacity: 1;
  }

  .dashboard-footer span:last-child {
    display: none;
  }
}

@media (max-width: 360px) {
  .dashboard-main {
    padding-inline: 14px;
  }

  .welcome-copy h1 {
    font-size: 1.62rem;
  }

  .other-apps-action {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
