:root {
  --paper: #f9f8f6;
  --ink: #141416;
  --charcoal: #2d2d2d;
  --sage: #8a9a86;
  --taupe: #b8b0a7;
  --terracotta: #b26e5d;
  --sky: #7e98a6;
  --line: rgba(20, 20, 22, 0.12);
  --soft: rgba(20, 20, 22, 0.05);
  --soft-hover: rgba(20, 20, 22, 0.08);
  --radius: 18px;
  --shadow: 0 18px 48px rgba(20, 20, 22, 0.08);
  --shadow-sm: 0 4px 16px rgba(20, 20, 22, 0.04);
  --notion-dark-bg: #191919;
  --notion-dark-surface: #202020;
  --notion-dark-line: rgba(255, 255, 255, 0.08);
  --auth-backdrop: rgba(20, 20, 22, 0.5);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  background: var(--paper);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  color: inherit;
  transition: all 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Base Layout & Nav */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(249, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-img {
  height: 26px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.brand-mark:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: -3px;
  bottom: -2px;
  background: var(--sage);
  border: 2px solid var(--paper);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: #68645e;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 9px 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn.primary:hover {
  background: #2d2d2d;
  border-color: #2d2d2d;
}

.btn.soft {
  background: var(--soft);
}

.btn.soft:hover {
  background: var(--soft-hover);
  color: var(--ink);
  border-color: var(--line);
}

.btn.sm {
  padding: 6px 11px;
  font-size: 11px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  font: 11px "DM Mono", monospace;
  color: var(--charcoal);
  border: 1px solid var(--line);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
}

/* Landing Page Hero */
.hero {
  max-width: 1220px;
  margin: auto;
  padding: 68px clamp(18px, 4vw, 64px) 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font: 11px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #74716c;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero h1 {
  font-size: clamp(42px, 6.5vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 20px 0 18px;
  color: var(--ink);
}

.hero h1 em {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--sage);
}

.hero p {
  font-size: 16px;
  line-height: 1.65;
  color: #68645e;
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-side {
  border-left: 1px solid var(--line);
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-side strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.hero-side p {
  font-size: 13px;
  line-height: 1.6;
  color: #74716c;
  margin: 6px 0 0;
}

.hero-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.hero-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  font: 10px "DM Mono", monospace;
  color: #68645e;
  border: 1px solid var(--line);
}

/* Interactive Hero Showcase */
.showcase-section {
  max-width: 1220px;
  margin: 10px auto 40px;
  padding: 0 clamp(18px, 4vw, 64px);
}

.showcase-box {
  background: #141416;
  border-radius: 24px;
  padding: 32px clamp(20px, 4vw, 44px);
  color: #f9f8f6;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.showcase-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.showcase-tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #c4c0b9;
  font: 11px "DM Mono", monospace;
  transition: all 0.2s ease;
}

.showcase-tab.active, .showcase-tab:hover {
  background: #f9f8f6;
  color: #141416;
  border-color: #f9f8f6;
}

.showcase-preview-stage {
  background: #191919;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 36px);
  min-height: 280px;
  display: grid;
  place-items: center;
}

/* Section Common */
.section {
  max-width: 1220px;
  margin: auto;
  padding: 44px clamp(18px, 4vw, 64px) 68px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.05em;
  margin: 10px 0 8px;
}

.section-head p {
  color: #74716c;
  font-size: 14px;
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}

/* Notion Compatibility Feature Row */
.notion-strip {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.notion-strip-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notion-strip-card b {
  font-size: 14px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notion-strip-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #74716c;
  margin: 0;
}

/* Toolbar & Filters */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 240px;
  flex: 1;
  max-width: 380px;
}

.search-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 9px 16px 9px 36px;
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(138, 154, 134, 0.18);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #9c9790;
  pointer-events: none;
}

.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: #625f5b;
  transition: all 0.2s ease;
}

.filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.count {
  font: 11px "DM Mono", monospace;
  color: #88827b;
}

/* Card Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: #ffffff;
  border-color: rgba(20, 20, 22, 0.18);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--ink);
  flex-shrink: 0;
}

.category {
  font: 10px "DM Mono", monospace;
  color: #8b867f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card h3 {
  margin: 18px 0 6px;
  font-size: 18px;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.card p {
  color: #77726c;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  flex-grow: 0;
}

.card-mini-preview {
  margin-top: auto;
  padding: 16px 0 12px;
}

.mini {
  margin-top: auto;
  padding-top: 14px;
}

.mini-line {
  height: 5px;
  background: var(--soft);
  border-radius: 10px;
  overflow: hidden;
}

.mini-line span {
  display: block;
  width: 68%;
  height: 100%;
  background: var(--sage);
  border-radius: inherit;
}

.mini-digits {
  font: 22px "DM Mono", monospace;
  letter-spacing: -0.06em;
  color: var(--charcoal);
}

.mini-dots {
  display: flex;
  gap: 5px;
}

.mini-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--taupe);
}

.mini-dots i:nth-child(-n+4) {
  background: var(--sage);
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.card-actions .btn {
  flex: 1;
}

/* How It Works & Use Cases */
.how {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 40px;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 36px;
}

.how h2 {
  font-size: 28px;
  letter-spacing: -0.05em;
  margin: 0 0 12px;
}

.how p {
  font-size: 13px;
  line-height: 1.6;
  color: #74716c;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.step {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
}

.step b {
  font: 11px "DM Mono", monospace;
  color: var(--sage);
  display: block;
}

.step strong {
  display: block;
  font-size: 13px;
  margin: 8px 0 4px;
}

.step p {
  font-size: 12px;
  line-height: 1.5;
  color: #716d67;
  margin: 0;
}

/* Use Cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.use-case-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 22px;
}

.use-case-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.use-case-card p {
  font-size: 12px;
  line-height: 1.55;
  color: #74716c;
  margin: 0 0 14px;
}

.use-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.use-case-tag {
  font: 10px "DM Mono", monospace;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: #625f5b;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 24px auto 0;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.faq-q {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-a {
  padding: 0 20px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #68645e;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* Configurator & Dedicated Widget Page */
.config {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.config-main {
  max-width: 1320px;
  margin: auto;
  padding: 32px clamp(18px, 4vw, 54px);
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 32px;
  width: 100%;
}

.config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.back {
  font-size: 12px;
  color: #777;
}

.config h1 {
  font-size: 32px;
  letter-spacing: -0.06em;
  margin: 0 0 8px;
}

.config-intro {
  color: #777;
  font-size: 13px;
  margin: 0 0 22px;
  line-height: 1.5;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.panel h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  color: #55524e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  font-size: 11px;
  color: #6c6862;
  font-weight: 700;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
  color: var(--ink);
  font-size: 12px;
  transition: all 0.2s ease;
}

.field textarea {
  min-height: 70px;
  resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(138, 154, 134, 0.16);
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.row input {
  min-width: 0;
  max-width: 100%;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
}

.toggle input {
  accent-color: var(--sage);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Notion Preview Simulator Stage */
.preview-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-label {
  font: 11px "DM Mono", monospace;
  color: #827d75;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-stage-container {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #e7e3dd;
  padding: 32px clamp(16px, 4vw, 44px);
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.preview-stage-container.sim-notion-dark {
  background: #191919;
  border-color: rgba(255, 255, 255, 0.09);
}

.preview-stage-container.sim-notion-light {
  background: #ffffff;
  border-color: rgba(55, 53, 47, 0.09);
}

.preview-stage-container.sim-transparent {
  background-color: #f2efe9;
  background-image: radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 0);
  background-size: 12px 12px;
}

.preview-frame {
  width: 100%;
  max-width: 580px;
  display: flex;
  justify-content: center;
  transition: max-width 0.3s ease;
}

.preview-frame.width-narrow {
  max-width: 280px;
}

.preview-frame.width-medium {
  max-width: 440px;
}

.preview-frame.width-full {
  max-width: 680px;
}

/* WIDGET STYLES & CONTAINER QUERIES */
.widget {
  width: min(100%, 620px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: 24px;
  box-shadow: 0 14px 30px rgba(20, 20, 22, 0.06);
  color: var(--ink);
  container-type: inline-size;
  container-name: widget;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Embed Mode Overrides */
.embed-body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  background: transparent !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
}

.embed-body #app {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.embed-body .widget {
  box-shadow: none !important;
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  padding: clamp(14px, 3.5vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Widget Theme Variations */
.widget.dark {
  --paper: #191a1a;
  --ink: #f9f8f6;
  --charcoal: #d9d5ce;
  --line: rgba(249, 248, 246, 0.16);
  --soft: rgba(249, 248, 246, 0.08);
  background: #191a1a;
  color: #f9f8f6;
  border-color: rgba(255, 255, 255, 0.12);
}

.widget.launchist {
  --paper: #edf0ea;
  background: #edf0ea;
}

.widget.minimal {
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid var(--line);
}

/* Background Presets */
.widget.bg-transparent, [data-bg="transparent"] {
  background: transparent !important;
  border-color: rgba(128, 128, 128, 0.2) !important;
}

.widget.bg-notion-dark, [data-bg="notion-dark"] {
  background: #191919 !important;
  color: #f9f8f6 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  --line: rgba(255, 255, 255, 0.08);
  --soft: rgba(255, 255, 255, 0.06);
}

.widget.bg-obsidian, [data-bg="obsidian"] {
  background: #141416 !important;
  color: #f9f8f6 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  --line: rgba(255, 255, 255, 0.12);
  --soft: rgba(255, 255, 255, 0.08);
}

.widget.bg-alabaster, [data-bg="alabaster"] {
  background: #f9f8f6 !important;
  color: #141416 !important;
  border-color: rgba(20, 20, 22, 0.1) !important;
}

.widget.bg-notion-light, [data-bg="notion-light"] {
  background: #ffffff !important;
  color: #141416 !important;
  border-color: rgba(55, 53, 47, 0.09) !important;
}

/* Widget Header & Elements */
.widget-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.widget-kicker {
  font: 10px "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #88847c;
}

.widget-title {
  font-size: 22px;
  letter-spacing: -0.05em;
  margin: 6px 0 0;
  line-height: 1.15;
}

.widget-sub {
  font-size: 12px;
  color: #77736d;
  line-height: 1.45;
  margin: 6px 0 0;
}

.widget-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 11px;
  color: #88847c;
  flex-wrap: wrap;
  gap: 8px;
}

.widget button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 600;
  color: inherit;
  transition: all 0.15s ease;
}

.widget button.active, .widget button:hover {
  background: var(--ink);
  color: var(--paper);
}

.widget.dark button.active, .widget.dark button:hover,
.widget.bg-notion-dark button.active, .widget.bg-notion-dark button:hover {
  background: #f9f8f6;
  color: #141416;
}

/* Timer */
.timer {
  font: clamp(48px, 9vw, 84px) "DM Mono", monospace;
  letter-spacing: -0.08em;
  text-align: center;
  margin: 28px 0 18px;
  line-height: 1;
}

.timer-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Progress bar */
.progress-track {
  height: 10px;
  background: var(--soft);
  border-radius: 20px;
  overflow: hidden;
  margin: 20px 0 10px;
}

.progress-fill {
  height: 100%;
  background: var(--sage);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.stat-big {
  font-size: 36px;
  letter-spacing: -0.07em;
  font-weight: 700;
}

.stat-mono {
  font: 12px "DM Mono", monospace;
}

/* Calendar */
.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-grid span {
  font: 10px "DM Mono", monospace;
  color: #8a857d;
  padding: 6px 0;
}

.calendar-grid button {
  padding: 7px 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 12px;
}

.calendar-grid button.today {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.widget.dark .calendar-grid button.today,
.widget.bg-notion-dark .calendar-grid button.today {
  background: #f9f8f6;
  color: #141416;
}

/* Chips, Lists, Days */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
}

.chip button {
  padding: 0;
  border: 0;
}

.list {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 12px;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 18px;
}

.day {
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 2px;
  text-align: center;
  background: transparent;
  color: inherit;
  min-width: 0;
}

.day.done {
  background: var(--sage);
  color: #ffffff;
  border-color: var(--sage);
}

.day small {
  display: block;
  font: 9px "DM Mono", monospace;
  opacity: 0.7;
}

.day b {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.chart {
  height: 84px;
  display: flex;
  align-items: end;
  gap: 6px;
  margin: 18px 0 6px;
  border-bottom: 1px solid var(--line);
  padding: 0 4px;
}

.bar {
  flex: 1;
  background: var(--sage);
  border-radius: 5px 5px 0 0;
  min-height: 8px;
  transition: height 0.3s ease;
}

/* NEW WIDGETS SPECIFIC STYLES */
.weather-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 14px;
}

.weather-temp {
  font: clamp(40px, 8vw, 68px) "DM Mono", monospace;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.weather-condition {
  font-size: 13px;
  color: #88847c;
  margin-top: 4px;
}

.weather-forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  text-align: center;
}

.forecast-day {
  font: 10px "DM Mono", monospace;
  color: #88847c;
}

.forecast-temp {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.world-clocks {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.world-clock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--soft);
}

.world-clock-city {
  font-size: 12px;
  font-weight: 700;
}

.world-clock-time {
  font: 16px "DM Mono", monospace;
}

.priority-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.priority-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  background: transparent;
  font-size: 11px;
}

.priority-checkbox.done {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.priority-text {
  flex: 1;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 13px;
  color: inherit;
}

.priority-text.done {
  text-decoration: line-through;
  opacity: 0.55;
}

.energy-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 20px 0 12px;
}

.energy-btn {
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font: 10px "DM Mono", monospace;
}

.energy-btn.active {
  background: var(--sage) !important;
  color: #fff !important;
  border-color: var(--sage) !important;
}

.notes-area {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 14px;
  line-height: 1.6;
  color: inherit;
  resize: vertical;
  min-height: 130px;
  margin: 16px 0 8px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin: 20px 0 10px;
}

.heatmap-dot {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--soft);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.heatmap-dot:hover {
  transform: scale(1.15);
}

.heatmap-dot.lvl-1 { background: rgba(138, 154, 134, 0.35); }
.heatmap-dot.lvl-2 { background: rgba(138, 154, 134, 0.65); }
.heatmap-dot.lvl-3 { background: var(--sage); }

/* Compact mode container overrides */
@container widget (max-width: 320px) {
  .widget-title { font-size: 17px !important; }
  .widget-sub { display: none; }
  .timer { font-size: 38px !important; margin: 18px 0 12px !important; }
  .stat-big { font-size: 26px !important; }
  .days { gap: 3px !important; }
  .day { height: 46px !important; padding: 4px 1px !important; }
  .day b { font-size: 12px !important; margin-top: 2px !important; }
  .widget-footer { font-size: 10px !important; margin-top: 14px !important; }
}

/* Modals & Sync */
.sync-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 12px;
  font: 10px "DM Mono", monospace;
  color: #817c75;
}

.sync-control button {
  font: 10px "DM Mono", monospace;
  padding: 6px 10px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: var(--auth-backdrop);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.auth-modal[hidden] {
  display: none;
}

.auth-card {
  width: min(100%, 440px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.auth-card h2 {
  font-size: 26px;
  letter-spacing: -0.05em;
  margin: 10px 0;
}

.auth-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #716d67;
}

.auth-card code {
  font: 11px "DM Mono", monospace;
}

.auth-close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: transparent;
  font-size: 24px;
  color: inherit;
  cursor: pointer;
}

.auth-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.auth-message {
  font-size: 11px;
  line-height: 1.5;
  color: #6d7669;
  margin-top: 12px;
  min-height: 16px;
}

.auth-card > a.btn {
  display: inline-block;
  margin-bottom: 14px;
}

.otp-box {
  border-top: 1px dashed var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.otp-divider {
  text-align: center;
  font: 10px "DM Mono", monospace;
  color: #858079;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.otp-hint {
  font-size: 11px;
  color: #716d67;
  line-height: 1.45;
  margin: 0 0 12px;
}

#otpForm {
  display: flex;
  gap: 8px;
  align-items: center;
}

#otpForm .field {
  flex: 1;
  margin-bottom: 0;
}

#otpForm input {
  text-align: center;
  font: 15px "DM Mono", monospace;
  letter-spacing: 0.12em;
}

#otpForm button {
  padding: 10px 15px;
  white-space: nowrap;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 60;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: toastIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { transform: translate(-50%, 10px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.notice {
  padding: 11px 14px;
  background: rgba(138, 154, 134, 0.14);
  border-radius: 12px;
  font-size: 11px;
  color: #4a5448;
  line-height: 1.5;
  margin-top: 14px;
}

.footer {
  max-width: 1220px;
  margin: auto;
  padding: 36px clamp(18px, 4vw, 64px) 48px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #8d8881;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: #777;
  font-size: 14px;
  grid-column: 1 / -1;
}

.sync {
  font: 10px "DM Mono", monospace;
  color: #817c75;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .config-main {
    grid-template-columns: 1fr;
  }
  .notion-strip {
    grid-template-columns: 1fr;
  }
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav {
    height: auto;
    min-height: 70px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-links {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 42px;
  }
  .config h1 {
    font-size: 26px;
  }
  .preview-stage-container {
    padding: 16px;
  }
  .widget {
    padding: 18px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
