/* ── You view ── */

.you-view {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px;
}

.you-total {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.you-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.you-disc-card {
  flex: 1;
  min-width: 100px;
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  box-shadow: var(--shadow-sm);
}

.you-disc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  height: 28px;
}

.you-disc-icon .at-icon {
  width: 26px;
  height: 26px;
  vertical-align: 0;
}

.you-th .at-icon {
  vertical-align: -3px;
  margin-right: 2px;
  opacity: 0.7;
}

.you-disc-name {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.you-disc-dist {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.you-disc-dur {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.you-year-section {
  margin-bottom: 24px;
}

.you-year-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.you-table-wrap {
  overflow-x: auto;
}

.you-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
}

.you-th {
  background: var(--surface-alt);
  padding: 8px 12px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.you-th-month {
  width: 48px;
}

.you-month {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
  border-right: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.you-cell {
  padding: 6px 12px;
  border-left: 1px solid var(--border-subtle);
}

tbody tr + tr .you-month,
tbody tr + tr .you-cell {
  border-top: 1px solid var(--border-subtle);
}

.you-cell-dist {
  font-weight: 700;
  color: var(--text);
}

.you-cell-dur {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.you-cell-empty {
  color: var(--border-strong);
  text-align: center;
}

/* ── Goals section ── */

.you-goals {
  margin-bottom: 28px;
}

.you-goals-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.you-goals-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.you-goal-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  flex: 1 1 220px;
  min-width: 200px;
}

.you-goal-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.you-goal-card-subtitle {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.you-goal-bar {
  height: 8px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.you-goal-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.3s ease, background 0.2s ease;
}

.you-goal-bar-fill.complete {
  background: var(--accent);
}

.you-goal-card-numbers {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.you-goal-add {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  width: 84px;
  min-height: 58px;
  transition: width 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.you-goal-add.open {
  width: 100%;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.you-goal-add-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 42px; /* golden ratio: 68 / 42 ≈ 1.619 */
  border-radius: 10px;
  border: none;
  background: var(--brand-soft);
  color: var(--brand);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  align-self: flex-start;
  font-family: inherit;
  transition: filter 0.15s ease;
}

.you-goal-add-chip:hover {
  filter: brightness(0.96);
}

.you-goal-add-chip .at-icon {
  width: 22px;
  height: 22px;
  vertical-align: 0;
}

.you-goal-form {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.you-goal-add.open .you-goal-form {
  max-height: 600px;
  margin-top: 14px;
}

.you-goal-form-row {
  margin-bottom: 14px;
}

.you-goal-form-row:last-of-type {
  margin-bottom: 0;
}

.you-goal-target-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.you-goal-value {
  width: 100px;
  padding: 6px 8px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

.you-goal-value:focus {
  border-color: var(--accent);
}

.you-goal-suffix {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.you-goal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.you-goal-cancel {
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.you-goal-cancel:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.you-goal-save {
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.you-goal-save:hover:not(:disabled) {
  background: var(--brand-hover);
}

.you-goal-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
