:root {
  --warm-orange: #ff7a45;
  --warm-orange-dark: #dc5b29;
  --sun-yellow: #ffc857;
  --cream: #fff7e6;
  --cream-light: #fffcf5;
  --deep-brown: #5c3c21;
  --muted-brown: #83684f;
  --soft-border: #f0ddc5;
  --leaf-green: #4f8a69;
  --quiet-blue: #4f709c;
  --white: #ffffff;
  --brand-soft: #fff1e5;
  --brand-glow: rgba(255, 122, 69, 0.22);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-card: 14px;
  --radius-full: 999px;
  --shadow-xs: 0 2px 8px rgba(92, 60, 33, 0.05);
  --shadow-sm: 0 6px 20px rgba(92, 60, 33, 0.07);
  --shadow-md: 0 16px 44px rgba(92, 60, 33, 0.13);
  --shadow-lg: 0 24px 60px rgba(92, 60, 33, 0.18);
  --shadow-glow: 0 12px 30px rgba(255, 122, 69, 0.2);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-width: 0;
  color: var(--deep-brown);
  background: var(--cream-light);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

.navbar {
  min-height: 72px;
  background: rgba(255, 252, 245, 0.82);
  border-bottom: 1px solid rgba(240, 221, 197, 0.6);
  box-shadow: 0 4px 24px rgba(92, 60, 33, 0.05);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.navbar-brand {
  color: var(--deep-brown);
  font-size: 1rem;
  font-weight: 800;
  white-space: normal;
  letter-spacing: -0.01em;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--warm-orange-dark);
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--white);
  background: linear-gradient(135deg, var(--warm-orange), var(--sun-yellow));
  border-radius: var(--radius-sm);
  place-items: center;
  box-shadow: 0 6px 16px rgba(255, 122, 69, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 220ms ease;
}

.navbar-brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
}

.brand-divider {
  color: var(--warm-orange);
}

.navbar-toggler {
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--deep-brown);
  border: 1px solid var(--soft-border);
  border-radius: var(--radius-sm);
  transition: background 180ms ease, border-color 180ms ease;
}

.navbar-toggler:hover {
  background: var(--brand-soft);
  border-color: #ffd4bd;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.18);
}

.nav-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px !important;
  color: var(--deep-brown);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.nav-action:hover,
.nav-action:focus {
  color: var(--warm-orange-dark);
  background: var(--brand-soft);
  border-color: #ffd4bd;
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  display: flex;
  min-height: calc(100svh - 48px);
  align-items: center;
  overflow: hidden;
  padding: 126px 0 96px;
  background-image:
    linear-gradient(105deg, rgba(255, 122, 69, 0.96) 0%, rgba(255, 174, 75, 0.9) 45%, rgba(255, 224, 139, 0.82) 100%),
    url("https://images.unsplash.com/photo-1663866702581-a9712aed5c93?auto=format&fit=crop&w=2000&q=85");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 247, 230, 0.18), rgba(92, 60, 33, 0.14));
  content: "";
}

.hero-section::after {
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: hero-float 9s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  color: #75401f;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(92, 60, 33, 0.08);
}

.hero-section h1 {
  max-width: 850px;
  margin: 0 auto;
  color: #4a2d17;
  font-size: 4.75rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.24), 0 8px 30px rgba(92, 60, 33, 0.12);
}

.hero-subtitle {
  margin: 22px 0 34px;
  color: #643b21;
  font-size: 1.35rem;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(255, 247, 230, 0.4);
}

.hero-entry-row {
  max-width: 700px;
  margin: 0 auto;
}

.feature-entry {
  position: relative;
  color: var(--deep-brown);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 240ms ease, border-color 240ms ease;
}

.feature-entry::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--warm-orange), var(--sun-yellow));
  content: "";
  opacity: 0.9;
}

