.linen-app {
  --primary: #9a3412;
  --primary-dark: #7c2d12;
  --primary-soft: #fff7ed;
  --primary-glow: rgba(154, 52, 18, 0.15);
  
  --result-pod-bg: #181210;
  --result-pod-border: #2dd4bf;
  
  --slate-950: #1c1512;
  --slate-900: #2a201c;
  --slate-800: #44352f;
  --slate-700: #5c4840;
  --slate-600: #765f56;
  --slate-400: #a48c82;
  
  --border-box: #e2d5ce;
  --border-focus: #9a3412;
  --slate-100: #f2ebe6;
  --slate-50: #fcf9f7;
  --pure-white: #ffffff;
  
  --radius-2xl: 24px;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;

  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  background-color: #f7f2ea;
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(255, 246, 238, 0.95) 0%, rgba(245, 238, 228, 0.6) 45%, transparent 75%),
    repeating-radial-gradient(circle at 0% 0%, rgba(190, 165, 150, 0.12) 0px, rgba(190, 165, 150, 0.12) 2px, transparent 2px, transparent 18px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.35) 0px, rgba(255, 255, 255, 0.35) 2px, transparent 2px, transparent 24px);
  background-attachment: fixed;
  
  color: var(--slate-900);
  line-height: 1.5;
  padding: 24px 14px 120px;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.linen-app * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.linen-container {
  max-width: 1100px;
  width: 100%;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

@media (min-width: 960px) {
  .app-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
  }
  .linen-app {
    padding-bottom: 50px;
  }
}

.form-panel {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--border-box);
  border-radius: var(--radius-2xl);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 12px 36px -4px rgba(45, 22, 36, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
}

.header-block {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--slate-100);
}

.badge-hygiene {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #ffffff;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(154, 52, 18, 0.08);
  border: 1.5px solid #fed7aa;
}

.brand-title {
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.25;
  display: block;
  word-break: break-word;
}

.brand-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  font-size: 0.88em;
  margin-right: 6px;
  line-height: 1;
  white-space: nowrap;
}

.brand-bedsheet { color: #9a3412; }
.brand-wash { color: #2a201c; }
.brand-calc { color: #0d9488; }

.header-subtext {
  font-size: 0.95rem;
  color: var(--slate-700);
  font-weight: 600;
  line-height: 1.45;
  margin-top: 4px;
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 16px 0;
  padding: 10px 14px;
  background: #fcf6f4;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(154, 52, 18, 0.05);
}

.step-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--slate-950);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.step-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: 0.9rem;
}

.step-start-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.step-down-arrow {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  animation: bounceDown 1.8s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.step-badge {
  font-size: 0.70rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffedd5;
  color: var(--primary);
  font-weight: 800;
  border: 1px solid #fed7aa;
}

.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.90rem;
  font-weight: 800;
  color: #442a22;
  background: #fcf6f4;
  border: 1px solid #f2d8d0;
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(68, 42, 34, 0.05);
}

.select-wrap { position: relative; }

.custom-select {
  width: 100%;
  min-height: 48px;
  padding: 11px 42px 11px 14px;
  border: 2px solid var(--border-box);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-950);
  background-color: var(--pure-white);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: all 0.18s ease;
  box-shadow: 0 2px 5px rgba(60, 25, 45, 0.05), 0 1px 2px rgba(0,0,0,0.04);
}

.custom-select option {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-900);
  background-color: #ffffff;
  padding: 8px;
}

.option-calendar-pick {
  color: #9a3412 !important;
  font-weight: 800 !important;
  background-color: #fff7ed !important;
}

.custom-select:hover {
  border-color: #bfaea5;
  box-shadow: 0 4px 10px rgba(60, 25, 45, 0.08);
}

.custom-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3.5px var(--primary-glow);
  background-color: #ffffff;
}

.select-chevron {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--slate-700);
  display: flex;
  align-items: center;
}

