/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Palette — Glassmorphism Wellness */
  --bg:           #f2f5f2;
  --bg-2:         #e8efe8;
  --ink:          #1e2d27;
  --ink-soft:     #3d5a4f;
  --ink-mute:     #6e887e;
  --accent:       #4a9170;
  --accent-dark:  #357a5c;
  --accent-2:     #7c6fa0;
  --accent-3:     #e8926a;
  --cream:        #fdfaf6;
  --line:         rgba(30, 45, 42, 0.10);
  --glass:        rgba(255, 255, 255, 0.58);
  --glass-2:      rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.75);

  /* Gradients */
  --g1:  #b8ddc8;
  --g2:  #c4b8d8;
  --g3:  #f0c8aa;
  --g4:  #b8d4e8;
  --g5:  #d4e8b8;

  /* Typography */
  --serif:  'Cormorant', Georgia, serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing */
  --gutter:    clamp(1.25rem, 4vw, 2rem);
  --section-v: clamp(4rem, 8vw, 7rem);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Ensure hidden attribute always wins — prevents modal CSS from overriding it */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.05rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; }
textarea { font: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-desc {
  color: var(--ink-soft);
  max-width: 480px;
  margin-inline: auto;
}

/* =============================================================
   4. Glass card component
   ============================================================= */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 32px rgba(30, 45, 42, 0.08), 0 2px 8px rgba(30, 45, 42, 0.04);
}

@supports not (backdrop-filter: blur(24px)) {
  .glass-card { background: rgba(255,255,255,0.85); }
}

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s, opacity .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(74,145,112,.28);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74,145,112,.38);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--ink);
  color: var(--cream);
  padding: .6rem 1.4rem;
  font-size: .85rem;
}
.btn-nav:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-soft {
  background: rgba(74,145,112,.12);
  color: var(--accent-dark);
  border: 1.5px solid rgba(74,145,112,.2);
}
.btn-soft:hover {
  background: rgba(74,145,112,.22);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0;
  transition: background .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}

.nav.scrolled {
  background: rgba(242, 245, 242, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  font-size: 1.2rem;
  color: var(--accent);
}

.nav-links {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .25s var(--ease-out);
}

.nav-links a:hover {
  color: var(--accent);
}
.nav-links a:hover::after { width: 100%; }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}

.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem var(--gutter) 1.5rem;
  background: rgba(242, 245, 242, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}

.nav-mobile.is-open { display: flex; }

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
}

.nav-mobile .btn-nav { margin-top: .5rem; align-self: flex-start; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 30%, var(--g1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 70%, var(--g2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 20%, var(--g3) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 30% 80%, var(--g4) 0%, transparent 50%),
    var(--bg);
  filter: blur(40px) saturate(140%);
  animation: meshDrift 20s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.08) rotate(4deg); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text { max-width: 580px; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.25rem;
  animation: fadeInUp .8s var(--ease-out) .1s both;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 440px;
  animation: fadeInUp .8s var(--ease-out) .2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  animation: fadeInUp .8s var(--ease-out) .3s both;
}

.hero-card {
  padding: 1.75rem;
  animation: fadeInUp .8s var(--ease-out) .4s both;
}

.hero-card-label {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-emotions {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}

.emo-btn {
  font-size: 1.6rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s var(--ease-bounce), background .2s;
  border: 2px solid transparent;
}

.emo-btn:hover { transform: scale(1.25); background: rgba(74,145,112,.1); }
.emo-btn.selected {
  background: rgba(74,145,112,.18);
  border-color: var(--accent);
  transform: scale(1.15);
}

.hero-card-feedback {
  font-size: .85rem;
  color: var(--accent-dark);
  min-height: 1.2em;
  font-weight: 500;
  margin-bottom: .75rem;
}

.hero-card-link {
  font-size: .85rem;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: color .2s;
}
.hero-card-link:hover { color: var(--accent); }

/* Blobs */
.hero-blob {
  position: absolute;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.hero-blob-1 {
  width: clamp(200px, 30vw, 400px);
  height: clamp(200px, 30vw, 400px);
  background: radial-gradient(var(--g1), var(--g2));
  top: 5%; right: -5%;
  animation: blobDrift 12s ease-in-out infinite alternate;
}

.hero-blob-2 {
  width: clamp(150px, 22vw, 300px);
  height: clamp(150px, 22vw, 300px);
  background: radial-gradient(var(--g3), var(--g4));
  bottom: 10%; left: -3%;
  animation: blobDrift 16s ease-in-out infinite alternate-reverse;
}

.hero-blob-3 {
  width: clamp(100px, 15vw, 200px);
  height: clamp(100px, 15vw, 200px);
  background: radial-gradient(var(--g5), var(--g2));
  top: 40%; right: 15%;
  animation: blobDrift 9s ease-in-out infinite alternate;
}

@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -15px) scale(1.05); }
}

