:root {
  color-scheme: dark;
  --page: #c5cad4;
  --ink: #f6f7fb;
  --muted: #8d929d;
  --panel: #111315;
  --panel-2: #17191d;
  --panel-3: #202229;
  --line: rgba(255, 255, 255, 0.07);
  --violet: #6f39ff;
  --blue: #4eb4ff;
  --amber: #ffbf43;
  --pink: #f02dbd;
  --red: #ff4057;
  --green: #27d862;
  --shadow: 0 24px 70px rgba(12, 14, 20, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 26%, rgba(255, 255, 255, 0.85) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 84%, rgba(255, 255, 255, 0.75) 0 3px, transparent 4px),
    var(--page);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  height: 100vh;
  padding: 34px;
}

.sidebar {
  position: relative;
  min-height: calc(100vh - 68px);
  padding: 30px 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #17191b, #101214 68%, #0d0f11);
  border-radius: 30px 30px 0 0;
  box-shadow: var(--shadow);
}

.sidebar::before,
.sidebar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.sidebar::before {
  top: 150px;
}

.sidebar::after {
  bottom: 210px;
}

.window-dots {
  display: flex;
  gap: 13px;
  margin: 2px 0 70px 8px;
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16), 0 0 16px rgba(255, 255, 255, 0.1);
}

.dot.red {
  background: #ff4f57;
}

.dot.yellow {
  background: #ffbd35;
}

.dot.green {
  background: #25d35b;
}

.brand-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 64px;
}

.mark {
  display: grid;
  width: 54px;
  height: 42px;
  place-items: center;
  color: #101214;
  background: #f4f4f1;
  border-radius: 17px 8px 17px 8px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.brand-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-sub,
.eyebrow,
.nav-section {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-sub {
  margin-top: 3px;
  font-size: 11px;
}

.collapse-btn {
  border: 0;
  color: #666b75;
  background: transparent;
  font-size: 25px;
  font-weight: 900;
}

.nav-section {
  margin: 0 0 22px 26px;
  font-size: 14px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  min-height: 58px;
  width: 100%;
  padding: 0 16px 0 22px;
  border: 0;
  border-radius: 18px;
  color: #edf0f4;
  background: transparent;
  text-align: left;
}

.nav-item span:nth-child(2) {
  font-size: 20px;
}

.nav-item strong {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  color: #111315;
  background: #fff;
  border-radius: 50%;
  font-size: 17px;
}

.nav-item.is-active,
.nav-item:hover {
  background: #1d2026;
  box-shadow: inset 0 -3px 7px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-item.muted {
  color: #9aa0aa;
}

.nav-divider {
  height: 1px;
  margin: 34px -26px;
  background: var(--line);
}

.pin {
  width: 13px;
  height: 13px;
  margin-left: 16px;
  border-radius: 50%;
}

.pin.violet {
  background: var(--violet);
}

.pin.blue {
  background: var(--blue);
}

.pin.amber {
  background: var(--amber);
}

.pin.pink {
  background: var(--pink);
}

.pin.redpin {
  background: var(--red);
}

.icon {
  position: relative;
  width: 34px;
  height: 34px;
  color: #8f96a2;
}

.icon.bars::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 7px;
  width: 6px;
  height: 17px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 11px -8px 0 #fff, 22px -14px 0 #fff;
}

.icon.review::before,
.icon.gear::before {
  content: "?";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #555b66;
  border-radius: 50%;
  font-weight: 800;
}

.icon.gear::before {
  content: "×";
}

.workspace {
  min-width: 0;
  overflow: auto;
  padding: 4px 4px 40px;
}

.auth-panel,
.app-view {
  min-height: calc(100vh - 76px);
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 380px;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  color: #101216;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

.auth-card,
.capture-strip,
.metrics article,
.list-panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(17, 19, 21, 0.92);
  box-shadow: var(--shadow);
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: #a4aab4;
  font-size: 14px;
}

input,
select {
  min-height: 46px;
  border: 1px solid #2c3038;
  border-radius: 14px;
  color: var(--ink);
  background: #0d0f12;
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: #f6f7fb;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary,
.secondary {
  min-height: 46px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
}

.primary {
  color: #101216;
  background: #f8f9fb;
}

.secondary {
  color: #f8f9fb;
  background: #23262d;
}

.form-error {
  min-height: 20px;
  color: #ff7887;
  font-size: 14px;
}

.is-hidden {
  display: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin: 8px 0 22px;
}

.topbar h1 {
  color: #101216;
  font-size: clamp(38px, 5vw, 70px);
}

.user-chip {
  padding: 12px 16px;
  color: #17191b;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-weight: 800;
}

.capture-strip {
  padding: 18px;
  border-radius: 24px;
}

.task-form {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 150px 118px;
  gap: 12px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

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

.metrics article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  padding: 18px;
  border-radius: 20px;
}

.metrics span,
.list-panel header p {
  color: #949aa5;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.metrics strong {
  font-size: 31px;
}

.boards {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 14px;
  align-items: start;
}

.list-panel {
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
}

.list-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.list-panel h2 {
  margin-top: 5px;
  font-size: 21px;
}

.list-panel header strong {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #111315;
  background: #f7f8fb;
  border-radius: 50%;
}

.task-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.task-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  border: 1px solid #282c34;
  border-radius: 18px;
  background: #16191f;
}

.task-card.is-completed {
  opacity: 0.5;
}

.check {
  width: 24px;
  height: 24px;
  border: 2px solid #59606d;
  border-radius: 50%;
  background: transparent;
}

.task-card.is-completed .check {
  background: var(--green);
  border-color: var(--green);
}

.task-main {
  min-width: 0;
}

.task-main strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.task-main p {
  margin-top: 6px;
  color: #9da3ad;
  font-size: 13px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.task-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #dce0e7;
  background: #242832;
  font-size: 12px;
}

.status-select {
  grid-column: 2;
  min-height: 34px;
  border-radius: 12px;
  font-size: 13px;
}

.empty {
  padding: 24px 14px;
  color: #747b87;
  font-size: 14px;
}

@media (max-width: 1220px) {
  body {
    overflow: auto;
  }

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

  .sidebar {
    padding-inline: 22px;
  }

  .brand-row {
    grid-template-columns: 1fr;
  }

  .brand-row > div:not(.mark),
  .collapse-btn,
  .nav-item span:nth-child(2),
  .nav-item strong {
    display: none;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .pin {
    margin-left: 0;
  }

  .nav-section {
    margin-left: 0;
    text-align: center;
    font-size: 12px;
  }

  .boards {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .sidebar {
    display: none;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .task-form,
  .details-grid,
  .metrics,
  .boards {
    grid-template-columns: 1fr;
  }
}