.fabric-helper-toggle {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fabric-guide-card {
  display: none;
  background: #fcf9f7;
  border: 2px solid var(--border-box);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 10px;
  font-size: 0.80rem;
  color: var(--slate-700);
  line-height: 1.55;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.fabric-guide-card ul {
  margin-left: 18px;
  margin-top: 6px;
}

.fabric-guide-card li { margin-bottom: 4px; }

.date-custom-field {
  display: none;
  margin-top: 10px;
}

.custom-date-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 2px solid var(--border-box);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-950);
  outline: none;
  box-shadow: 0 2px 5px rgba(60, 25, 45, 0.05);
}

.custom-date-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3.5px var(--primary-glow);
}

.optional-toggle-btn {
  width: 100%;
  background: #fff7ed;
  border: 2px dashed #fed7aa;
  border-radius: var(--radius-xl);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(154, 52, 18, 0.05);
}

.optional-toggle-btn:hover {
  background: #ffedd5;
  border-color: var(--primary);
}

.toggle-icon {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
  color: var(--primary);
}

.optional-block {
  display: none;
  margin-top: 14px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.desktop-aside { display: none; }

@media (min-width: 960px) {
  .desktop-aside {
    display: block;
    position: sticky;
    top: 20px;
  }
}

.metric-card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-2xl);
  padding: 24px 20px;
  box-shadow: 0 16px 40px -6px rgba(154, 52, 18, 0.12), 0 6px 16px rgba(42, 32, 28, 0.06);
  margin-bottom: 16px;
  border: 2px solid var(--border-box);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.integrated-status-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-fresh { background: #ecfdf5; color: #166534; border-color: #bbf7d0; }
.status-fresh .status-dot { background: #16a34a; }

.status-warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.status-warn .status-dot { background: #d97706; }

.status-overdue { background: #fff7ed; color: #9a3412; border-color: #fed7aa; box-shadow: 0 0 10px rgba(154, 52, 18, 0.1); }
.status-overdue .status-dot { background: #ea580c; animation: urgentPulse 1.2s infinite; }

@keyframes urgentPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.metric-display-pod {
  background: linear-gradient(145deg, #181210 0%, #2e211d 100%);
  border: 2px solid var(--result-pod-border);
  border-radius: var(--radius-xl);
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 10px 24px -4px rgba(28, 21, 18, 0.45), 0 0 18px rgba(45, 212, 191, 0.22);
}

.metric-val-sub {
  display: inline-block;
  font-size: 0.80rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #38bdf8;
  margin-bottom: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.4);
}

.metric-val {
  font-size: clamp(2.3rem, 4.8vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  display: block;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.7), 0 0 32px rgba(45, 212, 191, 0.3);
}

.target-wash-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 8, 18, 0.85);
  border: 1.5px solid #f43f5e;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  font-size: 0.86rem;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.25);
}

.target-wash-badge span {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.target-wash-badge b {
  color: #f43f5e;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.8), 0 0 20px rgba(244, 63, 94, 0.4);
  font-size: 0.95rem;
}

.sub-cycle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sub-item-pillow, .sub-item-duvet {
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.sub-item-pillow { background: #fffaf7; border: 1px solid #fed7aa; }
.sub-item-duvet { background: #f0fdf4; border: 1px solid #bbf7d0; }

.sub-item-pillow .sub-label, .sub-item-duvet .sub-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-600);
  margin-bottom: 4px;
}

.sub-item-pillow strong, .sub-item-duvet strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--slate-950);
  letter-spacing: -0.01em;
}

.wash-specs {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--border-box);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(45, 22, 36, 0.04);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.88rem;
  border-bottom: 1.5px solid var(--slate-100);
}

.spec-row:last-child { border-bottom: none; padding-bottom: 0; }

.spec-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-700);
  font-weight: 600;
}

.spec-row strong { color: var(--slate-950); font-weight: 800; }

.insight-card {
  background-color: #fff7ed;
  border-left: 5px solid var(--primary);
  border-top: 2px solid #fed7aa;
  border-right: 2px solid #fed7aa;
  border-bottom: 2px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 15px 18px;
  font-size: 0.86rem;
  color: var(--slate-800);
  line-height: 1.55;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(154, 52, 18, 0.04);
}

