:root {
    --ink: #18221f;
    --muted: #65706c;
    --paper: #fbf8f1;
    --paper-deep: #f2ecdf;
    --card: #fffdf8;
    --line: #ded8cc;
    --coral: #ef6b55;
    --coral-dark: #d9543f;
    --sage: #688b78;
    --yellow: #e9b949;
    --blue: #668aa5;
    --shadow: 0 18px 45px rgba(31, 41, 37, .10);
    --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.hidden { display: none !important; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(251, 248, 241, .91);
    border-bottom: 1px solid rgba(222, 216, 204, .8);
    backdrop-filter: blur(15px);
}
.nav { height: 74px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 850; letter-spacing: -1px; }
.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: var(--ink);
    border-radius: 9px 6px 10px 7px;
    font-family: Georgia, serif;
    font-size: 20px;
    transform: rotate(-2deg);
}
.brand-dot { color: var(--coral); }
.nav-discover { padding: 8px 0; border: 0; border-bottom: 1px solid transparent; color: var(--muted); background: transparent; font-size: 12px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.nav-discover:hover { color: var(--ink); border-color: var(--ink); }
.nav-search {
    display: flex;
    align-items: center;
    width: min(360px, 34vw);
    padding: 0 14px;
    margin-right: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.55);
}
.nav-search svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.nav-search input { width: 100%; padding: 10px; border: 0; outline: none; color: var(--ink); background: transparent; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.opportunity-nav { position: relative; font-size: 11px; }
.nav-badge { display: grid; min-width: 18px; height: 18px; padding: 0 4px; place-items: center; border-radius: 10px; color: #fff; background: var(--coral); font-size: 9px; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-user-copy { display: grid; text-align: left; line-height: 1.2; }
.nav-user-copy strong { font-size: 13px; }
.nav-user-copy small { color: var(--muted); font-size: 11px; max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
    display: inline-grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--sage);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .3px;
}
.avatar.small { width: 35px; height: 35px; font-size: 11px; }
.avatar.large { width: 76px; height: 76px; font-size: 22px; }
.avatar.c1 { background: #678a78; }
.avatar.c2 { background: #b26d59; }
.avatar.c3 { background: #6a8097; }
.avatar.c4 { background: #9a7a4f; }
.avatar.c5 { background: #7f6f91; }
.anonymous-avatar { color:#65706c; border:1px dashed #9fa7a3; background:#ece9e1; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 41px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { background: #2b3733; }
.btn-coral { color: #fff; background: var(--coral); box-shadow: 0 8px 20px rgba(239,107,85,.2); }
.btn-coral:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; }
.btn-outline { border-color: var(--line); background: transparent; }
.btn-large { min-height: 50px; padding: 13px 21px; }
.btn-block { width: 100%; }

.hero { min-height: 575px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; padding-top: 60px; padding-bottom: 76px; }
.eyebrow, .section-kicker { color: var(--coral-dark); font-size: 11px; font-weight: 850; letter-spacing: 1.6px; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--sage); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(239,107,85,.12); }
.hero h1 { max-width: 650px; margin: 20px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(51px, 6vw, 76px); font-weight: 500; line-height: .97; letter-spacing: -3.5px; }
.hero h1 em { color: var(--coral); font-weight: 400; }
.hero-copy > p { max-width: 580px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin: 30px 0 20px; }
.text-link { padding: 8px 0; border: 0; border-bottom: 1px solid var(--ink); background: none; font-weight: 700; cursor: pointer; }
.hero-copy .hero-note { color: #89918d; font-size: 12px; font-style: italic; }
.hero-why-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; }
.hero-why-row .hero-note { margin: 0; }
.why-inline-link { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 16px 9px 16px 14px; color: var(--ink); background: var(--card); font-size: 10px; font-weight: 850; cursor: pointer; box-shadow: 0 4px 13px rgba(25,35,31,.05); }
.why-inline-link span { color: var(--coral); font-size: 14px; transition: transform .18s; }
.why-inline-link:hover span { transform: translateX(2px); }
.safety-promises { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:20px; color:#63716a; font-size:9px; font-weight:700; }
.safety-promises span { display:flex; align-items:center; gap:5px; }
.safety-promises i { display:grid; width:16px; height:16px; place-items:center; border-radius:50%; color:#fff; background:var(--sage); font-size:8px; font-style:normal; }
.hero-art { position: relative; min-height: 390px; }
.path-card { position: absolute; inset: 28px 15px 18px; overflow: hidden; border: 1px solid #d3cbbc; border-radius: 4px 16px 6px 12px; background: #fffdf7; box-shadow: var(--shadow); transform: rotate(1.4deg); }
.path-card::before { content: ""; position: absolute; inset: 0; opacity: .38; background-image: linear-gradient(#ddd6c9 1px, transparent 1px); background-size: 100% 34px; }
.path-line { position: absolute; inset: 45px 26px 30px; width: calc(100% - 52px); height: calc(100% - 75px); overflow: visible; }
.path-line path { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 9 7; }
.path-dot { position: absolute; left: 41px; bottom: 47px; width: 13px; height: 13px; border: 3px solid white; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 2px var(--sage); }
.path-label { position: absolute; padding: 3px 5px; background: #fffdf7; font-family: "Segoe Print", "Bradley Hand", cursive; font-size: 13px; line-height: 1.2; transform: rotate(-3deg); }
.label-start { left: 20px; bottom: 18px; }
.label-fail { left: 95px; top: 138px; color: var(--coral-dark); transform: rotate(4deg); }
.label-learn { left: 191px; top: 109px; color: var(--sage); }
.label-now { right: 13px; top: 20px; }
.path-cross { position: absolute; right: 70px; top: 78px; color: var(--yellow); font: 700 35px Georgia; transform: rotate(12deg); }
.scribble-note { position: absolute; z-index: 3; padding: 9px 14px; color: #5d5548; background: #f5df76; box-shadow: 0 3px 7px rgba(40,40,30,.12); font: 700 11px "Segoe Print", cursive; letter-spacing: .8px; transform: rotate(-5deg); }
.note-one { left: -4px; top: 12px; }
.note-two { right: -7px; bottom: 0; color: #52655a; background: #cddfc9; transform: rotate(5deg); }
.tape { position: absolute; z-index: 2; top: 14px; right: 70px; width: 68px; height: 24px; opacity: .65; background: #eadfc9; transform: rotate(9deg); }

.whole-story-section { padding: 54px 0; border-top: 1px solid var(--line); background: var(--paper-deep); }
.whole-story-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: center; gap: 32px 58px; }
.whole-story-copy h2 { margin: 10px 0 14px; font: 500 clamp(34px, 4vw, 49px)/1.04 Georgia, serif; letter-spacing: -1.5px; }
.whole-story-copy h2 em { color: var(--coral); font-weight: 400; }
.whole-story-copy p { max-width: 650px; margin: 0; color: var(--muted); font: 15px/1.65 Georgia, serif; }
.whole-story-topics { display: flex; align-content: center; flex-wrap: wrap; gap: 9px; }
.whole-story-topics span { padding: 10px 13px; border: 1px solid var(--line); border-radius: 18px 10px 18px 15px; color: var(--ink); background: var(--card); box-shadow: 0 4px 12px rgba(30,40,35,.04); font-size: 10px; font-weight: 750; }
.whole-story-topics span:nth-child(2n) { border-radius: 10px 17px 13px 18px; transform: rotate(1deg); }
.whole-story-topics span:nth-child(3n) { transform: rotate(-1deg); }
.whole-story-safety { grid-column: 1 / -1; display: flex; align-items: center; gap: 17px; padding: 15px 18px; border-radius: 9px 16px 12px 15px; color: #eff4f0; background: #1a2722; }
.whole-story-safety strong { flex: 0 0 auto; font: 500 15px Georgia, serif; }
.whole-story-safety span { color: #aebdb5; font-size: 10.5px; line-height: 1.5; }

.content-section { padding: 70px 0 95px; border-top: 1px solid var(--line); background: #f5f0e6; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 42px; align-items: start; }
.feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.feed-heading h2 { margin: 7px 0 0; font: 500 37px Georgia, serif; letter-spacing: -1px; }
.sort-control { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #ebe5da; }
.sort-button { padding: 7px 12px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.sort-button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(30,30,20,.06); }
.category-row { display: flex; gap: 8px; margin: 25px 0 20px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: none; }
.category-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.chip.active, .chip:hover { color: #fff; border-color: var(--ink); background: var(--ink); }
.story-list { display: grid; gap: 15px; }
.story-card { position: relative; padding: 25px 26px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 4px 15px rgba(34,39,36,.03); transition: transform .2s, box-shadow .2s; }
.story-card:hover { transform: translateY(-2px); box-shadow: 0 11px 25px rgba(34,39,36,.07); }
.story-card-header { display: flex; align-items: center; gap: 11px; }
.author-button { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.author-copy { display: grid; min-width: 0; }
.author-copy strong { font-size: 14px; }
.author-copy small { overflow: hidden; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.story-time { margin-left: auto; color: #929995; font-size: 11px; }
.category-tag { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 9px; color: var(--coral-dark); font-size: 10px; font-weight: 850; letter-spacing: 1.1px; text-transform: uppercase; }
.category-tag::before { content: ""; width: 16px; height: 2px; background: currentColor; transform: rotate(-8deg); }
.category-tag.interview { color: #66829a; }
.category-tag.startup { color: #7b7b50; }
.category-tag.presentation { color: #8a6a94; }
.category-tag.financial { color: #9b7638; }
.category-tag.addiction_recovery { color: #4f8168; }
.category-tag.relationships_family { color: #a05f72; }
.category-tag.mental_health { color: #5d7098; }
.category-tag.personal_challenge { color: #8a674e; }
.category-tag.other { color: #5f8270; }
.story-card h3 { margin: 0 0 10px; font: 600 24px/1.25 Georgia, serif; letter-spacing: -.3px; }
.story-card h3 a:hover { color: var(--coral-dark); }
.story-body { margin: 0; color: #59635f; font-family: Georgia, serif; font-size: 15.5px; line-height: 1.7; white-space: pre-line; }
.lesson-box { margin: 18px 0 20px; padding: 13px 15px; border-left: 3px solid var(--sage); border-radius: 0 8px 8px 0; background: #edf2ec; color: #4b6255; font-size: 13px; line-height: 1.5; }
.lesson-box strong { display: block; margin-bottom: 3px; color: var(--sage); font-size: 9px; letter-spacing: 1.1px; text-transform: uppercase; }
.story-audio { display: grid; gap: 8px; margin: 14px 0 19px; padding: 13px; border: 1px solid var(--line); border-radius: 10px 15px 12px 14px; background: var(--paper-deep); }
.story-audio-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--sage); font-size: 9px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.story-audio-heading time { color: var(--muted); font-weight: 650; letter-spacing: 0; }
.story-audio audio { width: 100%; height: 38px; }
.story-audio.compact { margin: 5px 0 17px; padding: 9px; background: rgba(255,255,255,.04); }
.story-footer { display: flex; align-items: center; min-height: 54px; margin: 0 -26px; padding: 0 26px; border-top: 1px solid #ebe6dd; }
.vote-button { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.vote-button .heart { font-size: 19px; line-height: 1; }
.vote-button:hover, .vote-button.voted { color: var(--coral); }
.story-share-button { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 8px 10px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.story-share-button:hover { background: var(--paper-deep); }
.story-share-button + .card-menu { margin-left: 2px; }
.card-menu { margin-left: auto; padding: 5px 8px; border: 0; background: transparent; color: #8b918e; cursor: pointer; }
.empty-state { padding: 50px 25px; border: 1px dashed #cfc7b9; border-radius: var(--radius); text-align: center; background: rgba(255,255,255,.38); }
.empty-state .empty-icon { display: block; margin-bottom: 10px; font: 40px Georgia; color: var(--coral); transform: rotate(-8deg); }
.empty-state h3 { margin: 0 0 7px; font: 500 24px Georgia, serif; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.story-skeleton, .leader-skeleton { position: relative; overflow: hidden; background: #e7e1d7; }
.story-skeleton { height: 300px; border-radius: var(--radius); }
.leader-skeleton { height: 45px; margin: 12px 0; border-radius: 9px; }
.story-skeleton::after, .leader-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.load-more { display: flex; margin: 22px auto 0; }

.sidebar { display: grid; gap: 16px; position: sticky; top: 94px; }
.side-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.side-card-heading { display: flex; align-items: start; justify-content: space-between; }
.side-card h3 { margin: 5px 0 0; font: 600 21px Georgia, serif; }
.wonky-crown { color: var(--yellow); font-size: 31px; transform: rotate(8deg); }
.side-intro { margin: 12px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.leaderboard-list { border-top: 1px solid #e8e2d8; }
.leader-row { display: flex; align-items: center; gap: 9px; padding: 13px 0; border-bottom: 1px solid #eee8df; }
.leader-row:last-child { border-bottom: 0; }
.leader-rank { width: 15px; color: #929894; font: italic 15px Georgia; }
.leader-info { display: grid; min-width: 0; }
.leader-info button { overflow: hidden; padding: 0; border: 0; background: none; font-size: 12px; font-weight: 750; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.leader-info small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.leader-votes { margin-left: auto; color: var(--coral); font-size: 11px; font-weight: 800; white-space: nowrap; }
.manifesto-card { position: relative; overflow: hidden; color: #f7f3e9; background: var(--ink); }
.manifesto-card .quote-mark { position: absolute; right: 13px; top: -16px; color: rgba(255,255,255,.08); font: 110px Georgia; }
.manifesto-card blockquote { position: relative; margin: 0; font: italic 17px/1.45 Georgia, serif; }
.manifesto-card p { margin: 13px 0 0; color: #9bad9f; font-size: 10px; }
.share-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 17px 19px; border: 1px solid #e4aa9e; border-radius: var(--radius); background: #fff0eb; text-align: left; cursor: pointer; }
.share-card-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 10px; color: white; background: var(--coral); font-size: 19px; }
.share-card > span:nth-child(2) { display: grid; }
.share-card strong { font: 600 15px Georgia, serif; }
.share-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.share-arrow { margin-left: auto; color: var(--coral-dark); font-size: 20px; }

.site-footer { padding: 25px 0; color: #818a86; background: var(--ink); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; }
.footer-brand { color: #fff; font-size: 17px; }
.footer-brand .brand-mark { width: 27px; height: 27px; color: var(--ink); background: #fff; font-size: 15px; }
.footer-why { padding: 5px 0; border: 0; border-bottom: 1px solid #59645f; color: #c7d0cb; background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.footer-why:hover { color: #fff; border-color: var(--coral); }

/* Why Otentick: an editorial manifesto, intentionally outside the busy navigation. */
.modal.why-modal-card { width: min(940px, 100%); padding: 0; overflow-x: hidden; border-radius: 23px 17px 25px 19px; background: var(--card); }
.why-modal-card .modal-close { z-index: 3; color: #dfe9e3; }
.why-modal-card .modal-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.why-header { position: relative; overflow: hidden; padding: 50px 54px 42px; color: #f8f4ec; background: #18221f; }
.why-header::after { content: ""; position: absolute; right: -115px; top: -145px; width: 350px; height: 350px; border: 1px solid rgba(239,107,85,.18); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255,255,255,.025), 0 0 0 116px rgba(255,255,255,.018); }
.why-header > * { position: relative; z-index: 1; }
.why-header .section-kicker { color: #f08a77; }
.why-modal-card .why-header h2 { max-width: 770px; margin: 14px 0 17px; padding: 0; color: #fffaf1; font: 500 clamp(38px, 5vw, 57px)/.99 Georgia, serif; letter-spacing: -2px; text-align: left; }
.why-header h2 em { color: #f07b66; font-weight: 400; }
.why-header > p { max-width: 680px; margin: 0; color: #b8c6be; font: 16px/1.65 Georgia, serif; }
.why-listen { display: grid; grid-template-columns: auto 38px minmax(100px, 1fr) auto; align-items: center; gap: 10px 12px; max-width: 700px; margin-top: 29px; padding: 10px 12px; border: 1px solid #3e5148; border-radius: 12px 18px 14px 17px; background: rgba(255,255,255,.055); }
.why-listen-button { display: flex; min-width: 180px; align-items: center; gap: 10px; padding: 0; border: 0; color: #fff; background: transparent; text-align: left; cursor: pointer; }
.why-listen-button > span:last-child { display: grid; gap: 3px; }
.why-listen-button strong { font-size: 11px; }
.why-listen-button small { color: #9db0a6; font-size: 8px; }
.why-listen-icon { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #17211d; background: #f17b65; font-size: 12px; box-shadow: 0 0 0 5px rgba(241,123,101,.12); }
.why-audio-restart { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #4b5d54; border-radius: 50%; color: #c7d2cc; background: transparent; font-size: 17px; cursor: pointer; }
.why-audio-progress { height: 4px; overflow: hidden; border-radius: 4px; background: #3a4942; }
.why-audio-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #f17b65; transition: width .2s linear; }
.why-listen time { color: #a7b6ae; font-size: 8px; font-variant-numeric: tabular-nums; }
.why-listen > p { grid-column: 3 / -1; min-height: 11px; margin: -5px 0 0; color: #92a39a; font-size: 8px; }
.why-opening { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(245px, .65fr); gap: 55px; padding: 53px 54px; }
.why-chapter { display: block; margin-bottom: 12px; color: var(--coral-dark); font-size: 8px; font-weight: 900; letter-spacing: 1.5px; }
.why-opening-copy p { margin: 0 0 14px; color: var(--muted); font: 14px/1.72 Georgia, serif; }
.why-opening-copy .why-lead { color: var(--ink); font-size: 18px; line-height: 1.58; }
.why-opening-copy .why-lead::first-letter { float: left; margin: 5px 8px 0 0; color: var(--coral); font: 57px/.75 Georgia, serif; }
.why-pullquote { align-self: center; margin: 0; padding: 26px 0 26px 25px; border-left: 2px solid var(--coral); color: var(--ink); font: italic 27px/1.3 Georgia, serif; }
.why-principles { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); background: var(--paper-deep); }
.why-principles article { min-height: 205px; padding: 30px; border-right: 1px solid var(--line); }
.why-principles article:last-child { border-right: 0; }
.why-principles span { color: var(--sage); font-size: 8px; font-weight: 900; letter-spacing: 1.5px; }
.why-principles strong { display: block; margin: 12px 0 9px; font: 600 19px/1.2 Georgia, serif; }
.why-principles p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.why-belongs { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 52px; padding: 52px 54px; }
.why-belongs h3, .why-opportunity h3 { margin: 0 0 12px; font: 500 30px/1.12 Georgia, serif; letter-spacing: -.7px; }
.why-belongs p, .why-opportunity p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.why-people { display: flex; flex-wrap: wrap; gap: 8px; }
.why-people span { padding: 9px 11px; border: 1px solid var(--line); border-radius: 16px 9px 16px 13px; color: var(--ink); background: var(--paper); font-size: 9px; font-weight: 750; }
.why-people span:nth-child(2n) { transform: rotate(1deg); }
.why-people span:nth-child(3n) { transform: rotate(-1deg); }
.why-opportunity { display: grid; grid-template-columns: 72px 1fr; gap: 25px; margin: 0 25px; padding: 35px 38px; border-radius: 17px 11px 19px 14px; color: #f8f4ec; background: #1b2923; }
.why-opportunity .why-chapter { color: #80a890; }
.why-opportunity h3 { color: #fff; }
.why-opportunity p { max-width: 700px; color: #afbeb6; }
.why-opportunity-mark { display: grid; width: 64px; height: 64px; place-items: center; border: 1px solid #52675d; border-radius: 50% 44% 53% 46%; color: #19241f; background: #f17b65; font: 600 31px Georgia, serif; transform: rotate(-5deg); }
.why-closing { display: flex; align-items: center; justify-content: space-between; gap: 38px; padding: 43px 54px 48px; }
.why-closing > p { max-width: 490px; margin: 0; color: var(--ink); font: 16px/1.55 Georgia, serif; }
.why-closing > p span { display: block; margin-bottom: 8px; color: var(--coral-dark); font: 900 8px/1.2 Inter, sans-serif; letter-spacing: 1.5px; }
.why-closing > div { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; }
.why-closing .btn { font-size: 10px; }
.why-closing .text-link { font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(19, 27, 24, .67); backdrop-filter: blur(5px); }
.modal { position: relative; width: min(480px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 34px; border: 1px solid #e2dbcf; border-radius: 20px 16px 22px 17px; background: var(--paper); box-shadow: 0 28px 75px rgba(0,0,0,.28); animation: modalIn .2s ease-out; }
@keyframes modalIn { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-close { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 26px; cursor: pointer; }
.modal-close:hover { background: #eee8dc; }
.modal-brand { display: flex; justify-content: center; margin-bottom: 15px; }
.center { display: block; text-align: center; }
.modal h2 { margin: 7px 0; font: 500 32px Georgia, serif; text-align: center; }
.story-modal-card h2 { text-align: left; }
.modal-subtitle { margin: 0 0 23px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.modal-subtitle.left { text-align: left; }
.auth-tabs { display: flex; margin-bottom: 20px; padding: 4px; border-radius: 9px; background: #ece6db; }
.auth-tab { flex: 1; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.auth-tab.active { color: var(--ink); background: white; box-shadow: 0 2px 7px rgba(0,0,0,.06); }
.form-stack { display: grid; gap: 15px; }
.form-stack label { display: grid; gap: 7px; color: #49534f; font-size: 12px; font-weight: 750; }
.form-stack input, .form-stack textarea, .form-stack select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d8d1c4;
    border-radius: 9px;
    outline: none;
    color: var(--ink);
    background: #fffdf8;
    font-weight: 450;
    resize: vertical;
}
.form-stack input:focus, .form-stack textarea:focus, .form-stack select:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(104,139,120,.12); }
.story-write-fields { display: grid; gap: 15px; }
.story-mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.story-mode-button { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; align-items: center; gap: 1px 8px; min-height: 62px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px 8px 12px 12px; color: var(--muted); background: var(--card); text-align: left; cursor: pointer; }
.story-mode-button > span { grid-row: 1 / 3; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: var(--sage); }
.story-mode-button strong { color: var(--ink); font-size: 11px; }
.story-mode-button small { font-size: 8px; }
.story-mode-button.active { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.story-mode-button.active strong { color: var(--paper); }
.story-mode-button.active > span { color: #17221f; background: var(--coral); }
.voice-story-panel { display: grid; gap: 13px; padding: 15px; border: 1px dashed var(--sage); border-radius: 13px 9px 15px 12px; background: var(--paper-deep); }
.voice-story-heading { display: flex; align-items: center; gap: 10px; }
.voice-story-heading > div { display: grid; min-width: 0; gap: 3px; }
.voice-story-heading strong { font: 600 15px Georgia, serif; }
.voice-story-heading small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.voice-story-heading time { flex: 0 0 auto; margin-left: auto; color: var(--coral-dark); font-size: 9px; font-weight: 850; font-variant-numeric: tabular-nums; }
.voice-story-mic { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--coral); font-size: 10px; box-shadow: 0 0 0 5px rgba(239,107,85,.11); }
.voice-story-panel.is-recording .voice-story-mic { animation: recorderPulse 1.15s ease-in-out infinite; }
@keyframes recorderPulse { 50% { box-shadow: 0 0 0 9px rgba(239,107,85,.05); transform: scale(.94); } }
.voice-story-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-record-button, .voice-stop-button, .voice-discard-button { min-height: 42px; padding: 8px 13px; border: 0; border-radius: 9px 13px 11px 12px; font-size: 10px; font-weight: 850; cursor: pointer; }
.voice-record-button { display: inline-flex; align-items: center; gap: 7px; color: #17221f; background: var(--coral); }
.voice-record-button > span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.voice-stop-button { color: #fff; background: #202b27; }
.voice-discard-button { color: var(--muted); border: 1px solid var(--line); background: transparent; }
.voice-story-preview { width: 100%; }
.voice-story-status { min-height: 14px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.voice-upload-option { padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: 9px !important; }
.voice-upload-option input { padding: 7px !important; font-size: 9px; }
.voice-story-limit { color: var(--muted); font-size: 7.5px; line-height: 1.45; }
.ai-story-tools, .edit-ai-tools { display: grid; gap: 12px; padding: 15px; overflow: hidden; border: 1px solid #d7d9ca; border-radius: 16px 10px 17px 13px; background: linear-gradient(135deg, #f4f1df, #f8f4ec 58%, #eef3eb); }
.ai-story-tools { position: relative; }
.ai-story-tools::after { content: ""; position: absolute; right: -35px; top: -52px; width: 115px; height: 115px; border: 1px solid rgba(104,139,120,.2); border-radius: 50%; box-shadow: 0 0 0 18px rgba(104,139,120,.045); pointer-events: none; }
.ai-story-tools-heading { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.ai-story-tools-heading > div { display: grid; min-width: 0; gap: 3px; }
.ai-story-tools-heading strong, .edit-ai-tools > div strong { color: var(--ink); font: 600 15px Georgia, serif; }
.ai-story-tools-heading small, .edit-ai-tools > div small { color: var(--muted); font-size: 8px; font-weight: 500; line-height: 1.45; }
.ai-spark { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border: 1px solid #bdd0c2; border-radius: 50% 43% 53% 46%; color: #fff; background: var(--sage); box-shadow: 0 5px 12px rgba(61,91,74,.15); transform: rotate(-4deg); }
.ai-optional { flex: 0 0 auto; margin-left: auto; padding: 5px 7px; border: 1px solid #c9d7cb; border-radius: 20px; color: #587260; background: rgba(255,255,255,.55); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.ai-consent-choice { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 9px !important; padding: 10px 11px; border: 1px solid rgba(104,139,120,.28); border-radius: 9px; color: #56635d !important; background: rgba(255,255,255,.52); font-size: 8.5px !important; font-weight: 550 !important; line-height: 1.45; cursor: pointer; }
.ai-consent-choice input { flex: 0 0 auto; width: 17px !important; height: 17px; margin: 1px 0 0; padding: 0 !important; accent-color: var(--sage); box-shadow: none !important; }
.ai-story-action { position: relative; z-index: 1; display: grid; grid-template-columns: 25px 1fr; grid-template-rows: auto auto; align-items: center; gap: 1px 8px; min-height: 54px; padding: 9px 12px; border: 0; border-radius: 10px 14px 11px 13px; color: #f8f3e9; background: #1c2a24; text-align: left; cursor: pointer; box-shadow: 0 8px 18px rgba(24,34,30,.12); transition: transform .18s, opacity .18s; }
.ai-story-action > span { grid-row: 1 / 3; color: #f5ab74; font-size: 18px; text-align: center; }
.ai-story-action strong { font-size: 10px; }
.ai-story-action small { color: #aebbb4; font-size: 7.5px; }
.ai-story-action:hover:not(:disabled) { transform: translateY(-1px); }
.ai-story-action:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.ai-story-action.is-busy { grid-template-columns: 18px 1fr; grid-template-rows: auto; }
.ai-working-dot { width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: aiSpin .75s linear infinite; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-story-status { min-height: 13px; margin: -2px 2px 0; color: #68766f; font-size: 8px; line-height: 1.45; }
.ai-story-status.error { color: #a74536; }
.edit-ai-tools > div { display: flex; align-items: center; gap: 10px; }
.edit-ai-tools > div p { display: grid; gap: 3px; margin: 0; }

.ai-story-modal-card { display: flex; width: min(980px, 100%); max-height: calc(100dvh - 40px); flex-direction: column; padding: 0; overflow: hidden; background: var(--card); }
.ai-story-modal-card .modal-close { z-index: 3; top: 18px; right: 18px; }
.ai-story-modal-header { position: relative; padding: 37px 43px 25px; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, var(--paper-deep), var(--card)); }
.ai-story-modal-header::after { content: ""; position: absolute; right: -100px; top: -150px; width: 310px; height: 310px; border: 1px solid rgba(104,139,120,.16); border-radius: 50%; box-shadow: 0 0 0 42px rgba(104,139,120,.035); }
.ai-story-modal-card .ai-story-modal-header h2 { position: relative; z-index: 1; margin: 7px 0 8px; padding: 0; font-size: 36px; text-align: left; }
.ai-story-modal-header > p { position: relative; z-index: 1; max-width: 660px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.ai-language-route { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; margin-top: 15px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px 12px 20px 17px; color: var(--sage); background: var(--card); font-size: 8px; font-weight: 850; }
.ai-language-route b { color: var(--coral); font-size: 12px; }
.ai-story-modal-body { display: grid; min-height: 0; flex: 1 1 auto; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); overflow-y: auto; }
.ai-review-column { display: grid; align-content: start; gap: 13px; padding: 27px 31px; border-right: 1px solid var(--line); }
.ai-version-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 10px; background: var(--paper-deep); }
.ai-version-tabs button { flex: 1; min-height: 38px; padding: 7px 10px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.ai-version-tabs button.active { color: var(--ink); background: var(--card); box-shadow: 0 2px 8px rgba(23,34,29,.08); }
.ai-version-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.ai-version-note { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 8px; }
.ai-version-note strong { color: var(--sage); font-size: 9px; }
.ai-review-column > label { display: grid; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; }
.ai-review-column input, .ai-review-column textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: var(--card); font: 13px/1.55 Georgia, serif; resize: vertical; }
.ai-review-column input:focus, .ai-review-column textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(104,139,120,.12); }
.ai-insight-column { display: grid; align-content: start; gap: 14px; padding: 27px 25px; background: var(--paper-deep); }
.ai-privacy-panel, .ai-structure-panel { display: grid; gap: 9px; }
.ai-privacy-panel > span, .ai-structure-panel > span { color: var(--coral-dark); font-size: 7px; font-weight: 900; letter-spacing: 1.1px; }
#ai-privacy-results, #ai-structure-results { display: grid; gap: 8px; }
.ai-warning { padding: 10px; border: 1px solid #e5cda7; border-radius: 9px 7px 10px 8px; background: #fff5dd; }
.ai-warning.important { border-color: #e0a899; background: #fbe8e2; }
.ai-warning strong { display: block; color: #7c5720; font-size: 9px; }
.ai-warning code { display: inline-block; max-width: 100%; margin-top: 5px; padding: 3px 5px; overflow: hidden; border-radius: 4px; color: #8b4033; background: rgba(255,255,255,.62); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.ai-warning p, .ai-no-suggestions { margin: 5px 0 0; color: #6c6251; font-size: 8px; line-height: 1.45; }
.ai-clear-check { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid #c8dacb; border-radius: 9px; color: #456454; background: #edf5ed; }
.ai-clear-check > span { display: grid; flex: 0 0 auto; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #fff; background: var(--sage); font-size: 10px; }
.ai-clear-check p { display: grid; gap: 2px; margin: 0; }
.ai-clear-check strong { font-size: 9px; }
.ai-clear-check small { color: #6c7b73; font-size: 7px; line-height: 1.4; }
.ai-structure-panel ol { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.ai-preservation-note { margin-top: 4px; padding: 13px; border-radius: 8px 13px 10px 11px; color: #e6eee9; background: #1d2b25; }
.ai-preservation-note strong { font: 600 13px Georgia, serif; }
.ai-preservation-note p { margin: 5px 0 0; color: #aebbb4; font-size: 8px; line-height: 1.5; }
.ai-story-modal-footer { display: grid; flex: 0 0 auto; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: center; gap: 18px; padding: 15px 31px; border-top: 1px solid var(--line); background: var(--card); box-shadow: 0 -7px 24px rgba(28,38,33,.06); }
.ai-review-next { display: grid; gap: 3px; margin: 0; }
.ai-review-next strong { color: var(--ink); font: 600 12px Georgia, serif; }
.ai-review-next span { color: var(--muted); font-size: 7.5px; line-height: 1.4; }
.ai-story-modal-footer .text-link { margin: 0; font-size: 9px; white-space: nowrap; }
.ai-story-modal-footer .btn { white-space: nowrap; }
.ai-selection-confirmation { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid #bcd2c2; border-radius: 11px 8px 13px 10px; color: #41624f; background: #eaf3eb; }
.ai-selection-confirmation > span { display: grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--sage); font-size: 11px; }
.ai-selection-confirmation p { display: grid; gap: 3px; margin: 0; }
.ai-selection-confirmation strong { color: #294b38; font: 600 13px Georgia, serif; }
.ai-selection-confirmation small { color: #60776a; font-size: 8px; line-height: 1.45; }
.original-version-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px 9px 13px 11px; background: var(--paper-deep); }
.original-version-panel summary { display: flex; align-items: center; gap: 12px; padding: 13px; color: var(--ink); cursor: pointer; list-style: none; }
.original-version-panel summary::-webkit-details-marker { display: none; }
.original-version-panel summary > span { display: grid; gap: 3px; }
.original-version-panel summary strong { font: 600 13px Georgia, serif; }
.original-version-panel summary small { color: var(--muted); font-size: 8px; font-weight: 500; }
.original-version-panel summary b { margin-left: auto; color: var(--sage); transition: transform .18s; }
.original-version-panel[open] summary b { transform: rotate(180deg); }
.original-version-panel > div { display: grid; gap: 13px; padding: 0 13px 13px; }
.translation-badge { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 12px; padding: 5px 8px; border: 1px solid #c7d8cb; border-radius: 20px 11px 20px 17px; color: #557562; background: #edf4ed; font-size: 8px; font-weight: 800; }
.field-hint { justify-self: end; margin-top: -3px; color: #929894; font-size: 10px; font-weight: 500; }
.form-error { min-height: 0; margin: 0; color: #c94f3b; font-size: 11px; line-height: 1.4; }
.form-error:empty { display: none; }
.profile-header { display: flex; gap: 17px; align-items: center; padding-right: 25px; }
.profile-header h2 { margin: 0; text-align: left; }
.profile-header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.profile-location { margin-top: 5px; color: #8a928e; font-size: 11px; }
.profile-bio { margin: 22px 0; color: #4e5954; font-family: Georgia, serif; line-height: 1.6; }
.profile-stats { display: flex; gap: 12px; margin: 20px 0; }
.profile-stat { flex: 1; padding: 13px; border-radius: 10px; background: #eee8dd; text-align: center; }
.profile-stat strong { display: block; font: 600 22px Georgia, serif; }
.profile-stat span { color: var(--muted); font-size: 9px; letter-spacing: .7px; text-transform: uppercase; }
.profile-story-list { display: grid; gap: 8px; margin-top: 18px; }
.mini-story { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fffdf8; }
.mini-story strong { display: block; margin-bottom: 4px; font: 600 15px Georgia, serif; }
.mini-story small { color: var(--muted); }
.profile-edit-button { margin-top: 5px; }
.profile-edit-form h2 { text-align: left; }
.danger-link { color: #ad4f40; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 25px; max-width: calc(100% - 30px); padding: 11px 17px; border-radius: 9px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 12px; font-weight: 650; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a94335; }

.discovery-section { position: relative; overflow: hidden; padding: 88px 0; color: #f7f3e9; background: #17221f; }
.discovery-section::before { content: ""; position: absolute; width: 520px; height: 520px; right: -260px; top: -230px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 150px rgba(255,255,255,.012); }
.section-kicker.light { color: #f28a76; }
.discovery-header { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.discovery-header h2 { margin: 10px 0 0; font: 500 clamp(42px, 5vw, 62px)/1.02 Georgia, serif; letter-spacing: -2px; }
.discovery-header h2 em { color: var(--coral); font-weight: 400; }
.discovery-intro { padding-bottom: 5px; }
.discovery-intro p { max-width: 500px; margin: 0 0 13px; color: #c3ccc7; font: 17px/1.6 Georgia, serif; }
.discovery-intro span { color: #7f9389; font-size: 11px; }
.discovery-toolbar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 42px 0 23px; }
.discovery-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.discovery-filters::-webkit-scrollbar { display: none; }
.discovery-chip { flex: 0 0 auto; padding: 8px 13px; border: 1px solid #42514b; border-radius: 30px; color: #aebbb4; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.discovery-chip:hover, .discovery-chip.active { color: var(--ink); border-color: #f4efe4; background: #f4efe4; }
.discovery-note { flex: 0 0 auto; color: #87958e; font-size: 10px; }
.discovery-note i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #78b08e; }
.discovery-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.discovery-card { display: flex; min-height: 360px; flex-direction: column; padding: 24px; border: 1px solid #35443e; border-radius: 16px 13px 18px 14px; background: #202d29; transition: transform .2s, border-color .2s; }
.discovery-card:hover { transform: translateY(-3px); border-color: #52645c; }
.discovery-rank { display: flex; align-items: center; justify-content: space-between; color: #75877e; font-size: 10px; font-weight: 850; letter-spacing: 1.1px; text-transform: uppercase; }
.discovery-rank strong { color: #f0b34d; font: italic 21px Georgia, serif; letter-spacing: 0; }
.discovery-author { display: flex; align-items: center; gap: 11px; margin: 20px 0; }
.discovery-author button { overflow: hidden; padding: 0; border: 0; color: #f6f1e8; background: none; font-size: 13px; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.discovery-author small { display: block; max-width: 200px; margin-top: 3px; overflow: hidden; color: #87978f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.availability-pill { margin-left: auto; padding: 5px 7px; border-radius: 5px; color: #93c6a6; background: rgba(92,153,113,.13); font-size: 8px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.discovery-card .category-tag { margin: 0 0 9px; color: #e7806d; }
.discovery-card h3 { margin: 0 0 10px; color: #fffaf1; font: 500 22px/1.28 Georgia, serif; }
.discovery-excerpt { display: -webkit-box; margin: 0 0 18px; overflow: hidden; color: #aebbb4; font: 13px/1.55 Georgia, serif; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.discovery-card-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid #35443e; }
.discovery-votes { color: #e98371; font-size: 11px; font-weight: 800; }
.invite-button { margin-left: auto; min-height: 35px; padding: 7px 11px; color: #17221f; border: 0; border-radius: 7px; background: #f5efe3; font-size: 10px; font-weight: 850; cursor: pointer; }
.invite-button:hover { background: #fff; }
.discovery-skeleton { position: relative; height: 360px; overflow: hidden; border-radius: 16px; background: #202d29; }
.discovery-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent); animation: shimmer 1.3s infinite; }
.discovery-empty { grid-column: 1 / -1; padding: 55px 25px; border: 1px dashed #43524c; border-radius: 16px; text-align: center; }
.discovery-empty h3 { margin: 0 0 8px; color: #f8f3e9; font: 500 25px Georgia, serif; }
.discovery-empty p { max-width: 520px; margin: 0 auto 20px; color: #93a198; font-size: 13px; line-height: 1.5; }
.media-callout { position: relative; display: flex; align-items: center; gap: 17px; margin-top: 24px; padding: 20px 23px; border: 1px solid #394940; border-radius: 13px; background: #1c2925; }
.media-callout-icon { display: grid; flex: 0 0 auto; width: 43px; height: 43px; place-items: center; border-radius: 50%; color: #17221f; background: var(--coral); font-size: 24px; }
.media-callout strong { font: 500 17px Georgia, serif; }
.media-callout p { margin: 4px 0 0; color: #8fa098; font-size: 11px; }
.btn-paper { margin-left: auto; color: var(--ink); background: #f5efe4; }

.optional { color: #999f9c; font-size: 9px; font-weight: 500; }
.invitation-note { margin: -3px 0 0; padding: 10px 12px; border-radius: 7px; color: #65786d; background: #e9efe8; font-size: 10px; }
.my-stories-modal-card { width: min(780px, 100%); }
.my-stories-modal-card h2, .edit-story-modal-card h2 { text-align: left; }
.edit-story-modal-card { width: min(560px, 100%); }
.my-stories-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 7px 0 18px; }
.my-stories-heading h2 { margin: 0; }
.my-stories-heading p { max-width: 510px; margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.my-stories-heading .btn { flex: 0 0 auto; }
.my-stories-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.my-stories-summary span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 20px 12px 20px 18px; color: var(--muted); background: var(--card); font-size: 8px; font-weight: 800; }
.my-stories-list { display: grid; gap: 10px; }
.my-story-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 11px 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px 9px 14px 11px; background: var(--card); }
.my-story-item-main { min-width: 0; }
.my-story-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 8px; }
.my-story-item-meta span { padding: 4px 7px; border-radius: 20px; color: var(--sage); background: var(--paper-deep); font-weight: 850; }
.my-story-item-meta .private { color: #985545; background: #f6e3dc; }
.my-story-item h3 { margin: 8px 0 5px; font: 600 18px/1.25 Georgia, serif; }
.my-story-item p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.my-story-item-actions { display: flex; align-items: center; gap: 7px; }
.my-story-item-actions button { min-height: 38px; padding: 7px 11px; border-radius: 8px; font-size: 9px; font-weight: 800; cursor: pointer; }
.my-story-share { color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.my-story-edit { color: #fff; border: 1px solid var(--ink); background: var(--ink); }
.my-story-delete { color: #a74737; border: 1px solid #e3bbb3; background: transparent; }
.my-stories-empty { padding: 42px 20px; border: 1px dashed var(--line); border-radius: 13px; text-align: center; }
.my-stories-empty h3 { margin: 0 0 7px; font: 600 22px Georgia, serif; }
.my-stories-empty p { margin: 0 0 17px; color: var(--muted); font-size: 11px; }
.edit-audio-note { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px 13px 10px 12px; color: var(--ink); background: var(--paper-deep); }
.edit-audio-note > span { color: var(--coral); font-size: 18px; }
.edit-audio-note > div { display: grid; gap: 3px; }
.edit-audio-note strong { font: 600 13px Georgia, serif; }
.edit-audio-note small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.edit-version-context { display: grid; gap: 12px; padding: 14px; border: 1px solid #c9d8cc; border-radius: 14px 10px 15px 12px; background: linear-gradient(135deg, #edf4ed, #f8f4eb); }
.edit-version-copy { display: grid; gap: 4px; }
.edit-version-copy > span { color: var(--coral-dark); font-size: 7px; font-weight: 900; letter-spacing: 1.1px; }
.edit-version-copy strong { color: var(--ink); font: 600 16px Georgia, serif; }
.edit-version-copy small { color: var(--muted); font-size: 8px; font-weight: 500; line-height: 1.45; }
.edit-version-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 10px; background: rgba(255,255,255,.62); }
.edit-version-tabs button { min-height: 39px; padding: 7px 9px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
.edit-version-tabs button.active { color: #fff; background: var(--ink); box-shadow: 0 4px 10px rgba(24,34,31,.12); }
.opportunities-modal-card { width: min(650px, 100%); }
.opportunities-modal-card h2 { text-align: left; }
.opportunity-tabs { margin-top: 20px; }
.opportunity-list { display: grid; gap: 11px; }
.opportunity-item { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fffdf8; }
.opportunity-top { display: flex; align-items: center; gap: 10px; }
.opportunity-top > div { display: grid; min-width: 0; }
.opportunity-top strong { font-size: 13px; }
.opportunity-top small { color: var(--muted); font-size: 10px; }
.opportunity-status { margin-left: auto; padding: 5px 8px; border-radius: 20px; color: #9b7435; background: #f5e8cc; font-size: 8px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.opportunity-status.accepted { color: #557663; background: #deebdf; }
.opportunity-status.declined, .opportunity-status.archived { color: #7c807e; background: #e9e7e2; }
.opportunity-type { margin: 13px 0 7px; color: var(--coral-dark); font-size: 9px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.opportunity-item blockquote { margin: 0; color: #4d5753; font: 14px/1.55 Georgia, serif; }
.opportunity-story { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.opportunity-actions { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #ece6dc; }
.opportunity-actions .btn { min-height: 34px; padding: 6px 11px; font-size: 10px; }
.contact-reveal { color: var(--sage); font-size: 11px; font-weight: 750; }
.preference-panel { padding: 14px; border: 1px solid #d8d1c4; border-radius: 10px; background: #f1ece2; }
.preference-panel > strong { display: block; font-size: 12px; }
.preference-panel > p { margin: 4px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.switch-row { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; padding: 6px 0; font-weight: 650 !important; }
.switch-row input { width: 16px !important; height: 16px; margin: 0; accent-color: var(--coral); box-shadow: none !important; }
.type-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin-top: 6px; padding-top: 7px; border-top: 1px solid #ded7ca; }
.profile-action-row { display: flex; gap: 8px; margin-top: 7px; }
.profile-action-row .btn { flex: 1; }
.profile-topics { margin: 10px 0 0; color: var(--sage); font-size: 10px; font-weight: 750; }
.anonymous-choice { display:flex !important; grid-template-columns:none !important; align-items:flex-start; gap:10px !important; padding:13px; border:1px solid #d8d1c4; border-radius:9px; background:#fffdf8; cursor:pointer; }
.anonymous-choice input { flex:0 0 auto; width:17px !important; height:17px; margin:2px 0 0; accent-color:var(--coral); }
.anonymous-choice span { display:grid; gap:3px; }.anonymous-choice strong{color:var(--ink);font-size:11px}.anonymous-choice small{color:var(--muted);font-size:9px;font-weight:500;line-height:1.4}
.sharing-reassurance { display:flex; gap:9px; padding:11px 12px; border-radius:8px; color:#557061; background:#e9f0e8; }.sharing-reassurance>span{font-size:12px}.sharing-reassurance p{margin:0;font-size:9px;line-height:1.45}.sharing-reassurance strong{display:block;font-size:10px}

@media (max-width: 900px) {
    .nav-discover { display: none; }
    .nav-search { display: none; }
    .nav-actions { margin-left: auto; }
    .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 60px; }
    .hero-copy { text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-art { width: min(520px, 100%); min-height: 350px; margin: 0 auto; }
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .share-card { grid-column: 1 / -1; }
    .discovery-header { grid-template-columns: 1fr; gap: 22px; }
    .discovery-grid { grid-template-columns: 1fr 1fr; }
    .discovery-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .discovery-toolbar { align-items: start; flex-direction: column; }
}

@media (max-width: 620px) {
    .shell { width: min(100% - 24px, 1160px); }
    .nav { height: 65px; }
    .brand { font-size: 20px; }
    .brand-mark { width: 31px; height: 31px; }
    .nav-actions .btn-ghost { display: none; }
    .nav-actions .btn { min-height: 37px; padding: 7px 11px; font-size: 12px; }
    .opportunity-nav .label { display: none; }
    .opportunity-nav::before { content: "✉"; font-size: 16px; }
    .nav-user-copy { display: none; }
    .hero { min-height: auto; padding-top: 47px; padding-bottom: 55px; }
    .hero h1 { margin-top: 17px; font-size: 48px; letter-spacing: -2.5px; }
    .hero-copy > p { font-size: 16px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-art { min-height: 295px; }
    .path-card { inset: 25px 8px 12px; }
    .label-learn { left: 45%; }
    .content-section { padding: 50px 0 70px; }
    .feed-heading { align-items: start; flex-direction: column; }
    .feed-heading h2 { font-size: 32px; }
    .story-card { padding: 20px 18px 0; }
    .story-card h3 { font-size: 21px; }
    .story-footer { margin: 0 -18px; padding: 0 18px; }
    .sidebar { grid-template-columns: 1fr; }
    .share-card { grid-column: auto; }
    .footer-inner { flex-wrap: wrap; }
    .footer-inner p { order: 3; width: 100%; text-align: center; }
    .modal { padding: 28px 20px; max-height: calc(100vh - 20px); }
    .modal-backdrop { padding: 10px; }
    .discovery-section { padding: 62px 0; }
    .discovery-header h2 { font-size: 42px; }
    .discovery-grid { grid-template-columns: 1fr; }
    .discovery-card:last-child:nth-child(odd) { grid-column: auto; }
    .media-callout { align-items: flex-start; flex-wrap: wrap; }
    .btn-paper { width: 100%; margin-left: 0; }
    .type-checks { grid-template-columns: 1fr; }
}

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

/* Community navigation: warm, compact, and intentionally human. */
.site-header {
    background: rgba(251, 248, 241, .95);
    box-shadow: 0 8px 30px rgba(32, 42, 38, .035);
}
.nav {
    height: 78px;
    gap: 18px;
}
.nav .brand { flex: 0 0 auto; }
.nav .brand-mark { width: 37px; height: 37px; border-radius: 11px 8px 12px 9px; }
.nav-discover {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 7px 11px 7px 8px;
    border: 1px solid #d8e0d7;
    border-radius: 9px 16px 16px 9px;
    color: #4d6256;
    background: #edf3ec;
    line-height: 1;
}
.nav-discover:hover { border-color: #bfcdbf; color: var(--ink); background: #e6efe5; }
.nav-discover-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #fff; background: var(--sage); font-size: 11px; transform: rotate(-5deg); }
.nav-discover > span:last-child { display: grid; gap: 2px; }
.nav-discover small { color: #7a8b80; font-size: 7px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.nav-discover strong { font-size: 10px; font-weight: 850; }
.nav-search {
    width: clamp(220px, 27vw, 340px);
    height: 43px;
    margin-right: auto;
    padding: 0 13px;
    border-color: #d8d2c6;
    border-radius: 13px 10px 14px 11px;
    background: rgba(255,255,255,.64);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.nav-search:focus-within { border-color: #9bad9f; background: #fff; box-shadow: 0 0 0 4px rgba(104,139,120,.09); }
.nav-search input { padding: 9px; font-size: 11px; }
.nav-actions { min-width: 0; gap: 7px; margin-left: 0; }
.community-tool {
    position: relative;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    color: #4f5d57;
    background: transparent;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}
.community-tool:hover { color: var(--ink); background: #eee9df; }
.community-tool-icon { color: var(--coral); font-size: 13px; }
.community-share {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    gap: 7px;
    padding: 7px 14px 7px 7px;
    border: 0;
    border-radius: 20px 11px 20px 20px;
    color: #fff;
    background: var(--coral);
    box-shadow: 0 8px 18px rgba(239,107,85,.17);
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .18s, background .18s;
}
.community-share:hover { transform: translateY(-1px) rotate(-.3deg); background: var(--coral-dark); }
.community-share-plus { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: var(--coral); background: #fff; font-size: 16px; }
.community-share i { font-style: normal; }
.community-account-wrap { position: relative; min-width: 0; }
.community-account-chip {
    display: flex;
    min-width: 0;
    max-width: 175px;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 5px 9px 5px 5px;
    border: 1px solid transparent;
    border-radius: 24px;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.community-account-chip:hover,
.community-account-chip[aria-expanded="true"] { border-color: #ddd6ca; background: #fffdf8; }
.community-account-copy { display: grid; min-width: 0; line-height: 1.12; }
.community-account-copy strong,
.community-account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-account-copy strong { font-size: 10px; font-weight: 850; }
.community-account-copy small { margin-top: 3px; color: #838c88; font-size: 8px; }
.community-account-chevron { flex: 0 0 auto; color: #8c9490; font-size: 12px; }
.community-account-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: 250px;
    padding: 7px;
    border: 1px solid #dad3c7;
    border-radius: 13px 10px 15px 11px;
    background: #fffdf8;
    box-shadow: 0 22px 50px rgba(25,35,31,.16);
}
.community-menu-intro { display: grid; padding: 11px 11px 13px; border-bottom: 1px solid #ece6dc; }
.community-menu-intro > span { margin-bottom: 7px; color: var(--coral-dark); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.community-menu-intro strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.community-menu-intro small { overflow: hidden; margin-top: 4px; color: #818a86; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.community-account-menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border: 0;
    border-radius: 8px;
    color: #3f4c47;
    background: transparent;
    font-size: 9px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}
.community-account-menu button:hover { background: #f0ebe2; }
.community-account-menu button > span { width: 16px; color: var(--sage); text-align: center; }
.community-account-menu .community-menu-logout { margin-top: 3px; color: #b34e3e; border-top: 1px solid #eee8de; border-radius: 0 0 8px 8px; }
.nav-auth-link { min-height: 40px; padding: 8px 12px; border: 0; color: #45534d; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.nav-join-button { display: inline-flex; min-height: 42px; align-items: center; gap: 9px; padding: 9px 14px; border: 0; border-radius: 17px 9px 17px 17px; color: #fff; background: var(--ink); font-size: 10px; font-weight: 850; cursor: pointer; }
.nav-join-button span { color: #f7b5a9; }

@media (max-width: 1080px) {
    .nav { gap: 12px; }
    .nav-discover { padding-right: 8px; }
    .nav-discover small { display: none; }
    .nav-search { width: clamp(190px, 24vw, 270px); }
    .community-account-chip { max-width: 120px; }
}

@media (max-width: 900px) {
    .nav-discover, .nav-search { display: none; }
    .nav-actions { margin-left: auto; }
    .community-account-chip { max-width: 165px; }
    .content-grid { grid-template-columns: minmax(0, 1fr); }
    .feed-column, .story-list, .sidebar { min-width: 0; max-width: 100%; }
    .whole-story-inner { grid-template-columns: 1fr; }
    .whole-story-safety { grid-column: auto; }
    .hero-why-row { justify-content: center; }
    .why-opening { gap: 35px; }
    .why-belongs { gap: 35px; }
}

@media (max-width: 620px) {
    .nav { gap: 6px; }
    .community-tool { width: 38px; justify-content: center; padding: 5px; }
    .community-tool-label { display: none; }
    .community-share { min-height: 39px; padding: 5px 10px 5px 5px; }
    .community-share-plus { width: 27px; height: 27px; }
    .community-share i { display: none; }
    .community-account-chip { width: 37px; min-height: 37px; padding: 1px; border: 0; }
    .community-account-copy, .community-account-chevron { display: none; }
    .community-account-menu { right: -2px; width: 235px; }
    .nav-auth-link { display: none; }
    .nav-join-button { min-height: 38px; padding: 8px 11px; }
}

/* Mobile-first product pass: touch targets, readable forms, and native-feeling sheets. */
@media (max-width: 700px) {
    html, body { max-width: 100%; overflow-x: clip; }
    button, a, input, select, textarea { touch-action: manipulation; }
    .shell { width: min(100% - 24px, 1160px); }
    .btn { min-height: 46px; }
    .hero { gap: 22px; padding-top: 44px; padding-bottom: 50px; }
    .hero-copy > p { line-height: 1.55; }
    .hero-actions { margin: 25px 0 16px; }
    .hero-actions .btn { width: min(100%, 300px); }
    .text-link { min-height: 44px; }
    .hero-why-row { flex-direction: column; gap: 9px; }
    .why-inline-link { min-height: 42px; padding-inline: 13px; }
    .safety-promises { justify-content: center; gap: 9px 14px; line-height: 1.3; }
    .hero-art { min-height: 300px; }

    .whole-story-section { padding: 43px 0; }
    .whole-story-inner { gap: 25px; }
    .whole-story-copy h2 { font-size: 36px; }
    .whole-story-copy p { font-size: 14px; }
    .whole-story-topics { gap: 8px; }
    .whole-story-topics span { min-height: 38px; display: inline-flex; align-items: center; padding: 8px 11px; }
    .whole-story-safety { align-items: flex-start; flex-direction: column; gap: 5px; padding: 15px; }

    .content-section { padding: 48px 0 62px; }
    .content-grid { gap: 30px; }
    .feed-heading { gap: 17px; }
    .sort-control { width: 100%; }
    .sort-button { flex: 1; min-height: 40px; }
    .category-row { margin: 18px -12px 16px; padding: 0 12px 4px; scroll-padding-left: 12px; }
    .chip { min-height: 38px; padding: 8px 13px; }
    .story-list { gap: 13px; }
    .story-card { border-radius: 14px 11px 16px 12px; }
    .story-card-header { align-items: flex-start; }
    .author-button { min-width: 0; }
    .author-copy strong { font-size: 13px; }
    .author-copy small { max-width: 190px; }
    .story-time { flex: 0 0 auto; margin-top: 4px; }
    .story-body { font-size: 15px; line-height: 1.65; }
    .lesson-box { padding: 12px 13px; }
    .story-footer { min-height: 58px; }
    .vote-button { min-height: 44px; }
    .card-menu { min-height: 42px; padding: 8px 10px; }
    .load-more { width: 100%; }

    .sidebar { gap: 13px; }
    .side-card { padding: 20px; }
    .leader-row { min-height: 59px; }
    .leader-info button { min-height: 40px; font-size: 12px; }
    .share-card { min-height: 72px; }

    .discovery-section { padding: 57px 0; }
    .discovery-header { gap: 18px; }
    .discovery-header h2 { font-size: 40px; line-height: 1.03; }
    .discovery-intro p { font-size: 15px; }
    .discovery-toolbar { gap: 13px; margin: 28px 0 18px; }
    .discovery-filters { width: calc(100% + 12px); padding-right: 12px; }
    .discovery-chip { min-height: 40px; }
    .discovery-card { min-height: 0; padding: 21px; }
    .discovery-card h3 { font-size: 21px; }
    .discovery-author button { display: flex; min-height: 40px; align-items: center; }
    .discovery-card-footer { flex-wrap: wrap; gap: 12px; }
    .invite-button { width: 100%; min-height: 43px; margin-left: 0; }
    .media-callout { padding: 18px; }
    .media-callout p { font-size: 10px; line-height: 1.45; }

    .modal-backdrop { align-items: end; padding: 0; }
    .modal {
        width: 100%;
        max-width: none;
        max-height: 92dvh;
        padding: 29px 20px calc(22px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
        animation-name: mobileSheetIn;
    }
    @keyframes mobileSheetIn { from { transform: translateY(30px); opacity: 0; } }
    .modal-close { right: 13px; top: 11px; width: 40px; height: 40px; }
    .modal h2 { padding-right: 25px; font-size: 29px; line-height: 1.08; }
    .modal-subtitle { font-size: 12px; }
    .story-mode-choice { grid-template-columns: 1fr; }
    .story-mode-button { min-height: 60px; }
    .voice-record-button, .voice-stop-button { flex: 1; }
    .voice-discard-button { width: 100%; }
    .voice-story-heading { flex-wrap: wrap; }
    .voice-story-heading time { margin-left: 44px; }
    .ai-story-tools, .edit-ai-tools { padding: 13px; }
    .ai-story-tools-heading { align-items: flex-start; flex-wrap: wrap; }
    .ai-optional { margin-left: 44px; }
    .ai-consent-choice { min-height: 52px; font-size: 9px !important; }
    .ai-story-action { min-height: 58px; }
    .ai-story-modal-card { max-height: 94dvh; border-radius: 22px 22px 0 0; }
    .ai-story-modal-header { padding: 37px 20px 22px; }
    .ai-story-modal-card .ai-story-modal-header h2 { padding-right: 24px; font-size: 30px; }
    .ai-story-modal-header > p { font-size: 10px; }
    .ai-language-route { max-width: 100%; flex-wrap: wrap; }
    .ai-story-modal-body { grid-template-columns: 1fr; min-height: 0; }
    .ai-review-column { padding: 22px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
    .ai-version-tabs { position: sticky; top: -1px; z-index: 2; }
    .ai-version-tabs button { min-height: 44px; }
    .ai-version-note { align-items: flex-start; flex-direction: column; gap: 2px; }
    .ai-review-column input, .ai-review-column textarea { min-height: 47px; font-size: 16px; }
    .ai-insight-column { padding: 22px 20px; }
    .ai-story-modal-footer { position: relative; z-index: 3; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 22px rgba(26,36,31,.08); }
    .ai-review-next { grid-column: 1 / -1; padding-bottom: 3px; }
    .ai-review-next span { font-size: 8px; }
    .ai-story-modal-footer .text-link, .ai-story-modal-footer .btn { width: 100%; min-height: 47px; font-size: 9px; white-space: normal; }
    .original-version-panel summary { min-height: 61px; }
    .edit-version-context { padding: 13px; }
    .edit-version-tabs { grid-template-columns: 1fr; }
    .edit-version-tabs button { min-height: 44px; }
    .my-stories-heading { align-items: stretch; flex-direction: column; gap: 13px; }
    .my-stories-heading .btn { width: 100%; }
    .my-story-item { grid-template-columns: 1fr; padding: 14px; }
    .my-story-item-actions { width: 100%; }
    .my-story-item-actions button { min-height: 43px; flex: 1; }
    .auth-tabs { min-height: 46px; }
    .auth-tab { min-height: 38px; }
    .form-stack { gap: 14px; }
    .form-stack label { font-size: 12px; }
    .form-stack input, .form-stack textarea, .form-stack select {
        min-height: 47px;
        padding: 12px;
        border-radius: 10px;
        font-size: 16px;
    }
    .form-stack textarea { min-height: 96px; }
    .anonymous-choice { min-height: 67px; }
    .profile-header { align-items: flex-start; }
    .profile-header .avatar.large { width: 64px; height: 64px; }
    .profile-header h2 { padding-right: 0; font-size: 26px; }
    .profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
    .profile-stat { min-width: 0; padding: 11px 5px; }
    .profile-stat strong { font-size: 19px; }
    .profile-stat span { display: block; font-size: 7px; line-height: 1.25; }
    .profile-action-row { flex-direction: column; }
    .type-checks { grid-template-columns: 1fr; }
    .switch-row { min-height: 43px; }
    .opportunities-modal-card { padding-top: 31px; }
    .opportunity-list { gap: 9px; }
    .opportunity-item { padding: 14px; }
    .opportunity-top { align-items: flex-start; }
    .opportunity-status { flex: 0 0 auto; }
    .opportunity-item blockquote { font-size: 13px; }
    .opportunity-actions { flex-wrap: wrap; }
    .opportunity-actions .btn { min-height: 42px; flex: 1; }
    .contact-reveal { width: 100%; overflow-wrap: anywhere; }
    .community-account-menu { position: fixed; top: 68px; right: 10px; left: auto; width: min(270px, calc(100vw - 20px)); }
    .community-account-chip { width: 40px; min-height: 40px; }
    .toast { bottom: calc(17px + env(safe-area-inset-bottom)); width: calc(100% - 24px); text-align: center; }
    .nav-auth-link { display: inline-flex; min-height: 38px; align-items: center; padding: 6px 8px; }
    .nav-join-button { min-height: 38px; padding: 7px 10px; }

    .why-modal-card { border-radius: 22px 22px 0 0; }
    .why-header { padding: 42px 20px 30px; }
    .why-header::after { right: -210px; top: -190px; }
    .why-modal-card .why-header h2 { margin-top: 11px; padding: 0 24px 0 0; font-size: 35px; line-height: 1.02; letter-spacing: -1.4px; }
    .why-header > p { font-size: 14px; line-height: 1.55; }
    .why-listen { grid-template-columns: minmax(0, 1fr) 40px; gap: 10px; margin-top: 23px; padding: 11px; }
    .why-listen-button { min-width: 0; }
    .why-audio-progress { grid-column: 1 / 2; }
    .why-listen time { grid-column: 2 / 3; grid-row: 2; }
    .why-listen > p { grid-column: 1 / -1; margin: 0; }
    .why-opening { grid-template-columns: 1fr; gap: 24px; padding: 37px 20px; }
    .why-opening-copy .why-lead { font-size: 17px; }
    .why-pullquote { padding: 18px 0 18px 18px; font-size: 23px; }
    .why-principles { grid-template-columns: 1fr; }
    .why-principles article { min-height: 0; padding: 25px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
    .why-principles article:last-child { border-bottom: 0; }
    .why-belongs { grid-template-columns: 1fr; gap: 25px; padding: 39px 20px; }
    .why-belongs h3, .why-opportunity h3 { font-size: 27px; }
    .why-people { gap: 7px; }
    .why-people span { min-height: 36px; display: inline-flex; align-items: center; }
    .why-opportunity { grid-template-columns: 1fr; gap: 17px; margin: 0 12px; padding: 27px 20px; }
    .why-opportunity-mark { width: 55px; height: 55px; font-size: 27px; }
    .why-closing { align-items: stretch; flex-direction: column; gap: 23px; padding: 35px 20px calc(34px + env(safe-area-inset-bottom)); }
    .why-closing > div { align-items: stretch; flex-direction: column; gap: 8px; }
    .why-closing .btn, .why-closing .text-link { width: 100%; min-height: 47px; }
    .footer-why { min-height: 38px; }
}

@media (max-width: 360px) {
    .shell { width: min(100% - 20px, 1160px); }
    .nav .brand { font-size: 18px; gap: 7px; }
    .nav .brand-mark { width: 32px; height: 32px; }
    .community-share { padding-right: 8px; }
    .community-share-plus { width: 25px; height: 25px; }
    .hero h1 { font-size: 42px; letter-spacing: -2px; }
    .hero-copy > p { font-size: 15px; }
    .path-label { font-size: 11px; }
    .discovery-header h2 { font-size: 37px; }
    .profile-header { gap: 11px; }
    .profile-header .avatar.large { width: 56px; height: 56px; }
}
