:root {
  --background: #ffdbeb;
  --background-accent: #fff0f6;
  --frame: rgba(255, 255, 255, 0.72);
  --surface: #ffffff;
  --surface-alt: #fff7fb;
  --border: rgba(238, 201, 219, 0.95);
  --border-soft: rgba(246, 223, 233, 0.92);
  --text: #2f2730;
  --muted: #7d6f78;
  --accent: #ee8eb1;
  --accent-strong: #d95f8e;
  --accent-soft: #ffe6f0;
  --shadow: rgba(201, 139, 164, 0.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --container: 1500px;
  --week-day-min: 300px;
  --week-column-gap: 24px;
  --week-card-padding-x: 26px;
  --week-card-padding-y: 24px;
  --week-time-column: 56px;
  --week-dot-column: 18px;
  --week-timeline-gap: 16px;
  --week-line-left: 81px;
  --week-grid-min: 2244px;
  --shadow-soft: 0 16px 42px color-mix(in srgb, var(--shadow) 52%, transparent 48%);
  --shadow-float: 0 28px 86px color-mix(in srgb, var(--shadow) 70%, transparent 30%);
  --card-gradient: linear-gradient(180deg, color-mix(in srgb, var(--surface) 98%, transparent 2%), color-mix(in srgb, var(--surface-alt) 96%, transparent 4%));
  --control-bg: color-mix(in srgb, var(--surface) 94%, transparent 6%);
  --control-bg-soft: color-mix(in srgb, var(--surface-alt) 92%, transparent 8%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  color-scheme: light dark;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 25%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--accent-soft) 72%, transparent 28%), transparent 35%),
    linear-gradient(180deg, color-mix(in srgb, var(--background) 88%, white 12%) 0%, var(--background) 58%, color-mix(in srgb, var(--background-accent) 82%, transparent 18%) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 26%, transparent 82%);
  opacity: 0.24;
}

button,
input,
select,
textarea {
  font: inherit;
  color: var(--text);
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.planner-root {
  color: var(--text);
  transition: color 220ms ease;
}

.login-shell,
.welcome-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--text);
}

.login-hero {
  position: relative;
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 26px;
  align-items: stretch;
  isolation: isolate;
  animation: fade-up 360ms ease;
}

.login-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(16px);
  opacity: 0.5;
  z-index: -1;
}

.login-orb.one {
  left: -92px;
  top: -82px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent 66%), transparent 70%);
}

.login-orb.two {
  right: -98px;
  bottom: -98px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-soft) 88%, transparent 12%), transparent 72%);
}

.login-panel,
.login-card,
.welcome-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent 8%), color-mix(in srgb, var(--surface-alt) 94%, transparent 6%));
  box-shadow: 0 34px 110px var(--shadow);
  backdrop-filter: blur(24px);
}

.login-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(30px, 5vw, 62px);
  border-radius: 38px;
}

.login-panel h1 {
  max-width: 560px;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 5.1vw, 4.95rem);
  line-height: 1;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.login-panel p,
.login-copy,
.welcome-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.login-panel p {
  max-width: 650px;
  font-size: 1.1rem;
}

.login-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.login-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 82%, transparent 18%);
  color: var(--muted);
  font-weight: 700;
}

.login-benefits svg {
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}

.login-card {
  align-self: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 34px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.login-brand h2 {
  margin: 7px 0 0;
  font-family: "Fraunces", serif;
  font-size: 2.1rem;
  letter-spacing: -0.045em;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.login-field {
  display: grid;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
}

.login-field span {
  font-size: 0.9rem;
}

.login-field input {
  width: 100%;
  padding: 17px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent 10%);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 42%, transparent 58%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.login-field input:focus {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border) 52%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-soft) 72%, transparent 28%);
  transform: translateY(-1px);
}