/* =============================================================
   8. Pillars
   ============================================================= */
.pillars {
  padding-block: var(--section-v);
  background: var(--bg);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.pillar-card {
  padding: 2rem 1.75rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(30,45,42,.12), 0 4px 12px rgba(30,45,42,.06);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74,145,112,.12);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.pillar-icon svg { width: 28px; height: 28px; }

.pillar-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .6rem;
}

.pillar-card p {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.pillar-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap .2s var(--ease-out), color .2s;
}
.pillar-link:hover { gap: .6rem; }

/* =============================================================
   9. Exercises
   ============================================================= */
.exercises {
  position: relative;
  padding-block: var(--section-v);
  overflow: hidden;
}

.exercises-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 50%, rgba(196,184,216,.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 90% 30%, rgba(184,221,200,.35) 0%, transparent 60%),
    var(--bg-2);
}

.exercises .container { position: relative; z-index: 1; }

/* ── Breathing Feature — new design ── */
.breathing-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 2rem 1.75rem 2.25rem;
  margin-bottom: 2rem;
  background: rgba(30, 45, 42, 0.92);
  border-color: rgba(255,255,255,.08);
}

/* Technique tabs */
.breath-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
  justify-content: center;
}

.breath-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .65rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  min-width: 120px;
  flex: 1;
}

.breath-tab strong { font-size: .88rem; font-weight: 700; color: inherit; line-height: 1.2; }
.breath-tab span   { font-size: .72rem; color: rgba(255,255,255,.35); margin-top: .2rem; }
.breath-tab:hover  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }

.breath-tab.is-active {
  background: rgba(74,145,112,.25);
  border-color: var(--accent);
  color: #fff;
}
.breath-tab.is-active span { color: rgba(255,255,255,.65); }

/* Phase bars */
.breath-phases {
  display: flex;
  gap: .75rem;
  width: 100%;
  justify-content: center;
}

.breath-phase { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; }

.breath-phase-bar-wrap {
  width: 100%; height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 2px; overflow: hidden;
}

.breath-phase-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--accent);
  width: 0%; transition: width linear;
}
.breath-phase-bar-fill.is-done { background: rgba(74,145,112,.4); width: 100% !important; transition: none; }

.breath-phase-label { font-size: .7rem; color: rgba(255,255,255,.45); font-weight: 600; text-align: center; }
.breath-phase-secs  { font-size: .68rem; color: rgba(255,255,255,.3); text-align: center; }

/* Circle */
.breath-circle-wrap {
  position: relative;
  width: clamp(180px, 40vw, 240px);
  height: clamp(180px, 40vw, 240px);
}

.breath-svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.breath-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 10; }

.breath-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 603;
  stroke-dashoffset: 603;
  transition: stroke-dashoffset linear, stroke .4s;
}
.breath-arc.is-hold    { stroke: var(--accent-3); }
.breath-arc.is-exhale  { stroke: var(--accent-2); }

.breath-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .35rem;
}

.breath-circle-wrap::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: calc(100% - 32px); height: calc(100% - 32px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(240,244,240,.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.breath-state-label {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 500; color: #fff;
  letter-spacing: -.01em; position: relative; z-index: 1;
}

.breath-state-bar {
  width: 28px; height: 2px;
  background: rgba(255,255,255,.3);
  border-radius: 2px; position: relative; z-index: 1;
}

.breath-state-hint { font-size: .75rem; color: rgba(255,255,255,.4); position: relative; z-index: 1; }

/* Controls */
.breath-controls {
  display: flex; align-items: center;
  gap: 1rem; flex-wrap: wrap; justify-content: center;
}

.breath-start-btn { gap: .5rem; }

.breath-cycles-label { font-size: .85rem; color: rgba(255,255,255,.45); font-weight: 500; }
.breath-cycles-label span { color: rgba(255,255,255,.75); }

/* Exercise cards — horizontal layout */
.exercises-grid {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.exercise-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  position: relative;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}

.exercise-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(30,45,42,.08);
}

.exercise-badge {
  position: static;
  flex-shrink: 0;
  background: rgba(74,145,112,.12);
  color: var(--accent-dark);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .2rem .55rem;
  border-radius: 100px;
  white-space: nowrap;
  margin-left: auto;
}

.exercise-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 42px;
  text-align: center;
}

