:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #202124;
  --muted: #69707a;
  --line: #d9dde3;
  --teal: #0f766e;
  --tealDark: #115e59;
  --blue: #2563eb;
  --amber: #b7791f;
  --rose: #be123c;
  --shadow: 0 18px 48px rgba(30, 35, 42, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 14px clamp(18px, 4vw, 42px);
  backdrop-filter: blur(14px);
}

.brand,
.topnav {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 12px;
}

.brandMark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

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

.brand strong {
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.topnav a {
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
}

.topnav a:hover {
  border-color: rgba(15, 118, 110, 0.4);
  color: var(--tealDark);
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 5vw, 46px) clamp(18px, 4vw, 36px) 46px;
}

.workspace {
  display: grid;
  gap: 18px;
}

.compactWorkspace {
  margin-top: 34px;
}

.sectionHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.sectionHeader h1,
.sectionHeader h2,
.sectionHeader p {
  margin: 0;
}

.sectionHeader h1 {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 0;
}

.sectionHeader h2 {
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 0;
}

.sectionHeader p {
  color: var(--muted);
  line-height: 1.5;
}

.appGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.appTile {
  position: relative;
  display: grid;
  min-height: 220px;
  align-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.appTile:hover {
  border-color: rgba(15, 118, 110, 0.44);
  box-shadow: 0 22px 60px rgba(30, 35, 42, 0.14);
  transform: translateY(-2px);
}

.appTile[aria-disabled="true"] {
  cursor: default;
}

.appTile[aria-disabled="true"]:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
  transform: none;
}

.appIcon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 8px;
}

.appIcon img {
  width: 42px;
  height: 42px;
}

.photoIcon {
  background: #e7f6f2;
}

.homeIcon {
  background: #e8f7ee;
}

.filesIcon {
  background: #eaf1ff;
}

.notesIcon {
  background: #fff4d8;
}

.accountIcon {
  background: #ffe9ef;
}

.appText {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.appText strong {
  overflow-wrap: anywhere;
  font-size: 22px;
  letter-spacing: 0;
}

.appText small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.appStatus {
  justify-self: start;
  border: 1px solid rgba(15, 118, 110, 0.26);
  border-radius: 999px;
  color: var(--tealDark);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.appTileMuted .appStatus {
  border-color: var(--line);
  color: var(--muted);
}

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

.opsItem {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.opsItem:hover {
  border-color: rgba(37, 99, 235, 0.36);
}

.opsItem strong,
.opsItem span {
  overflow-wrap: anywhere;
}

.opsItem span {
  color: var(--muted);
  font-size: 13px;
}

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

@media (max-width: 620px) {
  .topbar,
  .sectionHeader {
    align-items: stretch;
    flex-direction: column;
  }

  .topnav {
    justify-content: flex-start;
  }

  .appGrid,
  .opsGrid {
    grid-template-columns: 1fr;
  }

  .appTile {
    min-height: 168px;
  }
}