.login-error {
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, #d86b87 35%, var(--border) 65%);
  background: color-mix(in srgb, #ffe4eb 72%, var(--surface) 28%);
  color: #ae4d69;
  font-weight: 700;
}

.login-button {
  width: 100%;
  min-height: 58px;
  padding: 15px 20px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 20px 42px color-mix(in srgb, var(--accent) 30%, transparent 70%);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow: 0 26px 52px color-mix(in srgb, var(--accent) 36%, transparent 64%);
}

.welcome-shell {
  position: relative;
  overflow: hidden;
  animation: welcome-shell-fade 2.8s ease forwards;
}

.welcome-glow {
  position: absolute;
  width: min(82vw, 740px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent 70%), transparent 68%);
  filter: blur(24px);
  animation: welcome-glow-pulse 2.8s ease forwards;
}

.welcome-card {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  padding: clamp(34px, 7vw, 74px);
  border-radius: 42px;
  text-align: center;
  animation: welcome-card-fade 2.65s ease forwards;
}

.welcome-card h1 {
  margin: 14px 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
}

.planner-shell {
  min-height: 100vh;
  padding: 36px 22px 120px;
}

.app-frame {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 334px;
  gap: 22px;
  padding: 22px;
  border-radius: 38px;
  border: 1px solid var(--border-soft);
  background: var(--frame);
  backdrop-filter: blur(24px);
  box-shadow: 0 34px 110px var(--shadow);
  animation: fade-up 280ms ease;
}

.sidebar,
.topbar,
.hero-card,
.content-panel,
.widget,
.mobile-card,
.modal-card {
  border: 1px solid var(--border);
  background: var(--card-gradient);
  box-shadow: var(--shadow-soft);
}

.sidebar {
  border-radius: 28px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 4px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 76%, white 24%), color-mix(in srgb, var(--accent) 20%, white 80%));
  color: var(--accent-strong);
}

.brand-mark.small {
  width: 44px;
  height: 44px;
}

.brand-copy h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.38rem;
  letter-spacing: -0.03em;
}

.brand-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item,
.logout-button,
.theme-toggle,
.day-tab,
.time-label,
.slot-drop,
.all-day-empty,
.mini-row,
.mini-file,
.file-card,
.setting-card,
.icon-choice,
.color-choice,
.mobile-nav-item,
.task-card,
.circle-button,
.theme-icon,
.primary-button,
.secondary-button,
.danger-button,
.status-pill,
.status-chip {
  transition: transform 160ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 18px;
  color: var(--muted);
  text-align: left;
}

.nav-item:hover,
.logout-button:hover,
.theme-toggle:hover,
.day-tab:hover,
.time-label:hover,
.slot-drop:hover,
.all-day-empty:hover,
.mini-row:hover,
.mini-file:hover,
.file-card:hover,
.setting-card:hover,
.icon-choice:hover,
.color-choice:hover,
.mobile-nav-item:hover,
.task-card:hover,
.circle-button:hover,
.theme-icon:hover,
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.status-pill:hover,
.status-chip:hover {
  transform: translateY(-1px);
}

.nav-item.active {
  color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 68%, transparent 32%), color-mix(in srgb, var(--accent) 10%, transparent 90%));
  box-shadow: 0 14px 24px color-mix(in srgb, var(--accent) 16%, transparent 84%);
}

.logout-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 86%, transparent 14%);
  color: var(--muted);
  text-align: left;
  font-weight: 700;
}

.logout-button:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border) 64%);
}

.logout-button svg {
  width: 18px;
  height: 18px;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 90%, transparent 10%);
  color: var(--text);
}

.theme-toggle__thumb,
.circle-button,
.theme-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent 6%);
  color: var(--text);
}

.main-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.topbar {
  border-radius: 28px;
  padding: 22px;
}

.topbar-row,
.topbar-actions,
.panel-head,
.widget-head,
.modal-head,
.mobile-topline,
.upload-box__top,
.upload-box__bottom,
.modal-actions,
.modal-actions__right,
.progress-wrap,
.task-meta,
.task-top,
.task-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hero-copy h2 {
  margin: 8px 0 4px;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 2.25vw, 2.65rem);
  letter-spacing: -0.04em;
}

.hero-heart {
  color: var(--accent-strong);
}

.hero-copy p,
.week-pill span,
.hero-card p,
.panel-head p,
.widget p,
.task-body p,
.mini-row p,
.mini-file p,
.file-card span,
.setting-card p,
.mobile-date,
.upload-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.week-pill {
  min-width: 180px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent-soft) 70%, transparent 30%);
  text-align: center;
}

