:root {
  color-scheme: light;
  --background: #eef1f4;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #637083;
  --border: #d7dee6;
  --sidebar: #202932;
  --sidebar-border: rgba(255, 255, 255, 0.14);
  --accent: #0063a3;
  --clay: #9d6b3f;
  --green: #2f7d4f;
  --slate: #5f7488;
  --radius: 8px;
  --font: Arial, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  overflow: hidden;
}

.app-sidebar {
  background: var(--sidebar);
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 14px 10px;
}

.sidebar-mark {
  border-bottom: 1px solid var(--sidebar-border);
  padding: 4px 6px 18px;
}

.sidebar-mark span {
  background: var(--accent);
  display: block;
  height: 28px;
  width: 28px;
}

.sidebar-items {
  display: grid;
  gap: 9px;
  padding-top: 22px;
}

.sidebar-item {
  --item-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius);
  display: block;
  height: 42px;
  position: relative;
}

.sidebar-item::before {
  background: var(--item-color);
  border-radius: 3px;
  content: "";
  height: 20px;
  left: 11px;
  position: absolute;
  top: 10px;
  width: 20px;
}

.sidebar-item::after {
  background: rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 43px;
  position: absolute;
  top: 18px;
  width: 66px;
}

.sidebar-item-blue {
  --item-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-item-clay {
  --item-color: var(--clay);
}

.sidebar-item-green {
  --item-color: var(--green);
}

.sidebar-item-slate {
  --item-color: var(--slate);
}

.sidebar-utility {
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius);
  height: 42px;
  margin-top: auto;
  position: relative;
}

.sidebar-utility::before {
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  content: "";
  height: 16px;
  left: 12px;
  position: absolute;
  top: 11px;
  width: 16px;
}

.app-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
}

.app-header {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 104px;
  padding: 20px 28px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}

p {
  color: var(--muted);
  font-size: clamp(0.875rem, 1.5vw, 1.05rem);
  line-height: 1.35;
  margin: 8px 0 0;
}

.header-accent {
  background: var(--accent);
  border-radius: 999px;
  height: 8px;
  width: 72px;
}

.workspace {
  min-height: 0;
  padding: 22px;
}

.workspace-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.workspace-grid {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  inset: 0;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.55), transparent 62%);
  opacity: 0.48;
  position: absolute;
}

@media (max-width: 640px) {
  .app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .app-sidebar {
    padding-inline: 8px;
  }

  .sidebar-mark {
    padding-inline: 0;
  }

  .sidebar-mark span {
    margin-inline: auto;
  }

  .sidebar-item::after {
    display: none;
  }

  .sidebar-item::before,
  .sidebar-utility::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .app-header {
    min-height: 112px;
    padding: 20px;
  }

  .header-accent {
    height: 7px;
    width: 34px;
  }

  .workspace {
    padding: 14px;
  }
}
