:root {
  color-scheme: light;
  --navy-950: #071126;
  --navy-900: #0b1739;
  --navy-800: #142452;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --slate-950: #101828;
  --slate-800: #27364d;
  --slate-600: #667085;
  --slate-500: #7b879b;
  --slate-300: #cfd6e1;
  --slate-200: #e6eaf0;
  --slate-100: #f2f5f9;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --success: #16a36a;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 12px 38px rgba(26, 42, 77, 0.07);
  --shadow-hover: 0 18px 46px rgba(24, 45, 91, 0.14);
  --sidebar-width: 246px;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--slate-950);
  background:
    radial-gradient(circle at 86% 0%, rgba(219, 234, 254, 0.44), transparent 27rem),
    var(--canvas);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.32);
  outline-offset: 3px;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 28px 18px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 25% 8%, rgba(77, 118, 255, 0.24), transparent 17rem),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  box-shadow: 12px 0 50px rgba(11, 23, 57, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 0 8px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: linear-gradient(145deg, #4b7bff, #2454e8);
  box-shadow: 0 9px 24px rgba(30, 88, 255, 0.34);
}

.brand-mark::after {
  position: absolute;
  inset: -50% 45% -50% auto;
  width: 9px;
  content: "";
  transform: rotate(35deg);
  background: rgba(255, 255, 255, 0.16);
}

.brand-mark span {
  z-index: 1;
  border-radius: 3px;
  background: #fff;
}

.brand-mark span:nth-child(1) {
  grid-row: span 2;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 52px;
}

.nav-label {
  margin: 0 12px 9px;
  color: rgba(255, 255, 255, 0.37);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.nav-item {
  position: relative;
  display: grid;
  min-height: 48px;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.nav-item::before {
  position: absolute;
  inset: 11px auto 11px -18px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  content: "";
  background: #6d93ff;
  opacity: 0;
  transition: opacity 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
}

.nav-item:active {
  transform: translateY(1px);
}

.nav-item.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(71, 113, 245, 0.25), rgba(78, 111, 226, 0.1));
}

.nav-item.is-active::before {
  opacity: 1;
}

.nav-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  font-size: 21px;
}

.nav-count {
  display: grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.61);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.sidebar-spacer {
  flex: 1;
  min-height: 38px;
}

.sidebar-card {
  position: relative;
  padding: 17px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(73, 105, 207, 0.18), rgba(255, 255, 255, 0.04));
}

.sidebar-card::after {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.sidebar-card-icon {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 10px;
  color: #a8beff;
  background: rgba(102, 137, 255, 0.15);
  font-size: 18px;
}

.sidebar-card strong {
  position: relative;
  z-index: 1;
  font-size: 14px;
}

.sidebar-card p {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.65;
}

.help-button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.help-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.help-button span:first-child {
  font-size: 20px;
}

.main-area {
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 38px;
  border-bottom: 1px solid rgba(223, 228, 237, 0.82);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 5px 22px rgba(26, 39, 72, 0.025);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  display: grid;
  width: clamp(280px, 32vw, 430px);
  height: 44px;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--slate-200);
  border-radius: 13px;
  color: var(--slate-500);
  background: #f8f9fc;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.search-box:focus-within {
  border-color: #9eb8ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.11);
}

.search-box > span {
  font-size: 19px;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--slate-950);
  background: transparent;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #98a2b3;
}

.search-box kbd {
  padding: 3px 7px;
  border: 1px solid #dde2ea;
  border-bottom-width: 2px;
  border-radius: 6px;
  color: #8a94a6;
  background: #fff;
  font-family: inherit;
  font-size: 11px;
}

.today-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-600);
  font-size: 13px;
  white-space: nowrap;
}

.today-chip > span:first-child {
  color: #8290a8;
  font-size: 18px;
}

.profile-button {
  display: grid;
  grid-template-columns: 38px auto 16px;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  cursor: default;
  text-align: left;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #2c63ed, #244ac2);
  box-shadow: 0 7px 17px rgba(37, 99, 235, 0.2);
  font-size: 14px;
  font-weight: 750;
}

.profile-copy {
  display: flex;
  flex-direction: column;
}

.profile-copy strong {
  color: #2c3950;
  font-size: 13px;
  font-weight: 680;
}

.profile-copy small {
  margin-top: 1px;
  color: #98a2b3;
  font-size: 11px;
}

.profile-chevron {
  color: #9aa4b5;
  font-size: 15px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  color: var(--slate-800);
  background: #fff;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
}

.content {
  width: min(1220px, calc(100% - 72px));
  margin: 0 auto;
  padding: 32px 0 58px;
}

.welcome-panel {
  position: relative;
  display: flex;
  min-height: 176px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 40px;
  overflow: hidden;
  border: 1px solid rgba(71, 104, 188, 0.12);
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(10, 24, 62, 0.98), rgba(30, 67, 158, 0.93)),
    var(--navy-900);
  box-shadow: 0 18px 48px rgba(12, 30, 77, 0.14);
}