.exercise-card-body {
  flex: 1;
  min-width: 0;
}

.exercise-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .2rem;
}

.exercise-card p {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exercise-card .btn-soft {
  flex-shrink: 0;
  padding: .5rem 1rem;
  font-size: .8rem;
}

/* =============================================================
   10. Resources
   ============================================================= */
.resources {
  padding-block: var(--section-v);
  background: var(--bg);
}

.resources-grid {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.resource-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}

.resource-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 28px rgba(30,45,42,.1);
}

.resource-tag {
  position: absolute;
  top: .75rem; left: 6rem;
  z-index: 1;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding: .2rem .6rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
}

.resource-img {
  width: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  min-height: 100%;
}

.resource-img-1 {
  background:
    radial-gradient(circle at 30% 60%, var(--g2) 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, var(--g1) 0%, transparent 60%),
    linear-gradient(180deg, #c8dfd4, #d4c8e8);
}
.resource-img-2 {
  background:
    radial-gradient(circle at 60% 40%, var(--g4) 0%, transparent 60%),
    radial-gradient(circle at 20% 70%, var(--g5) 0%, transparent 60%),
    linear-gradient(180deg, #c8d8e8, #d4e8c0);
}
.resource-img-3 {
  background:
    radial-gradient(circle at 50% 50%, var(--g3) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, var(--g2) 0%, transparent 60%),
    linear-gradient(180deg, #f0d4b8, #e8c8d4);
}

.resource-body {
  padding: .9rem 1.1rem;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resource-time {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-mute);
  margin-bottom: .3rem;
  text-transform: uppercase;
}

.resource-card h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .3rem;
  line-height: 1.3;
}

.resource-card p {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================================
   11. Diary
   ============================================================= */
.diary {
  position: relative;
  padding-block: var(--section-v);
  overflow: hidden;
}

.diary-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(232,146,106,.2) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(184,213,232,.25) 0%, transparent 60%),
    var(--bg-2);
}

.diary .container { position: relative; z-index: 1; }

.diary-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.diary-form {
  padding: 2rem;
}

.diary-form h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}

.diary-date {
  font-size: .82rem;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.diary-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .75rem;
}

.diary-optional {
  font-weight: 400;
  color: var(--ink-mute);
}

.diary-emo-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.emo-large {
  flex-direction: column;
  width: auto;
  height: auto;
  font-size: 1.8rem;
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  gap: .25rem;
}

.emo-large span {
  font-size: .7rem;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1;
}

.emo-large.selected span { color: var(--accent-dark); }

.diary-note-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.diary-note {
  width: 100%;
  padding: .9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.65);
  color: var(--ink);
  resize: vertical;
  min-height: 100px;
  transition: border-color .2s, box-shadow .2s;
}

.diary-note:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,145,112,.12);
}

.diary-chars {
  font-size: .75rem;
  color: var(--ink-mute);
  text-align: right;
  margin-top: .25rem;
}

.diary-privacy {
  font-size: .78rem;
  color: var(--ink-mute);
  margin-top: .75rem;
}

/* History panel */
.diary-history {
  min-height: 200px;
}

.diary-history h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.diary-entries {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.diary-entry {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.1rem;
  animation: fadeInUp .4s var(--ease-out) both;
}

.diary-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .4rem;
}

.diary-entry-emotion {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
}

.diary-entry-date {
  font-size: .75rem;
  color: var(--ink-mute);
}

.diary-entry-note {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-top: .35rem;
}

