:root {
  --bg: #121513;
  --bg-soft: #171b18;
  --panel: #1b201d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f4f1;
  --muted: #89928b;
  --accent: #3f6952;
  --accent-strong: #5f9474;
  --ring-track: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 28px;
  --font-sans: "Manrope", sans-serif;
}

body[data-theme="forest"] {
  --accent: #3f6952;
  --accent-strong: #5f9474;
}

body[data-theme="amber"] {
  --accent: #8a6726;
  --accent-strong: #c29436;
}

body[data-theme="brick"] {
  --accent: #7c453a;
  --accent-strong: #b26757;
}

body[data-theme="blue"] {
  --accent: #355d83;
  --accent-strong: #5d8dbe;
}

body[data-theme="gray"] {
  --accent: #5f6469;
  --accent-strong: #8e969d;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 24%, transparent), transparent 0 34%),
    linear-gradient(180deg, #161a17 0%, var(--bg) 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

input {
  outline: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(520px, 1.26fr);
  grid-template-areas: "left tasks";
  column-gap: 22px;
  width: min(1360px, calc(100vw - 56px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 0 34px;
  position: relative;
}

.layout-left {
  grid-area: left;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: 16px;
  align-self: stretch;
  min-height: 100%;
}

.layout-cue {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 64px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  color: inherit;
}

.layout-cue svg {
  display: block;
  width: 100%;
  height: 100%;
}

.layout-cue path {
  stroke: rgba(137, 146, 139, 0.62);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layout-cue:hover path,
.layout-cue:focus-visible path {
  stroke: rgba(242, 244, 241, 0.88);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.button,
.icon-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  transition:
    border-color 140ms ease,
    background-color 140ms ease,
    color 140ms ease;
}

.button:hover,
.icon-button:hover,
.drag-handle:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.button-quiet {
  color: var(--muted);
}

.icon-button {
  width: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.ivy-toggle:disabled,
.check-button:disabled,
.button:disabled,
.icon-button:disabled,
.drag-handle:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "tasks";
    width: min(760px, calc(100vw - 28px));
    min-height: auto;
    padding: 14px 0 24px;
    row-gap: 14px;
  }

  .layout-left {
    grid-template-rows: auto auto;
    row-gap: 14px;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .panel-clock,
  .panel-timer,
  .panel-tasks {
    padding: 18px;
    border-radius: 22px;
  }

  .layout {
    min-height: auto;
    padding-bottom: 24px;
  }

  .layout-cue {
    display: none;
  }
}