.feature-entry .card-body {
  display: grid;
  min-height: 112px;
  grid-template-columns: 50px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

.entry-icon,
.tool-icon {
  display: inline-grid;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  place-items: center;
}

.entry-icon {
  width: 50px;
  height: 50px;
  font-size: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.entry-icon-card {
  color: #c5512a;
  background: linear-gradient(135deg, #ffe3d4, #ffd4bd);
}

.entry-icon-tools {
  color: #356f55;
  background: linear-gradient(135deg, #dff1e7, #c9e9d8);
}

.entry-copy {
  min-width: 0;
}

.entry-copy strong,
.entry-copy small {
  display: block;
}

.entry-copy strong {
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.entry-copy small {
  color: var(--muted-brown);
  font-size: 0.78rem;
}

.entry-arrow {
  color: var(--warm-orange);
  transition: transform 220ms ease;
}

.scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: #694026;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateX(-50%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 200ms ease, color 200ms ease;
}

.scroll-cue:hover {
  color: #4a2d17;
  background: rgba(255, 255, 255, 0.78);
}

.scroll-cue i {
  animation: cue-bounce 1.8s ease-in-out infinite;
}

.toolbox-section {
  position: relative;
  padding: 72px 0 84px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 200, 87, 0.1), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255, 122, 69, 0.06), transparent 45%),
    linear-gradient(180deg, var(--cream-light), #fff7e6 52%, #fffdf9);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  color: var(--warm-orange-dark);
  background: var(--brand-soft);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  margin: 0;
  color: var(--deep-brown);
  font-size: 2.25rem;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.nav-tabs {
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 5px;
  background: #f8ead8;
  border: 0;
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 3px rgba(92, 60, 33, 0.06);
}

.nav-tabs .nav-item {
  flex: 1 1 0;
}

.nav-tabs .nav-link {
  width: 100%;
  min-height: 48px;
  color: #76583e;
  border: 0;
  border-radius: var(--radius-full);
  font-weight: 750;
  transition: color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.nav-tabs .nav-link:hover {
  color: var(--warm-orange-dark);
}

.nav-tabs .nav-link.active {
  color: var(--warm-orange-dark);
  background: var(--white);
  box-shadow: 0 5px 16px rgba(92, 60, 33, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-tabs .nav-link i {
  margin-right: 6px;
}

.tab-pane:focus-visible {
  outline: 3px solid rgba(255, 122, 69, 0.25);
  outline-offset: 8px;
}

.module-content {
  animation: tab-reveal 360ms ease both;
}

.app-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #f0e0cb;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 240ms ease, border-color 240ms ease;
}

.app-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--warm-orange), var(--sun-yellow));
  content: "";
  opacity: 0.85;
  z-index: 1;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.card-heading p {
  margin: 0 0 3px;
  color: var(--muted-brown);
  font-size: 0.78rem;
  font-weight: 650;
}

.card-heading h3 {
  margin: 0;
  color: var(--deep-brown);
  font-size: 1.28rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.compact-heading {
  margin-bottom: 22px;
}

.compact-heading h3 {
  font-size: 1.12rem;
}

.tool-icon {
  width: 46px;
  height: 46px;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tool-icon-orange {
  color: #c5512a;
  background: linear-gradient(135deg, #ffe6d8, #ffd4bd);
}

.tool-icon-green {
  color: #317052;
  background: linear-gradient(135deg, #dff1e7, #c9e9d8);
}

.tool-icon-blue {
  color: #3e668f;
  background: linear-gradient(135deg, #e1ecf7, #cfddec);
}

.tool-icon-gold {
  color: #9c6815;
  background: linear-gradient(135deg, #fff0c9, #ffe39a);
}

.form-label {
  margin-bottom: 8px;
  color: #67462d;
  font-size: 0.86rem;
  font-weight: 750;
}

.form-control,
.form-select,
.input-group-text {
  min-height: 46px;
  border-color: #ead8c1;
  border-radius: var(--radius);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.input-group > .input-group-text {
  color: #a2663c;
  background: #fff8ef;
  border-right: 0;
}

.input-group > .input-group-text + .form-control,
.input-group > .input-group-text + .form-select {
  border-left: 0;
}

.form-control:focus,
.form-select:focus,
[contenteditable="true"]:focus {
  border-color: #ff9c72;
  box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.14);
  outline: 0;
}

.form-control::placeholder {
  color: #c3ad96;
}

textarea.form-control {
  resize: vertical;
}

.character-count {
  margin-top: 6px;
  color: #a18872;
  font-size: 0.74rem;
  text-align: right;
}

.btn {
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 750;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.btn i {
  margin-right: 6px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #4c2b15;
  background: linear-gradient(135deg, var(--warm-orange), var(--sun-yellow));
  border: 0;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #3f2513 !important;
  background: linear-gradient(135deg, #ff6a30, #ffbd37) !important;
  box-shadow: 0 14px 32px rgba(255, 122, 69, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: #d45c2d;
  border-color: #ed8a61;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: var(--white) !important;
  background: var(--warm-orange) !important;
  border-color: var(--warm-orange) !important;
  box-shadow: 0 8px 20px rgba(255, 122, 69, 0.24) !important;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  color: #6f543e;
  border-color: #cdb79d;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  color: #4c321e !important;
  background: #f8ead8 !important;
  border-color: #bda282 !important;
  transform: translateY(-1px);
}

.preview-card {
  background: linear-gradient(180deg, #fffaf2, #fff7ea);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.preview-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-toolbar h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.preview-dot {
  width: 9px;
  height: 9px;
  background: #55a274;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(85, 162, 116, 0.16);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.preview-state {
  padding: 3px 10px;
  color: #8a705a;
  background: #f8ead8;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.card-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 44px rgba(92, 60, 33, 0.18);
}

.greeting-card,
.generated-card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
}

.greeting-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(30px, 6vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: background 260ms ease, color 260ms ease;
}

.greeting-card::before,
.greeting-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.greeting-card::before {
  top: 21px;
  right: 21px;
  bottom: 21px;
  left: 21px;
  border: 1px solid currentColor;
  border-radius: 5px;
  opacity: 0.18;
}

.greeting-card::after {
  top: 31px;
  right: 31px;
  bottom: 31px;
  left: 31px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.08;
}

.theme-peach {
  color: #743f2c;
  background: linear-gradient(145deg, #fff8ed, #ffe2d3 55%, #ffcebb);
}

.theme-youth {
  color: #315d49;
  background: linear-gradient(145deg, #fcfff5, #e3f1dc 55%, #c9e3cf);
}

.theme-starlight {
  color: #3e486d;
  background: linear-gradient(145deg, #fffdf4, #e8e9fa 52%, #d2d8f0);
}

.corner-icon {
  position: absolute;
  z-index: 1;
  font-size: 4rem;
  opacity: 0.19;
}

.corner-icon-top {
  top: 34px;
  right: 39px;
  transform: rotate(14deg);
}

.corner-icon-bottom {
  bottom: 34px;
  left: 39px;
  transform: rotate(-12deg);
}

.card-mini-title {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  padding-bottom: 7px;
  border-bottom: 2px solid currentColor;
  font-size: 0.82rem;
  font-weight: 850;
}

.greeting-copy {
  position: relative;
  z-index: 2;
  max-width: 89%;
  margin: auto 0;
}

.greeting-line {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 14px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.5;
}

.greeting-copy h4 {
  margin: 0 0 clamp(12px, 2.2vw, 24px);
  overflow-wrap: anywhere;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.greeting-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei", sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
  white-space: pre-line;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.signature {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
}

.generated-card-image {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-touch-callout: default;
}

.card-stage.is-generated {
  animation: card-pop 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.save-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 17px;
  padding: 10px 16px;
  color: #3e7356;
  background: linear-gradient(135deg, #eaf7ee, #e0f4e6);
  border: 1px solid #c9e6d2;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.tool-card .card-body {
  display: flex;
  flex-direction: column;
}

.result-display {
  display: grid;
  width: 100%;
  min-height: 94px;
  margin-bottom: 22px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #ead8c1;
  border-radius: var(--radius);
  place-items: center;
  text-align: center;
  transition: background 240ms ease, color 240ms ease, box-shadow 240ms ease;
}

.picker-display {
  color: #356f55;
  background: linear-gradient(135deg, #f0f8f2, #e6f4ea);
  font-size: 2.1rem;
  font-weight: 900;
  box-shadow: inset 0 1px 3px rgba(53, 111, 85, 0.06);
}

.picker-display.is-rolling {
  color: var(--warm-orange-dark);
  background: linear-gradient(135deg, #fff4e8, #ffe9d6);
  box-shadow: inset 0 1px 3px rgba(255, 122, 69, 0.08);
}

.picker-display.result-pop {
  animation: result-pop 460ms ease;
}

.name-list {
  min-height: 158px;
  line-height: 1.65;
}

.list-meta,
.schedule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #927963;
  font-size: 0.72rem;
}

.list-meta {
  margin: 8px 0 18px;
}

.grid-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.grid-actions .btn,
.timer-actions .btn {
  min-width: 0;
  padding-right: 8px;
  padding-left: 8px;
  font-size: 0.82rem;
}

.timer-display {
  margin-bottom: 6px;
  color: #3f6289;
  background: linear-gradient(135deg, #edf5fc, #ddeaf6);
  font-variant-numeric: tabular-nums;
  font-size: 3rem;
  font-weight: 900;
  box-shadow: inset 0 1px 3px rgba(63, 98, 137, 0.07);
}

.timer-display.timer-finished {
  color: #bf4928;
  background: linear-gradient(135deg, #fff0e8, #ffe0d2);
  box-shadow: inset 0 1px 3px rgba(191, 73, 40, 0.1);
  animation: timer-finish 780ms ease-in-out 2;
}

.timer-status {
  min-height: 25px;
  margin-bottom: 18px;
  color: #826b57;
  font-size: 0.76rem;
  text-align: center;
}

.preset-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.preset-btn {
  min-height: 38px;
  padding: 6px 4px;
  color: #73563e;
  background: #fff8ef;
  border: 1px solid #ead8c1;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.preset-btn:hover {
  color: #bc512b;
  background: #fff0e3;
  border-color: #f4a47f;
  transform: translateY(-1px);
}

.preset-btn.active {
  color: #bc512b;
  background: linear-gradient(135deg, #ffe8db, #ffdcc8);
  border-color: #f4a47f;
  box-shadow: 0 4px 12px rgba(255, 122, 69, 0.14);
}

.timer-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.schedule-wrap {
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #ead8c1;
  border-radius: var(--radius);
}

.schedule-table {
  width: 100%;
  table-layout: fixed;
  color: var(--deep-brown);
  font-size: 0.68rem;
  text-align: center;
  vertical-align: middle;
}

.schedule-table > :not(caption) > * > * {
  padding: 8px 3px;
  border-color: #efe0cd;
}

.schedule-table thead th {
  height: 42px;
  color: #7b5534;
  background: linear-gradient(180deg, #fff0d8, #ffe6c4);
  font-weight: 800;
}

.schedule-table th:first-child {
  width: 50px;
}

.schedule-table tbody th {
  color: #6c7450;
  background: linear-gradient(180deg, #f5f5e7, #eef0dc);
  font-weight: 800;
}

.schedule-table td {
  height: 112px;
  background: var(--white);
  line-height: 1.45;
  overflow-wrap: anywhere;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.schedule-table td:empty::before {
  color: #d4bea6;
  content: "+";
  font-size: 1rem;
  transition: color 180ms ease;
}

.schedule-table td:hover,
.schedule-table td:focus {
  background: #fff8ef;
  box-shadow: inset 0 0 0 2px rgba(255, 122, 69, 0.18);
}

.schedule-table td:hover:empty::before,
.schedule-table td:focus:empty::before {
  color: var(--warm-orange);
}

.schedule-footer {
  min-height: 26px;
}

.save-status {
  display: none;
  color: #3f7e5c;
  font-weight: 700;
}

.site-footer {
  position: relative;
  padding: 52px 0 42px;
  color: #f9ecdc;
  background: linear-gradient(180deg, #5c3d24, #4a2f1b);
  overflow: hidden;
}

.site-footer::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--warm-orange), var(--sun-yellow), var(--warm-orange));
  content: "";
  opacity: 0.6;
}

.footer-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  color: #513722;
  background: linear-gradient(135deg, var(--sun-yellow), #ffb84d);
  border-radius: var(--radius-sm);
  place-items: center;
  box-shadow: 0 6px 18px rgba(255, 200, 87, 0.28);
}

.footer-title {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin-bottom: 6px;
}

.footer-note,
.photo-credit {
  color: #d9c5b0;
  font-size: 0.74rem;
}

.photo-credit a:hover,
.photo-credit a:focus {
  color: var(--sun-yellow);
}

.app-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1080;
  display: none;
  max-width: min(340px, calc(100vw - 40px));
  padding: 13px 18px;
  color: var(--white);
  background: linear-gradient(135deg, #4f3a29, #3d2c1f);
  border-left: 4px solid var(--sun-yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (hover: hover) {
  .feature-entry:hover,
  .app-card:hover {
    border-color: #eacbaa;
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
  }

  .feature-entry:hover .entry-arrow {
    transform: translateX(4px);
  }

  .btn-primary:hover,
  .btn-outline-primary:hover,
  .btn-outline-secondary:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 991.98px) {
  .tool-card .card-body {
    padding: 20px !important;
  }

  .schedule-table td {
    height: 128px;
  }
}

@media (max-width: 767.98px) {
  .module-content > [class*="col-"] + [class*="col-"] {
    margin-top: 0;
  }

  .navbar {
    min-height: 64px;
  }

  .navbar-brand {
    max-width: calc(100% - 56px);
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .navbar-collapse {
    border-top: 1px solid #f0dfcc;
  }

  .hero-section {
    min-height: calc(100svh - 34px);
    padding: 104px 0 72px;
    background-position: 62% center;
  }

  .hero-kicker {
    margin-bottom: 13px;
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .hero-section h1 {
    font-size: 2.45rem;
  }

  .hero-subtitle {
    margin: 16px 0 26px;
    font-size: 1rem;
  }

  .feature-entry .card-body {
    min-height: 126px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 15px 10px;
    text-align: center;
  }

  .entry-icon {
    width: 42px;
    height: 42px;
  }

  .entry-copy small {
    display: none;
  }

  .entry-arrow {
    display: none;
  }

  .scroll-cue {
    bottom: 13px;
  }

  .toolbox-section {
    padding: 54px 0 64px;
  }

  .section-heading {
    margin-bottom: 25px;
  }

  .section-heading h2 {
    font-size: 1.7rem;
  }

  .nav-tabs {
    margin-bottom: 24px;
  }

  .nav-tabs .nav-link {
    min-height: 52px;
    padding: 8px 6px;
    font-size: 0.79rem;
    line-height: 1.35;
  }

  .nav-tabs .nav-link i {
    display: block;
    margin: 0 0 3px;
  }

  .module-content > [class*="col-"] + [class*="col-"] {
    margin-top: 0;
  }

  .greeting-card {
    padding: 30px;
  }

  .greeting-card::before {
    inset: 13px;
  }

  .greeting-card::after {
    inset: 20px;
  }

  .corner-icon-top {
    top: 24px;
    right: 26px;
  }

  .corner-icon-bottom {
    bottom: 24px;
    left: 26px;
  }

  .greeting-copy {
    max-width: 92%;
  }

  .corner-icon {
    font-size: 2.5rem;
  }

  .greeting-copy h4 {
    font-size: 1.55rem;
  }

  .greeting-copy p {
    font-size: 0.78rem;
    line-height: 1.72;
  }

  .tool-card .card-body {
    padding: 24px !important;
  }

  .picker-display {
    font-size: 1.8rem;
  }

  .timer-display {
    font-size: 2.15rem;
  }

  .schedule-table {
    font-size: 0.72rem;
  }

  .schedule-table td {
    height: 86px;
  }
}

@media (max-width: 399.98px) {
  .navbar-brand {
    font-size: 0.8rem;
  }

  .hero-section h1 {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .feature-entry .card-body {
    min-height: 116px;
  }

  .greeting-card {
    padding: 25px;
  }

  .greeting-copy p {
    font-size: 0.7rem;
    line-height: 1.62;
  }

  .signature {
    font-size: 0.6rem;
  }

  .tool-card .card-body {
    padding: 19px !important;
  }

  .schedule-table {
    font-size: 0.64rem;
  }

  .schedule-table th:first-child {
    width: 44px;
  }

  .schedule-table > :not(caption) > * > * {
    padding-right: 2px;
    padding-left: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

@keyframes card-pop {
  0% {
    opacity: 0.25;
    transform: scale(0.965);
  }
  70% {
    opacity: 1;
    transform: scale(1.012);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes result-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.055); }
}

@keyframes timer-finish {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes hero-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(-20px, 24px) scale(1.06); opacity: 1; }
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(85, 162, 116, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(85, 162, 116, 0.08); }
}