.diary-delete {
  font-size: .75rem;
  color: var(--ink-mute);
  padding: .2rem .5rem;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.diary-delete:hover { background: rgba(232,146,106,.15); color: #c0503a; }

.diary-empty {
  text-align: center;
  color: var(--ink-mute);
  font-size: .9rem;
  padding: 2rem;
  display: none;
}
.diary-empty.is-visible { display: block; }

/* Mood chart */
.mood-chart-wrap {
  padding: 2rem;
}

.mood-chart-wrap h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.mood-chart {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  height: 100px;
  margin-bottom: 1rem;
}

.mood-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  height: 100%;
}

.mood-bar {
  width: 100%;
  max-width: 48px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  transition: height .6s var(--ease-out);
  min-height: 4px;
}

.mood-bar-label {
  font-size: .68rem;
  color: var(--ink-mute);
  white-space: nowrap;
}

.mood-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .78rem;
  color: var(--ink-mute);
}

.legend-item { display: flex; align-items: center; gap: .3rem; }
.legend-item em { font-style: normal; }

/* =============================================================
   12. CTA
   ============================================================= */
.cta-section {
  position: relative;
  padding-block: var(--section-v);
  overflow: hidden;
}

.cta-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(184,221,200,.5) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(196,184,216,.4) 0%, transparent 55%),
    var(--bg);
  filter: blur(40px) saturate(130%);
  animation: meshDrift 18s ease-in-out infinite alternate;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 4rem);
  max-width: 640px;
  margin-inline: auto;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .75rem;
}

.cta-title em { font-style: italic; color: var(--accent); }

.cta-sub {
  font-size: .92rem;
  color: var(--ink-soft);
  max-width: 420px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-field-wrap {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 420px;
  margin-inline: auto;
}

.cta-input {
  padding: .85rem 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,.7);
  color: var(--ink);
  font-size: .92rem;
  font-family: var(--sans);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.cta-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,145,112,.12);
}

.cta-msg {
  font-size: .85rem;
  min-height: 1.2em;
  color: var(--accent);
  font-weight: 500;
}
.cta-msg.error { color: #c0503a; }

/* =============================================================
   13. Footer
   ============================================================= */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 3rem 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.5rem;
}

.footer-brand { display: flex; flex-direction: column; gap: .4rem; }

.footer-logo-icon {
  font-size: 1.3rem;
  color: var(--accent);
}
.footer-logo-text {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
}
.footer-tagline {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}
.footer-nav a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--cream); }

.footer-disclaimer {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.footer-crisis-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.footer-bottom {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* =============================================================
   14. Modals
   ============================================================= */
.exercise-modal,
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30,45,42,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  animation: modalIn .35s var(--ease-out) both;
}

.modal-article { max-width: 640px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30,45,42,.08);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.modal-close:hover { background: rgba(30,45,42,.14); color: var(--ink); }

.modal-content h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .75rem;
}

.modal-content p {
  font-size: .92rem;
  color: var(--ink-soft);
  margin-bottom: .75rem;
}

.modal-steps {
  list-style: none;
  counter-reset: step;
  margin: 1rem 0;
}

.modal-steps li {
  counter-increment: step;
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-soft);
}

.modal-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
}

.article-lead {
  font-family: var(--serif);
  font-size: 1.15rem !important;
  font-style: italic;
  color: var(--ink) !important;
  margin-bottom: 1.25rem !important;
}

.article-section-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.25rem 0 .5rem;
}

/* =============================================================
   14b. Focus & Productivity section
   ============================================================= */
.focus {
  padding-block: var(--section-v);
  background: var(--bg);
}

/* Pomodoro */
.pomodoro-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.25rem;
  margin-bottom: 2rem;
  align-items: center;
}

.pomodoro-visual {
  position: relative;
  width: 140px;
  height: 140px;
  margin-inline: auto;
  flex-shrink: 0;
}

.pomodoro-ring {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(74,145,112,.12);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke .4s;
}

.ring-progress.is-break {
  stroke: var(--accent-2);
}

.pomodoro-emoji {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.2rem;
  line-height: 1;
}

.pomodoro-controls h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}

.pomodoro-desc {
  font-size: .88rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.pomodoro-display {
  font-size: 3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .4rem;
}

.pomodoro-phase {
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
  min-height: 1.3em;
}

.pomodoro-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.25rem;
}

.pomodoro-dots {
  display: flex;
  gap: .5rem;
}

