﻿.habi-demo { grid-column: 1 / -1; padding: clamp(18px, 4vw, 48px); background: radial-gradient(ellipse at 92% 0, #3f3471, transparent 53%), #1a1830; }
.habi-demo [hidden] { display: none !important; }
.habi-demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.habi-demo-heading .eyebrow { margin-bottom: 8px; }
.habi-demo-heading h3 { font-size: clamp(1.8rem, 4vw, 3.15rem); text-wrap: initial; }
.habi-demo-heading h3 + p { max-width: 49ch; margin-top: 10px; }
.habi-demo-mascot { width: clamp(66px, 12vw, 126px); height: auto; filter: drop-shadow(0 11px 18px #0e0d227d); }
.habi-demo-tabs:not([hidden]) { display: inline-flex; flex-wrap: wrap; align-items: stretch; gap: 4px; margin-bottom: 16px; padding: 4px; border: 1px solid #cbb7ff39; border-radius: 14px; background: #151223; }
.habi-demo-tabs button, .habi-demo-button, .habi-demo-replay { min-height: 44px; padding: 8px 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #e0d7f8; font: 750 .875rem/1.2 Jakarta, system-ui, sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease; }
.habi-demo-tabs button:hover, .habi-demo-replay:hover { background: #33284c; }
.habi-demo-tabs button[aria-selected="true"], .habi-demo-button { color: #1b142b; background: #e1d2ff; }
.habi-demo-button:hover { background: #f3ebff; }
.habi-demo button:focus-visible { outline: 2px solid #92ecff; outline-offset: 3px; }
.habi-demo-workspace:not([hidden]) { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; }
.habi-demo-chat, .habi-demo-board { min-width: 0; padding: clamp(12px, 2vw, 20px); border: 1px solid #b9a4ff32; border-radius: 16px; background: #11101d; }
.habi-app-bar { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 12px; color: #f7f1ff; font-size: .95rem; }
.habi-app-tag { margin-left: auto; color: #cec0e9; font-size: .78rem; text-align: right; }
.habi-message { margin-bottom: 10px; padding: 10px 12px; border: 1px solid #a797d426; border-radius: 12px; background: #1c1b30; color: #eee8fc; font-size: .9rem; line-height: 1.58; }
.habi-message-user { margin-left: 8%; background: #332553; }
.habi-proposal-note { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.habi-proposal-note p { color: #e2d5ff; font-size: .85rem; }
.habi-proposal-note a { color: var(--muted); text-decoration: underline; text-underline-offset: .19em; }
.habi-demo-saved { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: 8px; color: #a7f1cd; font-size: .86rem; }
.habi-demo-replay { text-decoration: underline; text-underline-offset: .2em; }
.habi-board-status { margin-bottom: 10px; color: #d6baff; font-size: .86rem; font-weight: 800; }
[data-plan-stage="saved"] .habi-board-status { color: #a7f1cd; }
.habi-week, .habi-day-plans { margin: 0; padding: 0; list-style: none; }
.habi-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.habi-weekday { display: grid; align-content: start; gap: 5px; min-height: 103px; padding: 5px 3px; border: 1px solid #c5b5ff22; border-radius: 8px; background: #18172a; color: #ddd3f3; text-align: center; font-size: .77rem; }
.habi-weekday abbr { text-decoration: none; }
.habi-weekday > abbr { font-weight: 800; }
.habi-day-plans { display: grid; gap: 4px; }
.habi-tile { display: grid; justify-items: center; gap: 2px; padding: 4px 1px; border: 1px dashed #c5afff99; border-radius: 6px; background: #29213e; color: #f5eaff; line-height: 1.2; white-space: nowrap; }
.habi-tile > span:first-child { font-size: .92rem; }
.habi-tile-run { --tile-color: #1e504f; }
.habi-tile-read { --tile-color: #45406d; }
.habi-tile-mind { --tile-color: #524065; }
[data-plan-stage="idle"] .habi-day-plans { visibility: hidden; }
[data-plan-stage="saved"] .habi-tile { border-style: solid; border-color: #e5d7ff5c; background: var(--tile-color); }
.habi-free-day { color: #aea3c4; }
.habi-demo-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; color: #d5cbed; font-size: .78rem; }
.habi-reflection-list { margin: 0; }
.habi-reflection-row { padding: 10px 0; border-bottom: 1px solid #ffffff1e; }
.habi-reflection-row:last-child { border: none; }
.habi-reflection-row dt { font-size: .92rem; font-weight: 800; }
.habi-reflection-row dd { display: grid; gap: 4px; margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.habi-reflection-row progress { width: 100%; height: 9px; accent-color: #ad96f8; }
.habi-total-note { color: #a7f1cd; }
.habi-demo-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 18px; margin-top: 14px; color: var(--muted); font-size: .875rem; }
.habi-demo-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.habi-demo-footer a { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; color: #f1e6ff; font-weight: 800; text-decoration: underline; text-underline-offset: .21em; }
.habi-demo-footer img { width: 23px; height: 42px; object-fit: cover; object-position: top; border: 1px solid #c4aef785; border-radius: 4px; }
.habi-only-reader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 850px) {
  .habi-demo-workspace:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .habi-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .habi-weekday { min-height: 98px; }
  .habi-demo-mascot { align-self: start; }
}