.week-pill strong {
  display: block;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 44px;
  padding: 12px 17px;
  border-radius: 16px;
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.primary-button {
  color: color-mix(in srgb, var(--surface) 8%, #fff 92%);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 24%, transparent 76%);
}

.secondary-button,
.danger-button {
  color: var(--text);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent 8%);
}

.danger-button {
  color: color-mix(in srgb, #d65476 70%, var(--accent-strong) 30%);
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.day-tab {
  padding: 12px 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent 8%);
  color: var(--muted);
  text-align: center;
}

.day-tab span {
  display: block;
  font-size: 0.78rem;
}

.day-tab strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.day-tab.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border) 56%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 72%, transparent 28%), color-mix(in srgb, var(--accent) 10%, transparent 90%));
  box-shadow: 0 14px 24px color-mix(in srgb, var(--accent) 14%, transparent 86%);
}

.day-tab.today::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 6px auto 0;
  border-radius: 50%;
  background: var(--accent-strong);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}

.week-grid-wrap {
  margin-top: 28px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 45%, transparent 55%) transparent;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(var(--week-day-min), 1fr));
  gap: var(--week-column-gap);
  min-width: var(--week-grid-min);
}

.week-day {
  display: grid;
  gap: 24px;
  min-height: 470px;
  min-width: var(--week-day-min);
  padding: var(--week-card-padding-y) var(--week-card-padding-x) 26px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent 6%);
  text-align: left;
  align-content: start;
  overflow: hidden;
}

.week-day.active {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border) 56%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 70%, transparent 30%), color-mix(in srgb, var(--surface) 92%, transparent 8%));
  box-shadow: 0 16px 28px color-mix(in srgb, var(--accent) 14%, transparent 86%);
}

.week-day__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.week-day__head span,
.week-day__head em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.35;
}

.week-day__head strong {
  display: block;
  margin-top: 10px;
  font-size: 1.45rem;
  line-height: 1;
}

.week-day__body {
  position: relative;
  min-height: 350px;
  min-width: 0;
}

.week-day__timeline {
  position: relative;
  display: grid;
  gap: 24px;
  min-width: 0;
}

.week-day__timeline::before {
  content: "";
  position: absolute;
  left: var(--week-line-left);
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, transparent 78%), color-mix(in srgb, var(--accent-soft) 86%, transparent 14%));
}

.week-timeline-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--week-time-column) var(--week-dot-column) minmax(0, 1fr);
  gap: var(--week-timeline-gap);
  align-items: start;
  min-width: 0;
}

.week-timeline-item__time {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  padding-top: 9px;
  white-space: nowrap;
}

.week-timeline-item__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--subject-color);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--surface) 84%, transparent 16%);
  justify-self: center;
  margin-top: 11px;
}

.week-timeline-item__card,
.week-timeline-empty {
  min-height: 86px;
  min-width: 0;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--subject-color) 16%, var(--border) 84%);
  background: color-mix(in srgb, var(--subject-color) 10%, var(--surface) 90%);
}

.week-timeline-item__card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.week-timeline-item__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--subject-color) 18%, var(--surface-alt) 82%);
  color: color-mix(in srgb, var(--subject-color) 76%, var(--text) 24%);
  flex: 0 0 auto;
}

.week-timeline-item__card > div {
  min-width: 0;
}

.week-timeline-item__card strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.32;
  letter-spacing: -0.02em;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.week-timeline-item__card p,
.week-timeline-empty {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.week-timeline-item__card p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.week-timeline-empty {
  display: grid;
  align-items: center;
  background: color-mix(in srgb, var(--surface-alt) 96%, transparent 4%);
  border-style: dashed;
}

.week-empty {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-card {
  border-radius: 26px;
  padding: 22px;
}

.hero-card.highlight {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 78%, transparent 22%), color-mix(in srgb, var(--surface) 90%, transparent 10%));
}