.pomo-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(74,145,112,.15);
  border: 2px solid rgba(74,145,112,.3);
  transition: background .3s, border-color .3s;
}

.pomo-dot.filled {
  background: var(--accent);
  border-color: var(--accent);
}

/* Focus grid */
.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.focus-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.focus-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.focus-icon { font-size: 1.6rem; }

.focus-card-header h3 {
  font-family: var(--se
/* Pomodoro tip + notify */
.pomodoro-tip {
  font-size: .82rem;
  color: var(--ink-mute);
  background: rgba(74,145,112,.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .65rem .9rem;
  margin-bottom: .75rem;
  line-height: 1.5;
}

.pomo-notify-btn {
  align-self: flex-start;
  font-size: .8rem;
  padding: .5rem 1rem;
  margin-bottom: .5rem;
}
.pomo-notify-btn.is-active {
  background: rgba(74,145,112,.2);
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Pomodoro toast */
.pomo-toast {
  position: absolute;
  top: 1rem; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  font-size: .88rem;
  font-weight: 600;
  padding: .7rem 1.4rem;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  white-space: nowrap;
  z-index: 10;
  animation: toastIn .35s var(--ease-bounce) both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(.9); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Eisenhower — new interactive design */
.eisen-wide { grid-column: 1 / -1; }

.eisen-add-row {
  display: flex;
  gap: .65rem;
  margin-bottom: 1rem;
}

.eisen-new-input {
  flex: 1;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.65);
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.eisen-new-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,145,112,.1); }

.eisen-add-btn { flex-shrink: 0; padding: .75rem 1.1rem; }

/* Task list (step 1) */
.eisen-task-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.25rem;
  max-height: 340px;
  overflow-y: auto;
}

.eisen-item {
  background: rgba(255,255,255,.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  animation: fadeInUp .3s var(--ease-out) both;
}

.eisen-item-top {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.eisen-item-name {
  flex: 1;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eisen-item-del {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  color: var(--ink-mute);
  transition: background .2s, color .2s;
}
.eisen-item-del:hover { background: rgba(192,80,58,.12); color: #c0503a; }

.eisen-item-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

/* Importance bar */
.eisen-importance-wrap { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 160px; }
.eisen-importance-label { font-size: .72rem; color: var(--ink-mute); white-space: nowrap; }

.eisen-importance-dots {
  display: flex;
  gap: .3rem;
}

.eisen-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s var(--ease-bounce);
}
.eisen-dot:hover { transform: scale(1.2); }
.eisen-dot.filled { background: var(--accent); border-color: var(--accent); }
.eisen-dot[data-val="4"].filled,
.eisen-dot[data-val="5"].filled { background: var(--accent-3); border-color: var(--accent-3); }

.eisen-importance-text { font-size: .72rem; font-weight: 600; color: var(--accent); min-width: 70px; }

/* Urgency toggle */
.eisen-urgency-wrap { display: flex; gap: .4rem; }

.eisen-urgency-btn {
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  color: var(--ink-mute);
  transition: background .15s, border-color .15s, color .15s;
}
.eisen-urgency-btn.is-active-urgent   { background: rgba(220,80,60,.12); border-color: rgba(220,80,60,.4); color: #b03020; }
.eisen-urgency-btn.is-active-noturgent { background: rgba(74,145,112,.1); border-color: var(--accent); color: var(--accent-dark); }

/* Step footer */
.eisen-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.eisen-hint { font-size: .8rem; color: var(--ink-mute); }

/* Matrix grid (step 2) */
.eisen-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.eisen-quadrant {
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-height: 120px;
}

.eisen-q-do       { background: rgba(220,80,60,.07); border: 1.5px solid rgba(220,80,60,.2); }
.eisen-q-plan     { background: rgba(240,175,0,.07); border: 1.5px solid rgba(240,175,0,.22); }
.eisen-q-delegate { background: rgba(60,130,220,.07); border: 1.5px solid rgba(60,130,220,.2); }
.eisen-q-drop     { background: rgba(120,120,120,.05); border: 1.5px solid rgba(120,120,120,.15); }

.eisen-q-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .25rem;
}

.eisen-q-title { font-size: .8rem; font-weight: 700; color: var(--ink); }
.eisen-q-sub   { font-size: .68rem; color: var(--ink-mute); }

.eisen-q-tasks { display: flex; flex-direction: column; gap: .3rem; }

.eisen-q-task {
  font-size: .82rem;
  color: var(--ink-soft);
  background: rgba(255,255,255,.55);
  border-radius: 6px;
  padding: .3rem .55rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.eisen-q-task::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  flex-shrink: 0;
}

.eisen-q-empty { font-size: .78rem; color: var(--ink-mute); font-style: italic; padding: .25rem 0; }

.eisen-result-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ── Print / PDF styles ── */
@media print {
  body > *:not(#eisen-print-area) { display: none !important; }

  #eisen-print-area {
    display: block !important;
    padding: 0;
    margin: 0;
  }

  .eisen-print-title {
    font-family: Georgia, serif;
    font-size: 20pt;
    font-weight: bold;
    margin-bottom: 6pt;
    text-align: center;
  }

  .eisen-print-date {
    font-size: 9pt;
    color: #666;
    text-align: center;
    margin-bottom: 16pt;
  }

  .eisen-print-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12pt;
    width: 100%;
    page-break-inside: avoid;
  }

  .eisen-print-quad {
    border: 1.5pt solid #ccc;
    border-radius: 6pt;
    padding: 10pt;
    min-height: 100pt;
  }

  .eisen-print-quad-title {
    font-size: 10pt;
    font-weight: bold;
    margin-bottom: 4pt;
  }

  .eisen-print-quad-sub {
    font-size: 8pt;
    color: #888;
    margin-bottom: 6pt;
  }

  .eisen-print-task {
    font-size: 9pt;
    padding: 2pt 0;
    border-bottom: 0.5pt solid #eee;
  }

  .eisen-print-task::before {
    content: "• ";
  }
}
/* Pomodoro — new layout */
.pomodoro-feature {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.75rem 2rem;
  margin-bottom: 2rem;
  position: relative;
}

/* Header row: info left + visual right */
.pomo-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
}

.pomo-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.pomo-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.pomodoro-desc {
  font-size: .9rem;
  color: var(--ink-soft);
}

.pomodoro-visual {
  position: relative;
  width: clamp(110px, 16vw, 150px);
  height: clamp(110px, 16vw, 150px);
  flex-shrink: 0;
}

.pomodoro-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(74,145,112,.12);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke .4s;
}

.ring-progress.is-break { stroke: var(--accent-2); }

.pomodoro-emoji {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
}

/* Timer row: big number + dots side by side */
.pomo-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.pomodoro-display {
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -.04em;
  line-height: 1;
}

.pomodoro-dots {
  display: flex;
  gap: .45rem;
}

.pomo-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: rgba(74,145,112,.15);
  border: 2px solid rgba(74,145,112,.3);
  transition: background .3s, border-color .3s;
}

.pomo-dot.filled {
  background: var(--accent);
  border-color: var(--accent);
}

.pomodoro-phase {
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  min-height: 1.3em;
  text-align: center;
}

.pomodoro-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
}
/* Alarm button 25% bigger */
.pomo-notify-btn {
  font-size: 1rem !important;
  padding: .65rem 1.3rem !important;
}