.welcome-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255, 255, 255, 0.025) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(255, 255, 255, 0.025) 50%, transparent 50.3%);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}

.welcome-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #9eb9ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow span {
  width: 18px;
  height: 2px;
  border-radius: 3px;
  background: #6f99ff;
}

.welcome-panel h1 {
  margin: 0;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 730;
  letter-spacing: -0.025em;
}

.welcome-panel p:last-child {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.welcome-visual {
  position: relative;
  width: 220px;
  height: 120px;
  flex: 0 0 220px;
}

.visual-orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 190px;
  height: 80px;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.orbit-two {
  width: 155px;
  height: 112px;
  transform: translate(-50%, -50%) rotate(23deg);
}

.visual-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 21px;
  color: #fff;
  background: linear-gradient(145deg, rgba(88, 135, 255, 0.92), rgba(41, 84, 200, 0.78));
  box-shadow:
    0 0 0 9px rgba(78, 121, 235, 0.12),
    0 17px 38px rgba(2, 9, 32, 0.34);
  transform: translate(-50%, -50%) rotate(-4deg);
  font-size: 30px;
}

.visual-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: #4d7ff8;
  box-shadow: 0 0 0 5px rgba(75, 126, 251, 0.12);
}

.dot-one {
  top: 24px;
  left: 25px;
}

.dot-two {
  right: 14px;
  bottom: 29px;
}

.dot-three {
  right: 52px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-width: 1px;
}

.tools-section,
.recent-section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading.compact {
  align-items: center;
}

.heading-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h2 {
  margin: 0;
  color: #1d2939;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--slate-500);
  font-size: 14px;
}

.tool-total {
  display: inline-grid;
  height: 24px;
  place-items: center;
  padding: 0 9px;
  border-radius: 99px;
  color: #4770d5;
  background: #e9f0ff;
  font-size: 12px;
  font-weight: 700;
}

.view-tabs {
  display: flex;
  padding: 4px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: #eef1f6;
}

