:root {
  --bg: #0b0c10;
  --card: #111319;
  --ink: #e6e6ea;
  --muted: #aeb2bd;
  --line: #222633;
  --accent: #5eead4;
  --accent-2: #93c5fd;
  --ok: #34d399;
  --warn: #fbbf24;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 20% 0%, #0f1422 0%, var(--bg) 55%) fixed;
  color: var(--ink);
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.wrap {
  max-width: 1100px;
  margin: 48px auto 120px;
  padding: 0 20px;
}

header h1 {
  margin: 0 0 6px;
  letter-spacing: 0.3px;
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 36px);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--accent);
}

header p {
  margin: 0;
  color: var(--muted);
}

.year-plan {
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.toolbar {
  margin: 22px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

button,
.ghost {
  background: linear-gradient(135deg, #1b2233, #131a27);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.04s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

button:hover {
  border-color: #2a3246;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

button:active {
  transform: translateY(1px);
}

.ghost {
  background: transparent;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  table-layout: fixed;
}

thead th {
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  color: #cfd3dc;
  background: #0e1220;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody td {
  border-top: 1px dashed #1f2433;
  padding: 14px;
  vertical-align: top;
}

tbody tr:first-child td {
  border-top: 1px solid var(--line);
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

col.col-element {
  width: 130px;
}

col.col-domain {
  width: 150px;
}

col.col-areas-life {
  width: 18%;
}

col.col-design {
  width: 18%;
}

col.col-rationale {
  width: 18%;
}

col.col-previous {
  width: 23%;
}

col.col-actions {
  width: 23%;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #26304a;
  background: #0e1424;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.tag .emoji {
  font-size: 16px;
}

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

.areas {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: #0f1a2e;
  border: 1px solid #223055;
  font-weight: 600;
}

.pill-domain {
  display: inline-block;
}

.rationale {
  color: #d9dde6;
}

.actions {
  display: grid;
  gap: 8px;
}

.action-input {
  width: 100%;
  border: 1px solid #2a3349;
  background: #0f172a;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.action-input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.15);
}

.hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 16, 32, 0.8);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 14px;
  font-size: 12px;
}

.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.footer-left,
.footer-right {
  display: grid;
  gap: 2px;
}

.footer-right {
  justify-self: end;
  text-align: right;
}

@media (max-width: 760px) {
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .footer-right {
    justify-self: start;
    text-align: left;
  }

  table {
    min-width: 0;
    display: block;
    overflow-x: auto;
  }
}

.hl {
  color: var(--accent);
  font-weight: 700;
}
.toolbar-note {
  font-size: 12px;
  color: var(--muted);
}
