@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  --ink: #1b1b1f;
  --muted: #5b5b66;
  --panel: #fff5ee;
  --panel-strong: #fff0e2;
  --accent: #0f7b6f;
  --accent-strong: #0a5f55;
  --sunset: #f07a44;
  --shadow: 0 12px 40px rgba(18, 24, 34, 0.12);
  --ring: 0 0 0 3px rgba(15, 123, 111, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #e9f7ef 0%, #f4fbf7 45%, #e3f2ea 100%);
  overflow-x: hidden;
}

.bg-orbit {
  position: fixed;
  inset: -20% auto auto -10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 123, 111, 0.15), transparent 70%);
  filter: blur(1px);
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(10, 95, 85, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 95, 85, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 20% 0%, black, transparent 70%);
  opacity: 0.5;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 8px 0 6px;
}

.subtitle {
  max-width: 420px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  animation: floatIn 0.6s ease;
}

.auth {
  max-width: 420px;
}

.tab-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  border: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.tab.active {
  background: var(--accent);
  color: white;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  border-radius: 12px;
  border: 1px solid rgba(18, 24, 34, 0.16);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: white;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  box-shadow: var(--ring);
  border-color: var(--accent);
}

.form.compact {
  gap: 10px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: fit-content;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 123, 111, 0.25);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(15, 123, 111, 0.4);
}

.btn.danger {
  background: #e0473c;
}

.btn.soft {
  background: #f2f2f2;
  color: var(--ink);
}

.hidden {
  display: none !important;
}

.app {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.controls {
  display: grid;
  gap: 18px;
  height: fit-content;
  position: static;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.board {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: start;
}

.column {
  background: #fafafa;
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
  align-self: start;
  height: fit-content;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  animation: fadeUp 0.4s ease;
}

.column-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 6px 10px;
}

.column-title {
  font-weight: 600;
  font-size: 16px;
  max-width: 100%;
  word-break: break-word;
}

.pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 123, 111, 0.15);
  color: var(--accent-strong);
}

.goal-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: relative;
}

.goal-card.done {
  opacity: 0.72;
  background: #f9f5f2;
}

.goal-title {
  font-weight: 600;
}

.goal-meta {
  font-size: 12px;
  color: var(--muted);
}

.goal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.goal-actions button {
  border: none;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  background: rgba(15, 123, 111, 0.1);
  color: var(--accent-strong);
  cursor: pointer;
}

.goal-actions .danger {
  background: rgba(224, 71, 60, 0.15);
  color: #a13028;
}

.goal-actions .soft {
  background: rgba(27, 27, 31, 0.08);
  color: var(--ink);
}

.goal-form textarea {
  resize: vertical;
  min-height: 60px;
}

.goal-form input,
.goal-form textarea,
.goal-edit-form input,
.goal-edit-form textarea,
.goal-edit-form select {
  width: 100%;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 980px) {
  .top-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth {
    width: 100%;
  }
}
.btn.full {
  width: 100%;
}
.menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.menu-btn {
  border: none;
  background: rgba(27, 27, 31, 0.08);
  color: var(--ink);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 700;
  cursor: pointer;
}

.menu-list {
  position: absolute;
  top: 34px;
  right: 0;
  background: white;
  border: 1px solid rgba(18, 24, 34, 0.12);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 6px;
  display: none;
  gap: 4px;
  min-width: 140px;
  z-index: 5;
}

.menu.open .menu-list {
  display: grid;
}

.menu-item {
  border: none;
  background: transparent;
  padding: 8px 10px;
  text-align: left;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.menu-item:hover {
  background: rgba(15, 123, 111, 0.12);
}

.menu-item.danger:hover {
  background: rgba(224, 71, 60, 0.15);
}

.card-menu {
  position: absolute;
  top: 10px;
  right: 10px;
}