.insight-card b {
  color: var(--primary-dark);
  display: block;
  font-weight: 900;
  margin-bottom: 3px;
}

.action-button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-download-ics {
  width: 100%;
  min-height: 50px;
  background: var(--pure-white);
  border: 2px solid var(--border-box);
  color: var(--slate-950);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.btn-download-ics:hover { background: #fbf7f4; border-color: #b89c8f; }

.btn-gcal-brand {
  width: 100%;
  min-height: 50px;
  background: var(--primary-dark);
  border: 2px solid #500720;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124, 45, 18, 0.28);
}

.btn-gcal-brand:hover { background: #5c200c; border-color: #381206; }

.mobile-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #181210;
  color: var(--pure-white);
  padding: 12px 18px;
  box-shadow: 0 -6px 25px rgba(20, 8, 18, 0.55);
  z-index: 100;
  border-top: 1px solid var(--border-box);
}

@media (min-width: 960px) {
  .mobile-dock { display: none; }
}

.dock-info { display: flex; flex-direction: column; }
.dock-info span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; font-weight: 800; }
.dock-info strong { font-size: 1.4rem; font-weight: 900; color: #ffffff; line-height: 1.1; text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }

.btn-dock-action {
  background: var(--primary);
  color: var(--pure-white);
  border: none;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 3px 14px rgba(154, 52, 18, 0.3);
}

.sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 18, 0.82);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: flex-end;
}

.sheet-body {
  background: var(--pure-white);
  width: 100%;
  border-radius: 26px 26px 0 0;
  padding: 24px 20px 34px;
  animation: sheetUp 0.22s ease-out;
  max-height: 88vh;
  overflow-y: auto;
  border-top: 1px solid var(--border-box);
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--slate-100);
}

.sheet-head h3 { font-size: 1.15rem; font-weight: 900; color: var(--slate-950); }

.btn-sheet-close {
  background: #fbf7f4;
  border: 1.5px solid var(--border-box);
  font-size: 1.1rem;
  font-weight: 800;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-800);
}

.enjoy-calculator-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 237, 0.96) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--border-box);
  border-radius: var(--radius-2xl);
  padding: 24px clamp(20px, 4vw, 40px);
  margin: 48px auto 0;
  max-width: 820px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.06);
  position: relative;
  overflow: hidden;
}

.enjoy-calculator-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #9a3412, #0d9488, #9a3412);
}

.enjoy-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--slate-950);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.enjoy-subtitle { font-size: 0.84rem; color: var(--slate-600); font-weight: 600; margin-bottom: 14px; }

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
  cursor: pointer;
}

.star { font-size: 1.4rem; color: #d1d5db; transition: color 0.15s ease, transform 0.15s ease; }
.star:hover, .star.active { color: #f59e0b; transform: scale(1.15); }

.rating-feedback {
  font-size: 0.78rem;
  font-weight: 800;
  color: #16a34a;
  margin-top: -6px;
  margin-bottom: 14px;
  display: none;
  animation: fadeIn 0.2s ease;
}

.enjoy-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn-enjoy-share {
  background: var(--primary);
  color: var(--pure-white);
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.15s ease;
  box-shadow: 0 3px 10px rgba(154, 52, 18, 0.25);
}

.btn-enjoy-share:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-enjoy-copy {
  background: var(--pure-white);
  color: var(--slate-800);
  border: 1.5px solid var(--border-box);
  padding: 11px 22px;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.btn-enjoy-copy:hover { background: #fff7ed; border-color: var(--primary); color: var(--primary); }

.copy-toast {
  display: none;
  font-size: 0.76rem;
  color: #16a34a;
  font-weight: 800;
  margin-top: 10px;
  animation: fadeIn 0.2s ease;
}

.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--border-box);
  text-align: center;
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--border-box);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  font-size: 0.8rem;
  color: var(--slate-600);
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto 20px;
}

.disclaimer-box strong { color: var(--slate-900); font-weight: 700; }

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-700);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.footer-link:hover { color: var(--primary); }

.footer-copy { font-size: 0.78rem; color: var(--slate-600); font-weight: 600; }