.hero-card h3,
.panel-head h3,
.widget-head h3,
.modal-head h3 {
  margin: 8px 0 4px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.content-panel,
.widget,
.mobile-card,
.modal-card {
  border-radius: 30px;
  padding: 24px;
}

.all-day-strip {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 24px;
}

.all-day-strip__label {
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.all-day-strip__list,
.stack-list,
.timeline-grid,
.mobile-slots,
.mobile-all-day,
.settings-grid,
.file-grid,
.theme-grid,
.swatch-row,
.icon-grid {
  display: grid;
  gap: 12px;
}

.timeline-grid {
  margin-top: 24px;
  gap: 16px;
}

.time-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
}

.time-label {
  padding-top: 16px;
  color: var(--muted);
  text-align: left;
  font-weight: 700;
  line-height: 1.35;
}

.time-content {
  position: relative;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding-left: 30px;
}

.time-line {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 36%, transparent 64%), color-mix(in srgb, var(--accent-soft) 70%, transparent 30%));
}

.slot-drop,
.all-day-empty {
  width: 100%;
  min-height: 48px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px dashed var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent 8%);
  color: var(--muted);
  text-align: left;
}

.all-day-empty {
  text-align: center;
}

.task-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--subject-color) 18%, var(--border) 82%);
  background: color-mix(in srgb, var(--surface) 94%, transparent 6%);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--subject-color) 10%, transparent 90%);
  text-align: left;
}

.task-card.compact {
  grid-template-columns: 50px minmax(0, 1fr);
}

.task-rail {
  display: flex;
  justify-content: center;
}

.task-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--subject-color), color-mix(in srgb, var(--subject-color) 70%, white 30%));
  color: #fff;
}

.task-body {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.task-meta__right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.task-top {
  align-items: flex-start;
  gap: 18px;
}

.task-body h4 {
  margin: 0 0 4px;
  font-size: 1.03rem;
  line-height: 1.35;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.task-body p,
.task-subtitle,
.task-meta,
.task-bottom {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.task-subtitle {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.subject-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--subject-color) 18%, transparent 82%);
  color: color-mix(in srgb, var(--subject-color) 64%, var(--text) 36%);
  font-weight: 700;
  font-size: 0.78rem;
}

.priority-chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt) 90%, transparent 10%);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
}

.priority-laag {
  color: #75906c;
}

.priority-normaal {
  color: #8460b9;
}

.priority-hoog {
  color: #c75b72;
}

.status-chip,
.status-pill {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent 8%);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1;
}

.status-pill.active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 72%, transparent 28%), color-mix(in srgb, var(--accent) 12%, transparent 88%));
  color: var(--text);
}

.status-nog-doen {
  color: color-mix(in srgb, #c9527d 70%, var(--accent-strong) 30%);
}

.status-bezig {
  color: color-mix(in srgb, #8458cb 75%, var(--accent-strong) 25%);
}

.status-klaar {
  color: color-mix(in srgb, #5a9d67 75%, var(--accent-strong) 25%);
}

.task-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
}

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

.mini-row,
.mini-file,
.file-card,
.setting-card {
  width: 100%;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent 6%);
}

.mini-row {
  grid-template-columns: auto 1fr auto;
  text-align: left;
}

.mini-file,
.file-card {
  grid-template-columns: auto 1fr;
}

.mini-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--surface-alt) 90%, transparent 10%);
}

.mini-file__icon,
.file-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent 28%);
  color: var(--accent-strong);
}

.settings-grid,
.theme-grid {
  margin-top: 18px;
}

.theme-focus {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent 6%);
}

.theme-focus__preview {
  min-height: 108px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.theme-focus__copy h3 {
  margin: 8px 0 4px;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setting-card.active,
.theme-card.active {
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border) 56%);
  box-shadow: 0 16px 24px color-mix(in srgb, var(--accent) 14%, transparent 86%);
}

.setting-card__preview,
.theme-card__preview {
  height: 88px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.theme-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, transparent 6%);
  text-align: left;
}

.theme-card__preview {
  margin-bottom: 12px;
}

.theme-preview-light {
  background: linear-gradient(135deg, color-mix(in srgb, var(--background) 70%, white 30%), color-mix(in srgb, var(--accent-soft) 70%, transparent 30%));
}

