  :root {
    --navy: #005399; --navy-deep: #003B6E;
    --cyan: #00B3E6; --cyan-soft: #E3F4FB;
    --grey: #4D555B; --grey-light: #8B949B;
    --bg: #F4F8FB; --card: #FFFFFF;
    --open: #0F8A6C; --open-soft: #E1F5EE;
    --line: #E4EAF0;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { height: 100%; }
  body {
    font-family: 'Open Sans', -apple-system, sans-serif;
    background: var(--bg); color: var(--grey);
    display: flex; justify-content: center;
    min-height: 100vh; padding: 12px 16px 20px;
  }
  .app { width: 100%; max-width: 440px; display: flex; flex-direction: column; min-height: 94vh; }

  h1 { font-weight: 800; font-size: 28px; line-height: 1.14; color: var(--navy); margin-bottom: 12px; }
  h2 { font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--navy); margin-bottom: 10px; }
  .lede { font-size: 17px; line-height: 1.55; margin-bottom: 12px; }
  .fine { font-size: 14px; color: var(--grey-light); line-height: 1.5; }

  .btn {
    font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
    border: none; border-radius: 999px; cursor: pointer; padding: 15px 30px;
    background: var(--navy); color: #fff; transition: transform 0.12s ease;
  }
  .btn:active { transform: scale(0.97); }
  .btn.secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
  .btn.ghost { background: transparent; color: var(--grey-light); border: none; font-size: 14px; padding: 10px; }
  .btn:disabled { opacity: 0.35; cursor: default; }

  .screen { flex: 1; display: none; flex-direction: column; }
  .screen.active { display: flex; animation: fadeIn 0.22s ease; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .screen.active { animation: none; }
    * { transition: none !important; }
  }

  /* Locks header */
  .locksBar {
    display: none; justify-content: center; gap: 14px;
    padding: 10px 0 18px;
  }
  .locksBar.show { display: flex; }
  .lock { width: 44px; display: flex; flex-direction: column; align-items: center; }
  .lock svg { width: 40px; height: 46px; overflow: visible; }
  .lock .shackle {
    fill: none; stroke-width: 4.5; stroke-linecap: round;
    transform-origin: 8px 18px; transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
  }
  .lock.closed .shackle { stroke: #C3CCD3; }
  .lock.closed .body { fill: #DDE4EA; }
  .lock.closed .num { fill: var(--grey-light); }
  .lock.current .shackle { stroke: var(--navy); }
  .lock.current .body { fill: var(--navy); }
  .lock.current .num { fill: #fff; }
  .lock.open .shackle { stroke: var(--open); transform: rotate(-38deg) translate(-2px, -3px); }
  .lock.open .body { fill: var(--open); }
  .lock.open .num { fill: #fff; }

  .stageTag { font-size: 13px; font-weight: 700; color: var(--cyan); margin-bottom: 4px; letter-spacing: 0.03em; }
  .subTag { font-size: 13px; font-weight: 600; color: var(--grey-light); margin-bottom: 14px; }

  .topRow { display: flex; align-items: center; min-height: 34px; margin-bottom: 4px; }
  .backBtn {
    border: none; background: none; color: var(--grey-light); cursor: pointer;
    font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: 600; padding: 6px 8px 6px 0;
  }

  .promptCard {
    background: var(--card); border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 8px 28px rgba(31, 78, 156, 0.10);
    padding: 26px 22px; display: flex; flex-direction: column; gap: 14px;
  }
  textarea, input[type="text"] {
    font-family: 'Open Sans', sans-serif; font-size: 16px; line-height: 1.5; color: var(--grey);
    width: 100%; padding: 13px 15px; border: 2px solid #D4DBE1; border-radius: 14px;
    outline: none; resize: none; background: #fff;
  }
  textarea:focus, input[type="text"]:focus { border-color: var(--cyan); }
  textarea { min-height: 96px; }

  .exToggle {
    align-self: flex-start; border: none; background: none; cursor: pointer;
    font-family: 'Open Sans', sans-serif; font-size: 13.5px; font-weight: 700; color: var(--cyan); padding: 0;
  }
  .exText { display: none; font-size: 14px; line-height: 1.5; color: var(--grey-light); background: var(--cyan-soft); border-radius: 12px; padding: 10px 14px; }
  .exText.show { display: block; }

  .navRow { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }

  /* option buttons (perspective, possibility pick) */
  .optBtn {
    font-family: 'Open Sans', sans-serif; font-size: 15.5px; font-weight: 600; text-align: left;
    background: var(--card); color: var(--grey); border: 2px solid #D4DBE1; border-radius: 16px;
    padding: 16px 18px; cursor: pointer; transition: border-color 0.12s ease;
  }
  .optBtn.sel { border-color: var(--navy); color: var(--navy); background: var(--cyan-soft); }

  /* chips */
  .chipList { display: flex; flex-direction: column; gap: 8px; }
  .chip {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    background: var(--cyan-soft); border-radius: 12px; padding: 10px 14px;
    font-size: 15px; line-height: 1.4; color: var(--navy-deep);
  }
  .chip button { border: none; background: none; color: var(--grey-light); font-size: 16px; cursor: pointer; padding: 2px 4px; }
  .addRow { display: flex; gap: 8px; }
  .addRow input { flex: 1; }
  .addRow .btn { padding: 0 20px; font-size: 14px; }

  /* timer */
  .timerBox { display: flex; align-items: center; justify-content: space-between; }
  .timerVal { font-weight: 800; font-size: 30px; color: var(--navy); font-variant-numeric: tabular-nums; }
  .timerVal.done { color: var(--open); }
  .ideaCount { font-size: 13.5px; font-weight: 700; color: var(--open); }

  /* lock moment */
  .momentWrap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; }
  .bigLock svg { width: 96px; height: 112px; overflow: visible; }
  .bigLock .shackle {
    fill: none; stroke: var(--open); stroke-width: 9; stroke-linecap: round;
    transform-origin: 16px 36px; transition: transform 0.6s cubic-bezier(0.34, 1.5, 0.64, 1) 0.25s;
  }
  .bigLock .body { fill: var(--open); }
  .bigLock .num { fill: #fff; }
  .bigLock.go .shackle { transform: rotate(-38deg) translate(-4px, -6px); }
  .momentTitle { font-weight: 800; font-size: 24px; color: var(--navy); }
  .momentText { font-size: 16px; max-width: 300px; line-height: 1.5; }

  /* details form */
  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }

  /* plan */
  .planCard {
    background: var(--card); border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 8px 28px rgba(31, 78, 156, 0.10);
    padding: 26px 22px; margin-bottom: 16px;
  }
  .planWho { margin-bottom: 18px; }
  .planWho .pName { font-weight: 800; font-size: 21px; color: var(--navy); }
  .planWho .pRole { font-size: 14px; color: var(--grey-light); }
  .planSec { margin-bottom: 16px; }
  .planSec h3 { font-size: 13px; font-weight: 800; color: var(--cyan); margin-bottom: 4px; letter-spacing: 0.04em; }
  .planSec p, .planSec li { font-size: 15px; line-height: 1.5; }
  .planSec ul { padding-left: 18px; }
  .planFirst { background: var(--open-soft); border-radius: 14px; padding: 12px 16px; }
  .planFirst h3 { color: var(--open); }
