:root{--ink:#171717;--muted:#666b66;--paper:#f7f8f6;--surface:#ffffff;--surface-soft:#f1f6f3;--line:#d9dedb;--teal:#087f72;--mint:#d9f4e7;--coral:#df5b4f;--coral-soft:#ffe1db;--amber:#e7a622;--amber-soft:#fff0c7;--violet:#6655c5;--violet-soft:#e7e3ff;--green:#4f8d55;--green-soft:#dff3df;--shadow:0 18px 44px rgba(24,29,27,0.1);color:var(--ink);background:var(--paper);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{min-height:100vh;margin:0;background:linear-gradient(180deg,rgba(217,244,231,.56),rgba(247,248,246,0) 360px),var(--paper)}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.app-shell{width:min(100%,760px);min-height:100vh;margin:0 auto;padding:82px 16px 112px}.app-shell.is-immersive{padding-top:16px;padding-bottom:128px}.topbar{position:fixed;z-index:30;top:0;left:50%;width:min(100%,760px);height:64px;justify-content:space-between;padding:12px 16px;background:rgba(247,248,246,.9);border-bottom:1px solid rgba(23,23,23,.08);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transform:translateX(-50%)}.brand,.card-action-right,.card-actions,.top-actions,.topbar{display:flex;align-items:center}.brand{gap:10px;padding:0;color:var(--ink);background:transparent;border:0;font-weight:850}.brand-mark{display:grid;width:34px;height:34px;place-items:center;color:#fff;background:var(--teal);border-radius:50%}.card-action-right,.top-actions{gap:8px}.icon-button{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:50%;font-size:16px;line-height:1}.icon-button.is-active,.icon-button:hover{color:#fff;background:var(--teal);border-color:var(--teal)}.heart-button.is-active,.heart-button:hover{color:#fff;background:var(--coral);border-color:var(--coral)}.dive,.feed,.quest,.trail-receipt,.trails{display:grid;grid-gap:16px;gap:16px}.quest-strip{display:grid;width:100%;grid-gap:4px;gap:4px;min-height:74px;padding:14px;color:var(--ink);text-align:left;background:var(--amber-soft);border:1px solid rgba(231,166,34,.48);border-radius:8px}.quest-strip:hover{border-color:var(--amber)}.card-meta,.dive-card span,.fineprint,.knowledge-card small,.quest-strip span,.route-list small,.save-note,.section-head span,.trail-item small,.trail-item span{color:var(--muted);font-size:12px;line-height:1.5}.knowledge-card,.quest-stage,.trail-item{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.knowledge-card{display:grid;grid-gap:14px;gap:14px;min-height:500px;padding:22px;scroll-margin-top:78px}.card-meta{display:flex;justify-content:space-between;gap:14px}h1{font-size:30px;line-height:1.12;letter-spacing:0}h1,p{margin:0}p{color:#31302d;font-size:16px;line-height:1.78}.tag-row{display:flex;flex-wrap:wrap;gap:6px}.card-title{margin:0;font-size:24px;line-height:1.15;letter-spacing:0}.card-body{color:#404440;font-size:15px;line-height:1.72}.tag{display:inline-flex;min-height:26px;align-items:center;padding:0 9px;color:#11584f;background:var(--mint);border-radius:999px;font-size:12px;font-weight:800}.tag-1{color:#843128;background:var(--coral-soft)}.tag-2{color:#433381;background:var(--violet-soft)}.tag-3{color:#6a4a0e;background:var(--amber-soft)}.question-list{display:grid;grid-gap:9px;gap:9px;margin-top:4px}.ask-dock button,.question-list button,.route-list button,.secondary-action,.section-head button,.segmented button,.trail-item>button:first-child{width:100%;min-height:46px;padding:11px 13px;color:var(--ink);text-align:left;background:#f8faf8;border:1px solid var(--line);border-radius:8px;font-weight:750;line-height:1.38}.ask-dock button:hover,.question-list button:hover,.route-list button:hover,.secondary-action:hover,.section-head button:hover,.segmented button:hover,.trail-item>button:first-child:hover{border-color:var(--teal);box-shadow:0 8px 18px rgba(8,127,114,.1)}.card-actions{justify-content:space-between;margin-top:auto;padding-top:10px;border-top:1px solid rgba(23,23,23,.08)}.fineprint{align-self:center}.text-link{padding:0;color:var(--muted);background:transparent;border:0;font-size:13px}.text-link:hover{color:var(--coral)}.dive-head,.receipt-head{position:-webkit-sticky;position:sticky;z-index:20;top:12px;display:grid;grid-template-columns:1fr auto 42px;grid-gap:8px;gap:8px;align-items:center;padding:8px;background:rgba(247,248,246,.88);border:1px solid rgba(23,23,23,.08);border-radius:8px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.dive-head>button:not(.icon-button),.receipt-head>button:not(.icon-button){min-height:40px;padding:0 11px;color:var(--ink);text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:850}.depth-label{min-width:42px;color:var(--muted);font-size:12px;font-weight:850;text-align:center}.dive-head .icon-button,.receipt-head .icon-button{width:40px;height:40px;flex-basis:40px}.receipt-head{grid-template-columns:1fr 42px}.dive-tunnel{display:grid;grid-gap:14px;gap:14px;overflow:hidden;padding:18px;color:#fff;background:radial-gradient(circle at 50% -10%,rgba(231,166,34,.26),transparent 35%),linear-gradient(180deg,#171717,#1f2b28);border:1px solid #171717;border-radius:8px;box-shadow:var(--shadow)}.dive-card{display:grid;grid-gap:12px;gap:12px}.dive-card h1,.dive-card p{color:#fff}.dive-card p,.turn p{color:rgba(255,255,255,.76)}.depth-meter{height:8px;overflow:hidden;background:rgba(255,255,255,.13);border-radius:999px}.depth-meter span{display:block;width:var(--depth);height:100%;background:var(--amber);border-radius:inherit}.turns{display:grid;grid-gap:14px;gap:14px}.turn{display:grid;grid-gap:13px;gap:13px;padding:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:8px}.turn .question-list button{color:#fff;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18)}.turn .question-list button:hover{border-color:rgba(231,166,34,.82)}.new-trail-questions button{color:#fff;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18)}.new-trail-questions button:hover{border-color:rgba(231,166,34,.82)}.question-bubble{width:-moz-fit-content;width:fit-content;max-width:92%;margin-left:auto;padding:10px 12px;color:#171717;background:var(--amber);border-radius:8px;font-weight:760;line-height:1.55}.empty-state,.thinking{display:grid;min-height:120px;place-items:center;color:var(--muted);background:rgba(255,255,255,.72);border:1px dashed var(--line);border-radius:8px}.dive-tunnel .thinking{color:rgba(255,255,255,.72);background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18)}.ask-dock{position:fixed;z-index:40;right:max(16px,calc((100vw - 728px) / 2));bottom:calc(12px + env(safe-area-inset-bottom));left:max(16px,calc((100vw - 728px) / 2));display:grid;grid-template-columns:1fr 72px;grid-gap:8px;gap:8px;padding:8px;background:rgba(247,248,246,.92);border:1px solid rgba(23,23,23,.08);border-radius:8px;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.ask-dock input{min-width:0;min-height:46px;padding:0 12px;background:var(--surface);border:1px solid var(--line);border-radius:8px}.ask-dock button{text-align:center;color:#fff;background:var(--teal);border-color:var(--teal)}.ask-dock button:disabled{opacity:.45}.save-note{text-align:center}.trail-receipt{min-height:calc(100vh - 44px)}.receipt-card{display:grid;grid-gap:18px;gap:18px;min-height:calc(100vh - 96px);padding:20px;color:#fff;background:radial-gradient(circle at 18% 0,rgba(231,166,34,.36),transparent 30%),linear-gradient(180deg,#171717,#203c37 64%,#f8faf8 64.2%);border:1px solid #171717;border-radius:8px;box-shadow:var(--shadow)}.receipt-card h1{max-width:560px;color:#fff}.receipt-card p{color:rgba(255,255,255,.76)}.receipt-label{display:inline-flex;width:-moz-fit-content;width:fit-content;min-height:28px;align-items:center;padding:0 10px;color:#171717;background:var(--amber);border-radius:999px;font-size:12px;font-weight:850}.receipt-stats{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:8px;gap:8px}.receipt-path-item,.receipt-stats div{display:grid;grid-gap:4px;gap:4px;padding:12px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);border-radius:8px}.receipt-stats b{font-size:24px;line-height:1}.receipt-path-item span,.receipt-stats span{color:rgba(255,255,255,.68);font-size:12px}.receipt-path{display:grid;grid-gap:8px;gap:8px;margin-top:auto}.receipt-path-item{background:rgba(255,255,255,.94);border-color:var(--line)}.receipt-path-item strong{color:var(--ink);font-size:14px;line-height:1.42}.receipt-card .save-note,.receipt-path-item span{color:var(--muted)}.summary-action{width:100%;min-height:48px;padding:12px 14px;color:#fff;text-align:center;background:var(--teal);border:1px solid var(--teal);border-radius:8px;font-weight:850}.summary-action:hover{background:#06685e;border-color:#06685e}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.section-head h1{margin-top:6px;font-size:26px}.section-head button{width:auto;min-width:110px;text-align:center}.segmented{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:6px;gap:6px;padding:5px;background:#eef3f0;border:1px solid var(--line);border-radius:8px}.segmented button{min-height:38px;text-align:center;background:transparent;border-color:transparent}.segmented button.is-active{color:#fff;background:#171717;border-color:#171717}.trail-atlas{display:grid;grid-gap:10px;gap:10px;padding:12px;background:#fbfcfa;border:1px solid var(--line);border-radius:8px}.atlas-overview{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:8px;gap:8px}.atlas-overview div{display:grid;grid-gap:4px;gap:4px;min-width:0;padding:12px;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px}.atlas-overview b{font-size:26px;line-height:1}.atlas-overview span,.bridge-route small,.bridge-route span,.domain-tile em,.domain-tile small{color:var(--muted);font-size:12px;line-height:1.45}.domain-cloud{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px;gap:8px}.bridge-route,.domain-tile{display:grid;grid-gap:6px;gap:6px;min-width:0;min-height:126px;padding:14px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:8px}.bridge-route:hover,.domain-tile:hover{border-color:rgba(8,127,114,.45)}.domain-tile span{color:var(--teal);font-size:13px;font-weight:850}.domain-tile strong{color:var(--ink);font-size:32px;line-height:1}.domain-tile em{display:-webkit-box;overflow:hidden;min-height:34px;font-style:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.domain-tile-1 span{color:var(--coral)}.domain-tile-2 span{color:var(--violet)}.domain-tile-3 span{color:#755111}.domain-tile-4 span{color:var(--green)}.bridge-route{min-height:auto;background:var(--mint);border-color:rgba(8,127,114,.22)}.bridge-route strong{font-size:16px;line-height:1.35}.trail-list{display:grid;grid-gap:10px;gap:10px}.trail-item{display:grid;grid-template-columns:1fr 42px;grid-gap:8px;gap:8px;padding:8px;box-shadow:none}.trail-item>button:first-child{display:grid;grid-gap:5px;gap:5px}.trail-item strong{font-size:16px}.trail-path-preview{display:flex;min-width:0;flex-wrap:wrap;gap:4px}.trail-path-preview i{color:var(--muted);font-size:12px;font-style:normal;line-height:1.4}.trail-branches{display:grid;grid-column:1/-1;grid-gap:6px;gap:6px;padding:4px 0 0 12px;border-left:2px solid var(--mint)}.trail-branches button{display:grid;grid-gap:3px;gap:3px;padding:9px 11px;color:var(--ink);text-align:left;background:var(--surface-soft);border:1px solid var(--line);border-radius:8px}.trail-branches button:hover{border-color:rgba(8,127,114,.45)}.trail-branches strong{font-size:13px}.new-trail-button{grid-column:1/-1;min-height:38px;color:var(--teal);background:transparent;border:1px dashed rgba(8,127,114,.32);border-radius:8px;font-size:12px;font-weight:800}.new-trail-button:hover{background:var(--mint)}.quest-stage{display:grid;grid-gap:18px;gap:18px;min-height:560px;padding:20px;color:#fff;background:linear-gradient(160deg,#11201f,#203c37 50%,#f8faf8 50.2%);border-color:rgba(17,32,31,.24)}.quest-stage>span{display:inline-flex;width:-moz-fit-content;width:fit-content;min-height:26px;align-items:center;padding:0 9px;color:#171717;background:var(--amber);border-radius:999px;font-size:12px;font-weight:850}.quest-stage h1{max-width:420px;font-size:32px}.route-list{display:grid;grid-gap:10px;gap:10px;margin-top:10px}.route-list button{display:grid;grid-gap:3px;gap:3px;background:rgba(255,255,255,.92)}.secondary-action{align-self:end;text-align:center;background:#fff}.bottom-nav{position:fixed;z-index:30;right:0;bottom:0;left:50%;display:grid;grid-template-columns:repeat(3,1fr);width:min(100%,760px);height:70px;background:rgba(255,255,255,.94);border-top:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);transform:translateX(-50%)}.bottom-nav button{display:grid;place-items:center;grid-gap:2px;gap:2px;color:var(--muted);background:transparent;border:0;font-size:11px;font-weight:850}.bottom-nav span{display:block;font-size:19px;line-height:1}.bottom-nav button.is-active{color:var(--teal)}.toast{position:fixed;left:50%;bottom:86px;z-index:40;padding:10px 16px;color:#fff;background:rgba(23,23,23,.88);border-radius:999px;font-size:13px;transform:translateX(-50%);box-shadow:0 12px 28px rgba(23,23,23,.18)}@media (min-width:720px){.app-shell{padding-inline:22px}.knowledge-card{min-height:500px;padding:28px}}@media (max-width:420px){.app-shell{padding-inline:12px}h1{font-size:25px}.card-meta,.section-head{align-items:flex-start;flex-direction:column}.section-head button{width:100%}.card-actions{flex-wrap:nowrap}.dive-head{grid-template-columns:1fr 38px 40px;gap:6px}.dive-head>button:not(.icon-button){padding:0 8px;font-size:12px}.depth-label{min-width:36px}.receipt-stats{grid-template-columns:1fr}}