.theme-preview-dark {
  background: linear-gradient(135deg, #0a0a0a, #2a2418);
}

.mode-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.mode-button {
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent 8%);
  color: var(--muted);
  font-weight: 700;
}

.mode-button.active {
  color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 72%, transparent 28%), color-mix(in srgb, var(--accent) 10%, transparent 90%));
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field {
  display: grid;
  gap: 9px;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field label,
.field span {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--control-bg);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 26%, transparent 74%);
  transition: border-color 160ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent 28%);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border) 52%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-soft) 72%, transparent 28%);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.swatch-row {
  grid-template-columns: repeat(10, minmax(30px, 1fr));
}

.color-choice {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid transparent;
}

.color-choice.active {
  border-color: var(--text);
}

.icon-grid {
  grid-template-columns: repeat(8, minmax(42px, 1fr));
  gap: 10px;
}

.icon-choice {
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--control-bg-soft);
  color: color-mix(in srgb, var(--text) 80%, var(--muted) 20%);
}

.icon-choice.active {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border) 56%);
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent 28%);
}

.upload-box {
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed var(--border);
  background: var(--control-bg-soft);
}

.upload-box.dragover,
.upload-box.has-file {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border) 52%);
}

.upload-box__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent 28%);
  color: var(--accent-strong);
}

.upload-name {
  font-weight: 700;
}

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

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: color-mix(in srgb, var(--background) 68%, transparent 32%);
  backdrop-filter: blur(12px);
  z-index: 50;
  animation: fade-in 220ms ease;
}

.modal-wrap {
  width: min(100%, 820px);
  max-height: min(92vh, 980px);
}

.modal-card {
  animation: pop-in 220ms ease;
  max-height: min(92vh, 980px);
  box-shadow: var(--shadow-float);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent 45%) transparent;
}

.modal-card::-webkit-scrollbar {
  width: 10px;
}

.modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 48%, var(--surface-alt) 52%);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.modal-form {
  display: grid;
  gap: 16px;
}

.form-error {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #d86b87 35%, var(--border) 65%);
  background: color-mix(in srgb, #ffe4eb 70%, var(--surface) 30%);
  color: #ae4d69;
  font-weight: 600;
}

.modal-actions {
  align-items: center;
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  background: color-mix(in srgb, var(--surface-alt) 92%, transparent 8%);
  color: var(--muted);
  text-align: center;
}

.planner-empty {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 18px;
}

.rightbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.progress-wrap {
  margin-top: 12px;
}

.progress-copy strong {
  display: block;
}

.progress-ring {
  --progress: 0;
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--progress) * 1%), color-mix(in srgb, var(--accent-soft) 70%, transparent 30%) 0);
}

.progress-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--surface);
}

.progress-ring span {
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: var(--accent-strong);
}

.progress-bar {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 70%, transparent 30%);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.mobile-shell,
.mobile-nav,
.fab {
  display: none;
}

.mobile-card {
  border-radius: 24px;
  padding: 18px;
}

.mobile-slots,
.mobile-all-day {
  margin-top: 14px;
}

.fab {
  position: fixed;
  right: 18px;
  bottom: 92px;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 34px color-mix(in srgb, var(--accent) 32%, transparent 68%);
  z-index: 45;
}

.mobile-nav {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent 4%);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--shadow) 62%, transparent 38%);
  z-index: 44;
}

.mobile-nav-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 9px 0;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.73rem;
}

.mobile-nav-item.active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent 28%);
}

.eyebrow {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Polished product system layer */
svg {
  display: block;
}

.nav-icon svg,
.logout-button svg,
.theme-toggle__thumb svg,
.circle-button svg,
.theme-icon svg,
.task-link svg,
.login-benefits svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.brand-mark svg,
.task-icon svg,
.week-timeline-item__icon svg,
.upload-box__icon svg,
.mini-file__icon svg,
.file-card__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.85;
}