/* Pomodoro header responsive */
@media (max-width: 539px) {
  .pomo-header { flex-direction: column-reverse; align-items: flex-start; }
  .pomodoro-visual { margin-inline: auto; }
}

/* ── Eisenhower redesign: input form ── */
.eisen-add-form {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1rem;
}

.eisen-new-input {
  width: 100%;
  padding: .85rem 1.2rem;
  border: 2px solid var(--line);
  border-radius: 50px;
  background: rgba(255,255,255,.75);
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(30,45,42,.06);
  transition: border-color .2s, box-shadow .2s;
}
.eisen-new-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(74,145,112,.12), 0 2px 8px rgba(30,45,42,.06);
}

.eisen-selects {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.eisen-select {
  flex: 1;
  min-width: 140px;
  padding: .65rem 1rem;
  border: 2px solid var(--line);
  border-radius: 50px;
  background: rgba(255,255,255,.75);
  font: inherit;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e887e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2rem;
  box-shadow: 0 2px 8px rgba(30,45,42,.06);
  transition: border-color .2s, box-shadow .2s;
}
.eisen-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(74,145,112,.1);
}

/* Task list items — simplified */
.eisen-item {
  background: rgba(255,255,255,.65);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  animation: fadeInUp .3s var(--ease-out) both;
}

