
    :root {
      --paper: #f3f0e7;
      --surface: #fffdf8;
      --surface-2: #e9f0eb;
      --ink: #1d2c27;
      --muted: #5d6b65;
      --line: #d5ddd6;
      --accent: #17624f;
      --accent-dark: #104838;
      --accent-soft: #d9ebe1;
      --gold: #e6b84e;
      --danger: #9e3c32;
      --shadow: 0 8px 24px rgba(29, 44, 39, .08);
      --radius: 18px;
    }
    * { box-sizing: border-box; }
    html { font-size: 18px; background: var(--paper); }
    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
      line-height: 1.75;
      -webkit-font-smoothing: antialiased;
    }
    button, input, textarea, select { font: inherit; }
    button, .file-button {
      min-height: 50px;
      border: 0;
      border-radius: 13px;
      padding: .7rem 1rem;
      cursor: pointer;
      font-weight: 700;
      touch-action: manipulation;
    }
    button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
      outline: 4px solid var(--gold);
      outline-offset: 3px;
    }
    button:disabled { cursor: not-allowed; opacity: .55; }
    .button-primary { background: var(--accent); color: #fff; }
    .button-primary:active { background: var(--accent-dark); }
    .button-secondary { background: var(--accent-soft); color: var(--accent-dark); }
    .button-quiet { background: #edf0eb; color: var(--ink); }
    .button-danger { background: #f6e4e0; color: var(--danger); }
    .button-large { min-height: 62px; font-size: 1.08rem; width: 100%; }
    .button-row { display: flex; flex-wrap: wrap; gap: 10px; }
    .button-row > * { flex: 1 1 140px; }
    .app-shell { max-width: 780px; margin: 0 auto; min-height: 100vh; }
    .app-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
      background: var(--surface);
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 20;
    }
    .brand { min-width: 0; }
    .brand-title { font-size: 1.08rem; font-weight: 800; letter-spacing: .02em; }
    .brand-sub { color: var(--muted); font-size: .75rem; line-height: 1.4; }
    .header-actions { display: flex; gap: 8px; flex-shrink: 0; }
    .header-actions button { min-height: 46px; padding: .45rem .7rem; font-size: .8rem; }
    main { padding: 18px 16px calc(116px + env(safe-area-inset-bottom)); }
    .view[hidden] { display: none; }
    .view-title { margin: 4px 0 4px; font-size: 1.45rem; line-height: 1.35; letter-spacing: -.01em; }
    .view-lead { color: var(--muted); margin: 0 0 18px; font-size: .9rem; }
    .card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 18px;
      margin: 0 0 16px;
      box-shadow: var(--shadow);
    }
    .card-flat { box-shadow: none; }
    .card h2, .card h3 { margin: 0 0 10px; line-height: 1.45; }
    .card h2 { font-size: 1.12rem; }
    .card h3 { font-size: 1rem; }
    .next-card { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
    .next-card .eyebrow, .next-card .source-note { color: #d6e7de; }
    .next-date { font-size: 1.65rem; font-weight: 850; line-height: 1.35; margin: 4px 0 8px; }
    .next-place { font-size: 1rem; margin: 0 0 12px; }
    .eyebrow { color: var(--muted); font-size: .76rem; font-weight: 750; letter-spacing: .08em; }
    .source-note { color: var(--muted); font-size: .75rem; line-height: 1.55; }
    .notice {
      background: #fff6d9;
      border: 1px solid #e7d28d;
      border-radius: 14px;
      padding: 13px 15px;
      margin-bottom: 16px;
      font-size: .85rem;
    }
    .notice p { margin: 0; }
    .notice button { float: right; min-width: 44px; min-height: 44px; margin: -5px -7px 0 8px; padding: .25rem .55rem; background: transparent; color: var(--ink); }
    .action-list { display: grid; gap: 10px; }
    .action-list button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .action-list button::after { content: "›"; font-size: 1.5rem; font-weight: 400; }
    .progress-track { height: 13px; background: #dde4df; border-radius: 999px; overflow: hidden; }
    .progress-bar { height: 100%; background: var(--accent); width: 0; transition: width .25s ease; }
    .progress-label { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: .84rem; color: var(--muted); }
    .timeline { list-style: none; padding: 0; margin: 0; }
    .timeline li { padding: 14px 0; border-top: 1px solid var(--line); }
    .timeline li:first-child { border-top: 0; padding-top: 0; }
    .timeline-date { font-weight: 800; }
    .timeline-title { margin: 2px 0; }
    .status {
      display: inline-block;
      border-radius: 999px;
      padding: 2px 9px;
      font-size: .72rem;
      font-weight: 750;
      background: #edf0eb;
      color: var(--ink);
    }
    .status-done { background: var(--accent-soft); color: var(--accent-dark); }
    .status-next { background: #fff0c2; color: #624500; }
    .status-unknown { background: #f0ece3; color: var(--muted); }
    .current-panel { background: var(--surface-2); }
    .current-step { font-size: 1.35rem; font-weight: 850; margin: 4px 0; }
    .timer { font-size: 2rem; font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1.2; }
    .step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
    .step-item {
      display: grid;
      grid-template-columns: 42px 1fr auto;
      align-items: center;
      gap: 10px;
      padding: 12px;
      border: 2px solid var(--line);
      border-radius: 14px;
      background: var(--surface);
    }
    .step-item.is-current { border-color: var(--accent); background: var(--surface-2); }
    .step-item.is-done { opacity: .72; }
    .step-number { font-weight: 850; font-size: 1.15rem; text-align: center; }
    .step-name { font-weight: 750; }
    .step-meta { color: var(--muted); font-size: .75rem; }
    .step-item button { min-height: 44px; padding: .35rem .65rem; font-size: .75rem; }
    .field { margin: 0 0 15px; }
    .field label, .field-label { display: block; font-weight: 750; margin-bottom: 5px; }
    .field small { display: block; color: var(--muted); font-size: .75rem; margin-top: 4px; }
    input[type="text"], input[type="date"], input[type="number"], textarea, select {
      width: 100%;
      min-height: 50px;
      border: 2px solid #bac8bf;
      border-radius: 12px;
      padding: 11px 12px;
      background: #fff;
      color: var(--ink);
    }
    textarea { min-height: 112px; resize: vertical; line-height: 1.65; }
    input[type="checkbox"] { width: 26px; height: 26px; accent-color: var(--accent); flex-shrink: 0; }
    .check-line { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; }
    .check-line label { flex: 1; }
    .task-card { border-top: 3px solid var(--accent); }
    .task-card.is-done { border-top-color: #98a69d; }
    .task-title-row { display: flex; align-items: flex-start; gap: 10px; }
    .task-title-row h3 { flex: 1; margin: 0; }
    details { margin: 8px 0; }
    summary { cursor: pointer; min-height: 44px; font-weight: 750; padding: 8px 0; }
    .profile-list { display: grid; gap: 10px; margin: 14px 0; }
    .profile-item { border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: var(--surface); }
    .profile-name { font-weight: 800; }
    .profile-tags { color: var(--muted); font-size: .8rem; }
    .recording-item { border-top: 1px solid var(--line); padding: 15px 0; }
    .recording-item:first-child { border-top: 0; }
    .recording-name { font-weight: 750; overflow-wrap: anywhere; }
    .recording-meta { color: var(--muted); font-size: .75rem; }
    audio { width: 100%; margin: 10px 0; min-height: 44px; }
    .file-button { display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-dark); }
    .file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .help-text { color: var(--muted); font-size: .8rem; }
    .minutes-preview {
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 18px;
      font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
      line-height: 1.85;
    }
    .board-form { display: grid; gap: 10px; }
    .quick-words { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }
    .quick-words button { min-height: 44px; padding: .4rem .7rem; font-size: .8rem; }
    .board-list { list-style: none; padding: 0; margin: 0; }
    .board-entry { display: grid; grid-template-columns: 1fr auto; gap: 8px; border-top: 1px solid var(--line); padding: 14px 0; }
    .board-entry-text { font-size: 1.15rem; font-weight: 750; overflow-wrap: anywhere; }
    .board-entry time { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; }
    .icon-button { min-width: 48px; padding: .35rem .55rem; }
    .bottom-nav {
      position: fixed;
      z-index: 30;
      bottom: 0;
      left: 0;
      right: 0;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      max-width: 780px;
      margin: 0 auto;
      padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
      background: var(--surface);
      border-top: 1px solid var(--line);
    }
    .bottom-nav button {
      min-height: 58px;
      border-radius: 10px;
      padding: 5px 2px;
      background: transparent;
      color: var(--muted);
      font-size: .72rem;
      font-weight: 750;
    }
    .bottom-nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }
    .nav-mark { display: block; font-size: 1.05rem; line-height: 1.2; font-weight: 850; }
    .toast {
      position: fixed;
      z-index: 80;
      left: 50%;
      bottom: calc(92px + env(safe-area-inset-bottom));
      transform: translateX(-50%) translateY(20px);
      width: max-content;
      max-width: calc(100vw - 32px);
      background: var(--ink);
      color: #fff;
      border-radius: 12px;
      padding: 11px 16px;
      opacity: 0;
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease;
      font-size: .85rem;
      box-shadow: var(--shadow);
    }
    .toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
    dialog {
      width: min(720px, calc(100vw - 24px));
      max-height: 88vh;
      border: 0;
      border-radius: 20px;
      padding: 0;
      background: var(--surface);
      color: var(--ink);
      box-shadow: 0 22px 70px rgba(0,0,0,.24);
    }
    dialog::backdrop { background: rgba(14, 28, 23, .62); }
    .dialog-body { padding: 20px; }
    .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .dialog-head h2 { margin: 0; font-size: 1.25rem; }
    .projection {
      position: fixed;
      z-index: 100;
      inset: 0;
      background: #10241d;
      color: #fff;
      padding: calc(18px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
      overflow-y: auto;
    }
    .projection[hidden] { display: none; }
    .projection-controls { position: sticky; top: 0; display: flex; gap: 8px; flex-wrap: wrap; background: #10241d; padding-bottom: 12px; z-index: 2; }
    .projection-controls button { background: #fff; color: #10241d; }
    .projection-list { list-style: none; padding: 0; margin: 12px 0 0; font-size: 44px; line-height: 1.45; font-weight: 800; }
    .projection-list li { border-top: 2px solid #456358; padding: .55em 0; overflow-wrap: anywhere; }
    .projection-list li:first-child { border-top: 0; }
    .empty { color: var(--muted); padding: 18px 0; }
    .footer-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
    .text-button { background: transparent; color: var(--accent-dark); text-decoration: underline; min-height: 44px; padding: .35rem; }
    .danger-zone { border-color: #e1bbb4; }
    @media (min-width: 680px) {
      main { padding-left: 24px; padding-right: 24px; }
      .two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
      .two-column > .card { margin-bottom: 0; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
    }
    @media print {
      .app-header, .bottom-nav, .button-row, .notice, .footer-links { display: none !important; }
      body { background: #fff; }
      main { padding: 0; }
      .card { box-shadow: none; }
    }
  