:root {
  color-scheme: light;
  --canvas: #f5f4ef;
  --paper: #fffefa;
  --paper-soft: #eeeee7;
  --ink: #202723;
  --muted: #778079;
  --line: #e6e6de;
  --green: #315d50;
  --green-deep: #23463c;
  --green-soft: #e7eee9;
  --amber: #d7a76c;
  --serif: 'Aptos Display', 'Aptos', 'Segoe UI', sans-serif;
  --sans: 'Aptos', 'Segoe UI', sans-serif;
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #d39c62; outline-offset: 3px; }
button:disabled { cursor: not-allowed; }
.app-shell { min-height: 100vh; max-width: 1600px; margin: auto; display: grid; grid-template-columns: 238px minmax(420px, 1fr) 318px; }
.sidebar { height: 100vh; position: sticky; top: 0; padding: 32px 20px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--canvas); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 25px/1 var(--serif); letter-spacing: -1.7px; width: fit-content; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; color: #faf9f3; background: var(--green); font: 700 23px/1 var(--serif); letter-spacing: -2px; padding: 0 2px 4px 0; }
.sidebar-caption, .eyebrow { font-size: 10px; letter-spacing: 1.65px; font-weight: 700; color: var(--muted); }
.sidebar-caption { margin: 55px 0 14px 12px; }
.primary-nav { display: grid; gap: 5px; }
.nav-item { min-height: 50px; border: 0; background: transparent; display: flex; gap: 13px; align-items: center; padding: 0 13px; border-radius: 14px; text-align: left; cursor: pointer; font-size: 14px; color: #59625c; transition: background .18s, color .18s; }
.nav-item:hover { background: #ecece5; color: var(--ink); }
.nav-item.is-active { background: var(--green-soft); color: var(--green-deep); font-weight: 700; }
.nav-icon { width: 20px; text-align: center; font-size: 20px; line-height: 1; }
.sparkle { color: #9c784d; }
.nav-soon { font-size: 8px; letter-spacing: 1px; margin-left: auto; color: #968b75; background: #eae6da; border-radius: 6px; padding: 4px 6px; }
.sidebar-spacer { flex: 1; }
.sidebar-note { padding: 15px 14px 12px; border-radius: 16px; background: #edeee8; margin-bottom: 14px; }
.note-orbit { color: var(--green); font-size: 19px; }
.sidebar-note p { color: #68726a; font: 500 12px/1.55 var(--serif); margin: 8px 0 2px; }
.profile-shortcut { min-height: 57px; width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; border-radius: 12px; text-align: left; padding: 6px 5px; cursor: pointer; }
.profile-shortcut:hover { background: #edeee8; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-weight: 700; font-size: 14px; }
.avatar-you { background: #dbd9ca; color: #4d554b; }
.profile-shortcut-copy { display: grid; gap: 2px; min-width: 0; }
.profile-shortcut-copy strong { font-size: 12px; }
.profile-shortcut-copy small { font-size: 11px; color: var(--muted); }
.more { margin-left: auto; font-size: 18px; color: var(--muted); }

.main-column { min-width: 0; min-height: 100vh; border-right: 1px solid var(--line); background: var(--paper); }
.mobile-header, .mobile-bottom-nav { display: none; }
.view-header { padding: 30px 44px 23px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; }
.view-header h1 { margin: 5px 0 0; font: 700 23px/1.2 var(--serif); letter-spacing: -.7px; }
.view-header .eyebrow { margin: 0; }
.today-layout { max-width: 740px; margin: auto; padding: 0 44px 40px; }
.welcome { padding: 33px 0 22px; }
.welcome h2 { font: 600 clamp(26px, 3.5vw, 36px)/1.2 var(--serif); letter-spacing: -1.35px; margin: 0 0 9px; }
.welcome p { font-size: 14px; line-height: 1.55; margin: 0; color: var(--muted); }
.day-meta { display: flex; align-items: center; gap: 8px; margin-top: 19px; font-size: 11px; font-weight: 600; letter-spacing: .15px; color: var(--green); }
.day-meta span:first-child { color: #a27b4c; font-size: 15px; }
.composer-teaser { display: flex; align-items: center; gap: 13px; padding: 12px; background: #f8f8f3; border: 1px solid var(--line); border-radius: 16px; margin: 6px 0 20px; }
.composer-prompt { flex: 1; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: white; color: #929990; text-align: left; padding: 0 14px; cursor: pointer; font-size: 13px; }
.composer-prompt:hover { border-color: #b9c9bd; color: var(--ink); }
.button { min-height: 48px; padding: 0 19px; display: inline-flex; gap: 9px; align-items: center; justify-content: center; border: 0; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .16s, background .16s; }
.button:hover { transform: translateY(-1px); }
.button-green { color: white; background: var(--green); }
.button-green:hover { background: var(--green-deep); }
.button-light { color: var(--green-deep); background: var(--green-soft); }
.button-light:hover { background: #dce8df; }
.feed-list { display: grid; gap: 12px; }
.post-card { padding: 20px 21px 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.post-head { display: flex; align-items: center; gap: 11px; }
.avatar-anna { background: #e8d4bc; color: #805c41; }
.avatar-david { background: #cedbd0; color: #365849; }
.avatar-you { background: #d8d9cd; }
.post-person { flex: 1; min-width: 0; }
.post-person strong { display: block; font-size: 12px; font-weight: 700; }
.post-person small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.provenance { display: inline-flex; align-items: center; min-height: 28px; gap: 6px; border: 1px solid #e4e8e1; border-radius: 999px; color: #607266; background: #f6f8f4; padding: 3px 9px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.provenance-mark { font-size: 12px; }
.post-badges { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.provenance-ai { color: #654f7b; background: #f5f0fa; border-color: #e8def0; }
.provenance-ai-assisted { color: #695b35; background: #faf6e9; border-color: #eee7d0; }
.epistemic { display: inline-flex; align-items: center; min-height: 28px; border: 1px solid #eadfc9; border-radius: 999px; color: #765d37; background: #fbf7ee; padding: 3px 9px; font-size: 10px; font-weight: 650; }
.epistemic-conjecture, .epistemic-opinion { color: #735c3e; background: #fbf7ee; }
.epistemic-experience { color: #496555; background: #f0f6f0; border-color: #dfe9df; }
.post-evidence { margin: -3px 0 14px; padding: 11px 12px; border-left: 3px solid #d5b175; border-radius: 0 10px 10px 0; background: #faf8f0; }
.post-evidence strong { display: block; color: #756343; font-size: 10px; }
.evidence-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.evidence-item { display: grid; gap: 3px; max-width: 100%; }
.evidence-quote { color: #60665e; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.evidence-links a, .ai-fallback-link { min-height: 40px; display: inline-flex; align-items: center; color: var(--green); font-size: 11px; font-weight: 700; }
.post-copy { font: 500 14px/1.75 var(--serif); letter-spacing: -.1px; margin: 15px 1px 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-art { height: 116px; border-radius: 12px; margin-bottom: 10px; overflow: hidden; position: relative; background: linear-gradient(151deg,#c6d5c8 5%,#ebd6b9 46%,#e7bc8e 100%); }
.post-art::before { content: ''; position: absolute; width: 80%; height: 94px; border-radius: 50% 50% 0 0; background: linear-gradient(150deg,#839d83,#4c7061); left: -5%; bottom: -49px; transform: rotate(-8deg); }
.post-art::after { content: ''; position: absolute; width: 76%; height: 78px; border-radius: 50% 50% 0 0; background: linear-gradient(145deg,#b2bd9b,#657f6a); right: -8%; bottom: -44px; transform: rotate(8deg); }
.post-art-artsy { background: linear-gradient(150deg,#e6c8a7 0%,#f1e8cf 52%,#b4c7b3 100%); }
.post-art-artsy::before { width: 62%; height: 115px; bottom: -73px; left: 18%; background: #d7a76c; transform: rotate(15deg); }
.post-art-artsy::after { width: 38%; height: 58px; bottom: -22px; right: 8%; background: #476b58; transform: rotate(-11deg); }
.post-actions { display: flex; align-items: center; gap: 6px; border-top: 1px solid #efefe9; padding-top: 9px; }
.follow-button { min-height: 36px; margin-left: auto; padding: 0 10px; border: 1px solid #a8b9aa; border-radius: 9px; color: var(--green-deep); background: #f5f8f3; font-size: 10px; font-weight: 700; cursor: pointer; }
.follow-button.is-following { color: #6a726c; border-color: var(--line); background: #fff; }
.feed-search { width: 100%; min-height: 46px; margin: 0 0 14px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fffefa; font: 500 12px var(--sans); }
.post-action-muted { color: #7c827d !important; }
.post-action { min-height: 42px; display: inline-flex; gap: 7px; align-items: center; border: 0; border-radius: 10px; background: transparent; color: #7b837c; cursor: pointer; padding: 0 10px; font-size: 11px; }
.post-action:hover { background: #f2f3ed; color: var(--green); }
.post-action.is-liked { color: #a8514d; }
.post-action span:first-child { font-size: 16px; }
.post-action.why-action { margin-left: auto; }
.end-card { margin: 22px 0 10px; padding: 23px 20px; display: flex; align-items: center; gap: 14px; border-radius: 17px; background: #f1f2ec; }
.end-symbol { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: var(--green); background: #e0e9e0; font-size: 19px; flex: 0 0 auto; }
.end-card strong { display: block; font: 700 13px var(--serif); }
.end-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.end-check { margin-left: auto; color: #5b7b64; font-size: 18px; }

.right-rail { padding: 32px 20px; display: flex; flex-direction: column; gap: 15px; }
.rail-card { border: 1px solid var(--line); border-radius: 18px; background: #fffefa; padding: 18px; }
.rail-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.alter-orb { width: 40px; height: 40px; display: grid; place-items: center; color: var(--green); background: #e8eee7; border-radius: 14px; font-size: 21px; }
.status-pill { display: flex; align-items: center; gap: 6px; color: #777f78; font-size: 9px; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #d1ae78; }
.rail-card .eyebrow { margin: 0 0 8px; }
.rail-card h2 { font: 650 20px/1.25 var(--serif); letter-spacing: -.65px; margin: 0 0 9px; }
.rail-muted { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0 0 15px; }
.text-action { width: 100%; min-height: 44px; display: flex; justify-content: space-between; align-items: center; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--green); font-size: 11px; font-weight: 700; padding: 12px 0 0; cursor: pointer; text-align: left; }
.principle-card { padding: 17px 18px 10px; }
.principle-card > .eyebrow { margin-bottom: 12px !important; }
.principle { display: flex; gap: 11px; align-items: baseline; border-top: 1px solid #eeeee8; padding: 11px 0; }
.principle > span { color: #a6a99d; font: 600 10px var(--serif); }
.principle p { margin: 0; color: #59625a; font: 500 11px/1.4 var(--serif); }
.rail-footer { color: #9a9e97; font-size: 10px; padding: 1px 3px; margin-top: auto; }
.rail-footer span { padding: 0 5px; }
.rail-footer button { border: 0; padding: 0; color: inherit; background: none; cursor: pointer; font-size: inherit; }

.dialog { width: min(440px, calc(100vw - 30px)); border: 1px solid var(--line); border-radius: 22px; padding: 29px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 90px #1e2e2433; }
.dialog::backdrop { background: #17241dc0; backdrop-filter: blur(3px); }
.dialog form[method="dialog"] { margin: 0; }
.dialog-close { position: absolute; top: 13px; right: 15px; min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.dialog-close:hover { background: var(--paper-soft); }
.dialog-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 15px; background: var(--green-soft); color: var(--green); font-size: 22px; margin-bottom: 17px; }
.dialog .eyebrow { margin: 0 0 8px; }
.dialog h2 { font: 700 24px var(--serif); letter-spacing: -.7px; margin: 0 0 12px; }
.dialog-copy { color: #5e675f; font-size: 14px; line-height: 1.7; }
.dialog-rule { display: flex; align-items: flex-start; gap: 9px; padding: 13px; border-radius: 12px; background: #f1f2ec; color: #68736b; font-size: 11px; line-height: 1.55; margin: 19px 0; }
.dialog-rule span:first-child { color: var(--green); font-size: 15px; }
.dialog-done { width: 100%; }
.compose-dialog textarea { width: 100%; resize: vertical; min-height: 120px; border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.6; }
.compose-field { display: grid; gap: 6px; margin: 13px 0; color: #606a62; font-size: 11px; font-weight: 650; }
.compose-field select, .compose-field input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 0 11px; color: var(--ink); background: #fff; font: 500 12px var(--sans); }
.compose-field textarea, .evidence-fields .compose-field textarea { width: 100%; min-height: 68px; resize: vertical; border: 1px solid var(--line); border-radius: 11px; padding: 10px; color: var(--ink); background: #fff; font: 500 12px/1.5 var(--sans); }
.compose-field input::placeholder { color: #a1a69f; }
.evidence-fields { padding: 13px; border: 1px solid #eee7d8; border-radius: 12px; background: #faf8f1; }
.evidence-fields[hidden] { display: none; }
.evidence-fields > p { color: #766443; font-size: 11px; line-height: 1.6; margin: 0 0 8px; }
.evidence-fields .evidence-note { margin-top: 10px; color: #777f78; font-size: 10px; }
.ai-layout { max-width: 1080px; }
.ai-intro { padding: 15px 0 12px; }
.ai-intro p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.ai-frame { display: block; width: 100%; height: clamp(540px, calc(100dvh - 230px), 920px); border: 1px solid var(--line); border-radius: 15px; background: #f5f4ef; }
.video-layout { max-width: 1100px; }
.video-intro-card { margin: 22px 0 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg,#f5f7f1,#fbf7ef); }
.video-intro-card .eyebrow { margin: 0 0 8px; }
.video-intro-card h2 { margin: 0 0 7px; font: 700 clamp(21px,3vw,28px)/1.2 var(--serif); letter-spacing: -.7px; }
.video-intro-card > p:not(.eyebrow) { margin: 0; max-width: 620px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.video-intro-card .video-prototype-note { margin-top: 10px !important; font-size: 10px !important; }
.video-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 15px; }
.video-batch { color: #68736b; font-size: 11px; font-weight: 650; }
.clip-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.clip-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fffefa; transition: border-color .18s, box-shadow .18s; }
.clip-card.is-previewing { border-color: #74917c; box-shadow: 0 0 0 2px #315d501c; }
.clip-stage { aspect-ratio: 16 / 9; min-height: 110px; position: relative; overflow: hidden; background: #d8cbb0; touch-action: none; cursor: grab; user-select: none; }
.clip-stage.is-dragging { cursor: grabbing; transform: translate(var(--drag-x,0),var(--drag-y,0)) scale(.96); z-index: 2; box-shadow: 0 12px 30px #17241d2e; }
.clip-stage[data-drag-direction="up"] { outline: 3px solid #5f896e; outline-offset: -3px; }
.clip-stage[data-drag-direction="down"] { outline: 3px solid #bd816e; outline-offset: -3px; }
.clip-stage[data-drag-direction="left"] { outline: 3px solid #a9aaa0; outline-offset: -3px; }
.clip-stage[data-drag-direction="right"] { outline: 3px solid #7494ae; outline-offset: -3px; }
.clip-stage::before, .clip-stage::after { content: ''; position: absolute; display: block; transition: transform .2s; }
.clip-stage::before { width: 42%; aspect-ratio: 1; left: 29%; top: 23%; border-radius: 50%; background: #f0e0c6; box-shadow: 0 12px 26px #1d2a2526; }
.clip-stage::after { width: 90%; height: 38%; left: 5%; bottom: -9%; border-radius: 50% 50% 0 0; background: #677e69; }
.clip-art-clay { background: linear-gradient(145deg,#edd9bd,#a87d62); }
.clip-art-clay::before { border-radius: 38% 38% 48% 48%; background: linear-gradient(90deg,#ac7358,#e5b993 50%,#9d674e); }
.clip-art-rain { background: linear-gradient(145deg,#b8c5c2,#e8cba8); }
.clip-art-rain::before { width: 62%; height: 14%; left: 19%; top: 40%; aspect-ratio: auto; border-radius: 50%; background: #f8edda; filter: blur(5px); }
.clip-art-rain::after { background: linear-gradient(90deg,#657a73,#718d82 50%,#9e8465); }
.clip-art-water { background: linear-gradient(145deg,#cadbd7,#e9d7b4); }
.clip-art-water::before { width: 23%; height: 26%; left: 39%; top: 22%; aspect-ratio: auto; border-radius: 4px 50% 50% 50%; transform: rotate(45deg); background: #fff; }
.clip-art-water::after { height: 42%; background: repeating-radial-gradient(ellipse at center,#6d968d 0 3px,#b7c9ae 4px 7px); }
.clip-art-coffee { background: linear-gradient(145deg,#d9c3a5,#f2e5cd); }
.clip-art-coffee::before { width: 38%; height: 22%; left: 31%; top: 34%; aspect-ratio: auto; border-radius: 8px 8px 24px 24px; background: #f6eee0; border-bottom: 8px solid #694a39; }
.clip-art-coffee::after { background: #8d745a; }
.clip-art-paper { background: linear-gradient(145deg,#bdd1c5,#f0e2cb); }
.clip-art-paper::before { width: 31%; height: 34%; left: 34%; top: 25%; aspect-ratio: auto; border-radius: 4px; transform: rotate(45deg); background: #fffdf3; clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.clip-art-paper::after { background: #667f67; }
.clip-art-lake { background: linear-gradient(180deg,#eccca5,#9dbab1 58%,#6e8f84); }
.clip-art-lake::before { width: 65%; height: 10%; left: 18%; top: 44%; aspect-ratio: auto; border-radius: 50%; background: #fff0cc; filter: blur(7px); }
.clip-art-lake::after { height: 38%; background: repeating-linear-gradient(175deg,#709389 0 4px,#9bb4a6 5px 9px); }
.clip-art-paint { background: linear-gradient(145deg,#e5d2b7,#d0d9c7); }
.clip-art-paint::before { width: 25%; height: 28%; left: 37%; top: 26%; aspect-ratio: auto; border-radius: 55% 40% 60% 38%; transform: rotate(-25deg); background: #bf795f; box-shadow: 22px 10px 0 -5px #748d71,-17px 19px 0 -8px #d9b86c; }
.clip-art-paint::after { height: 30%; background: #667562; }
.clip-art-tram { background: linear-gradient(145deg,#bdc9bb,#edcfaa); }
.clip-art-tram::before { width: 26%; height: 52%; left: 37%; top: 20%; aspect-ratio: auto; border-radius: 8px 8px 2px 2px; background: linear-gradient(#e7e6d2 0 37%,#bf795f 38% 72%,#f4d28d 73%); }
.clip-art-tram::after { height: 24%; background: #525f58; }
.clip-stage.is-moving::before { animation: clip-drift 2.2s ease-in-out both; }
.clip-stage.is-moving::after { animation: clip-shift 2.2s ease-in-out both; }
@keyframes clip-drift { 0% { transform: translateY(9px) scale(.92); } 45% { transform: translateY(-4px) scale(1.04); } 100% { transform: translateY(0) scale(1); } }
@keyframes clip-shift { 0% { transform: translateX(5%); } 55% { transform: translateX(-3%); } 100% { transform: translateX(0); } }
.clip-duration { position: absolute; z-index: 1; top: 8px; right: 8px; padding: 4px 7px; border-radius: 6px; color: white; background: #17241dba; font-size: 10px; font-variant-numeric: tabular-nums; }
.clip-play-mark { position: absolute; z-index: 1; left: 50%; top: 50%; width: 38px; height: 38px; display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; color: white; background: #17241d9c; font-size: 15px; }
.clip-drag-hint { position: absolute; z-index: 1; left: 7px; bottom: 7px; max-width: calc(100% - 14px); padding: 4px 6px; border-radius: 6px; color: #fff; background: #17241db8; font-size: 8px; line-height: 1.3; }
.clip-meta { padding: 12px 13px 4px; }
.clip-meta strong { display: block; font-size: 12px; }
.clip-meta p { margin: 4px 0 5px; min-height: 30px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.clip-meta small { color: #6d796f; font-size: 9px; }
.clip-open-button { width: calc(100% - 24px); min-height: 44px; margin: 8px 12px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--green-deep); background: #f6f8f3; font-size: 11px; font-weight: 700; cursor: pointer; }
.clip-open-button:hover { background: var(--green-soft); }
.clip-directions { display: grid; grid-template-columns: repeat(2,minmax(44px,1fr)); gap: 5px; padding: 0 10px 10px; }
.clip-direction-button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; color: #617068; background: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.clip-direction-button:hover, .clip-direction-button.is-selected { color: var(--green-deep); border-color: #9eb6a3; background: #edf3ed; }
.clip-card.rated-down .clip-direction-button[data-direction="down"], .clip-card.rated-up .clip-direction-button[data-direction="up"] { color: var(--green-deep); border-color: #91ad98; background: #e8f1e9; }
.clip-card.rated-left .clip-direction-button[data-direction="left"] { color: #6b6b65; border-color: #c7c7be; background: #f2f1ec; }
.clip-card.rated-right .clip-direction-button[data-direction="right"] { color: #3d6480; border-color: #a2bacb; background: #edf4f8; }
.video-direction-guide { margin: 12px 0 0 !important; padding: 10px 12px; border-radius: 11px; color: #315d50 !important; background: #eaf1eb; font-size: 11px !important; font-weight: 700; }
.video-saved-count { margin: 4px 0 20px; color: #637269; text-align: center; font-size: 11px; }
.video-next { width: 100%; margin: 14px 0 25px; }
.video-end { margin-top: 22px; }
.video-fullscreen { position: relative; width: 100%; height: calc(100dvh - 0px); min-height: 620px; overflow: hidden; background: #17241d; }
.video-full-stage { position: absolute; inset: 0; touch-action: none; cursor: grab; user-select: none; overflow: hidden; }
.video-full-stage::before, .video-full-stage::after { content: ''; position: absolute; display: block; }
.video-full-stage::before { width: 46%; aspect-ratio: 1; left: 27%; top: 24%; border-radius: 50%; background: #f0e0c6; box-shadow: 0 30px 60px #1d2a2550; }
.video-full-stage::after { width: 110%; height: 42%; left: -5%; bottom: -10%; border-radius: 50% 50% 0 0; background: #677e69; }
.video-full-stage.is-moving::before { animation: clip-drift 2.2s ease-in-out both; }
.video-full-stage.is-moving::after { animation: clip-shift 2.2s ease-in-out both; }
.video-full-stage.is-dragging { cursor: grabbing; transform: translate(var(--drag-x,0),var(--drag-y,0)) scale(.97); }
.video-full-stage[data-drag-direction="up"] { outline: 5px solid #77ad88; outline-offset: -5px; }
.video-full-stage[data-drag-direction="down"] { outline: 5px solid #d38d78; outline-offset: -5px; }
.video-full-stage[data-drag-direction="left"] { outline: 5px solid #a7aaa3; outline-offset: -5px; }
.video-full-stage[data-drag-direction="right"] { outline: 5px solid #77a4c0; outline-offset: -5px; }
.video-full-top { position: absolute; z-index: 2; top: 18px; left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; }
.video-full-close { width: 48px; height: 48px; border: 0; border-radius: 50%; color: white; background: #17241d8c; font-size: 30px; cursor: pointer; }
.video-full-counter, .video-full-duration { padding: 7px 10px; border-radius: 8px; color: white; background: #17241db5; font-size: 11px; }
.video-full-duration { position: absolute; z-index: 2; top: 84px; right: 18px; }
.video-full-play { position: absolute; z-index: 2; top: 50%; left: 50%; width: 64px; height: 64px; display: grid; place-items: center; transform: translate(-50%,-50%); border-radius: 50%; color: white; background: #17241d9c; font-size: 24px; }
.video-full-info { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 28px; color: white; text-shadow: 0 2px 14px #17241da8; }
.video-full-info strong { display: block; font: 700 28px var(--serif); }
.video-full-info p { max-width: 540px; margin: 8px 0; font-size: 14px; line-height: 1.55; }
.video-full-info small { font-size: 11px; }
.video-full-hint { display: block; width: fit-content; max-width: 100%; margin-top: 14px; padding: 8px 10px; border-radius: 9px; background: #17241d91; font-size: 10px; }
.video-full-directions { position: absolute; z-index: 4; right: 18px; bottom: 28px; display: grid; grid-template-columns: repeat(2,48px); gap: 7px; }
.video-full-directions .clip-direction-button { color: white; border-color: #ffffff66; background: #17241d9c; }
.video-end-screen { height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 28px; text-align: center; color: white; }
.video-end-screen strong { font: 700 28px var(--serif); }
.video-end-screen p { max-width: 360px; color: #dce8df; font-size: 13px; line-height: 1.6; }
.compose-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; margin: 10px 1px 16px; }
.compose-dialog .button { width: 100%; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 27px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #233e34; color: white; border-radius: 12px; padding: 13px 18px; font-size: 12px; box-shadow: 0 8px 30px #16251f33; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.empty-view { padding: 38px 30px; text-align: center; border: 1px solid var(--line); border-radius: 18px; background: #fafaf6; margin-top: 22px; }
.empty-view .end-symbol { margin: 0 auto 12px; }
.empty-view h2 { font: 700 20px var(--serif); margin: 7px 0; }
.empty-view p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 auto 16px; max-width: 380px; }
.profile-hero { margin-top: 22px; border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: #fafaf6; }
.profile-hero .avatar { width: 58px; height: 58px; font-size: 20px; }
.profile-hero h2 { font: 700 22px var(--serif); margin: 13px 0 3px; }
.profile-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-hero .bio { color: #555e57; margin-top: 15px; line-height: 1.6; font-size: 13px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-top: 1px solid var(--line); }
.setting-row:first-child { border-top: 0; }
.setting-row strong { font-size: 13px; }
.setting-row p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 4px 0 0; }
.setting-row select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); padding: 0 10px; }
.toggle { width: 48px; height: 28px; border: 0; border-radius: 99px; background: #d8dcd6; padding: 3px; cursor: default; }
.toggle span { width: 22px; height: 22px; display: block; border-radius: 50%; background: white; box-shadow: 0 1px 4px #17231d22; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (min-width: 1440px) { .app-shell { grid-template-columns: 250px minmax(600px, 1fr) 330px; } }
@media (max-width: 1100px) { .app-shell { grid-template-columns: 212px minmax(410px, 1fr); } .right-rail { display: none; } }
@media (max-width: 720px) {
  body { background: var(--paper); }
  .app-shell { display: block; min-height: 100dvh; }
  .sidebar, .right-rail { display: none; }
  .main-column { min-height: 100dvh; border: 0; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mobile-header { height: 60px; display: flex; position: sticky; z-index: 3; top: 0; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fffefaed; backdrop-filter: blur(12px); }
  .mobile-header .brand { font-size: 21px; }
  .mobile-header .brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 21px; }
  .icon-button { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; color: #526057; font-size: 21px; }
  .notification-dot { position: absolute; width: 7px; height: 7px; background: #c47e59; top: 10px; right: 11px; border: 1px solid white; border-radius: 50%; }
  .view-header { padding: 22px 21px 17px; }
  .view-header h1 { font-size: 21px; }
  .today-layout { padding: 0 16px 25px; }
  .welcome { padding: 25px 2px 18px; }
  .welcome h2 { font-size: 28px; }
  .welcome p { font-size: 13px; max-width: 330px; }
  .day-meta { margin-top: 14px; }
  .composer-teaser { gap: 9px; padding: 9px; margin-bottom: 14px; }
  .composer-teaser .avatar { width: 34px; height: 34px; }
  .composer-prompt { min-width: 0; min-height: 46px; font-size: 11px; padding: 0 10px; }
  .composer-teaser .button { width: 46px; min-width: 46px; padding: 0; font-size: 0; }
  .composer-teaser .button span { font-size: 19px; }
  .post-card { padding: 16px 14px 12px; border-radius: 16px; }
  .post-copy { font-size: 13px; line-height: 1.7; margin-top: 13px; }
  .provenance { min-height: 26px; padding: 3px 7px; font-size: 9px; }
  .post-art { height: 98px; }
  .post-action { min-height: 44px; padding: 0 7px; font-size: 10px; }
  .post-action.why-action { max-width: 145px; }
  .post-badges { gap: 4px; }
  .provenance, .epistemic { min-height: 26px; padding: 3px 7px; font-size: 9px; }
  .ai-layout { padding: 0 12px 24px; }
  .ai-frame { height: calc(100dvh - 235px); min-height: 390px; border-radius: 12px; }
  .end-card { padding: 18px 15px; gap: 10px; }
  .end-card p { max-width: 245px; }
  .mobile-bottom-nav { display: grid; grid-template-columns: repeat(6, minmax(44px,1fr)); position: fixed; z-index: 4; inset: auto 0 0; padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffefaf2; backdrop-filter: blur(14px); }
  .mobile-nav-item { min-width: 44px; min-height: 54px; display: grid; align-content: center; justify-items: center; gap: 3px; border: 0; border-radius: 11px; color: #808780; background: transparent; cursor: pointer; }
  .mobile-nav-item > span { font-size: 19px; line-height: 1; }
  .mobile-nav-item small { overflow: hidden; max-width: 100%; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
  .mobile-nav-item.is-active { color: var(--green); background: var(--green-soft); }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); text-align: center; }
  .dialog { padding: 26px 20px 20px; }
}
@media (max-width: 380px) { .post-action.why-action { max-width: 112px; } .post-action { gap: 4px; } .post-person { min-width: 0; } .post-badges { max-width: 55%; } }
@media (max-width: 720px) {
  .video-layout { padding: 0 12px 24px; }
  .video-intro-card { padding: 15px; }
  .clip-grid { gap: 8px; }
  .clip-meta { padding: 10px 9px 3px; }
  .clip-open-button { width: calc(100% - 18px); margin: 7px 9px 9px; }
  .video-fullscreen { min-height: calc(100dvh - 60px); height: calc(100dvh - 60px); margin-top: -1px; }
  .video-full-info { left: 17px; right: 17px; bottom: 27px; }
  .video-full-info strong { font-size: 23px; }
  .video-full-info p { font-size: 12px; }
  .video-full-directions { right: 12px; bottom: 27px; }
  .video-full-hint { max-width: calc(100% - 112px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