.view-tab {
  min-width: 64px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  color: var(--slate-600);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.view-tab:hover {
  color: #334155;
}

.view-tab.is-active {
  color: #234ebe;
  background: #fff;
  box-shadow: 0 3px 10px rgba(35, 52, 84, 0.09);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  --app-color: #2563eb;
  --app-soft: #eaf1ff;
  --app-line: #cfe0ff;
  position: relative;
  display: flex;
  min-height: 292px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #e3e8f0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  animation: card-in 420ms both;
  animation-delay: var(--enter-delay);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.app-card::after {
  position: absolute;
  top: -68px;
  right: -66px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  content: "";
  background: var(--app-soft);
  opacity: 0.64;
}

.app-card:hover {
  border-color: var(--app-line);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 28px;
  width: 42px;
  height: 3px;
  border-radius: 0 0 5px 5px;
  background: var(--app-color);
}

.color-blue {
  --app-color: #2f67ec;
  --app-soft: #e9f1ff;
  --app-line: #bcd1ff;
}

.color-violet {
  --app-color: #7254d8;
  --app-soft: #f0ecff;
  --app-line: #d7cbff;
}

.color-orange {
  --app-color: #e87922;
  --app-soft: #fff0df;
  --app-line: #ffd6ae;
}

.color-emerald {
  --app-color: #159b72;
  --app-soft: #e5f7f0;
  --app-line: #b4ead8;
}

.color-cyan {
  --app-color: #168daa;
  --app-soft: #e4f7fb;
  --app-line: #b9e7f1;
}

.card-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-badge {
  display: inline-grid;
  height: 25px;
  place-items: center;
  padding: 0 10px;
  border-radius: 99px;
  color: var(--app-color);
  background: var(--app-soft);
  font-size: 12px;
  font-weight: 700;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8b95a6;
  font-size: 12px;
  white-space: nowrap;
}

.availability i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aeb6c4;
}

.availability.is-ready {
  color: #218260;
}

.availability.is-ready i {
  background: #20b47b;
  box-shadow: 0 0 0 4px rgba(32, 180, 123, 0.1);
}

.app-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  margin-top: 24px;
  place-items: center;
  border: 1px solid var(--app-line);
  border-radius: 18px;
  color: var(--app-color);
  background: linear-gradient(145deg, #fff, var(--app-soft));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--app-color) 12%, transparent);
  font-size: 27px;
}

.app-copy {
  position: relative;
  z-index: 2;
  margin-top: 17px;
}

.app-copy h3 {
  margin: 0;
  color: #1b2a41;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.app-copy p {
  min-height: 45px;
  margin: 7px 0 0;
  color: #7b8799;
  font-size: 13px;
  line-height: 1.68;
}

.app-action {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 43px;
  grid-template-columns: 20px 1fr 18px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 0 13px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  color: var(--app-color);
  background: var(--app-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.app-action:hover {
  color: #fff;
  background: var(--app-color);
}

.app-action:active {
  transform: scale(0.99);
}

.app-action.is-muted {
  color: #7f8998;
  border-color: #e3e7ed;
  background: #f6f7f9;
}

.mode-icon,
.arrow-icon {
  display: grid;
  place-items: center;
  font-size: 17px;
}

.arrow-icon {
  transition: transform 160ms ease;
}

.app-action:hover .arrow-icon {
  transform: translateX(3px);
}

.empty-state {
  padding: 58px 24px;
  border: 1px dashed #d8dee8;
  border-radius: 20px;
  color: var(--slate-500);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 15px;
  color: #7d8ca5;
  background: #edf1f7;
  font-size: 24px;
}

.empty-state h3 {
  margin: 0;
  color: #344054;
  font-size: 16px;
}

.empty-state p {
  margin: 5px 0 16px;
  font-size: 13px;
}

.empty-state button,
.text-button {
  border: 0;
  color: var(--blue-600);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.recent-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.recent-item {
  display: grid;
  min-height: 72px;
  grid-template-columns: 42px 1fr auto 18px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #e2e7ee;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.recent-item:hover {
  border-color: #c8d5ec;
  box-shadow: 0 9px 24px rgba(22, 41, 78, 0.07);
}

.recent-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--app-color);
  background: var(--app-soft);
  font-size: 21px;
}

.recent-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.recent-copy strong {
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-copy small {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 11px;
}

.recent-time {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #98a2b3;
  font-size: 11px;
  white-space: nowrap;
}

.recent-time svg {
  font-size: 14px;
}

.recent-arrow {
  color: #9aa4b5;
  font-size: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  background: rgba(7, 17, 38, 0.54);
  backdrop-filter: blur(6px);
  transition: opacity 180ms ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop.is-visible {
  opacity: 1;
}

.modal {
  position: relative;
  width: min(430px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(5, 15, 38, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.modal-backdrop.is-visible .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #8b95a6;
  background: #f4f6f8;
  cursor: pointer;
  font-size: 17px;
}

.modal-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  color: #3168ea;
  background: #eaf1ff;
  font-size: 25px;
}

.modal h2 {
  margin: 20px 0 8px;
  color: #1d2939;
  font-size: 20px;
}

.modal p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.secondary-button,
.primary-button {
  display: inline-grid;
  min-width: 92px;
  height: 42px;
  place-items: center;
  padding: 0 16px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.secondary-button {
  border: 1px solid #dfe4eb;
  color: #4b5565;
  background: #fff;
}

.primary-button {
  border: 1px solid #2563eb;
  color: #fff;
  background: #2563eb;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 120;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  color: #fff;
  background: #132140;
  box-shadow: 0 16px 40px rgba(9, 20, 48, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  font-size: 13px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #a6f0d1;
  background: rgba(37, 192, 132, 0.16);
  font-size: 15px;
}

.sidebar-backdrop {
  display: none;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-list {
    grid-template-columns: 1fr 1fr;
  }

  .today-chip {
    display: none;
  }
}

@media (max-width: 880px) {
  .sidebar {
    width: 256px;
    transform: translateX(-103%);
    transition: transform 220ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(7, 17, 38, 0.38);
    transition:
      visibility 180ms ease,
      opacity 180ms ease;
  }

  .sidebar-backdrop.is-visible {
    visibility: visible;
    opacity: 1;
  }

  .main-area {
    width: 100%;
    margin-left: 0;
  }

  .mobile-menu-button {
    display: grid;
  }

  .topbar {
    padding: 0 24px;
  }

  .content {
    width: calc(100% - 48px);
  }

  .welcome-panel {
    padding: 30px;
  }

  .welcome-visual {
    width: 170px;
    flex-basis: 170px;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 70px;
    gap: 12px;
    padding: 0 16px;
  }

  .topbar-left {
    width: 100%;
    gap: 10px;
  }

  .search-box {
    width: 100%;
  }

  .search-box kbd,
  .profile-copy,
  .profile-chevron {
    display: none;
  }

  .profile-button {
    display: none;
  }

  .content {
    width: calc(100% - 30px);
    padding-top: 18px;
  }

  .welcome-panel {
    min-height: 160px;
    padding: 27px 24px;
  }

  .welcome-panel h1 {
    max-width: 370px;
    line-height: 1.35;
  }

  .welcome-panel p:last-child {
    max-width: 310px;
    line-height: 1.65;
  }

  .welcome-visual {
    position: absolute;
    right: -55px;
    opacity: 0.42;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .view-tabs {
    width: 100%;
  }

  .view-tab {
    flex: 1;
  }

  .app-grid,
  .recent-list {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 274px;
  }

  .recent-time {
    display: none;
  }

  .recent-item {
    grid-template-columns: 42px 1fr 18px;
  }

  .toast {
    right: 15px;
    bottom: 15px;
    left: 15px;
  }
}

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

@supports not (color: color-mix(in srgb, red 20%, white)) {
  .app-icon {
    box-shadow: 0 10px 22px rgba(31, 55, 93, 0.09);
  }
}