.eisen-item-left {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: 1;
  min-width: 0;
}

.eisen-item-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-do       { background: rgba(220,80,60,.12); color: #c0301a; }
.badge-plan     { background: rgba(240,175,0,.12);  color: #a07000; }
.badge-delegate { background: rgba(60,130,220,.12); color: #2060c0; }
.badge-drop     { background: rgba(120,120,120,.1); color: #606060; }

/* ── Matrix with axis labels ── */
.eisen-matrix-wrap {
  margin-bottom: 1rem;
}

.eisen-matrix-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .75rem;
}

.eisen-axis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.eisen-axis-corner { width: 90px; }

.eisen-axis-header {
  text-align: center;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem .5rem .6rem;
  color: var(--ink-soft);
}

.eisen-axis-left {
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
  padding-right: .75rem;
  vertical-align: middle;
  width: 90px;
}

.eisen-matrix-cell {
  border-radius: var(--radius-md);
  padding: .85rem;
  vertical-align: top;
  width: 50%;
}
.eisen-matrix-cell + .eisen-matrix-cell { padding-left: .4rem; }
tr + tr .eisen-matrix-cell { padding-top: .4rem; }

.cell-do       { background: rgba(220,80,60,.08); border: 1.5px solid rgba(220,80,60,.2); }
.cell-plan     { background: rgba(240,175,0,.07);  border: 1.5px solid rgba(240,175,0,.22); }
.cell-delegate { background: rgba(60,130,220,.07); border: 1.5px solid rgba(60,130,220,.2); }
.cell-drop     { background: rgba(120,120,120,.05);border: 1.5px solid rgba(120,120,120,.15); }

.eisen-cell-header {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .45rem;
}
.eisen-cell-icon { font-size: 1rem; }
.eisen-cell-title { font-size: .78rem; font-weight: 700; color: var(--ink); }
.eisen-cell-sub   { font-size: .65rem; color: var(--ink-mute); }

.eisen-cell-tasks { display: flex; flex-direction: column; gap: .25rem; }
.eisen-cell-task  {
  font-size: .78rem;
  color: var(--ink-soft);
  background: rgba(255,255,255,.55);
  border-radius: 5px;
  padding: .25rem .5rem;
  display: flex; align-items: center; gap: .3rem;
}
.eisen-cell-task::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor; opacity: .5; flex-shrink: 0;
}
.eisen-cell-empty { font-size: .73rem; color: var(--ink-mute); font-style: italic; padding: .15rem 0; }

/* ── Print: only the matrix ── */
@media print {
  * { display: none !important; }
  #eisen-print-area,
  #eisen-print-area * { display: revert !important; }

  #eisen-print-area {
    font-family: Inter, sans-serif;
    padding: 20pt;
    width: 100%;
  }

  .eisen-print-header {
    text-align: center;
    margin-bottom: 16pt;
  }

  .eisen-print-header h2 {
    font-size: 18pt;
    font-weight: bold;
    margin-bottom: 4pt;
  }

  .eisen-print-header p {
    font-size: 9pt;
    color: #666;
  }

  .eisen-print-grid {
    display: grid !important;
    grid-template-columns: 80pt 1fr 1fr;
    grid-template-rows: auto 1fr 1fr;
    gap: 6pt;
    width: 100%;
  }

  .eisen-print-corner { }

  .eisen-print-col-header {
    text-align: center;
    font-size: 9pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #555;
    padding-bottom: 4pt;
  }

  .eisen-print-row-header {
    font-size: 9pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #555;
    text-align: right;
    padding-right: 8pt;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .eisen-print-cell {
    border: 1pt solid #ccc;
    border-radius: 5pt;
    padding: 8pt;
    min-height: 80pt;
  }

  .eisen-print-cell-title {
    font-size: 9pt;
    font-weight: bold;
    margin-bottom: 2pt;
  }

  .eisen-print-cell-sub {
    font-size: 7pt;
    color: #888;
    margin-bottom: 5pt;
  }

  .eisen-print-task {
    font-size: 8pt;
    color: #333;
    padding: 1pt 0;
    border-bottom: .5pt solid #eee;
  }

  .eisen-print-task::before { content: "• "; }
}

/* ── Pomodoro — layout v2 ──────────────────────────────────── */
.pomodoro-feature {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  padding: 2rem 2rem 1.75rem !important;
  background: rgba(255,255,255,0.92) !important;
}

/* Fila 1: info izquierda + icono derecha arriba */
.pomo-top-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
}

.pomo-info {
  display: flex !important;
  flex-direction: column !important;
  gap: .55rem !important;
  flex: 1 !important;
  min-width: 0 !important;
}

/* Título 50% más grande */
.pomo-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem) !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -.02em !important;
  line-height: 1.15 !important;
  font-family: var(--sans) !important;
}