.icon-choice svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.sidebar,
.topbar,
.content-panel,
.widget,
.hero-card,
.mobile-card {
  outline: 1px solid color-mix(in srgb, #fff 20%, transparent 80%);
  outline-offset: -2px;
}

.panel-head,
.widget-head,
.modal-head {
  margin-bottom: 6px;
}

.panel-head h3,
.widget-head h3,
.modal-head h3,
.hero-card h3 {
  color: var(--text);
  line-height: 1.18;
}

.mini-row strong,
.mini-file strong,
.file-card strong,
.task-body h4,
.week-timeline-item__card strong {
  color: var(--text);
}

.theme-toggle,
.day-tab,
.slot-drop,
.all-day-empty,
.mini-row,
.mini-file,
.file-card,
.theme-card,
.mode-button,
.status-pill,
.status-chip,
.upload-box,
.empty-state {
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent 82%);
}

.secondary-button:hover,
.danger-button:hover,
.theme-toggle:hover,
.mini-row:hover,
.mini-file:hover,
.file-card:hover,
.theme-card:hover,
.icon-choice:hover,
.slot-drop:hover,
.all-day-empty:hover {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border) 68%);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--shadow) 32%, transparent 68%), inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent 78%);
}

.status-nog-doen {
  background: color-mix(in srgb, #f3a2bf 16%, var(--surface-alt) 84%);
}

.status-bezig {
  background: color-mix(in srgb, #bba1ff 16%, var(--surface-alt) 84%);
}

.status-klaar {
  background: color-mix(in srgb, #93d6ad 16%, var(--surface-alt) 84%);
}

.priority-laag {
  background: color-mix(in srgb, #95d7b3 14%, var(--surface-alt) 86%);
}

.priority-normaal {
  background: color-mix(in srgb, #b89aff 14%, var(--surface-alt) 86%);
}

.priority-hoog {
  background: color-mix(in srgb, #f08f8f 14%, var(--surface-alt) 86%);
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes welcome-shell-fade {
  0% { opacity: 0; }
  18%, 78% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes welcome-card-fade {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  24%, 72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.985);
  }
}

@keyframes welcome-glow-pulse {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  28%, 72% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@media (max-width: 1320px) {
  .app-frame {
    grid-template-columns: 214px minmax(0, 1fr);
  }

  .rightbar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .login-panel {
    min-height: auto;
  }

  .planner-shell {
    padding: 18px 18px 120px;
  }

  .app-frame {
    display: none;
  }

  .mobile-shell {
    display: grid;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
    animation: fade-up 280ms ease;
  }

  .day-strip.mobile {
    display: grid;
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    overflow-x: auto;
  }

  .fab,
  .mobile-nav {
    display: grid;
  }
}

@media (max-width: 760px) {
  .login-shell,
  .welcome-shell {
    padding: 14px;
  }

  .login-panel,
  .login-card {
    border-radius: 28px;
  }

  .login-panel.intro {
    display: none;
  }

  .planner-shell {
    padding: 14px 14px 120px;
  }

  .topbar-row,
  .topbar-actions,
  .panel-head,
  .widget-head,
  .modal-head,
  .modal-actions,
  .modal-actions__right,
  .upload-box__top,
  .upload-box__bottom,
  .task-meta,
  .task-top,
  .task-bottom,
  .progress-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-grid,
  .settings-grid,
  .theme-grid,
  .field-grid.two,
  .field-grid.three,
  .file-grid {
    grid-template-columns: 1fr;
  }

  .swatch-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .icon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .theme-focus {
    grid-template-columns: 1fr;
  }

  .week-grid {
    min-width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .week-day {
    min-height: auto;
    min-width: 0;
    padding: 20px;
  }

  .week-day__body {
    min-height: auto;
  }

  .week-timeline-item {
    grid-template-columns: 52px 16px minmax(0, 1fr);
    gap: 12px;
  }

  .week-day__timeline::before {
    left: 72px;
  }

  .week-timeline-item__card,
  .week-timeline-empty {
    min-height: 76px;
    padding: 14px;
  }

  .week-timeline-item__card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .week-timeline-item__icon {
    width: 38px;
    height: 38px;
  }

  .all-day-strip,
  .time-row {
    grid-template-columns: 1fr;
  }

  .time-content {
    padding-left: 14px;
  }

  .time-line {
    left: 4px;
  }

  .task-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .modal-overlay {
    padding: 14px;
    align-items: start;
    overflow-y: auto;
  }
}
