:root {
  --ink: #242424;
  --muted: #a5a5a5;
  --paper: #f9f9f9;
  --line: #e9e9e9;
  --yellow: #fcd34d;
  --soft-yellow: #ffe7a3;
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #d7d7d7;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

button, input, textarea { font: inherit; }
button { color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, [role="checkbox"]:focus-visible {
  outline: 3px solid rgba(36,36,36,.22);
  outline-offset: 2px;
}

#app {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(100%, 430px);
  max-width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  background: var(--paper);
  overflow: hidden;
}

@media (min-width: 520px) and (min-height: 520px) {
  body { padding: 24px; }
  .phone {
    width: 422px;
    min-height: 0;
    height: min(874px, calc(100dvh - 48px));
    border: 10px solid #000;
    border-radius: 64px;
    box-shadow: 0 24px 70px rgba(0,0,0,.18);
  }
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
}

.floating-capture {
  position: absolute;
  z-index: 24;
  width: 56px;
  min-height: 62px;
  padding: 8px 4px 6px;
  border: 2px solid #fff;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transform: translate(-50%, -50%);
  touch-action: none;
  user-select: none;
  transition: left .24s cubic-bezier(.22,.72,.3,1), transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.floating-capture:active { transform: translate(-50%, -50%) scale(.94); }
.floating-capture.dragging { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 12px 32px rgba(0,0,0,.28); transition: box-shadow .15s ease; cursor: grabbing; }
.floating-capture svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.floating-capture span { font-size: 10px; font-weight: 700; }
.floating-capture.capturing { opacity: .62; pointer-events: none; animation: floating-capture-pulse 1s ease-in-out infinite; }
@keyframes floating-capture-pulse { 50% { transform: translate(-50%, -50%) scale(.92); } }

.screen-scroll {
  position: absolute;
  inset: 118px 0 90px;
  overflow-y: auto;
  padding: 12px 20px 30px;
  scrollbar-width: none;
}
.home-scroll { top: 170px; transition: top .2s ease; touch-action: pan-y; overscroll-behavior-x: contain; }
.home-scroll.filter-dragging { transition: none; user-select: none; will-change: transform, opacity; }
.home-scroll.filter-swipe-reset { transition: transform .2s cubic-bezier(.22,.72,.3,1), opacity .18s ease; }
.home-scroll.filter-swipe-leave-left,
.home-scroll.filter-swipe-leave-right { transition: transform .17s cubic-bezier(.4,0,.8,.2), opacity .17s ease; pointer-events: none; }
.home-scroll.filter-slide-left { animation: home-filter-from-right .22s cubic-bezier(.22,.72,.3,1); }
.home-scroll.filter-slide-right { animation: home-filter-from-left .22s cubic-bezier(.22,.72,.3,1); }
@keyframes home-filter-from-right { from { opacity: .35; transform: translateX(72px); } to { opacity: 1; transform: translateX(0); } }
@keyframes home-filter-from-left { from { opacity: .35; transform: translateX(-72px); } to { opacity: 1; transform: translateX(0); } }
.home-searching .home-scroll { top: 226px; }
.screen-scroll::-webkit-scrollbar { display: none; }

.statusbar {
  position: relative;
  height: 50px;
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 124px minmax(92px, 1fr);
  align-items: start;
  padding-top: 21px;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
}

.island {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 125px;
  height: 38px;
  transform: translateX(-50%);
  border-radius: 22px;
  object-fit: cover;
}

.status-time { grid-column: 1; text-align: center; padding: 0 6px 0 16px; }
.island-space { grid-column: 2; width: 124px; height: 10px; }
.signals { grid-column: 3; justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 4px 16px 0 6px; }
.status-cellular { width: 19.2px; height: 12.226px; }
.status-wifi { width: 17.142px; height: 12.328px; }
.status-battery { width: 27.328px; height: 13px; }

.topbar {
  height: 66px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  padding: 0 16px;
}
.home-topbar { grid-template-columns: 48px minmax(0, 1fr) 48px; padding: 0 16px; }
.topbar-title { text-align: center; font-size: 18px; font-weight: 650; }
.brand-title { min-width: 0; padding-left: 3px; text-align: left; font-size: 20px; font-weight: 650; }
.icon-btn {
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
}
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg circle { fill: currentColor; stroke: none; }
.icon-btn:active { background: #eee; transform: scale(.96); }
.shared-search-icon { width: 21px; height: 21px; display: grid; flex: 0 0 21px; place-items: center; color: inherit; }
.shared-search-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shared-search-icon svg circle { fill: none; stroke: currentColor; }

.onboarding { background: var(--yellow); }
.onboarding-content { position: absolute; inset: 52px 0 0; overflow-y: auto; padding: 110px 59px 36px; }
.onboarding h1 { margin: 0 0 46px; text-align: center; font-size: 38px; }
.field-label { display: block; margin: 0 0 13px; font-size: 14px; font-weight: 800; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 38px; }
.role-card {
  height: 108px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
}
.role-card.selected { background: var(--ink); color: white; }
.role-icon { font-size: 37px; line-height: 1; }
.tool-input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  outline: none;
}
.start-btn { margin-top: 34px; background: var(--ink); }
.onboarding-brand { margin-top: 64px; text-align: center; font-size: 34px; font-weight: 900; }
.onboarding-tip { text-align: center; font-size: 12px; margin-top: 18px; opacity: .55; }

.home-header { padding: 0 20px; }
.home-search-row { height: 48px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 0 0 4px; padding: 0 12px; border-radius: 14px; background: #ededed; }
.home-search-row > span { display: grid; place-items: center; color: #777; }
.home-search-row svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.home-search-row input { min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.home-search-row button { height: 34px; padding: 0 2px 0 8px; border: 0; background: transparent; color: #666; font-size: 14px; }
.search-pill { height: 36px; border-radius: 999px; background: #eee; display: flex; align-items: center; justify-content: flex-end; padding: 0 14px; }
.tabs { display: flex; gap: 5px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.tab {
  border: 0;
  background: transparent;
  color: #9e9e9e;
  padding: 9px 13px;
  border-radius: 24px;
  white-space: nowrap;
  cursor: pointer;
  min-height: 44px;
}
.tab.active { background: var(--ink); color: #fff; font-weight: 650; }
.tab { transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.tab:active { transform: scale(.96); }

.card {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 25px 24px 18px;
  margin-bottom: 12px;
  min-height: 210px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,.01);
}
.card:active { transform: scale(.99); }
.card h2 { margin: 0 0 12px; width: calc(100% - 88px); font-size: 22px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-summary { width: calc(100% - 95px); font-size: 14px; line-height: 1.55; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-state { position: absolute; top: 31px; right: 18px; color: var(--muted); font-size: 14px; }
.processing-card { min-height: 240px; cursor: default; }
.card-preview-image {
  position: absolute;
  width: 82px;
  height: 82px;
  right: 16px;
  top: 71px;
  border-radius: 12px;
  object-fit: cover;
}
.card.no-preview .card-summary { width: 100%; max-width: 290px; }
.card.no-preview { min-height: 210px; }
.card.processing-card { min-height: 240px; }
.card-meta-row { display: flex; flex-wrap: wrap; gap: 8px; padding-right: 4px; }
.meta-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--paper); color: #757575; font-size: 12px; }
.ai-status { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: #fff7d6; color: var(--ink); }
.ai-status > span:last-child { display: grid; gap: 2px; }
.ai-status b { font-size: 13px; font-weight: 650; }
.ai-status small { color: #7f7451; font-size: 11px; }
.status-spinner { width: 20px; height: 20px; flex: 0 0 20px; border: 2px solid rgba(36,36,36,.18); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
.status-spinner.small { width: 16px; height: 16px; flex-basis: 16px; border-width: 2px; }
.card-footer { position: absolute; left: 16px; right: 16px; bottom: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.project-footer-status { display: flex; align-items: center; gap: 14px; }
.project-footer-status b { color: var(--muted); font-weight: 400; }
.project-footer-status i { color: var(--muted); font-style: normal; letter-spacing: 1px; }
.project-card.completed .project-footer-status b { color: var(--ink); font-weight: 650; }
.card-more { width: 44px; height: 44px; margin: -12px -10px -8px 0; padding: 10px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; }
.card-more svg { display: block; width: 24px; height: 24px; fill: var(--muted); }
.card-more:active { background: var(--paper); }
.card.menu-open { z-index: 14; }
.card-popover { position: absolute; right: 16px; bottom: 27px; width: 86px; overflow: hidden; border-radius: 12px; background: white; box-shadow: 0 0 4px rgba(0,0,0,.25); z-index: 15; }
.card-popover button { display: block; width: 100%; min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); font-size: 13px; text-align: center; cursor: pointer; }
.card-popover button:last-child { border-bottom: 0; }
.card-menu-scrim { position: absolute; inset: 0; z-index: 12; border: 0; background: transparent; }

.empty { text-align: center; color: var(--muted); padding: 62px 28px; }
.empty strong { display: block; color: var(--ink); font-size: 20px; margin-bottom: 10px; }
.empty p { line-height: 1.65; margin: 0 auto; max-width: 260px; }
.empty-mark { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 24px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-size: 34px; }
.empty-cta { width: 220px; margin-top: 28px; }

.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 103px;
  padding: 8px max(24px, env(safe-area-inset-left)) 0;
  background: rgba(255,255,255,.96);
  border-top: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 -4px 4px rgba(0,0,0,.05);
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: start;
  gap: 14px;
}
.nav-item { position: relative; height: 58px; padding: 5px 12px 8px; border: 0; border-radius: 16px; background: transparent; color: #999; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 11px; cursor: pointer; }
.nav-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: var(--ink); font-weight: 650; }
.nav-item.active::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 20px; height: 3px; border-radius: 99px; background: var(--ink); transform: translateX(-50%); animation: navIndicator .2s ease-out; }
.nav-item:active { background: #f4f4f4; }
@keyframes navIndicator { from { width: 8px; opacity: .25; } to { width: 20px; opacity: 1; } }
.add-btn {
  position: relative;
  width: 64px; height: 64px; margin: -10px auto 0;
  border: 5px solid white; border-radius: 50%; background: var(--ink); color: white;
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 2;
  box-shadow: 0 5px 14px rgba(0,0,0,.16);
}
.add-btn span::before, .add-btn span::after { content: ""; position: absolute; left: 50%; top: 50%; background: white; border-radius: 2px; transform: translate(-50%, -50%); }
.add-btn span::before { width: 28px; height: 2px; }
.add-btn span::after { width: 2px; height: 28px; }
.add-btn:active { transform: scale(.95); }

.editor { background: white; }
.editor-body { height: calc(100% - 110px); overflow-y: auto; padding: 38px 24px 132px; scrollbar-width: none; }
.editor-body::-webkit-scrollbar { display: none; }
.editor h1 { font-size: 24px; margin: 5px 0 16px; }
.date { color: var(--muted); font-size: 14px; }
.idea-textarea {
  width: 100%; min-height: 165px; resize: none; border: 0; outline: none;
  font-size: 17px; line-height: 1.6; padding: 18px 0; color: var(--ink);
}
.idea-textarea::placeholder { color: #b8b8b8; }
.record-compose { display: flex; align-items: flex-start; gap: 10px; min-height: 165px; }
.record-compose .idea-textarea { flex: 1 1 auto; min-width: 0; }
.record-media-rail { width: 80px; flex: 0 0 80px; max-height: 206px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 8px 3px 4px 0; scrollbar-width: thin; }
.record-media-item { position: relative; width: 72px; height: 72px; flex: 0 0 72px; }
.record-media-open { width: 72px; height: 72px; padding: 0; overflow: hidden; border: 1px solid #e1e1e1; border-radius: 12px; background: #f7f7f7; }
.record-media-open img { display: block; width: 100%; height: 100%; object-fit: cover; }
.record-media-remove { position: absolute; top: 0; right: 0; width: 36px; height: 36px; border: 0; border-radius: 0 12px 0 12px; background: rgba(30,30,30,.88); color: #fff; font-size: 23px; line-height: 1; }
.attachment-strip { display: flex; gap: 10px; overflow-x: auto; margin: 6px 0 12px; padding: 2px 1px 5px; scrollbar-width: none; }
.attachment-strip::-webkit-scrollbar { display: none; }
.attachment-thumb { position: relative; width: 84px; flex: 0 0 84px; margin: 0; }
.attachment-thumb img { display: block; width: 84px; height: 72px; border-radius: 14px; border: 1px solid #e1e1e1; background: #fff; object-fit: cover; }
.attachment-thumb figcaption { margin-top: 4px; color: #888; font-size: 11px; text-align: center; }
.attachment-thumb button { position: absolute; right: -5px; top: -5px; width: 26px; height: 26px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: rgba(36,36,36,.9); color: #fff; line-height: 20px; cursor: pointer; }
.attachment-strip.editable .attachment-thumb:not(.audio-attachment) { width: 112px; flex-basis: 112px; }
.attachment-strip.editable .attachment-thumb:not(.audio-attachment) img { width: 112px; }
.attachment-thumb .attachment-focus-button { position: static; width: 100%; min-height: 40px; height: auto; margin-top: 5px; padding: 4px; border: 1px solid #dedede; border-radius: 10px; background: #fff; color: #333; font-size: 11px; line-height: 1.3; }
.attachment-thumb.audio-attachment { width: 206px; flex-basis: 206px; min-height: 100px; padding: 12px; border-radius: 16px; background: #fff8d9; border: 1px solid #ecd77c; }
.audio-attachment-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font-size: 18px; }
.attachment-thumb.audio-attachment figcaption { margin: -30px 0 10px 43px; min-height: 30px; display: flex; align-items: center; text-align: left; color: var(--ink); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-thumb.audio-attachment audio { width: 100%; height: 34px; display: block; }
.detail-hero .attachment-strip { margin: 12px 0; }
.detail-hero .attachment-thumb { width: 92px; flex-basis: 92px; }
.detail-hero .attachment-thumb img { width: 92px; height: 78px; }
.voice-status { min-height: 34px; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #6f5a00; font-size: 12px; line-height: 1.4; }
.voice-status > span { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #e24a3b; animation: voice-pulse 1.2s ease-in-out infinite; }
.keyboard-open > .voice-status { position: absolute; left: 24px; right: 72px; bottom: calc(var(--keyboard-height) + 57px); z-index: 4; margin: 0; padding: 6px 10px; border-radius: 12px; background: #fff7d6; }
.editor-tools, .keyboard-toolbar { view-transition-name: record-tools; display: flex; align-items: center; gap: 4px; height: 56px; padding: 6px 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); animation: record-tools-enter .2s cubic-bezier(.2,.7,.2,1); }
.editor-tools { position: absolute; left: 16px; right: 16px; bottom: calc(24px + var(--safe-bottom)); z-index: 3; }
.tool-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.tool-btn:active { background: var(--paper); }
.tool-mic.listening { position: relative; background: #fff1bd; box-shadow: 0 0 0 4px rgba(252,211,77,.24); }
.tool-mic.listening::after { content: ""; position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #e24a3b; animation: voice-pulse 1.2s ease-in-out infinite; }
.tool-btn img { display: block; object-fit: contain; }
.tool-mic img { width: 20px; height: 20px; }
.record-image-icon { position: relative; display: block; width: 18px; height: 18px; overflow: hidden; }
.record-image-icon img { position: absolute; display: block; max-width: none; }
.record-image-icon .image-frame { inset: 8.75%; width: 82.5%; height: 82.5%; }
.record-image-icon .image-dot { left: 23.33%; top: 23.33%; width: 28.34%; height: 28.34%; }
.record-image-icon .image-mountain { left: 8.75%; right: 8.75%; top: 50.42%; bottom: 21.25%; width: 82.5%; height: 28.33%; }
.tool-draw img { width: 18px; height: 21px; }
.tool-hardware-audio svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hardware-link-card { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 10px; align-items: center; margin: 10px 0 14px; padding: 12px 13px; border: 1px solid #e1e1dd; border-radius: 17px; background: #f8f8f5; }
.hardware-link-card > div { min-width: 0; }
.hardware-link-card strong, .hardware-link-card small { display: block; }
.hardware-link-card strong { margin-bottom: 3px; font-size: 12px; }
.hardware-link-card small { overflow: hidden; color: #8b8b87; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.hardware-link-card > button { height: 30px; padding: 0 11px; border: 0; border-radius: 15px; background: var(--ink); color: #fff; font-size: 10px; cursor: pointer; }
.hardware-link-card > .file-fallback { display: none; }
.hardware-link-dot { width: 8px; height: 8px; border-radius: 50%; background: #aaa; }
.hardware-link-card.reading { border-color: #ead06a; background: #fff9df; }
.hardware-link-card.reading .hardware-link-dot { background: #e4b900; animation: voice-pulse 1.2s ease-in-out infinite; }
.hardware-link-card.ready { border-color: #b9ddc5; background: #f2fbf5; }
.hardware-link-card.ready .hardware-link-dot { background: #34a85a; }
.hardware-link-card.error { grid-template-columns: 10px minmax(0,1fr) auto auto; border-color: #efc1bd; background: #fff5f3; }
.hardware-link-card.error .hardware-link-dot { background: #d84b3e; }
.hardware-link-card.error > .file-fallback { display: block; border: 1px solid #d6d6d1; background: #fff; color: #555; }
.tool-bold img { width: 18px; height: 18px; }
.tool-list img { width: 20px; height: 20px; }
.mic-icon { display: block; width: 20px; height: 20px; }
.next-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0; flex: 0 0 44px; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: white; font-size: 22px; cursor: pointer; }
.next-btn svg { display: block; flex: 0 0 22px; width: 22px; height: 22px; aspect-ratio: 1; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.keyboard-open .editor-body { height: calc(100% - 110px - var(--keyboard-height) - 64px); min-height: 190px; padding: 38px 24px 8px; }
.keyboard-open { --keyboard-height: clamp(268px, 39dvh, 334px); }
.keyboard-open .idea-textarea { min-height: clamp(118px, 21dvh, 185px); }
.keyboard-open .editor-body { padding-top: 8px; }
.keyboard-open h1 { margin: 0 0 4px; font-size: 17px; }
.keyboard-open .date { display: none; }
.keyboard-open .record-compose { min-height: 0; }
.keyboard-open .record-media-rail { width: 64px; flex-basis: 64px; max-height: 126px; gap: 6px; padding-top: 2px; }
.keyboard-open .record-media-item,
.keyboard-open .record-media-open { width: 56px; height: 56px; }
.keyboard-open .record-media-item { flex-basis: 56px; }
.keyboard-toolbar { position: absolute; left: 16px; right: 16px; bottom: calc(var(--keyboard-height) + 8px); z-index: 3; }
.keyboard-toolbar .next-btn { margin-left: auto; flex: 0 0 44px; }
.ios-keyboard { position: absolute; left: 0; bottom: 0; width: 100%; height: var(--keyboard-height); object-fit: cover; object-position: top center; pointer-events: none; z-index: 2; }
::view-transition-old(record-tools), ::view-transition-new(record-tools) { animation-duration: .24s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
.save-bar { position: absolute; left: 20px; right: 20px; bottom: 24px; }
.idea-edit-screen { background: #fff; }
.idea-edit-scroll { inset: 118px 0 84px; padding: 18px 20px 28px; background: #fff; }
.understanding-edit-screen { background: #fff; }
.understanding-edit-scroll { inset: 118px 0 84px; padding: 18px 20px 30px; background: #fff; }
.understanding-edit-screen .edit-intro { margin-bottom: 18px; }
.understanding-source-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 68px; gap: 16px; margin-bottom: 20px; padding: 12px 15px; border: 1px solid #e9e9e9; border-radius: 16px; background: #f8f8f8; color: #222; text-align: left; }
.understanding-source-link span { min-width: 0; }
.understanding-source-link strong { display: block; font-size: 14px; }
.understanding-source-link small { display: block; overflow: hidden; margin-top: 4px; color: #777; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.understanding-source-link i { flex: 0 0 auto; font-size: 22px; font-style: normal; }
.understanding-refresh-note { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: #fff7df; color: #715c21; font-size: 12px; line-height: 1.55; }
.understanding-edit-field { margin-bottom: 18px; }
.understanding-edit-field textarea { min-height: 100px; padding: 13px 14px; resize: vertical; }
.understanding-edit-field input { height: 50px; }
.understanding-edit-field .field-help { margin: 6px 0 0; position: static; color: #888; font-size: 12px; line-height: 1.45; text-align: left; }
.understanding-retry { width: 100%; min-height: 48px; margin-top: 4px; border: 1px solid #4b4b4b; border-radius: 999px; background: #fff; color: #252525; font-size: 14px; font-weight: 650; }
.understanding-retry:disabled { opacity: .5; }
.understanding-retry-help { margin: 8px 2px 0; color: #888; font-size: 12px; line-height: 1.5; }
.edit-intro { margin-bottom: 28px; }
.edit-intro h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.35; }
.edit-intro p { margin: 0; color: #7d7d7d; font-size: 13px; line-height: 1.55; }
.edit-field { display: block; margin-bottom: 24px; }
.edit-field > span { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 650; }
.edit-field input, .edit-field textarea { width: 100%; border: 1px solid #dedede; border-radius: 18px; outline: none; background: #f9f9f9; color: var(--ink); font-size: 16px; line-height: 1.6; }
.edit-field input { height: 52px; padding: 0 16px; }
.edit-field textarea { min-height: 220px; padding: 15px 16px 36px; resize: vertical; }
.understanding-edit-screen .understanding-edit-field textarea { min-height: 104px; height: 104px; padding: 13px 14px; resize: vertical; }
.understanding-edit-screen #understanding-mechanism { height: 126px; }
.edit-field input:focus, .edit-field textarea:focus { border-color: #a9a9a9; background: #fff; box-shadow: 0 0 0 3px rgba(36,36,36,.06); }
.edit-field small { display: block; margin: -29px 14px 0 0; position: relative; color: #aaa; text-align: right; pointer-events: none; }
.edit-field small b { font-weight: 400; }
.edit-input-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.edit-tool-btn { min-width: 0; min-height: 66px; padding: 8px 4px; border: 1px solid #dedede; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: #fff; font-size: 12px; cursor: pointer; }
.edit-tool-btn img { width: 20px; height: 20px; object-fit: contain; }
.edit-tool-btn .record-image-icon img { position: absolute; max-width: none; }
.edit-tool-btn.listening { border-color: #f0cf4a; background: #fff7d6; color: #6f5a00; }
.edit-voice-status { justify-content: center; margin-top: 10px; }
.edit-save-bar { position: absolute; left: 20px; right: 20px; bottom: calc(16px + var(--safe-bottom)); z-index: 8; }
.primary-btn { width: 100%; height: 52px; border: 0; border-radius: 28px; background: var(--ink); color: white; font-weight: 650; cursor: pointer; }
.primary-btn:disabled { opacity: .35; cursor: not-allowed; }
.secondary-btn { height: 48px; border: 1px solid #bbb; border-radius: 28px; background: white; padding: 0 24px; cursor: pointer; }

.hardware-import-screen { background: #f6f6f3; }
.hardware-import-scroll { inset: 118px 0 0; padding: 14px 18px calc(34px + var(--safe-bottom)); background: #f6f6f3; }
.hardware-audio-card, .hardware-transcript-card, .hardware-edit-card { margin-bottom: 14px; padding: 18px; border-radius: 24px; background: #fff; }
.hardware-audio-top { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.hardware-audio-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--ink); color: var(--yellow); font-size: 23px; }
.hardware-audio-top strong, .hardware-audio-top small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hardware-audio-top strong { font-size: 14px; }
.hardware-audio-top small { margin-top: 5px; color: #949494; font-size: 11px; }
.hardware-replace-actions { display: flex; flex-direction: column; gap: 5px; }
.hardware-replace-actions button { height: 28px; padding: 0 10px; border: 0; border-radius: 14px; background: #efefec; color: #555; font-size: 10px; cursor: pointer; }
.hardware-replace-actions button:first-child { background: var(--ink); color: #fff; }
.hardware-audio-card audio { width: 100%; height: 42px; margin-top: 14px; }
.hardware-audio-card label { display: block; margin-top: 14px; }
.hardware-audio-card label span { display: block; margin-bottom: 7px; color: #777; font-size: 12px; }
.hardware-audio-card input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #dfdfdc; border-radius: 13px; outline: none; background: #fafafa; }
.hardware-audio-card input:focus { border-color: #aaa; background: #fff; }
.hardware-processing { min-height: 350px; padding: 44px 24px; border-radius: 24px; background: #fff; text-align: center; }
.hardware-processing-mark { width: 76px; height: 76px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 25px; background: var(--ink); }
.hardware-processing-mark span { width: 5px; border-radius: 99px; background: var(--yellow); animation: hardware-wave 1s ease-in-out infinite; }
.hardware-processing-mark span:nth-child(1) { height: 19px; }
.hardware-processing-mark span:nth-child(2) { height: 34px; animation-delay: .16s; }
.hardware-processing-mark span:nth-child(3) { height: 24px; animation-delay: .32s; }
@keyframes hardware-wave { 50% { transform: scaleY(.45); opacity: .55; } }
.hardware-processing h2 { margin: 0 0 8px; font-size: 23px; }
.hardware-processing > p { margin: 0 auto 24px; max-width: 250px; color: #888; font-size: 13px; line-height: 1.55; }
.hardware-steps { display: grid; gap: 7px; text-align: left; }
.hardware-steps div { padding: 12px 14px; border-radius: 13px; background: #f3f3f0; color: #aaa; font-size: 13px; }
.hardware-steps .done { color: #555; }
.hardware-steps .active { background: #fff4c5; color: #665100; font-weight: 650; }
.hardware-section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 13px; }
.hardware-section-heading small { display: block; margin-bottom: 4px; color: #999; font-size: 11px; }
.hardware-section-heading h2 { margin: 0; font-size: 21px; }
.hardware-section-heading > span { padding: 6px 9px; border-radius: 999px; background: #f0f0ed; color: #777; font-size: 11px; }
.hardware-section-heading .agent-badge { background: #fff1b8; color: #735b00; }
.hardware-manual-note { margin-bottom: 12px; padding: 11px 12px; border-radius: 13px; background: #fff7d7; color: #75621f; font-size: 12px; line-height: 1.5; }
.hardware-cloud-consent { margin-bottom: 13px; padding: 14px; border: 1px solid #ead57d; border-radius: 16px; background: #fff9df; }
.hardware-cloud-consent strong { display: block; margin-bottom: 5px; font-size: 13px; }
.hardware-cloud-consent p { margin: 0 0 11px; color: #756a3d; font-size: 11px; line-height: 1.55; }
.hardware-cloud-consent button { min-height: 38px; padding: 0 15px; border: 0; border-radius: 20px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 650; cursor: pointer; }
.hardware-transcript-card textarea, .hardware-edit-card textarea, .hardware-edit-card input { width: 100%; border: 1px solid #e0e0dd; border-radius: 15px; outline: none; background: #fafafa; color: var(--ink); line-height: 1.6; }
.hardware-transcript-card textarea { min-height: 150px; padding: 14px; resize: vertical; font-size: 15px; }
.hardware-edit-card input { height: 48px; padding: 0 14px; font-size: 16px; font-weight: 650; }
.hardware-edit-card textarea { min-height: 126px; padding: 13px 14px; resize: vertical; font-size: 14px; }
.hardware-transcript-card textarea:focus, .hardware-edit-card textarea:focus, .hardware-edit-card input:focus { border-color: #aaa; background: #fff; box-shadow: 0 0 0 3px rgba(36,36,36,.05); }
.hardware-inline-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }
.hardware-inline-actions button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: #efefec; font-size: 12px; font-weight: 650; }
.hardware-inline-actions .emphasis { background: var(--ink); color: #fff; }
.hardware-edit-card label { display: grid; gap: 7px; margin-bottom: 14px; color: #666; font-size: 12px; }
.hardware-field { padding: 12px 0; border-top: 1px solid #ededeb; }
.hardware-field small { color: #999; }
.hardware-field p { margin: 6px 0 0; font-size: 13px; line-height: 1.55; }
.hardware-keywords { display: flex; flex-wrap: wrap; gap: 7px; padding: 9px 0 15px; }
.hardware-keywords span { padding: 7px 10px; border-radius: 999px; background: #efefec; font-size: 11px; }
.hardware-confirm-note { margin-bottom: 14px; color: #888; font-size: 11px; line-height: 1.5; }
.capture-source-row { margin-top: -5px; }
.detail-source-badge { display: inline-flex; min-height: 26px; align-items: center; margin: -2px 0 8px; padding: 0 9px; border-radius: 999px; background: #fff1b8; color: #735b00; font-size: 11px; font-weight: 650; }
.original-transcript { margin: 11px 0; padding: 10px 12px; border-radius: 13px; background: #fff; }
.original-transcript summary { cursor: pointer; color: #666; font-size: 12px; font-weight: 650; }
.original-transcript p { margin: 9px 0 0; color: #666; font-size: 12px; line-height: 1.55; }

.detail-screen { background: #fff; }
.detail-scroll { inset: 118px 0 154px; padding: 8px 20px 28px; background: #fff; }
.detail-hero { position: relative; background: var(--paper); border-radius: 24px; padding: 25px 24px 62px; min-height: 220px; }
.detail-hero h1 { margin: 0 0 10px; font-size: 24px; }
.detail-hero p { margin: 9px 0; font-size: 14px; }
.detail-hero .muted { color: var(--muted); }
.detail-hero .date { position: absolute; bottom: 16px; left: 16px; }
.idea-relation-summary { color: #777; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea-relation-summary span { margin-right: 8px; color: var(--ink); font-weight: 650; }
.hero-card-actions { position: absolute; right: 14px; bottom: 10px; display: flex; gap: 6px; }
.hero-card-actions button { min-width: 76px; height: 40px; padding: 0 12px; border: 1px solid #d7d7d7; border-radius: 20px; background: #fff; font-size: 13px; font-weight: 650; cursor: pointer; }
.hero-card-actions button:active { background: #ededed; transform: scale(.98); }
.section-title { margin: 24px 0 14px; font-size: 22px; }
.discovery { position: relative; background: #f9f9f9; border-radius: 24px; padding: 16px 24px 42px; margin-bottom: 12px; min-height: 128px; cursor: pointer; overflow: visible; }
.discovery.deepened { margin-left: calc(var(--depth, 1) * 22px); }
.discovery.deepened::before { content: ""; position: absolute; left: -10px; top: -6px; bottom: -6px; width: 4px; border-radius: 999px; background: var(--yellow); pointer-events: none; }
.discovery.deepened.branch-first::before, .discovery.deepened.branch-single::before { top: 0; }
.discovery.deepened.branch-last::before, .discovery.deepened.branch-single::before { bottom: 0; }
.depth-badge { display: inline-block; margin-bottom: 5px; color: #876b00; font-size: 11px; font-weight: 700; }
.discovery h3 { margin: 0 0 6px; font-size: 20px; line-height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.discovery p { margin: 0; font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.discovery-hint { position: absolute; left: 24px; right: 24px; bottom: 15px; color: var(--muted); font-size: 12px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.secondary-btn:disabled { cursor: wait; opacity: .58; }
.discovery.discarded { color: #8f8f8f; box-shadow: inset 0 0 0 1px #dedede; }
.discovery.discarded .discovery-hint { right: 110px; }
.discarded-badge { position: absolute; right: 20px; bottom: 16px; min-width: 72px; height: 32px; padding: 0 12px; border-radius: 999px; background: #ececec; color: #888; display: grid; place-items: center; font-size: 12px; }
.detail-dock { position: absolute; left: 0; right: 0; bottom: 0; height: 154px; z-index: 8; padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 12px rgba(0,0,0,.03); }
.detail-actions { min-height: 44px; display: flex; gap: 12px; margin: 0; }
.detail-actions .secondary-btn { min-width: 0; height: 44px; padding: 0 18px; border-color: var(--muted); font-size: 13px; }
.detail-actions .expand-action { width: 100%; border-color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.detail-dock .chatbar.docked { position: static; width: 100%; height: 54px; margin: 8px 0 0; }

.chatbar { position: absolute; left: 16px; right: 16px; bottom: 28px; height: 54px; border: 1px solid #e1e1e1; background: rgba(255,255,255,.96); border-radius: 28px; display: flex; align-items: center; gap: 12px; padding: 0 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.chat-mic { width: 20px; height: 20px; flex: 0 0 20px; }
.chatbar input { flex: 1; border: 0; outline: none; background: transparent; color: var(--muted); }
.chatbar input:not(:placeholder-shown) { color: var(--ink); }
.chatbar button { width: 44px; height: 44px; flex: 0 0 44px; padding: 10px; border: 0; border-radius: 50%; background: var(--ink); color: white; line-height: 1; }
.chatbar button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chatbar button:disabled, .chatbar input:disabled { opacity: .45; }
.chatbar .chat-mic { width: 44px; height: 44px; flex: 0 0 44px; margin-left: -12px; padding: 12px; border-radius: 50%; background: transparent; color: var(--ink); }
.chatbar .chat-mic.listening { position: relative; background: #fff1bd; box-shadow: 0 0 0 3px rgba(252,211,77,.2); }
.chatbar .chat-mic.listening::after { content: ""; position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #e24a3b; animation: voice-pulse 1.2s ease-in-out infinite; }
.chatbar.voice-active { border-color: #efd15c; background: #fffdf5; }

.source-scroll { inset: 118px 0 118px; padding: 12px 16px 28px; }
.source-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--paper); color: var(--ink); text-decoration: none; border-radius: 16px; padding: 12px 16px; margin-bottom: 24px; overflow-wrap: anywhere; }
.source-link.unavailable { color: var(--muted); }
.source-heading { display: grid; grid-template-columns: minmax(0, 1fr) 82px; align-items: center; gap: 18px; min-height: 82px; padding: 0 8px 16px; }
.source-heading > div { min-width: 0; }
.source-heading h1 { font-size: 24px; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.source-heading.no-preview { display: block; }
.source-heading.no-preview > div { width: 100%; min-height: 82px; display: flex; flex-direction: column; justify-content: center; }
.source-preview-image { width: 82px; height: 82px; flex: 0 0 82px; border-radius: 12px; object-fit: cover; }
.source-meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
.source-block { background: var(--paper); border-radius: 24px; padding: 14px 12px; margin-bottom: 12px; font-size: 14px; line-height: 1.55; }
.source-block strong { display: block; margin-bottom: 7px; font-size: 13px; }
.source-block p { margin: 0; }
.source-primary-group, .source-secondary-group { margin-bottom: 24px; }
.source-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 4px 12px; }
.source-group-heading h2 { margin: 0; font-size: 20px; line-height: 1.35; }
.source-group-heading.secondary h2 { color: #666; font-size: 16px; }
.source-primary-block { margin-bottom: 12px; border: 1px solid #e2e2e2; border-radius: 20px; padding: 18px; }
.source-primary-block strong { display: block; margin-bottom: 8px; font-size: 16px; line-height: 1.35; }
.source-primary-block p { margin: 0; font-size: 15px; line-height: 1.7; }
.insight-block { border-color: #f0d56a; background: #fff8d9; }
.relevance-block { background: #fff; }
.source-deepen { width: 100%; min-height: 48px; margin-top: 14px; border: 0; border-radius: 24px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 650; cursor: pointer; }
.source-deepen:disabled { cursor: wait; opacity: .58; }
.source-secondary-group { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.source-secondary-group .source-link { margin-bottom: 12px; background: #f3f3f3; color: #555; font-size: 13px; }
.source-secondary-group .source-block { border-radius: 16px; padding: 14px 16px; color: #666; font-size: 13px; }
.source-secondary-group .source-block strong { color: #858585; font-size: 12px; }
.quote-block { border-left: 3px solid #d5d5d5; padding-left: 16px; }
.decision-area { position: absolute; left: 0; right: 0; bottom: 0; min-height: 118px; padding: 10px 28px calc(18px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); box-shadow: 0 -4px 12px rgba(0,0,0,.04); z-index: 8; }
.decision-area small { color: var(--muted); }
.decision-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 15px; }
.decision-buttons button { height: 48px; border: 0; border-radius: 28px; }
.decision-buttons .keep { background: var(--ink); color: white; }
.discarded-decision small { display: block; margin-bottom: 12px; }
.undo-discard { width: 100%; height: 48px; border: 1px solid var(--ink); border-radius: 28px; background: white; color: var(--ink); font-weight: 650; cursor: pointer; }

.sketch-backdrop { position: absolute; inset: 0; z-index: 70; display: flex; align-items: stretch; padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom)); background: rgba(0,0,0,.38); }
.sketch-panel { width: 100%; min-height: 0; margin: auto 0; padding: 18px; border-radius: 28px; display: flex; flex-direction: column; gap: 14px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.sketch-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sketch-heading h2 { margin: 0; font-size: 22px; }
.sketch-heading p { margin: 5px 0 0; color: #888; font-size: 12px; line-height: 1.45; }
.sketch-heading > button { width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 50%; background: #f1f1f1; font-size: 26px; }
.sketch-toolbar { min-height: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 1px repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 5px; }
.sketch-tool { min-width: 0; min-height: 54px; padding: 5px 2px; border: 0; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: transparent; color: #777; font-size: 10px; }
.sketch-tool svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.sketch-tool.active { background: #242424; color: #fff; }
.sketch-tool:disabled { opacity: .28; }
.sketch-tool-divider { width: 1px; height: 34px; align-self: center; background: #e5e5e5; }
#sketch-canvas { display: block; width: 100%; height: min(52dvh, 430px); border: 1px solid #dedede; border-radius: 20px; background: #fff; touch-action: none; }
#sketch-canvas.tool-pen { cursor: crosshair; }
#sketch-canvas.tool-eraser { cursor: cell; }
.sketch-actions { display: grid; grid-template-columns: .75fr 1.25fr; gap: 10px; }
.sketch-actions button { height: 48px; border: 1px solid #d6d6d6; border-radius: 24px; background: #fff; }
.sketch-actions .save-sketch { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 650; }
.focus-backdrop { position: absolute; inset: 0; z-index: 72; display: flex; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); background: rgba(0,0,0,.4); }
.focus-panel { width: 100%; max-height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 12px; margin: auto 0; padding: 16px; border-radius: 24px; background: #fff; overflow-y: auto; }
.focus-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.focus-heading h2 { margin: 0; font-size: 19px; }
.focus-heading p { margin: 5px 0 0; color: #777; font-size: 12px; }
.focus-heading button { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; background: #f1f1f1; font-size: 24px; }
.focus-image-wrap { min-height: 180px; max-height: 42dvh; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: #f5f5f5; }
.focus-image-stage { position: relative; display: inline-block; max-width: 100%; touch-action: none; }
.focus-image-stage img { display: block; max-width: 100%; max-height: 42dvh; object-fit: contain; }
.focus-drawing { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.focus-drawn-path { fill: rgba(255,209,62,.22); stroke: #ffd13e; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.focus-actions { display: flex; gap: 10px; }
.focus-actions button { min-height: 44px; flex: 1; padding: 0 12px; border: 1px solid #dcdcdc; border-radius: 12px; background: #fff; color: #333; font-size: 13px; }
.focus-actions button:disabled { color: #aaa; }
.focus-disclosure { margin: 0; color: #777; font-size: 11px; line-height: 1.5; }
.focus-save { min-height: 48px; border: 0; border-radius: 13px; background: #242424; color: #fff; font-weight: 650; }

.capture-help-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--yellow); }
.capture-help-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.capture-help h2 { text-align: center; }

.project-card { min-height: 210px; }
.project-card h2 { width: 100%; padding-right: 0; }
.progress { height: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 0 24px; padding: 0; }
.progress span { background: #eee; border-radius: 999px; }
.progress span.done { background: var(--ink); }
.stage-label { text-align: center; min-height: 20px; margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 20px; }
.recommendation { background: var(--paper); border-radius: 24px; padding: 12px 14px 16px; margin-bottom: 12px; }
.recommendation-head { display: flex; justify-content: space-between; align-items: center; }
.recommendation h2 { margin: 0 0 8px; font-size: 24px; }
.radio { width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; background: white; }
.radio.selected::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.recommendation dl { margin: 0; }
.recommendation dt { margin-top: 7px; font-size: 14px; }
.recommendation dd { margin: 5px 0 0; background: #ececec; border-radius: 12px; min-height: 60px; padding: 12px; font-size: 14px; line-height: 1.45; }

.task-panel { background: var(--paper); border-radius: 24px; padding: 14px 24px; }
.task-panel h1 { margin: 0 0 10px; font-size: 24px; }
.plan-context { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.plan-context span { font-size: 12px; color: var(--muted); }
.plan-context p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.stage-history { margin-bottom: 12px; padding: 12px 16px; border-radius: 16px; background: #f4f4f4; }
.stage-history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.stage-history-heading h2 { margin: 0 0 8px; font-size: 16px; }
.stage-history-heading > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.stage-history details { border-top: 1px solid #ddd; padding: 8px 0; }
.stage-history summary { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; cursor: pointer; }
.stage-history ul { margin: 8px 0 0; padding-left: 18px; color: #666; font-size: 12px; line-height: 1.8; }
.stage-history-content { padding-top: 8px; }
.stage-history-content h3 { margin: 8px 0 4px; font-size: 12px; }
.no-stage-chat { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.task-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: start; min-height: 52px; padding: 4px 0; cursor: pointer; }
.task-main { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; min-width: 0; }
.checkbox { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.checkbox:active { background: #ececec; }
.checkbox::before { content: ""; width: 18px; height: 18px; box-sizing: border-box; border: 1px solid var(--ink); background: white; }
.checkbox.checked::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; line-height: 1; }
.task-chevron { position: relative; width: 44px; height: 44px; transition: transform .18s ease; }
.task-chevron::after { content: ""; position: absolute; left: 17px; top: 16px; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
.task-chevron.expanded { transform: rotate(180deg); }
.task-detail { grid-column: 1 / -1; margin: 10px 0 0; padding: 12px; background: white; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.coach-note { text-align: center; font-size: 12px; margin: 10px 0 18px; }
.chat-history { margin: 14px 0; padding: 0 4px; font-size: 14px; }
.bubble { width: fit-content; max-width: 82%; padding: 11px 14px; border-radius: 14px; margin: 10px 0; line-height: 1.5; white-space: pre-wrap; }
.bubble.user { margin-left: auto; background: var(--soft-yellow); }
.bubble.agent { background: #f1f1f1; }
.bubble.pending { color: var(--muted); }
.chat-history.compact { margin: 6px 0 0; padding: 0; font-size: 12px; }
.chat-history.compact .bubble { max-width: 92%; padding: 8px 10px; margin: 6px 0; }

.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.2); display: grid; place-items: center; z-index: 20; padding: 32px; }
.modal { width: 100%; max-width: 286px; background: white; border-radius: 20px; padding: 26px 28px 18px; text-align: center; }
.modal h2 { color: #ffa923; margin: 0 0 24px; font-size: 20px; line-height: 1.45; }
.modal h2.danger-title { color: #c43b30; }
.modal p { font-size: 14px; margin: 0 0 26px; }
.modal-buttons { display: flex; justify-content: space-between; gap: 18px; }
.modal-buttons button { flex: 1; min-height: 44px; border: 0; border-radius: 12px; }
.modal-buttons .confirm { background: var(--soft-yellow); }
.modal-buttons .danger-confirm { background: #c43b30; color: white; }

.sheet { position: absolute; inset: 0; z-index: 30; background: rgba(0,0,0,.22); display: flex; align-items: flex-end; }
.sheet-panel { width: 100%; background: white; border-radius: 28px 28px 0 0; padding: 24px 20px calc(22px + var(--safe-bottom)); }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-panel h2 { margin: 0; }
.sheet-panel .sheet-close { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f3f3f3; text-align: center; font-size: 26px; line-height: 1; }
.sheet-panel .menu-toggle { height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu-toggle span { display: grid; gap: 3px; }
.menu-toggle b { font-weight: 500; }
.menu-toggle small { color: var(--muted); font-size: 11px; }
.toggle-switch { position: relative; width: 44px; height: 26px; flex: 0 0 44px; border-radius: 99px; background: #d8d8d8; transition: .2s ease; }
.toggle-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: .2s ease; }
.toggle-switch.on { background: var(--ink); }
.toggle-switch.on::after { transform: translateX(18px); }
.sheet-panel button { width: 100%; height: 48px; border: 0; border-top: 1px solid var(--line); background: white; text-align: left; }
.compact-sheet { padding-bottom: calc(18px + var(--safe-bottom)); }
.compact-sheet > button:not(.sheet-close) { padding: 0 4px; font-size: 16px; }
.relation-sheet { max-height: min(76dvh, 640px); display: flex; flex-direction: column; }
.relation-sheet .sheet-heading { align-items: flex-start; }
.relation-sheet .sheet-heading p { margin: 5px 0 0; color: #888; font-size: 12px; line-height: 1.45; }
.relation-list { min-height: 80px; overflow-y: auto; margin: 8px 0 14px; }
.sheet-panel .relation-option { height: auto; min-height: 70px; padding: 12px 4px; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; }
.relation-option > span { min-width: 0; }
.relation-option b, .relation-option small { display: block; }
.relation-option b { margin-bottom: 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.relation-option small { color: #888; font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.relation-option i { width: 24px; height: 24px; flex: 0 0 24px; border: 1.5px solid #aaa; border-radius: 50%; }
.relation-option.selected i { border-color: var(--ink); box-shadow: inset 0 0 0 5px #fff; background: var(--ink); }
.relation-empty { color: #888; text-align: center; padding: 20px 0; }
.sheet-panel .relation-done { height: 48px; flex: 0 0 48px; border: 0; border-radius: 24px; background: var(--ink); color: #fff; text-align: center; font-weight: 650; }
.danger { color: #c43b30; }

.relation-picker-backdrop { position: absolute; inset: 0; z-index: 34; display: flex; align-items: flex-end; background: rgba(0,0,0,.42); }
.relation-picker { width: 100%; height: calc(100% - 66px); min-height: 520px; display: grid; grid-template-rows: 18px auto auto auto minmax(0, 1fr) auto; padding: 8px 16px 0; overflow: hidden; border-radius: 26px 26px 0 0; background: #fff; animation: relation-enter .22s ease-out; }
.relation-handle { width: 42px; height: 5px; align-self: center; justify-self: center; border-radius: 99px; background: #e8e8e8; }
.relation-heading { min-height: 52px; display: flex; align-items: center; justify-content: space-between; }
.relation-heading h2 { margin: 0; font-size: 19px; }
.relation-heading button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 25px; color: #777; }
.relation-search { height: 48px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 4px; margin-bottom: 12px; padding: 0 14px; border-radius: 13px; background: #f2f2f2; color: #888; }
.relation-search span { display: grid; place-items: center; }
.relation-search svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.relation-search input { width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.relation-filters { position: relative; z-index: 4; min-height: 48px; display: flex; align-items: flex-start; gap: 8px; overflow: visible; padding-bottom: 12px; }
.relation-filter-wrap { position: relative; flex: 0 0 auto; }
.relation-filter-trigger { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 13px; border: 1px solid #d0d0d0; border-radius: 10px; background: #fff; font-size: 14px; }
.relation-filter-wrap.open .relation-filter-trigger { border-color: #777; background: #f8f8f8; }
.filter-chevron { position: relative; width: 13px; height: 13px; flex: 0 0 13px; transition: transform .18s ease; }
.filter-chevron::after { content: ""; position: absolute; left: 3px; top: 2px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.relation-filter-wrap.open .filter-chevron { transform: rotate(180deg); }
.relation-filter-menu { position: absolute; top: 42px; left: 0; width: max-content; min-width: 116px; padding: 6px; border: 1px solid #e1e1e1; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.relation-filter-menu button { width: 100%; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 10px; border: 0; border-radius: 8px; background: #fff; text-align: left; font-size: 14px; }
.relation-filter-menu button.active { background: #f1f1f1; font-weight: 650; }
.relation-filter-menu button span { visibility: hidden; font-size: 13px; }
.relation-filter-menu button.active span { visibility: visible; }
.relation-picker .relation-list { min-height: 0; margin: 0 -2px; padding: 0 2px 18px; overflow-y: auto; }
.relation-picker .relation-option { position: relative; width: 100%; min-height: 112px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 10px; padding: 15px 16px; border: 1.5px solid transparent; border-radius: 18px; background: #fafafa; text-align: left; }
.relation-picker .relation-option.selected { border-color: var(--ink); background: #fff; }
.relation-copy { min-width: 0; display: grid; gap: 7px; }
.relation-copy small { color: #a3a3a3; font-size: 12px; font-style: normal; }
.relation-copy b { font-size: 16px; line-height: 1.35; }
.relation-copy em { color: #666; font-size: 13px; line-height: 1.45; font-style: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.relation-picker .relation-option i { width: 23px; height: 23px; flex: 0 0 23px; margin-top: 2px; border: 1.5px solid #aaa; border-radius: 50%; }
.relation-picker .relation-option.selected i { border-color: var(--ink); box-shadow: inset 0 0 0 5px #fff; background: var(--ink); }
.relation-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 -16px; padding: 12px 16px calc(12px + var(--safe-bottom)); border-top: 1px solid #eee; background: #fff; }
.relation-footer button { height: 48px; border: 0; border-radius: 13px; background: #ececec; color: #666; font-weight: 650; }
.relation-footer .relation-confirm { background: var(--ink); color: #fff; }
.relation-empty { color: #888; text-align: center; padding: 34px 0; }
@keyframes relation-enter { from { transform: translateY(30px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }

.drawer-backdrop { position: absolute; inset: 0; z-index: 36; background: rgba(0,0,0,.52); }
.side-drawer { width: min(82%, 352px); height: 100%; display: flex; flex-direction: column; padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + var(--safe-bottom)); background: #fff; box-shadow: 14px 0 35px rgba(0,0,0,.13); animation: drawer-enter .22s ease-out; }
.drawer-heading { min-height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px 14px; border-bottom: 1px solid #eee; }
.drawer-heading small { color: #999; font-size: 12px; }
.drawer-heading h2 { margin: 4px 0 0; font-size: 23px; }
.drawer-heading > button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #f3f3f3; font-size: 24px; }
.drawer-menu { display: grid; gap: 0; margin-top: 18px; }
.drawer-menu > button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 10px; border: 0; border-bottom: 1px solid #eee; background: #fff; text-align: left; }
.drawer-menu > button > span:last-child { color: #aaa; font-size: 22px; }
.drawer-menu .menu-toggle { min-height: 70px; }
@keyframes drawer-enter { from { transform: translateX(-28px); opacity: .75; } to { transform: translateX(0); opacity: 1; } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: rgba(36,36,36,.92); color: white; padding: 10px 16px; border-radius: 20px; opacity: 0; pointer-events: none; transition: .22s ease; z-index: 100; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loading { display: grid; place-items: center; height: 100%; background: white; text-align: center; padding: 40px; }
.loading-mark { width: 58px; height: 58px; border-radius: 50%; border: 5px solid #eee; border-top-color: var(--yellow); animation: spin .8s linear infinite; margin: 0 auto 20px; }
.plan-loading-card { margin: 28px 8px; padding: 34px 24px; border-radius: 26px; background: var(--paper); text-align: center; }
.plan-loading-card h2 { margin: 0 0 10px; font-size: 20px; }
.plan-loading-card p { margin: 0 auto 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.plan-loading-card .primary-btn { width: 150px; margin: 0 auto; }
.plan-error-mark { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; background: #fff1bf; color: #745600; font-size: 26px; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes voice-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes record-tools-enter { from { opacity: .55; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.home-indicator { position: absolute; bottom: 8px; left: 50%; width: 144px; height: 5px; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 40; }

.device-chrome-hidden .statusbar,
.device-chrome-hidden .home-indicator { visibility: hidden; }
.device-chrome-hidden .keyboard-open { --keyboard-height: 0px; }
.device-chrome-hidden .ios-keyboard { display: none; }
.device-chrome-hidden .keyboard-toolbar { bottom: calc(var(--visual-keyboard-offset, 0px) + max(8px, env(safe-area-inset-bottom))); }
.device-chrome-hidden .keyboard-open > .voice-status { bottom: calc(var(--visual-keyboard-offset, 0px) + 65px); }

@media (max-width: 519px), (max-height: 519px) and (orientation: landscape) {
  #app { width: 100%; height: 100dvh; min-height: 100dvh; }
  .phone { width: 100%; max-width: none; height: 100dvh; min-height: 100dvh; }
  .statusbar { padding-top: calc(21px + env(safe-area-inset-top)); height: calc(50px + env(safe-area-inset-top)); }
  .island { top: calc(12px + env(safe-area-inset-top)); }
  .status-time { padding-left: max(12px, env(safe-area-inset-left)); }
  .signals { padding-right: max(12px, env(safe-area-inset-right)); gap: 6px; }
  .topbar { height: 60px; padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .home-topbar { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  .home-header { padding: 0 clamp(14px, 5vw, 20px); }
  .tabs { gap: 2px; }
  .tab { padding-left: clamp(10px, 3.2vw, 13px); padding-right: clamp(10px, 3.2vw, 13px); }
  .screen-scroll { top: calc(112px + env(safe-area-inset-top)); }
  .home-scroll { top: calc(162px + env(safe-area-inset-top)); padding-left: clamp(14px, 5vw, 20px); padding-right: clamp(14px, 5vw, 20px); }
  .home-searching .home-scroll { top: calc(218px + env(safe-area-inset-top)); }
  .bottom-nav { height: calc(87px + var(--safe-bottom)); padding-bottom: var(--safe-bottom); }
  .screen-scroll:not(.detail-scroll):not(.source-scroll):not(.idea-edit-scroll):not(.understanding-edit-scroll):not(.collision-detail-scroll) { bottom: calc(87px + var(--safe-bottom)); }
  .card { padding-left: clamp(18px, 6vw, 24px); padding-right: clamp(18px, 6vw, 24px); }
  .toast { max-width: calc(100vw - 32px); white-space: normal; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 359px) {
  .brand-title { font-size: 18px; }
  .tab { font-size: 14px; padding-left: 9px; padding-right: 9px; }
  .bottom-nav { grid-template-columns: 1fr 66px 1fr; gap: 8px; padding-left: 18px; padding-right: 18px; }
  .add-btn { width: 60px; height: 60px; }
  .card h2 { font-size: 20px; }
  .empty { padding-left: 12px; padding-right: 12px; }
}
html.direct-file-open,
html.direct-file-open body {
  min-height: 100%;
  background: #f4f4f2;
}

#direct-open-notice {
  min-height: 100vh;
  padding: 40px 20px;
  display: grid;
  place-items: center;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

#direct-open-notice[hidden] {
  display: none;
}

.direct-open-card {
  width: min(100%, 520px);
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.09);
}

.direct-open-mark {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffd84d;
  font-weight: 700;
}

.direct-open-card h1 {
  margin: 22px 0 12px;
  font-size: 28px;
}

.direct-open-card p,
.direct-open-card li {
  font-size: 16px;
  line-height: 1.8;
}

.direct-open-card ol {
  margin: 20px 0;
  padding-left: 24px;
}

.direct-open-tip {
  margin-bottom: 0;
  color: #777;
}

.direct-open-skip { width: 100%; min-height: 48px; margin-top: 24px; border: 0; border-radius: 12px; background: #242424; color: #fff; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.direct-open-card .direct-open-preview-tip { margin: 9px 0 0; color: #888; font-size: 12px; line-height: 1.5; text-align: center; }

/* 2026-09 inspiration orchestration UI */
.orchestration-home { padding-top: 8px; }
.orchestration-banner { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 7px; margin-bottom: 14px; padding: 13px 14px; border-radius: 18px; background: #fff7d6; }
.orchestration-banner div { min-width: 0; display: grid; gap: 3px; }
.orchestration-banner span { color: #806b24; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.orchestration-banner b { font-size: 11px; font-weight: 650; white-space: nowrap; }
.orchestration-banner i { color: #b6a56c; font-size: 12px; font-style: normal; }
.idea-lifecycle-card { min-height: 315px; }
.idea-lifecycle-card .card-summary { margin-bottom: 11px; }
.card-state { padding: 5px 9px; border-radius: 999px; background: #f1f1f1; color: #6d6d6d; font-size: 11px; }
.card-state.lifecycle-处理中 { background: #fff3bf; color: #7b6417; }
.card-state.lifecycle-待确认 { background: #232323; color: #fff; }
.card-state.lifecycle-孵化中 { background: #e7f0e5; color: #43663e; }
.card-state.lifecycle-已解析 { background: #e8e8e8; color: #4f4f4f; }
.card-next-step { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--yellow); background: #fbfbfb; color: #686868; font-size: 12px; line-height: 1.5; }
.idea-lifecycle-card .card-next-step { margin-bottom: 42px; }
.idea-lifecycle-card .card-footer { bottom: 14px; }
.eyebrow { color: #7d6923; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.detail-lifecycle-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 4px 4px 16px; }
.detail-lifecycle-head h1 { margin: 7px 0 0; font-size: 26px; line-height: 1.24; }
.detail-lifecycle-head > span { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #ececec; color: #6e6e6e; font-size: 11px; }
.original-record-card, .role-task-card, .dimension-section, .uncertainty-card { margin-bottom: 14px; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 3px 15px rgba(0,0,0,.035); }
.record-card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.record-card-heading button { border: 0; background: transparent; color: #777; font-size: 12px; }
.role-tag { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.role-tag.human { background: #232323; color: #fff; }
.original-record-card > p { margin: 8px 0 12px; font-size: 14px; line-height: 1.7; }
.original-record-card > small { color: #999; font-size: 11px; line-height: 1.5; }
.orchestration-timeline { margin: 18px 2px; padding: 4px 0 2px; }
.task-step { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 11px; min-height: 78px; }
.task-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 1px; background: #dadada; }
.task-step > span { position: relative; z-index: 1; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #d6d6d6; border-radius: 50%; background: var(--paper); color: #999; font-size: 11px; }
.task-step.done > span { border-color: #232323; background: #232323; color: #fff; }
.task-step.active > span { border-color: var(--yellow); background: var(--yellow); color: #232323; }
.task-step div { padding-bottom: 18px; }
.task-step small { display: block; margin-bottom: 3px; color: #999; font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.task-step b { font-size: 13px; font-weight: 650; }
.task-step p { margin: 4px 0 0; color: #808080; font-size: 11px; line-height: 1.5; }
.role-task-card.ai-understanding { background: #fff7d6; }
.role-task-heading { display: grid; grid-template-columns: 12px 1fr; align-items: start; gap: 10px; }
.role-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #232323; }
.role-dot.ai { background: #d9aa00; }
.role-dot.harness { background: #798a74; }
.role-task-heading small { display: block; margin-bottom: 4px; color: #8b782c; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.role-task-heading h2 { margin: 0; font-size: 18px; line-height: 1.35; }
.role-task-card > p { margin: 12px 0 0; font-size: 13px; line-height: 1.65; }
.insight-definition { margin: 15px 0 0; }
.insight-definition dt { margin-top: 12px; color: #8b782c; font-size: 10px; font-weight: 700; }
.insight-definition dd { margin: 4px 0 0; font-size: 13px; line-height: 1.65; }
.inline-decision { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.inline-decision button { min-height: 42px; border: 0; border-radius: 14px; background: rgba(255,255,255,.75); font-size: 12px; }
.inline-decision button.confirm { background: #232323; color: #fff; }
.confirmed-note { margin-top: 14px; color: #5c6b3f; font-size: 12px; font-weight: 650; }
.dimension-section { box-shadow: none; border: 1px solid #ececec; }
.dimension-heading { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.dimension-heading > span { color: #b49a36; font-size: 11px; font-weight: 700; }
.dimension-heading small { display: block; margin-bottom: 3px; color: #9a9a9a; font-size: 9px; letter-spacing: .08em; }
.dimension-heading h2 { margin: 0; font-size: 17px; }
.dimension-section > p { margin: 14px 0 0; color: #555; font-size: 13px; line-height: 1.7; }
.dimension-link { width: 100%; min-height: 40px; margin-top: 12px; border: 0; border-radius: 12px; background: #f5f5f5; color: #555; font-size: 12px; text-align: left; padding: 0 12px; }
.dimension-section .discovery { margin-top: 12px; }
.related-idea-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.related-idea-chips button { min-height: 36px; padding: 0 11px; border: 1px solid #dedede; border-radius: 999px; background: #fff; font-size: 11px; }
.possibility-section ol { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: possibility; }
.possibility-section li { position: relative; padding: 12px 12px 12px 42px; border-radius: 14px; background: #f7f7f7; font-size: 12px; line-height: 1.55; counter-increment: possibility; }
.possibility-section li::before { content: "0" counter(possibility); position: absolute; left: 12px; top: 12px; color: #a68b28; font-size: 10px; font-weight: 700; }
.uncertainty-inline { margin-top: 14px; padding: 12px; border-radius: 14px; background: #fff7d6; }
.uncertainty-inline strong { font-size: 11px; }
.uncertainty-inline p { margin: 5px 0 0; color: #695e39; font-size: 11px; line-height: 1.5; }
.orchestration-actions .detail-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; }
.orchestration-actions .detail-actions button { min-height: 44px; margin: 0; }
.association-scroll { inset: 116px 0 166px; padding-top: 8px; }
.association-hero { padding: 6px 2px 14px; }
.association-hero h1 { margin: 7px 0 8px; font-size: 26px; line-height: 1.22; }
.association-hero p { margin: 0; color: #777; font-size: 13px; line-height: 1.65; }
.association-role-strip { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 12px; border-radius: 16px; background: #fff7d6; }
.association-role-strip span { display: grid; gap: 2px; font-size: 9px; color: #7b704f; }
.association-role-strip b { color: #2d2d2d; font-size: 11px; }
.association-role-strip i { color: #b2a166; font-style: normal; }
.association-section-title { margin: 22px 0 10px; font-size: 17px; }
.association-modes { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.association-modes button { flex: 0 0 auto; min-height: 38px; padding: 0 13px; border: 1px solid #ddd; border-radius: 999px; background: transparent; font-size: 11px; }
.association-modes button.active { border-color: #232323; background: #232323; color: #fff; }
.association-heading-row { display: flex; align-items: center; justify-content: space-between; }
.association-heading-row > span { color: #888; font-size: 11px; }
.association-candidates { display: grid; gap: 9px; }
.association-candidate { width: 100%; display: grid; grid-template-columns: 29px 1fr; gap: 10px; align-items: start; padding: 14px; border: 1px solid #e7e7e7; border-radius: 17px; background: #fff; text-align: left; }
.association-candidate.selected { border-color: #d5ad18; background: #fff8dc; }
.association-check { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #efefef; font-size: 13px; }
.association-candidate.selected .association-check { background: var(--yellow); }
.association-candidate strong { display: block; font-size: 13px; }
.association-candidate p { margin: 5px 0 0; color: #777; font-size: 11px; line-height: 1.5; }
.association-dock { position: absolute; z-index: 8; left: 0; right: 0; bottom: 88px; padding: 10px 20px; background: linear-gradient(transparent, var(--paper) 20%); }
.association-dock .primary-btn { min-height: 48px; }
.association-result-scroll { inset: 116px 0 92px; }
.combination-origin { margin-bottom: 14px; padding: 18px; border-radius: 20px; background: #232323; color: #fff; }
.combination-origin .eyebrow { color: #e7c851; }
.combination-parent-row { display: grid; gap: 8px; margin-top: 13px; }
.combination-parent-row span { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.combination-parent-row b { font-size: 14px; }
.combination-possibilities { display: grid; gap: 10px; }
.combination-possibilities article { padding: 15px; border: 1px solid #e7e7e7; border-radius: 18px; background: #fff; }
.combination-possibilities article.selected { border-color: #d5ad18; background: #fff8dc; }
.combination-possibilities article > span { color: #a78a22; font-size: 10px; font-weight: 700; }
.combination-possibilities article p { margin: 8px 0 12px; font-size: 13px; line-height: 1.65; }
.combination-possibilities article button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 11px; background: #f1f1f1; font-size: 11px; }
.combination-possibilities article.selected button { background: #232323; color: #fff; }
.uncertainty-card { background: #fff7d6; }
.uncertainty-card strong { font-size: 12px; }
.uncertainty-card p { margin: 7px 0; font-size: 12px; line-height: 1.6; }
.uncertainty-card small { color: #776b48; font-size: 10px; line-height: 1.5; }
.association-result-dock { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: .8fr 1.4fr; gap: 9px; padding: 11px 20px max(14px, env(safe-area-inset-bottom)); background: rgba(249,249,249,.96); border-top: 1px solid #ececec; }
.association-result-dock button { min-height: 48px; border: 0; border-radius: 16px; background: #ececec; font-size: 12px; font-weight: 650; }
.association-result-dock .primary-btn { background: #232323; color: #fff; }
.association-result-dock button:disabled, .association-dock button:disabled { opacity: .45; }

@media (max-width: 370px) {
  .orchestration-banner { gap: 4px; padding-left: 10px; padding-right: 10px; }
  .orchestration-banner b { font-size: 10px; }
  .association-role-strip span { font-size: 8px; }
  .association-role-strip b { font-size: 10px; }
}

/* Mobile interaction pass: orchestration is expressed through states and progression. */
:root {
  --page-gutter: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --radius-control: 14px;
  --radius-card: 18px;
}

.screen-scroll { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.home-header { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.orchestration-home { padding-top: 0; }

.idea-lifecycle-card,
.idea-lifecycle-card.no-preview,
.idea-lifecycle-card.processing-card {
  min-height: 0;
  padding: 18px 16px 16px;
  border: 1px solid #eeeeee;
  border-radius: var(--radius-card);
  box-shadow: none;
}
.idea-lifecycle-card h2 { margin-bottom: 8px; font-size: 18px; line-height: 1.35; }
.idea-lifecycle-card .card-summary { margin-bottom: 12px; font-size: 14px; line-height: 1.55; }
.idea-lifecycle-card .card-next-step { margin: 12px 0 10px; padding: 10px 12px; border-left-width: 2px; border-radius: 0 10px 10px 0; font-size: 13px; }
.idea-lifecycle-card .card-footer { position: static; min-height: 44px; margin: 4px -6px -8px 0; align-items: center; font-size: 12px; }
.idea-lifecycle-card .card-state { position: static; padding: 0; border-radius: 0; background: transparent; color: #969696; font-size: 11px; font-weight: 400; white-space: nowrap; }
.idea-lifecycle-card .card-footer-meta { display: inline-flex; align-items: center; min-width: 0; gap: 6px; color: #999; font-size: 11px; }
.idea-lifecycle-card .card-state::before { content: '·'; margin-right: 6px; }
.idea-lifecycle-card h2 { width: 100%; }
.idea-lifecycle-card .card-preview-image { top: 61px; right: 16px; width: 72px; height: 72px; }
.idea-lifecycle-card .card-meta-row { gap: 6px; }
.meta-chip { min-height: 30px; font-size: 11px; }
.ai-status { min-height: 64px; padding: 12px; }
.ai-status b { font-size: 14px; }
.ai-status small { font-size: 12px; line-height: 1.45; }

.detail-scroll { bottom: 78px; padding-bottom: 28px; }
.detail-lifecycle-head { padding: 0 0 14px; }
.detail-lifecycle-head h1 { margin-top: 6px; font-size: 24px; line-height: 1.3; }
.eyebrow,
.section-kicker { display: inline-block; color: #766323; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.original-record-card,
.understanding-card,
.connection-card,
.dimension-section,
.uncertainty-card {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid #ececec;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: none;
}
.record-card-heading { margin-bottom: 10px; }
.record-card-heading button {
  min-width: 44px;
  min-height: 44px;
  margin: -10px -8px -10px 0;
  border-radius: 12px;
  font-size: 14px;
}
.original-record-card > p { margin: 8px 0 12px; font-size: 15px; line-height: 1.7; }
.original-record-card > small { font-size: 12px; }

.progress-summary {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: #f1f3ed;
}
.progress-summary.processing { background: #fff7d6; }
.progress-summary > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #71806c; color: white; font-size: 13px; }
.progress-summary.processing > span { background: transparent; }
.progress-summary strong { display: block; font-size: 14px; line-height: 1.4; }
.progress-summary p { margin: 3px 0 0; color: #6f6f6f; font-size: 12px; line-height: 1.5; }

.understanding-card { background: #fff7d6; border-color: #f1df94; }
.understanding-heading h2,
.connection-card h2 { margin: 5px 0 0; font-size: 19px; line-height: 1.4; }
.understanding-summary { margin: 12px 0 0; font-size: 15px; line-height: 1.65; }
.understanding-more { margin-top: 10px; }
.understanding-more > summary { min-height: 44px; display: flex; align-items: center; width: max-content; max-width: 100%; padding: 0 12px; border-radius: 12px; background: rgba(255,255,255,.72); color: #665924; cursor: pointer; font-size: 12px; font-weight: 650; list-style: none; }
.understanding-more > summary::-webkit-details-marker { display: none; }
.understanding-more[open] > summary { background: rgba(255,255,255,.5); }
.understanding-more:not([open]) + .confirmed-note { margin-top: 8px; }
.insight-definition { margin-top: 14px; }
.insight-definition dt { margin-top: 12px; font-size: 12px; }
.insight-definition dd { margin-top: 5px; font-size: 14px; line-height: 1.65; }
.inline-decision { gap: 8px; margin-top: 16px; }
.inline-decision button { min-height: 48px; border-radius: var(--radius-control); font-size: 14px; }
.confirmed-note { font-size: 13px; }

.dimension-heading { grid-template-columns: 26px 1fr; gap: 8px; }
.dimension-heading > span { font-size: 12px; }
.dimension-heading small { font-size: 11px; }
.dimension-heading h2 { font-size: 17px; line-height: 1.4; }
.dimension-section > p { margin-top: 12px; font-size: 14px; line-height: 1.65; }
.dimension-link { min-height: 48px; border-radius: var(--radius-control); font-size: 13px; }
.related-idea-chips button { min-height: 44px; font-size: 13px; }
.possibility-section li { font-size: 13px; }
.uncertainty-inline strong,
.uncertainty-inline p { font-size: 12px; }

.orchestration-actions .detail-actions { grid-template-columns: 1fr 1.35fr; }
.orchestration-actions .detail-actions button { min-height: 48px; border-radius: var(--radius-control); font-size: 14px; }
.detail-dock.orchestration-actions { height: 78px; padding-top: 10px; }
.detail-question-block { margin: 20px 0 8px; padding: 4px 0; }
.detail-question-block h2 { margin: 5px 0 12px; font-size: 18px; }
.detail-question-block .chatbar.docked { position: static; width: 100%; height: 54px; margin: 0; }

.association-scroll { inset: 116px 0 166px; padding-top: 0; }
.association-hero { padding: 0 0 4px; }
.association-hero h1 { margin: 6px 0 8px; font-size: 24px; line-height: 1.3; }
.association-hero p { font-size: 14px; line-height: 1.6; }
.association-section-title { margin: 20px 0 10px; font-size: 17px; }
.association-modes { gap: 8px; padding-bottom: 2px; }
.association-modes button { min-height: 44px; padding: 0 15px; font-size: 13px; }
.association-heading-row > span { font-size: 12px; }
.association-candidates { gap: 8px; }
.association-candidate { min-height: 76px; grid-template-columns: 32px 1fr; gap: 10px; padding: 14px; border-radius: var(--radius-card); }
.association-check { width: 30px; height: 30px; }
.association-candidate strong { font-size: 14px; line-height: 1.45; }
.association-candidate p { font-size: 12px; line-height: 1.5; }
.association-dock { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.association-dock .primary-btn { min-height: 52px; border-radius: var(--radius-control); font-size: 14px; }

.combination-origin { padding: 16px; border-radius: var(--radius-card); }
.combination-origin small { display: block; margin-top: 14px; color: #bdbdbd; font-size: 12px; line-height: 1.5; }
.connection-card p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; }
.combination-possibilities article { padding: 16px; border-radius: var(--radius-card); }
.combination-possibilities article p { font-size: 14px; }
.combination-possibilities article button { min-height: 44px; padding: 0 14px; border-radius: var(--radius-control); font-size: 13px; }
.uncertainty-card strong { font-size: 14px; }
.uncertainty-card p { font-size: 13px; }
.uncertainty-card small { font-size: 12px; }
.association-result-dock { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.association-result-dock button { min-height: 52px; border-radius: var(--radius-control); font-size: 14px; }

@media (max-width: 370px) {
  :root { --page-gutter: 14px; }
  .idea-lifecycle-card h2 { font-size: 17px; }
  .association-hero h1, .detail-lifecycle-head h1 { font-size: 22px; }
}

/* Automatic daily collision cards */
.auto-collision-screen .association-scroll { inset: 116px 0 90px; padding-top: 0; padding-bottom: 28px; }
.collision-hero { margin-bottom: 16px; padding-bottom: 0; }
.collision-hero h1 { margin-bottom: 7px; }
.collision-preference { margin-top: 18px; padding: 14px; border: 1px solid #e9e5d9; border-radius: 18px; background: #fff; }
.collision-preference > div:first-child { display: grid; gap: 3px; margin-bottom: 12px; }
.collision-preference strong { font-size: 14px; }
.collision-preference small { color: #858585; font-size: 12px; line-height: 1.45; }
.collision-preference-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.collision-preference-options button { min-width: 0; min-height: 44px; padding: 4px; border: 1px solid #e5e5e5; border-radius: 12px; background: #f8f8f8; font-size: 12px; font-weight: 600; }
.collision-preference-options button.active { border-color: #242424; background: #242424; color: #fff; }
.collision-progress { position: relative; height: 26px; margin-top: 14px; padding-top: 18px; }
.collision-progress::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 99px; background: #e9e9e9; }
.collision-progress > span { position: absolute; left: 0; top: 7px; width: var(--progress); height: 4px; border-radius: 99px; background: var(--ink); transition: width .25s ease; }
.collision-progress small { display: block; color: #8b8b8b; font-size: 11px; text-align: right; }
.daily-collision-list { display: grid; gap: 14px; }
.daily-collision-card { overflow: hidden; border: 1px solid #e8e8e8; border-radius: 22px; background: #fff; }
.daily-collision-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #efefef; }
.collision-graph-entry { width: 100%; min-height: 74px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 12px; align-items: center; gap: 10px; padding: 10px 16px; border: 0; border-bottom: 1px solid #efefef; background: #faf9f5; text-align: left; }
.collision-graph-entry > span:nth-child(2) { display: grid; gap: 3px; }
.collision-graph-entry strong { font-size: 13px; }
.collision-graph-entry small { color: #858585; font-size: 11px; line-height: 1.4; }
.collision-graph-entry > span:last-child { font-size: 23px; color: #777; }
.collision-mini-graph { height: 42px; position: relative; display: block; }
.collision-mini-graph::before, .collision-mini-graph::after { content: ""; position: absolute; top: 17px; width: 22px; height: 1px; background: #9b9277; }
.collision-mini-graph::before { left: 10px; transform: rotate(29deg); }
.collision-mini-graph::after { left: 30px; transform: rotate(-29deg); }
.collision-mini-graph i { position: absolute; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #9b9277; background: #fff; }
.collision-mini-graph i:first-child { left: 5px; }
.collision-mini-graph i:nth-child(2) { right: 5px; }
.collision-mini-graph b { position: absolute; bottom: 0; left: 23px; font-size: 16px; line-height: 16px; color: #9b7822; }
.daily-collision-card > header > div { display: grid; gap: 5px; }
.collision-level { width: max-content; padding: 5px 9px; border-radius: 999px; background: #232323; color: #fff; font-size: 11px; font-weight: 700; }
.level-中随机 .collision-level { background: #947717; }
.level-高随机 .collision-level { background: #70526d; }
.daily-collision-card header small { color: #777; font-size: 12px; }
.collision-index { color: #aaa; font-size: 12px; font-variant-numeric: tabular-nums; }
.daily-collision-card > section { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; }
.daily-collision-card section > small { display: block; margin-bottom: 6px; color: #8b782c; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.collision-evidence { border-bottom: 1px solid #f0f0f0; }
.collision-evidence > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; color: #6d6d6d; font-size: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.collision-evidence > summary::-webkit-details-marker { display: none; }
.collision-evidence > summary::after { content: "⌄"; font-size: 18px; transition: transform .2s ease; }
.collision-evidence[open] > summary::after { transform: rotate(180deg); }
.collision-evidence > section { padding: 14px 16px; border-top: 1px solid #f0f0f0; }
.collision-source { background: #fff9df; }
.collision-source p { margin: 0; font-size: 15px; line-height: 1.65; }
.collision-history { display: grid; gap: 8px; }
.collision-history > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.collision-history strong { font-size: 14px; line-height: 1.45; }
.collision-history span { flex: 0 0 auto; color: #aaa; font-size: 11px; }
.collision-reason p,
.collision-next p { margin: 0; color: #5f5f5f; font-size: 13px; line-height: 1.65; }
.collision-direction { background: #f5f6f2; }
.collision-direction h2 { margin: 0; font-size: 17px; line-height: 1.55; }
.collision-direction p { margin: 8px 0 0; color: #5d5d5d; font-size: 13px; line-height: 1.6; }
.collision-next p { color: #303030; }
.collision-next .collision-step-label { margin-top: 13px; }
.daily-collision-card > footer { display: grid; grid-template-columns: .8fr 1.15fr 1fr; gap: 8px; padding: 12px; }
.daily-collision-card footer button { min-width: 0; min-height: 48px; padding: 0 10px; border: 0; border-radius: 14px; background: #f0f0f0; font-size: 13px; }
.daily-collision-card footer button.keep { background: #232323; color: #fff; font-weight: 650; }
.collision-complete { padding: 52px 24px; border: 1px solid #e8e8e8; border-radius: 22px; background: #fff; text-align: center; }
.collision-complete > div { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: #e8efe4; color: #55704d; font-size: 22px; }
.collision-complete h2 { margin: 0 0 8px; font-size: 19px; }
.collision-complete p { margin: 0; color: #777; font-size: 13px; line-height: 1.6; }
.collision-tag-onboarding { display: grid; gap: 7px; margin-top: 16px; text-align: left; }
.collision-tag-onboarding button { min-height: 44px; padding: 8px 12px; border: 1px solid #e4e4e4; border-radius: 12px; background: #fff; font-size: 12px; text-align: left; }
.detail-graph-entry { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 10px 16px; border: 1px solid #e9e5d9; border-radius: 16px; background: #fff9df; text-align: left; }
.detail-graph-entry span { color: #9b7822; font-size: 22px; }
.detail-graph-entry strong { flex: 1; font-size: 14px; }
.detail-graph-entry i { font-size: 24px; font-style: normal; }
.collision-graph-screen { background: #f6f6f4; }
.collision-graph-viewport { position: absolute; inset: 116px 0 102px; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; scrollbar-width: none; }
.collision-graph-viewport::-webkit-scrollbar { display: none; }
.collision-graph-world { position: relative; width: 760px; height: 920px; background-color: #f6f6f4; background-image: radial-gradient(#dddcd6 1px, transparent 1px); background-size: 24px 24px; }
.collision-graph-scale { position: relative; }
.collision-graph-world { transform-origin: 0 0; }
.collision-graph-lines { position: absolute; inset: 0; overflow: visible; }
.collision-graph-lines > path { fill: none; stroke: #9b9277; stroke-width: 1.5; marker-end: url(#graph-arrow); }
.collision-graph-node { position: absolute; width: 170px; min-height: 100px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 13px; border: 1px solid #d8d8d5; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.055); text-align: left; }
.collision-graph-node small { color: #8c8778; font-size: 11px; font-weight: 700; }
.collision-graph-node strong { font-size: 14px; line-height: 1.4; }
.collision-graph-node span { margin-top: auto; color: #858585; font-size: 11px; }
.collision-graph-node.parent-one { left: 170px; top: 245px; }
.collision-graph-node.parent-two { left: 420px; top: 245px; }
.collision-graph-node.result { left: 270px; top: 510px; width: 220px; min-height: 128px; border-color: #d9bd6b; background: #fff8dc; }
.collision-graph-node.result.proposed { border-style: dashed; }
.collision-graph-caption { position: absolute; inset: auto 0 0; min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid #e7e7e4; background: #fff; }
.collision-graph-caption > div { display: grid; gap: 5px; }
.collision-graph-caption strong { font-size: 13px; }
.collision-graph-caption small { color: #858585; font-size: 11px; }
.collision-graph-caption button { min-width: 52px; min-height: 44px; border: 1px solid #e3e3e3; border-radius: 13px; background: #fff; font-size: 12px; }
.collision-graph-zoom { position: absolute; right: 16px; bottom: calc(118px + var(--safe-bottom)); z-index: 2; display: grid; grid-template-rows: 44px 32px 44px; justify-items: center; width: 48px; padding: 2px; border: 1px solid #e4e4e4; border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.collision-graph-zoom button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 13px; background: transparent; color: #242424; font-size: 23px; line-height: 1; }
.collision-graph-zoom button:active { background: #f2f2f2; }
.collision-graph-zoom button:disabled { color: #bbb; }
.collision-graph-zoom span { align-self: center; color: #777; font-size: 11px; font-variant-numeric: tabular-nums; }

@media (max-width: 370px) {
  .daily-collision-card > footer { grid-template-columns: .75fr 1.1fr 1fr; gap: 6px; padding: 10px; }
  .daily-collision-card footer button { padding: 0 7px; font-size: 12px; }
}

/* Inspiration detail: original record and extracted tags first. */
.detail-primary-card,
.detail-tags-card,
#detail-analysis { scroll-margin-top: 8px; }
.detail-primary-card { border-color: #d9d3bb; background: #fffdf5; }
.record-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.record-card-heading h2,
.detail-section-heading h2 { margin: 4px 0 0; font-size: 18px; line-height: 1.35; }
.record-meta { color: #777; font-size: 12px; line-height: 1.5; }
.original-record-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-tags-card { margin-bottom: 12px; padding: 16px; border: 1px solid #e8e4d7; border-radius: var(--radius-card); background: #fff; }
.detail-section-heading small { display: block; margin-top: 4px; color: #777; font-size: 12px; }
.detail-tags-card .capture-tag-list { margin: 14px 0; }
.detail-tags-card .capture-analysis-actions { margin-top: 10px; }
.capture-understanding { margin-top: 15px; }
.capture-understanding p:last-child { margin-bottom: 0; }
.detail-primary-card .attachment-strip { margin-top: 12px; }
.detail-primary-card .attachment-thumb:not(.audio-attachment) { width: 144px; flex-basis: 144px; }
.detail-primary-card .attachment-thumb:not(.audio-attachment) img { width: 144px; height: 112px; object-fit: contain; }
.detail-content-map { margin: 16px 0 12px; }
.detail-content-map > span { display: block; margin-bottom: 8px; color: #858585; font-size: 12px; font-weight: 650; }
.detail-content-map > div { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 3px; scrollbar-width: none; }
.detail-content-map > div::-webkit-scrollbar { display: none; }
.detail-content-map button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 1px solid #dedede; border-radius: 999px; background: #fff; font-size: 13px; }
.detail-content-map button:active { background: #f1f1f1; transform: scale(.97); }
.detail-fold-list { display: grid; gap: 8px; }
.detail-fold { scroll-margin-top: 8px; overflow: hidden; border: 1px solid #e9e9e9; border-radius: 16px; background: #fff; }
.detail-fold > summary { min-height: 68px; display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 10px; padding: 11px 12px 11px 16px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.detail-fold > summary::-webkit-details-marker { display: none; }
.detail-fold > summary > span { min-width: 0; display: grid; gap: 4px; }
.detail-fold > summary b { font-size: 15px; line-height: 1.4; }
.capture-scene p, .capture-understanding p { display: grid; gap: 5px; margin: 0 0 14px; color: #4f4f4f; font-size: 13px; line-height: 1.6; }
.capture-scene p strong, .capture-understanding p strong { color: #8a782f; font-size: 11px; }
.capture-tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 3px 0 14px; }
.capture-tag-list span { padding: 7px 10px; border-radius: 999px; background: #fff1bc; color: #554000; font-size: 12px; font-weight: 650; }
.capture-tag-list .pending { background: #f0f0f0; color: #777; }
.capture-analysis-note { margin-bottom: 12px; padding: 9px 11px; border-radius: 10px; background: #f7f3e7; color: #77663a; font-size: 11px; line-height: 1.5; }
.capture-analysis-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.capture-analysis-actions button { min-width: 0; min-height: 44px; padding: 6px; border: 1px solid #dedede; border-radius: 12px; background: #fff; font-size: 12px; }
.capture-analysis-actions button.confirm { border-color: #242424; background: #242424; color: #fff; }
.capture-tags-sheet p { margin: 2px 0 10px; color: #777; font-size: 12px; line-height: 1.5; }
.capture-tags-sheet input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #d9d9d9; border-radius: 11px; background: #fff; font-size: 14px; }
.capture-tags-sheet button.capture-tags-save { min-height: 48px; margin-top: 12px; background: #242424; color: #fff; }
.detail-fold > summary small { overflow: hidden; color: #888; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.detail-fold > summary i { position: relative; width: 32px; height: 32px; border-radius: 50%; background: #f3f3f3; }
.detail-fold > summary i::before,
.detail-fold > summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; border-radius: 2px; background: #6f6f6f; transform: translate(-50%, -50%); transition: transform .2s ease; }
.detail-fold > summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.detail-fold[open] > summary i::after { transform: translate(-50%, -50%) rotate(0); }
.detail-fold[open] > summary { border-bottom: 1px solid #eeeeee; }
.detail-fold-body { padding: 14px 16px 16px; }
.detail-fold-body > p { margin: 0; color: #555; font-size: 14px; line-height: 1.7; }
.detail-fold-body > .research-gate-note { margin-top: 12px; color: #898989; font-size: 12px; }
.detail-fold-body .discovery:first-child { margin-top: 0; }
.fold-action-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fold-action-row > small { color: #999; font-size: 11px; line-height: 1.45; }
.fold-action-row > button { flex: 0 0 auto; min-width: 52px; min-height: 44px; border: 0; border-radius: 12px; background: #f2f2f2; font-size: 13px; }
.detail-fold .related-idea-chips { margin-top: 0; }
.detail-fold.possibility-section ol { margin-top: 0; }

/* Mobile detail layout, aligned with the earlier single-card visual language. */
.orchestration-detail .detail-scroll { bottom: calc(142px + var(--safe-bottom)); padding-top: 6px; padding-bottom: 24px; }
.orchestration-detail .detail-primary-card { margin: 0 0 22px; padding: 18px 16px 14px; border: 0; border-radius: 20px; background: var(--paper); }
.detail-primary-card h1 { margin: 0 0 12px; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.detail-primary-card .attachment-strip { margin: 0 0 8px; }
.detail-primary-card .attachment-thumb:not(.audio-attachment) { width: 84px; flex-basis: 84px; }
.detail-primary-card .attachment-thumb:not(.audio-attachment) img { width: 84px; height: 72px; object-fit: cover; }
.detail-primary-card .original-record-text { margin: 10px 0 8px; font-size: 13px; line-height: 1.6; }
.detail-primary-card .original-record-text strong { font-weight: 650; }
.detail-primary-card .record-meta { margin: 0 0 14px; color: #919191; font-size: 12px; line-height: 1.5; }
.record-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.record-card-footer > span { padding-bottom: 8px; color: #999; font-size: 11px; line-height: 1.4; }
.record-card-footer > div { display: flex; flex: 0 0 auto; gap: 6px; }
.record-card-footer button { min-height: 44px; padding: 0 11px; border: 1px solid #dedede; border-radius: 999px; background: #fff; color: #242424; font-size: 12px; font-weight: 650; }
.orchestration-detail .detail-tags-card { margin: 0 0 20px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.orchestration-detail .detail-section-heading h2 { margin: 0; font-size: 18px; }
.orchestration-detail .detail-section-heading small { margin-top: 4px; font-size: 12px; }
.orchestration-detail .capture-tag-list { margin: 12px 0; }
.orchestration-detail .capture-tag-list span { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px; background: #f4f4f4; color: #333; font-size: 13px; }
.orchestration-detail .capture-tag-list .pending { color: #777; }
.orchestration-detail .capture-analysis-note { margin: 0 0 10px; padding: 0; background: none; color: #8a7a47; font-size: 12px; }
.orchestration-detail .capture-analysis-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.orchestration-detail .capture-analysis-actions button { min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 12px; }
.orchestration-detail .understanding-card { margin: 0 0 14px; padding: 16px; border: 0; border-radius: 18px; background: #f7f7f7; }
.orchestration-detail .understanding-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.orchestration-detail .understanding-heading h2 { margin: 0; font-size: 17px; }
.orchestration-detail .understanding-heading > span { color: #999; font-size: 11px; }
.orchestration-detail .understanding-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 10px 0 0; font-size: 14px; line-height: 1.6; }
.orchestration-detail .understanding-result { margin-top: 16px; }
.orchestration-detail .understanding-label { display: block; color: #777; font-size: 12px; font-weight: 650; line-height: 1.4; }
.orchestration-detail .understanding-summary { display: block; overflow: visible; margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.orchestration-detail .understanding-points { margin: 8px 0 0; padding-left: 18px; color: #555; font-size: 13px; line-height: 1.55; }
.orchestration-detail .understanding-points li + li { margin-top: 3px; }
.orchestration-detail .mechanism-result { margin-top: 15px; padding: 14px; border-radius: 14px; background: #fff; }
.orchestration-detail .mechanism-result p { margin: 7px 0 0; color: #202020; font-size: 16px; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }
.orchestration-detail .understanding-tags { margin-top: 17px; padding-top: 15px; border-top: 1px solid #e6e6e6; }
.orchestration-detail .understanding-tags-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.orchestration-detail .understanding-tags-heading small { color: #999; font-size: 11px; line-height: 1.4; }
.orchestration-detail .understanding-tags .capture-tag-list { margin: 10px 0 0; }
.orchestration-detail .understanding-tags .capture-tag-list span { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px; background: #fff; color: #333; font-size: 13px; }
.orchestration-detail .understanding-tags .capture-analysis-note { margin: 8px 0 0; padding: 0; background: transparent; color: #8a7a47; font-size: 12px; }
.orchestration-detail .inline-decision.single-action { grid-template-columns: 1fr; }
.orchestration-detail .understanding-more { margin-top: 12px; }
.orchestration-detail .understanding-more > summary { padding: 0; background: transparent; color: #666; font-size: 13px; }
.orchestration-detail .understanding-more[open] > summary { background: transparent; }
.orchestration-detail .capture-understanding p strong { color: #777; }
.orchestration-detail .detail-fold-list { gap: 8px; }
.orchestration-detail .detail-fold { border: 0; border-radius: 16px; background: #f7f7f7; }
.orchestration-detail .detail-fold > summary { min-height: 62px; padding: 10px 14px; }
.orchestration-detail .detail-fold > summary b { font-size: 15px; }
.orchestration-detail .detail-dock { height: calc(142px + var(--safe-bottom)); padding: 9px 18px calc(12px + var(--safe-bottom)); border-top: 1px solid #eee; box-shadow: none; }
.detail-incubate { display: block; width: 100%; min-height: 44px; border: 1px solid #555; border-radius: 999px; background: #fff; color: #222; font-size: 13px; font-weight: 650; }
.orchestration-detail .detail-dock .chatbar.docked { height: 52px; margin: 9px 0 0; }

/* Inspiration card: title and extracted tags precede supporting metadata. */
.idea-lifecycle-card .idea-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.idea-lifecycle-card.has-preview .idea-card-tags { max-width: calc(100% - 86px); }
.idea-card-tags span { display: inline-flex; align-items: center; min-height: 28px; max-width: 100%; padding: 4px 9px; border-radius: 999px; background: #f2f2f2; color: #626262; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.idea-lifecycle-card .card-summary { color: #4f4f4f; }
.idea-lifecycle-card .card-meta-row:not(.capture-source-row) { display: flex; gap: 12px; color: #999; font-size: 11px; line-height: 1.5; }
.idea-lifecycle-card .card-meta-row:not(.capture-source-row) span + span::before { content: '·'; margin-right: 12px; }
.idea-lifecycle-card .card-preview-image { top: 76px; }
.idea-lifecycle-card.processing-card .card-preview-image { position: static; display: block; width: 72px; height: 72px; margin: 12px 0 0 auto; }
.idea-lifecycle-card.processing-card .ai-status { position: relative; width: 100%; }
.idea-lifecycle-card.processing-card .card-summary,
.idea-lifecycle-card.processing-card .idea-card-tags { width: 100%; max-width: 100%; }
.idea-lifecycle-card .card-popover { right: 8px; width: 124px; bottom: 43px; }
.idea-lifecycle-card .card-popover button.danger { color: #b93d33; }
.idea-lifecycle-card .card-footer { margin-top: 10px; }

/* Detail hierarchy: Tag, core mechanism, then supporting record points. */
.orchestration-detail .understanding-tags { margin-top: 16px; padding-top: 0; border-top: 0; }
.orchestration-detail .understanding-tags .capture-tag-list { margin: 10px 0 0; }
.orchestration-detail .understanding-tags .capture-tag-list span { border: 1px solid #e3e3e3; background: #fff; font-weight: 650; }
.orchestration-detail .mechanism-result { margin-top: 16px; border: 1px solid #e7e7e7; }
.orchestration-detail .understanding-result { margin-top: 16px; padding-top: 15px; border-top: 1px solid #e6e6e6; }
.orchestration-detail .understanding-result .understanding-summary { color: #5b5b5b; font-size: 13px; }
.detail-fold-actions { display: grid; gap: 8px; margin-top: 14px; }
.detail-fold-actions .dimension-link { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 0 15px; border-radius: 13px; font-size: 14px; font-weight: 650; }
.detail-fold-actions .dimension-link span { font-size: 19px; font-weight: 400; }
.detail-fold-actions .dimension-link.primary { background: #242424; color: #fff; }
.detail-fold-actions .dimension-link.secondary { border: 1px solid #d8d8d8; background: #fff; color: #242424; }
.detail-fold-actions .dimension-link:disabled { opacity: .6; }

/* Collision library and mobile-first manual Tag pairing. */
.collision-hero { padding-top: 12px; }
.collision-hero h1 { margin: 4px 0 3px; font-size: 24px; }
.collision-hero p { margin: 0; color: #888; font-size: 12px; }
.collision-filter-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 18px; padding: 4px; border-radius: 14px; background: #f1f1f1; }
.collision-filter-tabs button { min-height: 44px; border: 0; border-radius: 11px; background: transparent; color: #777; font-size: 13px; font-weight: 600; }
.collision-filter-tabs button.active { background: #fff; color: #222; box-shadow: 0 1px 5px rgba(0,0,0,.06); }
.manual-collision-picker { display: grid; gap: 12px; margin: 0 0 14px; padding: 16px; border: 1px solid #e9e9e9; border-radius: 18px; background: #fff; }
.manual-collision-heading { display: grid; gap: 3px; }
.manual-collision-heading h2 { margin: 0; font-size: 16px; }
.manual-collision-heading small,
.manual-collision-picker > p { margin: 0; color: #888; font-size: 12px; line-height: 1.45; }
.manual-collision-fields { display: grid; gap: 9px; }
.manual-collision-fields label { display: grid; gap: 5px; color: #666; font-size: 12px; }
.manual-collision-fields select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #ddd; border-radius: 12px; background: #f8f8f8; color: #242424; font: inherit; font-size: 14px; }
.manual-collision-generate { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border: 0; border-radius: 13px; background: #242424; color: #fff; font-size: 14px; font-weight: 650; }
.manual-collision-generate:disabled { background: #ececec; color: #999; }
.manual-collision-generate span { font-size: 20px; font-weight: 400; }
.manual-collision-picker + .collision-preference { margin: 0 0 16px; }
.collision-view-toggle { min-height: 44px; min-width: 84px; padding: 0 8px; border: 1px solid #dedede; border-radius: 10px; background: #fff; color: #555; font-size: 12px; }
.collision-view-toggle:disabled { border-color: transparent; background: #f5f5f5; color: #888; }
.daily-collision-card > footer.collision-reviewed-footer { display: flex; align-items: center; justify-content: space-between; }
.collision-reviewed-footer span { color: #777; font-size: 12px; }
.collision-reviewed-footer button { padding: 0 14px !important; }
.manual-collision-picker { display: block; padding: 0; }
.manual-collision-picker > summary { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; cursor: pointer; list-style: none; }
.manual-collision-picker > summary::-webkit-details-marker { display: none; }
.manual-collision-picker > summary span { display: grid; gap: 4px; }
.manual-collision-picker > summary strong { font-size: 15px; }
.manual-collision-picker > summary small { color: #888; font-size: 11px; }
.manual-collision-picker > summary i { color: #777; font-size: 20px; font-style: normal; transition: transform .2s ease; }
.manual-collision-picker[open] > summary i { transform: rotate(180deg); }
.manual-collision-body { display: grid; gap: 12px; padding: 0 16px 16px; }
.manual-collision-body > p { margin: 0; color: #888; font-size: 12px; line-height: 1.45; }

/* Keep the collision home in the same visual family as the inspiration home. */
.auto-collision-screen .association-scroll { top: 170px; bottom: 90px; padding-top: 0; }
.collision-home-header .collision-filter-tabs { display: flex; gap: 5px; overflow-x: auto; margin: 0; padding: 4px 0 10px; border-radius: 0; background: transparent; }
.collision-home-header .collision-filter-tabs .tab { min-height: 44px; padding: 9px 13px; border-radius: 24px; background: transparent; color: #9e9e9e; box-shadow: none; white-space: nowrap; }
.collision-home-header .collision-filter-tabs .tab.active { background: var(--ink); color: #fff; font-weight: 650; }
.collision-list-count { margin: 0 0 12px; color: #999; font-size: 12px; }
.collision-home-header { position: relative; z-index: 3; background: var(--paper, #f8f8f8); }
.collision-list-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.collision-list-tools .collision-list-count { margin: 0; }
.collision-status-filter { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 14px; background: transparent; color: #777; font-size: 14px; }
.collision-status-filter.is-active { background: #ededed; color: #222; }
.collision-status-filter svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.collision-filter-note { margin: 0 20px 12px; color: #999; font-size: 12px; }
.collision-status-options { padding: 0 20px 20px; }
.collision-status-options button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 12px 14px; margin-bottom: 6px; border: 0; border-radius: 14px; background: #f7f7f7; color: #555; font-size: 16px; text-align: left; }
.collision-status-options button[aria-pressed="true"] { background: #ececec; color: #222; font-weight: 600; }
.collision-status-options small { margin-left: auto; color: #999; font-size: 13px; font-weight: 400; }
.collision-filter-check { width: 20px; text-align: center; }
.manual-collision-picker,
.collision-preference { border: 1px solid #eee; border-radius: var(--radius-card); background: #fff; box-shadow: none; }
.manual-collision-picker > summary { min-height: 58px; padding: 8px 16px; }
.manual-collision-picker > summary strong { color: #242424; font-size: 14px; font-weight: 650; }
.manual-collision-picker > summary small { color: #999; font-size: 11px; }
.collision-preference { margin: 0 0 12px; padding: 14px 16px; }
.collision-preference > div:first-child { margin-bottom: 10px; }
.collision-preference strong { font-size: 13px; }
.collision-preference small { color: #999; font-size: 11px; }
.collision-preference-options button { border-color: #ededed; border-radius: 12px; background: #f5f5f5; color: #666; font-size: 12px; }
.collision-preference-options button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.daily-collision-list { gap: 12px; }
.daily-collision-card { padding: 16px; border: 1px solid #eee; border-radius: var(--radius-card); box-shadow: none; }
.daily-collision-card > header { align-items: center; padding: 0; border: 0; }
.daily-collision-card > header > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.daily-collision-card header small { overflow: hidden; color: #999; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.collision-level { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #f2f2f2; color: #666; font-size: 11px; font-weight: 500; }
.collision-view-toggle { min-width: 72px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: #999; font-size: 11px; }
.collision-view-toggle:disabled { background: transparent; color: #aaa; }
.daily-collision-card > section.collision-direction { padding: 10px 0 12px; border: 0; background: transparent; }
.collision-direction h2 { width: 100%; margin: 0 0 9px; color: #242424; font-size: 18px; font-weight: 650; line-height: 1.35; }
.collision-source-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.collision-source-tags span { display: inline-flex; align-items: center; min-height: 28px; max-width: 100%; padding: 4px 9px; border-radius: 999px; background: #f2f2f2; color: #626262; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.collision-source-tags i { color: #aaa; font-size: 13px; font-style: normal; }
.collision-direction p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 10px 0 0; color: #555; font-size: 14px; line-height: 1.55; }
.collision-graph-entry { min-height: 52px; grid-template-columns: 30px minmax(0, 1fr) 12px; gap: 7px; padding: 7px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; background: transparent; }
.collision-mini-graph { width: 30px; height: 30px; transform: scale(.62); transform-origin: left center; }
.collision-graph-entry strong { color: #333; font-size: 12px; font-weight: 650; }
.collision-graph-entry small { color: #999; font-size: 11px; }
.collision-graph-entry > span:last-child { color: #999; font-size: 19px; }
.collision-expansion { border-bottom: 1px solid #eee; }
.collision-expansion > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; color: #777; font-size: 12px; list-style: none; cursor: pointer; }
.collision-expansion > summary::-webkit-details-marker { display: none; }
.collision-expansion > summary::after { content: '⌄'; font-size: 18px; }
.collision-expansion[open] > summary::after { transform: rotate(180deg); }
.collision-expansion > section,
.collision-expansion .collision-evidence > section { padding: 12px 0; border-top: 1px solid #f0f0f0; background: transparent; }
.collision-expansion small { color: #999; font-size: 11px; }
.collision-expansion p { margin: 5px 0 0; color: #555; font-size: 13px; line-height: 1.55; }
.daily-collision-card > footer { gap: 8px; padding: 12px 0 0; }
.daily-collision-card footer button { min-height: 44px; border-radius: 12px; background: #f2f2f2; font-size: 12px; }
.daily-collision-card footer button.keep { background: var(--ink); }
.collision-control-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8px; margin: 0 0 12px; }
.collision-control-row button { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; border: 0; border-radius: 14px; background: #ededed; color: #333; font-size: 13px; font-weight: 600; }
.collision-control-row button[aria-expanded="true"] { background: #e5e5e5; }
.collision-preference-note { margin: -3px 0 13px; color: #888; font-size: 12px; line-height: 1.5; }
.collision-control-row button span { font-size: 17px; font-weight: 400; }
.auto-collision-screen .manual-collision-picker { margin-bottom: 12px; }
.auto-collision-screen .manual-collision-body { padding-top: 16px; }
.collision-control-row button small { color: #777; font-size: 11px; font-weight: 400; }
.manual-tag-field { display: grid; gap: 6px; color: #777; font-size: 12px; }
.manual-tag-field > button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 13px; border: 1px solid #e5e5e5; border-radius: 12px; background: #f8f8f8; text-align: left; }
.manual-tag-field > button > span { min-width: 0; display: grid; gap: 2px; }
.manual-tag-field strong { color: #333; font-size: 14px; font-weight: 600; }
.manual-tag-field small { overflow: hidden; color: #888; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.manual-tag-field i { color: #888; font-size: 22px; font-style: normal; }
.manual-tag-field > button:disabled { opacity: .55; }
.detail-section-list { display: grid; gap: 8px; }
.detail-section-row { width: 100%; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid #ededed; border-radius: 16px; background: #fff; color: #222; text-align: left; }
.detail-section-row > span { min-width: 0; display: grid; gap: 4px; }
.detail-section-row b { font-size: 15px; font-weight: 650; }
.detail-section-row small { overflow: hidden; color: #888; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.detail-section-row i { flex: 0 0 20px; color: #999; font-size: 24px; font-style: normal; text-align: right; }
.detail-section-row:active { background: #f6f6f6; }
.mobile-sheet-backdrop { position: absolute; inset: 0; z-index: 36; display: flex; align-items: flex-end; background: rgba(0,0,0,.3); }
.mobile-sheet-panel { width: 100%; max-height: min(82dvh, 780px); display: flex; flex-direction: column; overflow: hidden; border-radius: 24px 24px 0 0; background: #fff; padding-bottom: var(--safe-bottom); }
.mobile-sheet-handle { width: 34px; height: 4px; flex: 0 0 4px; margin: 10px auto 4px; border-radius: 99px; background: #d4d4d4; }
.mobile-sheet-header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; }
.mobile-sheet-header h2 { margin: 0; font-size: 17px; }
.mobile-sheet-header button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f4f4f4; color: #555; font-size: 24px; }
.mobile-sheet-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; }
.manual-tag-search { height: 48px; display: flex; align-items: center; gap: 8px; margin: 0 20px 10px; padding: 0 12px; border-radius: 12px; background: #f4f4f4; }
.manual-tag-search svg { width: 18px; height: 18px; flex: 0 0 18px; }
.manual-tag-search input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; }
.tag-search-sheet { height: min(76dvh, 650px); }
.manual-tag-group { margin-bottom: 16px; }
.manual-tag-group h3 { margin: 8px 0 8px; color: #999; font-size: 12px; font-weight: 500; }
.manual-tag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.manual-tag-grid button { position: relative; width: 100%; min-width: 0; min-height: 64px; display: flex; align-items: center; justify-content: center; padding: 12px 6px; border: 1px solid transparent; border-radius: 12px; background: #f5f5f5; color: #333; font: inherit; font-size: 13px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; touch-action: manipulation; }
.manual-tag-grid button.selected { border-color: #333; background: #ececec; color: #222; font-weight: 650; }
.manual-tag-grid button:active { background: #e7e7e7; }
.manual-tag-grid button:focus-visible { outline: 2px solid #333; outline-offset: 2px; }
.manual-tag-grid button > span { min-width: 0; max-width: 100%; text-wrap: balance; }
.manual-tag-group i { position: absolute; top: 1px; right: 1px; color: #555; font-size: 12px; font-style: normal; }
.manual-tag-empty, .detail-sheet-empty { margin: 12px 0; color: #777; font-size: 14px; line-height: 1.65; }
.manual-tag-guide { margin: 2px 0 14px; color: #777; font-size: 12px; line-height: 1.5; }
.manual-tag-pending { margin-top: 20px; padding-top: 12px; border-top: 1px solid #eee; }
.manual-tag-pending h3 { margin: 0 0 6px; color: #888; font-size: 12px; font-weight: 600; }
.manual-tag-pending button { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border: 0; border-bottom: 1px solid #eee; background: #fff; text-align: left; }
.manual-tag-pending button span { min-width: 0; display: grid; gap: 3px; }
.manual-tag-pending strong { overflow: hidden; color: #333; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.manual-tag-pending small { overflow: hidden; color: #999; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.manual-tag-pending em { flex: 0 0 auto; color: #555; font-size: 12px; font-style: normal; }
.detail-content-sheet .related-idea-chips { margin-top: 8px; }
.detail-content-sheet .related-idea-chips button { min-height: 44px; }
.detail-sheet-possibilities { margin: 6px 0 18px; padding-left: 22px; color: #444; font-size: 14px; line-height: 1.7; }
.detail-sheet-possibilities li { padding: 0 0 12px 3px; }
.detail-content-sheet .discovery:first-child { margin-top: 0; }
.mobile-sheet-footer { display: grid; gap: 8px; flex: 0 0 auto; padding: 12px 20px 14px; border-top: 1px solid #eee; }
.mobile-sheet-footer button { min-height: 48px; border: 0; border-radius: 12px; font-size: 14px; font-weight: 650; }
.mobile-sheet-footer .primary { background: #242424; color: #fff; }
.mobile-sheet-footer .secondary { border: 1px solid #dedede; background: #fff; color: #333; }
.mobile-sheet-footer button:disabled { opacity: .55; }
.mobile-sheet-footer .research-gate-note { margin: 0; color: #888; font-size: 12px; line-height: 1.5; }

/* Restore the readable collision-card sequence, with the home screen's quiet palette. */
.auto-collision-screen .daily-collision-card { padding: 0; overflow: hidden; border: 1px solid #e9e9e9; border-radius: var(--radius-card); background: #fff; }
.auto-collision-screen .daily-collision-card > header { min-height: 72px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #eee; }
.auto-collision-screen .daily-collision-card > header > div:first-child { display: grid; gap: 5px; }
.auto-collision-screen .collision-level { width: max-content; background: #242424; color: #fff; font-weight: 650; }
.auto-collision-screen .daily-collision-card header small { white-space: normal; }
.collision-header-end { display: grid; justify-items: end; gap: 2px; flex: 0 0 auto; }
.collision-header-end .collision-index { color: #aaa; font-size: 11px; font-variant-numeric: tabular-nums; }
.auto-collision-screen .collision-view-toggle { min-height: 44px; min-width: 44px; padding: 0; }
.auto-collision-screen .collision-graph-entry { min-height: 78px; grid-template-columns: 62px minmax(0, 1fr) 18px; gap: 10px; padding: 11px 16px; border-top: 0; border-bottom: 1px solid #eee; background: #f8f8f6; }
.auto-collision-screen .collision-mini-graph { width: 58px; height: 42px; transform: none; }
.auto-collision-screen .collision-graph-entry strong { font-size: 13px; }
.auto-collision-screen .collision-graph-entry small { font-size: 11px; }
.auto-collision-screen .collision-graph-entry > span:last-child { display: flex; align-items: center; }
.auto-collision-screen .collision-graph-entry > span:last-child svg { width: 18px; height: 18px; }
.auto-collision-screen .daily-collision-card > section.collision-direction { padding: 17px 16px 18px; border-bottom: 1px solid #eee; background: #f7f7f4; }
.auto-collision-screen .collision-direction > small { overflow-wrap: anywhere; margin-bottom: 7px; color: #81734e; font-size: 11px; letter-spacing: 0; }
.auto-collision-screen .collision-direction h2 { margin: 0 0 9px; font-size: 18px; }
.auto-collision-screen .collision-direction p { display: block; overflow: visible; margin: 0; color: #565656; font-size: 13px; line-height: 1.65; }
.auto-collision-screen .daily-collision-card > section.collision-next { padding: 16px; border-bottom: 1px solid #eee; background: #fff; }
.auto-collision-screen .collision-next small { display: block; margin-bottom: 6px; color: #81734e; }
.auto-collision-screen .collision-next .collision-step-label { margin-top: 16px; }
.auto-collision-screen .collision-next p { margin: 0; color: #444; font-size: 13px; line-height: 1.65; }
.auto-collision-screen .collision-expansion { border-bottom: 1px solid #eee; }
.auto-collision-screen .collision-expansion > summary { min-height: 52px; padding: 0 16px; }
.auto-collision-screen .collision-expansion > summary::after { content: none; }
.auto-collision-screen .collision-expansion > summary span { width: 20px; height: 20px; display: grid; place-items: center; transition: transform .2s ease; }
.auto-collision-screen .collision-expansion > summary svg { width: 18px; height: 18px; }
.auto-collision-screen .collision-expansion[open] > summary span { transform: rotate(180deg); }
.auto-collision-screen .collision-expansion .collision-evidence > section { padding: 14px 16px; }
.auto-collision-screen .daily-collision-card > footer { padding: 12px 14px 14px; }
.auto-collision-screen .daily-collision-card > footer.collision-reviewed-footer { padding: 12px 16px; }
.auto-collision-screen .collision-reviewed-footer button[data-action="undo-ignore-collision"] { min-height: 44px; border: 1px solid #d6d6d6; background: #fff; color: #333; font-weight: 650; }
.auto-collision-screen .daily-collision-card footer button { min-height: 48px; }
.manual-expand-icon, .manual-send-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; }
.manual-expand-icon svg, .manual-send-icon svg { display: block; width: 20px; height: 20px; aspect-ratio: 1; }
.collision-control-row button[aria-expanded="true"] .manual-expand-icon { transform: rotate(180deg); }
.manual-collision-generate .manual-send-icon { font-size: inherit; }
.manual-tag-field i { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; }
.manual-tag-field i svg { width: 18px; height: 18px; }
.manual-tag-group i { width: 20px; height: 20px; display: grid; place-items: center; }
.manual-tag-group i svg { width: 18px; height: 18px; }
.detail-graph-entry i { width: 20px; height: 20px; display: grid; place-items: center; }
.detail-graph-entry i svg { width: 18px; height: 18px; }
.orchestration-detail .understanding-more > summary { gap: 6px; }
.orchestration-detail .understanding-more > summary span { width: 18px; height: 18px; display: grid; place-items: center; transition: transform .2s ease; }
.orchestration-detail .understanding-more > summary svg { width: 16px; height: 16px; }
.orchestration-detail .understanding-more[open] > summary span { transform: rotate(180deg); }
.detail-section-row em { flex: 0 0 auto; padding: 7px 0 7px 8px; color: #777; font-size: 12px; font-style: normal; font-weight: 600; }
.collision-control-row svg, .manual-collision-generate svg, .manual-tag-field svg, .manual-tag-group svg, .detail-graph-entry svg, .understanding-more svg, .collision-graph-entry svg, .collision-expansion svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* One draw creates one card; keep the quiet white/ink/yellow visual language. */
.collision-draw-panel { display: grid; gap: 13px; margin-bottom: 12px; padding: 17px; border: 1px solid #e9e7df; border-radius: var(--radius-card); background: #fff; }
.collision-draw-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.collision-draw-intro > div:first-child { min-width: 0; }
.collision-draw-intro small { color: #957b38; font-size: 11px; font-weight: 700; }
.collision-draw-intro h2 { margin: 5px 0 5px; color: #242424; font-size: 17px; line-height: 1.35; }
.collision-draw-intro p { margin: 0; color: #777; font-size: 12px; line-height: 1.5; }
.collision-deck-mark { position: relative; width: 65px; height: 72px; flex: 0 0 65px; }
.collision-deck-mark i, .collision-deck-mark b { position: absolute; display: grid; place-items: center; width: 45px; height: 58px; border: 1px solid #ddd6c3; border-radius: 9px; background: #faf8ef; }
.collision-deck-mark i:first-child { top: 4px; left: 5px; transform: rotate(-13deg); }
.collision-deck-mark i:nth-child(2) { top: 3px; left: 14px; transform: rotate(8deg); }
.collision-deck-mark b { top: 8px; left: 10px; border-color: #e5d5a2; background: #fff4cc; color: #a27e27; font-size: 23px; font-style: normal; font-weight: 400; }
.collision-draw-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: #242424; color: #fff; font-size: 14px; font-weight: 650; touch-action: manipulation; }
.collision-draw-button:disabled { background: #e9e9e9; color: #888; }
.collision-draw-button span { display: grid; place-items: center; width: 20px; height: 20px; }
.collision-draw-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.collision-draw-footnote { color: #999; font-size: 11px; line-height: 1.4; text-align: center; }
.auto-collision-screen .collision-play-stage { padding: 22px 18px 20px; border-bottom: 1px solid #eceae3; background: #faf9f4; }
.auto-collision-screen .collision-play-stage > small { display: block; margin: 0 0 5px; color: #847d68; font-size: 11px; font-weight: 600; }
.auto-collision-screen .collision-play-stage h2 { margin: 0; color: #232323; font-size: 23px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.auto-collision-screen .collision-play-stage p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 9px 0 0; color: #58574f; font-size: 13px; line-height: 1.55; }
.auto-collision-screen .collision-draw-stage { padding: 16px; }
.collision-card-back { width: 146px; height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; margin: 0 auto; padding: 16px 10px; border: 1px solid #ddca91; border-radius: 15px; background: #fff7dc; color: #96772a; box-shadow: 0 8px 18px rgba(72, 57, 22, .1); }
.collision-card-back span { font-size: 11px; font-weight: 700; }
.collision-card-back b { font-size: 45px; font-weight: 400; line-height: 1; }
.collision-card-back i { font-size: 10px; font-style: normal; letter-spacing: .12em; }
.auto-collision-screen .collision-draw-stage > p { display: block; margin: 16px 0 12px; color: #777; font-size: 12px; text-align: center; }
.collision-draw-stage.is-drawing .collision-card-back { animation: collision-card-flip .85s ease-in-out both; }
.collision-puzzle-trigger { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: #242424; color: #fff; font-size: 14px; font-weight: 650; touch-action: manipulation; }
.collision-puzzle-trigger:disabled { opacity: .7; }
.collision-drawn-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-bottom: 13px; }
.collision-drawn-tags span { min-height: 34px; max-width: calc(50% - 18px); display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid #e6e3da; border-radius: 999px; background: #fff; color: #4b493f; font-size: 12px; font-weight: 650; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.collision-drawn-tags b { color: #9d8850; font-size: 16px; font-weight: 400; }
.collision-visual-slot { position: relative; height: 88px; overflow: hidden; margin-top: 13px; border: 1px solid #e5dfcf; border-radius: 13px; background: #f6f2e6; }
.collision-visual-shape { position: absolute; width: 110px; height: 110px; border-radius: 25px; transform: rotate(28deg); }
.collision-visual-shape.one { top: -38px; left: 14%; background: #e7d394; opacity: .7; }
.collision-visual-shape.two { top: 21px; right: 13%; border: 2px solid #bdb49a; background: rgba(255,255,255,.55); transform: rotate(-17deg); }
.collision-visual-slot small { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.88); color: #777; font-size: 10px; text-align: center; }
.collision-visual-slot img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.collision-visual-slot.has-generated-image { background: #f5f5f3; }
.collision-visual-slot.image-generating small { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 24px; }
.collision-visual-slot .status-spinner { width: 12px; height: 12px; flex: 0 0 12px; }
.collision-image-error { color: #97743c !important; font-size: 12px !important; }
.collision-draw-result { padding: 8px 0 0; animation: collision-card-arrive .3s ease-out both; }
.auto-collision-screen .collision-draw-result > small { display: block; margin: 0 0 5px; color: #89712f; font-size: 11px; font-weight: 650; }
.auto-collision-screen .collision-draw-result h2 { font-size: 21px; }
.auto-collision-screen .collision-draw-result p { -webkit-line-clamp: 3; margin-top: 8px; }
.collision-puzzle-loading { min-height: 42px; display: flex; align-items: center; color: #655a3e; font-size: 13px; line-height: 1.5; }
@keyframes collision-card-flip { 0% { transform: translateY(8px) rotate(-7deg) scale(.95); opacity: .65; } 50% { transform: translateY(-5px) rotate(5deg) scale(1.03); } 100% { transform: rotateY(85deg) scale(.98); opacity: .7; } }
@keyframes collision-card-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .collision-draw-stage.is-drawing .collision-card-back, .collision-draw-result { animation: none; } }
.auto-collision-screen .collision-graph-entry { min-height: 68px; background: #fff; }
.auto-collision-screen .collision-expansion > summary { min-height: 48px; }
.collision-deep-dive { display: grid; gap: 0; border-top: 1px solid #eee; }
.collision-deep-dive section { padding: 12px 16px; border-bottom: 1px solid #f2f2f2; }
.collision-deep-dive section:last-child { border-bottom: 0; }
.collision-deep-dive small { color: #777; font-size: 11px; font-weight: 650; }
.collision-deep-dive p { margin: 5px 0 0; color: #454545; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.collision-deep-dive em { display: block; margin-top: 7px; color: #999; font-size: 11px; font-style: normal; line-height: 1.45; }
.collision-tag-only-note { margin: 0 0 12px !important; color: #777 !important; font-size: 12px !important; }
/* Compact collision library; explanations live on their own mobile page. */
.auto-collision-screen .collision-draw-panel { gap: 10px; padding: 14px 16px; }
.auto-collision-screen .collision-deck-mark { width: 47px; height: 54px; flex-basis: 47px; transform: scale(.72); transform-origin: right center; }
.auto-collision-screen .collision-draw-intro h2 { margin-bottom: 0; font-size: 16px; }
.collision-search { display: flex; align-items: center; gap: 9px; min-height: 46px; margin: 10px 0 12px; padding: 0 13px; border: 1px solid #ececec; border-radius: 13px; background: #fff; color: #888; }
.collision-search .shared-search-icon { width: 18px; height: 18px; flex-basis: 18px; }
.collision-search .shared-search-icon svg { width: 18px; height: 18px; }
.collision-search input { width: 100%; min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: #242424; font: inherit; font-size: 14px; }
.collision-search:focus-within { border-color: #cfc7af; }
.auto-collision-screen .compact-collision-card { padding: 0; }
.collision-card-open { position: relative; display: grid; justify-items: start; gap: 9px; width: 100%; min-height: 44px; padding: 15px 16px 13px; border: 0; background: #fff; color: #242424; text-align: left; touch-action: manipulation; }
.collision-card-open:disabled { opacity: .75; }
.collision-card-open .collision-level { background: #f2f2f2; color: #6b644f; }
.compact-collision-more { position: absolute; top: 17px; right: 16px; display: grid; place-items: center; width: 18px; height: 18px; color: #999; }
.compact-collision-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compact-collision-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; color: #777; font-size: 12px; }
.compact-collision-tags span { display: inline-block; max-width: calc(50% - 12px); padding: 5px 9px; border-radius: 999px; background: #f5f5f5; color: #5f5f5f; line-height: 1.3; overflow-wrap: anywhere; }
.compact-collision-tags b { color: #9a9a9a; font-size: 15px; font-weight: 400; }
.compact-collision-title { width: 100%; margin: 3px 0 1px; color: #242424; font-size: 23px; font-weight: 720; line-height: 1.28; overflow-wrap: anywhere; }
.compact-collision-card .collision-visual-slot { width: 100%; height: auto; aspect-ratio: 16 / 9; margin-top: 3px; }
.compact-collision-card .collision-visual-slot small { font-size: 10px; }
.compact-collision-card .collision-card-back { margin: 5px auto 1px; }
.compact-collision-card.is-drawing .collision-card-back { animation: collision-card-flip .85s ease-in-out both; }
.compact-collision-card.is-revealed-now .collision-card-open { animation: collision-card-arrive .3s ease-out both; }
.collision-unrevealed-label { width: 100%; color: #4c4638; font-size: 14px; font-weight: 650; text-align: center; }
.auto-collision-screen .compact-collision-card > footer.compact-collision-actions { display: flex; align-items: center; justify-content: stretch; gap: 8px; padding: 10px 14px 13px; border-top: 1px solid #f1f1f1; }
.compact-collision-actions button { flex: 1; min-height: 44px; border-radius: 11px; }
.compact-collision-actions span { flex: 1; color: #888; font-size: 12px; }
.compact-collision-actions button:disabled { opacity: .5; }
.collision-detail-screen { background: #f7f7f5; }
.collision-detail-scroll { top: 116px; bottom: 0; padding-top: 8px; padding-bottom: calc(32px + var(--safe-bottom)); }
.collision-detail-hero, .collision-detail-section { margin-bottom: 12px; padding: 17px 16px; border: 1px solid #e9e9e5; border-radius: 18px; background: #fff; }
.collision-detail-hero > .collision-level { display: inline-flex; margin-bottom: 13px; }
.collision-detail-hero .collision-drawn-tags { justify-content: flex-start; margin-bottom: 10px; }
.collision-detail-hero h1 { margin: 0; color: #242424; font-size: 22px; line-height: 1.35; overflow-wrap: anywhere; }
.collision-detail-hero p { margin: 9px 0 0; color: #555; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.collision-detail-hero .collision-visual-slot { height: auto; aspect-ratio: 16 / 9; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .compact-collision-card.is-drawing .collision-card-back, .compact-collision-card.is-revealed-now .collision-card-open { animation: none; } }
.collision-detail-section h2 { margin: 0 0 10px; color: #242424; font-size: 15px; line-height: 1.4; }
.collision-detail-section p { margin: 0; color: #555; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.collision-change-angle { display: block; width: 100%; min-height: 48px; margin-top: 14px; padding: 12px 16px; border: 1px solid #dedede; border-radius: 12px; background: #f3f3f3; color: #242424; font: inherit; font-size: 14px; font-weight: 650; touch-action: manipulation; }
.collision-change-angle:active { background: #e7e7e7; }
.collision-change-angle:focus-visible { outline: 2px solid #333; outline-offset: 2px; }
.collision-detail-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 64px; padding: 10px 0; border: 0; border-top: 1px solid #f0f0f0; background: #fff; text-align: left; }
.collision-detail-link span { display: grid; gap: 4px; }
.collision-detail-link strong { color: #242424; font-size: 13px; }
.collision-detail-link small { color: #888; font-size: 11px; line-height: 1.45; }
.collision-detail-link svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: #888; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.collision-detail-actions { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; }
.collision-detail-actions span { flex: 1; color: #777; font-size: 12px; }
.collision-detail-actions button { flex: 1; min-height: 48px; border: 0; border-radius: 12px; background: #e9e9e9; color: #242424; font-size: 13px; font-weight: 650; }
.collision-detail-actions button.keep { background: #242424; color: #fff; }
.compact-collision-actions button.danger, .collision-detail-actions button.danger { color: #c34444; background: #fff5f5; }
.collision-detail-actions button:disabled { opacity: .5; }
/* Shared full-screen collision feedback for draw, chosen Tags and NFC. */
.collision-experience { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: max(36px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); background: #faf9f5; color: #242424; isolation: isolate; }
.collision-experience::after { content: ""; position: absolute; bottom: 8px; left: 50%; width: 144px; height: 5px; border-radius: 99px; background: #242424; transform: translateX(-50%); }
.device-chrome-hidden .collision-experience::after { display: none; }
.collision-experience > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 48px; }
.collision-experience > header > span { color: #80796a; font-size: 12px; font-weight: 600; }
.collision-experience > header button { min-height: 44px; padding: 0 12px; border: 1px solid #e5e1d7; border-radius: 99px; background: #fff; color: #555; font: inherit; font-size: 13px; }
.experience-scroll { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 0 16px; scrollbar-width: none; }
.experience-heading { margin: 16px 0 24px; text-align: center; }
.experience-heading small { display: inline-block; margin-bottom: 10px; color: #8b7846; font-size: 12px; }
.experience-heading h2 { margin: 0; color: #242424; font-size: 25px; font-weight: 700; line-height: 1.3; }
.experience-heading p { margin: 10px 0 0; color: #858074; font-size: 12px; line-height: 1.6; }
.experience-stage { position: relative; display: grid; align-items: center; height: min(42dvh, 320px); min-height: 220px; perspective: 800px; }
.experience-tags { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; position: relative; z-index: 2; }
.experience-tags > span { display: grid; place-items: center; flex: 1; min-width: 0; min-height: 76px; padding: 12px 10px; border: 1px solid #dfd4b6; border-radius: 17px; background: #fffdf6; color: #4e4634; font-size: 16px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; text-wrap: balance; text-align: center; box-shadow: 0 8px 20px rgba(69, 57, 29, .05); }
.experience-tags > b { flex: 0 0 24px; color: #ad8830; font-size: 26px; font-weight: 400; }
.experience-halo { position: absolute; top: 50%; left: 50%; z-index: 0; width: 180px; height: 180px; border: 1px solid #e4d5a6; border-radius: 50%; background: radial-gradient(circle, #f4e3ad55, transparent 70%); transform: translate(-50%, -50%); }
.experience-card-outline { position: absolute; top: 50%; left: 50%; z-index: 1; width: 120px; height: 156px; border: 1px solid #d8c694; border-radius: 16px; background: #fff9e8; opacity: 0; transform: translate(-50%, -50%); }
.experience-deck { position: absolute; top: 50%; left: 50%; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 140px; height: 180px; padding: 18px; border: 1px solid #dfcd94; border-radius: 18px; background: #fff5d4; color: #977629; transform: translate(-50%, -50%); animation: experience-deck-open .5s ease-in forwards; }
.experience-deck span, .experience-deck small { font-size: 11px; }
.experience-deck b { font-size: 44px; font-weight: 400; }
.phase-intro .experience-tags > span:first-child { animation: experience-tag-left 1.45s cubic-bezier(.22,.7,.3,1) both; }
.phase-intro .experience-tags > span:last-child { animation: experience-tag-right 1.45s cubic-bezier(.22,.7,.3,1) both; }
.phase-intro .experience-tags > b { animation: experience-spark 1.45s ease-out both; }
.phase-intro .experience-halo { animation: experience-ripple 1.45s ease-out both; }
.phase-intro .experience-card-outline { animation: experience-outline 1.45s ease-out both; }
.phase-waiting .experience-halo { animation: experience-breathe 2s ease-in-out infinite; }
.phase-waiting .experience-tags > b { animation: experience-spark-wait 2s ease-in-out infinite; }
.phase-error .experience-halo { opacity: .3; }
.experience-result-card { display: block; width: 100%; padding: 18px; border: 1px solid #e7e2d4; border-radius: 22px; background: #fff; color: #242424; text-align: left; font: inherit; animation: experience-result-arrive .45s cubic-bezier(.2,.8,.3,1) both; touch-action: manipulation; }
.experience-result-card > strong { display: block; margin-bottom: 12px; font-size: 25px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.experience-result-card .experience-tags { justify-content: flex-start; gap: 7px; }
.experience-result-card .experience-tags > span { flex: 0 1 auto; min-height: 30px; padding: 5px 10px; border: 0; border-radius: 99px; background: #f4f4f2; box-shadow: none; color: #666; font-size: 12px; font-weight: 500; }
.experience-result-card .experience-tags > b { flex-basis: 16px; font-size: 16px; }
.experience-result-card .collision-visual-slot { height: auto; aspect-ratio: 16 / 9; }
.experience-result-card > p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 12px 0; color: #666; font-size: 13px; line-height: 1.6; }
.experience-detail-hint { display: flex; align-items: center; justify-content: space-between; min-height: 32px; color: #888; font-size: 12px; }
.experience-detail-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.collision-experience > footer { flex: 0 0 auto; padding-top: 10px; }
.experience-decisions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.experience-decisions button, .experience-retry { min-height: 50px; padding: 12px; border: 1px solid #e0ded7; border-radius: 13px; background: #eeece6; color: #333; font: inherit; font-size: 15px; font-weight: 650; }
.collision-experience button.primary { background: #242424; border-color: #242424; color: #fff; }
.experience-retry { width: 100%; }
.experience-text-button { display: block; min-height: 44px; margin: 4px auto 0; padding: 8px 18px; border: 0; background: transparent; color: #777; font: inherit; font-size: 13px; }
.collision-experience > footer > p { margin: 0; min-height: 44px; display: grid; place-items: center; color: #888; font-size: 12px; line-height: 1.5; text-align: center; }
.collision-experience button:focus-visible { outline: 2px solid #9d7b2a; outline-offset: 3px; }
@keyframes experience-deck-open { from { opacity: 1; transform: translate(-50%, -50%) rotate(-5deg); } to { opacity: 0; transform: translate(-50%, -65%) rotateY(85deg); } }
@keyframes experience-tag-left { 0%, 15% { opacity: 0; transform: translateX(-70px) rotate(-12deg); } 55% { opacity: 1; transform: translateX(10px) rotate(3deg); } 75%, 100% { opacity: 1; transform: translateX(0) rotate(0); } }
@keyframes experience-tag-right { 0%, 15% { opacity: 0; transform: translateX(70px) rotate(12deg); } 55% { opacity: 1; transform: translateX(-10px) rotate(-3deg); } 75%, 100% { opacity: 1; transform: translateX(0) rotate(0); } }
@keyframes experience-spark { 0%, 40% { opacity: 0; transform: scale(.4) rotate(-45deg); } 65% { opacity: 1; transform: scale(1.6) rotate(0); } 100% { opacity: 1; transform: scale(1); } }
@keyframes experience-ripple { 0%, 40% { opacity: 0; transform: translate(-50%, -50%) scale(.3); } 65% { opacity: 1; } 100% { opacity: .25; transform: translate(-50%, -50%) scale(1.8); } }
@keyframes experience-outline { 0%, 60% { opacity: 0; transform: translate(-50%, -50%) scale(.7); } 80% { opacity: .65; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } }
@keyframes experience-breathe { 0%, 100% { opacity: .3; transform: translate(-50%, -50%) scale(.8); } 50% { opacity: .7; transform: translate(-50%, -50%) scale(1.15); } }
@keyframes experience-spark-wait { 0%, 100% { opacity: .6; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes experience-result-arrive { from { opacity: 0; transform: perspective(900px) rotateY(-35deg) translateY(16px); } to { opacity: 1; transform: perspective(900px) rotateY(0) translateY(0); } }
@media (prefers-reduced-motion: reduce) { .collision-experience *, .collision-experience *::before, .collision-experience *::after { animation: none !important; } }
.collision-thinking-screen { background: #f7f7f5; }
.collision-thinking-scroll { top: 116px; bottom: 18px; padding-top: 4px; padding-bottom: calc(34px + var(--safe-bottom)); }
.thinking-intro { padding: 8px 2px 22px; }
.thinking-intro > span, .thinking-map-label { color: #8a7b52; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.thinking-intro h1 { margin: 8px 0 8px; font-size: 21px; line-height: 1.35; }
.thinking-intro p { margin: 0; color: #777; font-size: 12px; line-height: 1.6; }
.thinking-map { padding: 18px 16px 20px; border: 1px solid #e8e6df; border-radius: 20px; background: #fff; }
.thinking-map-label { margin: 0 0 12px; }
.thinking-tag-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.thinking-tag-node { min-height: 132px; padding: 13px 12px; border: 1px solid #e7e5dd; border-radius: 16px; background: #faf9f5; overflow-wrap: anywhere; }
.thinking-tag-node small, .thinking-concept-node small { display: block; color: #93866a; font-size: 11px; font-weight: 700; }
.thinking-tag-node strong { display: block; margin-top: 8px; font-size: 15px; line-height: 1.35; }
.thinking-tag-node p { margin: 9px 0 0; color: #666; font-size: 12px; line-height: 1.45; }
.thinking-merge-line { display: block; width: 100%; height: 52px; fill: none; stroke: #b5ab91; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.thinking-bridge-node { padding: 16px; border: 1px solid #d8c89c; border-radius: 16px; background: #fffaf0; }
.thinking-bridge-node strong { display: block; color: #514727; font-size: 14px; font-weight: 650; line-height: 1.5; }
.thinking-vertical-line { width: 1.5px; height: 42px; margin: 0 auto; background: #b5ab91; }
.thinking-concept-node { padding: 18px 16px; border: 1px solid #d7c27c; border-radius: 17px; background: #fff4cb; overflow-wrap: anywhere; }
.thinking-concept-node h2 { margin: 6px 0 7px; font-size: 21px; line-height: 1.35; }
.thinking-concept-node p { margin: 0; color: #544e3f; font-size: 12px; line-height: 1.55; }
.thinking-try-card { margin-top: 14px; padding: 16px; border: 1px solid #e6e6e2; border-radius: 18px; background: #fff; }
.thinking-try-card small { color: #777; font-size: 11px; font-weight: 700; }
.thinking-try-card p { margin: 7px 0 0; font-size: 13px; line-height: 1.55; }
.thinking-try-card span { display: block; margin-top: 10px; color: #888; font-size: 11px; line-height: 1.5; }
.thinking-source-link { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 16px; border: 1px solid #e7e7e4; border-radius: 17px; background: #fff; text-align: left; }
.thinking-source-link span { display: grid; gap: 3px; }
.thinking-source-link strong { font-size: 13px; }
.thinking-source-link small { color: #888; font-size: 11px; }
.thinking-source-link svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 519px), (max-height: 519px) and (orientation: landscape) {
  .auto-collision-screen .association-scroll { top: calc(162px + env(safe-area-inset-top)); bottom: calc(87px + var(--safe-bottom)); }
  .collision-home-header .collision-filter-tabs { gap: 2px; }
}
.receiver-recordings-card .receiver-detail,
.receiver-recordings-card .receiver-empty {
  margin: 10px 0 14px;
  color: rgba(38, 35, 28, .62);
  font-size: 13px;
  line-height: 1.55;
}

.receiver-recordings-card .receiver-error,
.receiver-recording-error {
  color: #a33a30;
}

.hardware-auto-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 2px;
  color: rgba(30, 29, 27, .72);
}

.hardware-auto-status > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f6c945;
  animation: hardwarePulse 1.1s ease-in-out infinite;
}

.hardware-auto-status p,
.hardware-auto-status strong,
.hardware-auto-status small {
  display: block;
  margin: 0;
}

.hardware-auto-status strong {
  font-size: 13px;
  font-weight: 600;
}

.hardware-auto-status small {
  margin-top: 2px;
  color: rgba(30, 29, 27, .42);
  font-size: 11px;
}

.tool-hardware-audio.processing {
  background: rgba(246, 201, 69, .2);
}

@keyframes hardwarePulse {
  50% { opacity: .35; transform: scale(.72); }
}

.receiver-recording-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.receiver-recording {
  padding: 14px;
  border: 1px solid rgba(48, 43, 32, .11);
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
}

.receiver-recording.failed {
  border-color: rgba(163, 58, 48, .28);
}

.receiver-recording-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.receiver-recording-heading > div {
  min-width: 0;
}

.receiver-recording-heading strong,
.receiver-recording-heading small {
  display: block;
}

.receiver-recording-heading strong {
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receiver-recording-heading small {
  margin-top: 4px;
  color: rgba(38, 35, 28, .56);
}

.receiver-recording audio {
  width: 100%;
  height: 36px;
  margin-top: 12px;
}

.receiver-recording-error {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