.pomodoro-desc {
  font-size: .85rem !important;
  color: var(--ink-mute) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.pomodoro-tip {
  font-size: .82rem !important;
  color: var(--ink-mute) !important;
  background: rgba(74,145,112,.07) !important;
  border-left: 3px solid var(--accent) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  padding: .6rem .9rem !important;
  line-height: 1.7 !important;
  max-width: 440px !important;
  margin: 0 !important;
}

.pomodoro-tip strong {
  color: var(--ink) !important;
  font-weight: 700 !important;
}

/* Icono a la derecha alineado arriba */
.pomodoro-visual {
  position: relative !important;
  width: 110px !important;
  height: 110px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  align-self: center !important;
}

.pomodoro-ring {
  width: 110px !important;
  height: 110px !important;
  transform: rotate(-90deg) !important;
}

.ring-bg {
  fill: none !important;
  stroke: rgba(74,145,112,.18) !important;
  stroke-width: 9 !important;
}

.ring-progress {
  fill: none !important;
  stroke: var(--accent) !important;
  stroke-width: 9 !important;
  stroke-linecap: round !important;
  stroke-dasharray: 326.7 !important;
  transition: stroke-dashoffset 1s linear, stroke .4s !important;
}

.ring-progress.is-break { stroke: var(--accent-2) !important; }

.pomodoro-emoji {
  position: absolute !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-size: 1.9rem !important;
  line-height: 1 !important;
}

/* Fila 2: [Activar alarma]  [25:00]  [1 2 3 4] */
.pomo-controls-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

.pomo-notify-btn {
  font-size: 1rem !important;
  padding: .7rem 1.4rem !important;
  flex-shrink: 0 !important;
}

.pomo-notify-btn.is-active {
  background: rgba(74,145,112,.2) !important;
  border-color: var(--accent) !important;
  color: var(--accent-dark) !important;
}

.pomodoro-display {
  font-size: clamp(2.6rem, 5.5vw, 3.6rem) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -.04em !important;
  color: var(--ink) !important;
  line-height: 1 !important;
  text-align: center !important;
  flex: 1 !important;
}

/* Dots numerados */
.pomodoro-dots {
  display: flex !important;
  gap: .55rem !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.pomo-dot {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(74,145,112,.1) !important;
  border: 2px solid rgba(74,145,112,.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background .3s, border-color .3s !important;
}

.pomo-dot-num {
  font-size: .7rem !important;
  font-weight: 700 !important;
  color: rgba(74,145,112,.6) !important;
  line-height: 1 !important;
}

.pomo-dot.filled {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.pomo-dot.filled .pomo-dot-num {
  color: #fff !important;
}

/* Fila 3: fase izquierda + botones derecha */
.pomo-bottom-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

.pomodoro-phase {
  font-size: .9rem !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  min-height: 1.3em !important;
  margin: 0 !important;
}

.pomodoro-btns {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .6rem !important;
  margin: 0 !important;
}

/* Ocultar las antiguas clases de fila que ya no se usan */
.pomo-header, .pomo-timer-row { display: none !important; }

@media (max-width: 560px) {
  .pomo-top-row { flex-direction: column !important; }
  .pomodoro-visual { align-self: flex-end !important; width: 90px !important; height: 90px !important; }
  .pomodoro-ring { width: 90px !important; height: 90px !important; }
  .pomo-controls-row { flex-direction: column !important; align-items: flex-start !important; }
  .pomodoro-display { flex: unset !important; }
  .pomo-bottom-row { flex-direction: column !important; align-items: flex-start !important; }
}
