:root {
    --ink: #172033;
    --muted: #667085;
    --line: #e8eaf0;
    --blue: #3157d5;
    --blue-dark: #2443ab;
    --paper: #ffffff;
    --wash: #f4f6fb;
    --warm: #f5eee4;
    --shadow: 0 16px 48px rgba(27, 39, 69, .08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--wash);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--wash); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; }

.topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 5vw;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--blue); border-radius: 11px 11px 11px 3px; }
.organization-health { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; padding: 8px 12px; color: var(--ink); background: #f4f6fb; border: 1px solid #e0e4ee; border-radius: 12px; }
.organization-health:hover { text-decoration: none; border-color: #b8c3df; background: #eef2fb; }
.organization-name { font-weight: 850; }
.health-emoji { font-size: 20px; line-height: 1; }
.health-label { color: var(--muted); font-size: 12px; font-weight: 750; }
nav { display: flex; align-items: center; gap: 24px; }
nav form { margin: 0; }
nav a, .link-button { color: #465069; font-weight: 650; }
.link-button { border: 0; background: none; cursor: pointer; padding: 0; }
.nav-with-badge { display: inline-flex; align-items: center; gap: 6px; }
.nav-badge { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; color: white; background: #d73b58; border-radius: 99px; font-size: 10px; font-weight: 850; }

.page { width: min(1180px, 90vw); margin: 42px auto 70px; }
footer { padding: 24px 5vw 40px; color: var(--muted); text-align: center; font-size: 14px; }
.card { background: var(--paper); border: 1px solid rgba(225,228,236,.9); border-radius: 20px; box-shadow: var(--shadow); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 11px; padding: 12px 20px; background: var(--blue); color: white; font-weight: 750; cursor: pointer; }
.button:hover { background: var(--blue-dark); text-decoration: none; }
.button.secondary { color: var(--ink); background: white; border: 1px solid var(--line); }
.button.small { padding: 9px 15px; color: white; }
.button.full { width: 100%; margin-top: 8px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero { min-height: 530px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 9vw; }
.hero h1 { max-width: 760px; margin: 16px 0; font-size: clamp(43px, 6vw, 76px); line-height: .99; letter-spacing: -.055em; }
.hero > div > p { max-width: 650px; color: var(--muted); font-size: 20px; line-height: 1.6; }
.hero-card { padding: 32px; background: #172033; color: white; border-radius: 28px 28px 28px 8px; box-shadow: 0 35px 80px rgba(23,32,51,.24); transform: rotate(2deg); }
.hero-card > p { font-family: Georgia, serif; font-size: 24px; line-height: 1.5; }
.mini-post { display: flex; align-items: center; gap: 12px; }
.mini-post small { display: block; margin-top: 3px; color: #b5bfd3; }
.reaction { padding-top: 18px; border-top: 1px solid #35415a; color: #b7c5ef; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.feature-grid article { padding: 30px; background: var(--warm); border-radius: 18px; }
.feature-grid span { color: #aa6b00; font-weight: 850; }
.feature-grid h2 { margin: 28px 0 8px; font-size: 21px; }
.feature-grid p { color: #6f655a; line-height: 1.6; }
.horizontal-principles {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
    gap: 26px;
    align-items: center;
    margin-top: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #172033 0%, #263654 100%);
    color: white;
    overflow: hidden;
}
.horizontal-principles.compact {
    margin: -2px 0 22px;
    padding: 24px;
    background: linear-gradient(135deg, #f8faff 0%, white 100%);
    color: var(--ink);
}
.horizontal-principles h2 { margin: 9px 0 8px; font-size: clamp(25px, 3vw, 34px); line-height: 1.12; letter-spacing: -.04em; }
.horizontal-principles p { margin: 0; color: rgba(255,255,255,.74); line-height: 1.6; }
.horizontal-principles.compact p { color: var(--muted); }
.horizontal-principles ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.horizontal-principles li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 11px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    font-weight: 750;
    line-height: 1.35;
}
.horizontal-principles.compact li {
    background: #f5f7fc;
    border-color: #e3e8f4;
}
.horizontal-principles li span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: white;
    background: rgba(255,255,255,.15);
    border-radius: 12px 12px 12px 4px;
    font-size: 18px;
}
.horizontal-principles.compact li span {
    color: var(--blue);
    background: #edf1fb;
}

.flash { margin: 0 auto 18px; padding: 14px 18px; border-radius: 12px; font-weight: 650; }
.flash.success { color: #12644f; background: #dff6ef; border: 1px solid #bce9dc; }
.flash.error { color: #9d2f2f; background: #fff0f0; border: 1px solid #f4cccc; }
.app-grid { display: grid; grid-template-columns: 230px minmax(0, 620px) 230px; gap: 24px; justify-content: center; align-items: start; }
.profile-card, .side-note { padding: 24px; position: sticky; top: 96px; }
.profile-card h2 { margin: 18px 0 6px; font-size: 20px; }
.profile-card p, .side-note p { color: var(--muted); line-height: 1.55; }
.profile-card > a { display: block; margin-top: 24px; font-weight: 700; font-size: 14px; }
.side-note h3 { font-size: 22px; margin: 12px 0; }
.feed { display: grid; gap: 18px; }
.question-spotlight { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; padding: 20px; color: var(--ink); border: 2px solid #cbd6fa; background: linear-gradient(135deg, #f6f8ff 0%, white 72%); }
.question-spotlight:hover { text-decoration: none; border-color: var(--blue); box-shadow: 0 18px 44px rgba(49,87,213,.14); }
.question-spotlight.complete { border-color: #c9e8df; background: linear-gradient(135deg, #effaf6 0%, white 72%); }
.spotlight-icon { display: grid; place-items: center; width: 46px; height: 46px; color: white; background: var(--blue); border-radius: 15px 15px 15px 5px; font-size: 22px; font-weight: 900; }
.question-spotlight.complete .spotlight-icon { background: #16876b; }
.question-spotlight h2 { margin: 6px 0 4px; font-size: 18px; line-height: 1.35; }
.question-spotlight p { margin: 0; color: var(--muted); font-size: 13px; }
.spotlight-action { color: var(--blue); font-size: 13px; font-weight: 800; white-space: nowrap; }
.composer { padding: 20px; }
.composer-head { display: flex; gap: 14px; align-items: flex-start; }
.composer textarea { width: 100%; min-height: 80px; padding: 11px 0; border: 0; outline: 0; resize: vertical; }
.composer > button { display: flex; margin-left: auto; margin-top: 10px; }
.post { padding: 22px; }
.post header { display: flex; align-items: center; gap: 12px; }
.post header small { display: block; color: var(--muted); margin-top: 4px; }
.post > p { margin: 20px 0; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; }
.post-actions { padding-top: 14px; border-top: 1px solid var(--line); }
.post-actions button { color: var(--muted); border: 0; background: transparent; cursor: pointer; font-weight: 700; }
.post-actions button.liked { color: #d73b58; }
.avatar { flex: 0 0 auto; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px 14px 14px 5px; color: white; background: var(--avatar); font-size: 13px; font-weight: 850; }
.avatar.large { width: 64px; height: 64px; border-radius: 20px 20px 20px 7px; font-size: 18px; }
.avatar.xlarge { width: 86px; height: 86px; border-radius: 26px 26px 26px 9px; font-size: 24px; }
.pill { display: inline-block; padding: 6px 10px; color: #42557e; background: #edf1fb; border-radius: 99px; font-size: 12px; font-weight: 750; }

.auth-shell { min-height: calc(100vh - 190px); display: grid; place-items: center; }
.auth-card { width: min(520px, 100%); padding: 42px; }
.auth-card h1 { margin: 12px 0 8px; font-size: 38px; letter-spacing: -.035em; }
.auth-card > p { color: var(--muted); }
label { display: grid; gap: 7px; margin: 18px 0; color: #3a4357; font-size: 14px; font-weight: 700; }
input, textarea, select { width: 100%; padding: 13px 14px; color: var(--ink); background: white; border: 1px solid #d9dde7; border-radius: 10px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,213,.12); }
textarea { min-height: 120px; resize: vertical; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-switch { text-align: center; font-size: 14px; }
.center { text-align: center; }
.mail-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto; color: white; background: var(--blue); border-radius: 22px 22px 22px 7px; font-size: 27px; }
.dev-notice { margin: 24px 0; padding: 18px; text-align: left; border: 1px dashed #b8c3df; border-radius: 14px; background: #f5f7fd; }
.dev-notice p { color: var(--muted); line-height: 1.5; }

.directory-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.directory-head h1 { margin: 10px 0 0; font-size: 42px; letter-spacing: -.04em; }
.search { display: flex; gap: 10px; width: min(500px, 100%); }
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member { padding: 26px; }
.member h2 { margin: 18px 0 6px; }
.member p { min-height: 24px; color: var(--muted); }
.member > a { display: block; margin-top: 22px; overflow-wrap: anywhere; }
.profile-editor { max-width: 820px; margin: 0 auto; padding: 36px; }
.profile-intro { display: flex; align-items: center; gap: 22px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.profile-intro h1 { margin: 7px 0 3px; }
.profile-intro p { margin: 0; color: var(--muted); }
.empty-state { padding: 46px 28px; text-align: center; }
.empty-state p { color: var(--muted); }
.muted { color: var(--muted); }

.questions-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}
.questions-heading h1 {
    margin: 10px 0 8px;
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -.05em;
}
.questions-heading p { max-width: 680px; margin: 0; color: var(--muted); font-size: 17px; }
.question-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.daily-done { padding: 11px 16px; color: #12644f; background: #dff6ef; border-radius: 99px; font-weight: 750; white-space: nowrap; }
.privacy-note { margin-bottom: 22px; padding: 17px 20px; color: #43506c; background: #edf1fb; border: 1px solid #dbe3fa; border-radius: 14px; line-height: 1.5; }
.question-list { display: grid; gap: 16px; }
.question-card { display: block; padding: 26px; color: var(--ink); transition: transform .16s ease, box-shadow .16s ease; }
.question-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 20px 54px rgba(27,39,69,.12); }
.question-card h2 { margin: 16px 0 22px; font-size: 23px; line-height: 1.35; letter-spacing: -.02em; }
.question-meta, .question-footer { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.question-category { display: inline-flex; padding: 6px 10px; color: #3157d5; background: #eef2ff; border-radius: 99px; font-weight: 800; }
.emoji-badge { display: inline-flex; padding: 6px 10px; color: #9a4f00; background: #fff1d6; border-radius: 99px; font-weight: 800; }
.pulse-button { color: #8b4600 !important; background: #fff1d6 !important; border-color: #f1d09c !important; }
.question-footer { padding-top: 17px; border-top: 1px solid var(--line); }
.question-footer span:nth-child(2) { margin-left: auto; }
.answered-badge { color: #12644f; font-weight: 800; }
.question-editor { max-width: 820px; margin: 0 auto; padding: 38px; }
.question-editor h1 { margin: 10px 0; font-size: 40px; letter-spacing: -.04em; }
.question-editor > p { color: var(--muted); }
.option-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.identity-choice { display: flex; grid-template-columns: none; align-items: center; gap: 10px; margin: 15px 0; cursor: pointer; font-weight: 650; }
.identity-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); box-shadow: none; }

.question-detail, .comments-section { max-width: 820px; margin: 0 auto 20px; padding: 34px; }
.question-detail h1 { margin: 18px 0 8px; font-size: clamp(30px, 4vw, 46px); line-height: 1.16; letter-spacing: -.04em; }
.question-author { color: var(--muted); }
.poll-options { display: grid; gap: 12px; margin: 28px 0 20px; }
.poll-option { position: relative; display: block; margin: 0; padding: 18px 20px; overflow: hidden; border: 2px solid #dce0e9; border-radius: 14px; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.poll-option:hover { border-color: #9daee5; background: #f8f9ff; transform: translateY(-1px); }
.poll-option.selected { border-color: var(--blue); background: #edf1ff; box-shadow: 0 0 0 4px rgba(49,87,213,.16), 0 10px 24px rgba(49,87,213,.13); transform: translateY(-1px); }
.poll-option > input { position: absolute; opacity: 0; pointer-events: none; }
.poll-copy { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.poll-copy strong { font-size: 15px; transition: color .16s ease; }
.poll-option.selected .poll-copy strong { color: var(--blue-dark); }
.poll-score { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 750; white-space: nowrap; }
.selection-mark { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; margin-left: auto; color: transparent; background: transparent; border: 2px solid #cbd2df; border-radius: 50%; font-size: 14px; font-weight: 900; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; }
.poll-option.selected .selection-mark { color: white; background: var(--blue); border-color: var(--blue); transform: scale(1.08); }
.poll-option.selected .poll-score { margin-left: 0; color: var(--blue-dark); }
.emoji-poll { grid-template-columns: repeat(5, 1fr); }
.emoji-option { padding: 15px 8px; text-align: center; }
.emoji-option .poll-copy { flex-direction: column; gap: 6px; }
.emoji-option .option-emoji { font-size: 32px; line-height: 1; }
.emoji-option .selection-mark { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; font-size: 11px; }
.emoji-option .poll-score { margin: 0; }
.poll-bar { position: absolute; z-index: 1; inset: 0 auto 0 0; width: var(--result); background: #edf1ff; transition: width .2s ease; }
.respondent-list { position: relative; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.respondent-list span { padding: 4px 8px; color: #4b5872; background: rgba(255,255,255,.78); border: 1px solid #dfe4f0; border-radius: 99px; font-size: 11px; font-weight: 700; }
.poll-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.poll-submit .identity-choice { margin: 0; }
.results-locked { padding: 13px; color: var(--muted); background: var(--wash); border-radius: 10px; text-align: center; font-size: 13px; }
.comments-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.comments-heading h2 { margin: 7px 0 20px; }
.comments-heading > span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--blue); background: #edf1fb; border-radius: 50%; font-weight: 800; }
.comment-form { padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment-form textarea { min-height: 96px; margin-bottom: 13px; }
.comment-list { display: grid; gap: 0; }
.question-comment { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.question-comment:last-child { border-bottom: 0; }
.question-comment small { display: block; margin-top: 3px; color: var(--muted); }
.question-comment p { margin: 10px 0 0; line-height: 1.55; }
.question-comment.reply-comment { padding: 16px 0 16px 14px; border-left: 3px solid #e4e9f5; border-bottom-color: #eef1f7; }
.comment-body { min-width: 0; }
.comment-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.comment-reactions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.comment-reactions form { margin: 0; }
.reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 9px;
    color: #5b667d;
    background: #f6f8fc;
    border: 1px solid #dfe5f0;
    border-radius: 99px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
}
.reaction-button:hover { background: #edf1fb; }
.reaction-button.up.active { color: #12644f; background: #dff6ef; border-color: #bce9dc; }
.reaction-button.down.active { color: #9d2f2f; background: #fff0f0; border-color: #f4cccc; }
.reply-composer { margin-top: 12px; }
.reply-composer summary { width: max-content; color: var(--blue); cursor: pointer; font-size: 13px; font-weight: 850; }
.comment-form.nested { margin-top: 12px; padding: 14px; background: #f8f9fd; border: 1px solid #edf0f7; border-radius: 14px; }
.comment-form.nested textarea { min-height: 82px; }
.reply-list { display: grid; gap: 0; margin-top: 12px; }
.constructive-nudge {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    margin: 14px 0 4px;
    padding: 14px;
    color: #4a3e27;
    background: #fff8ea;
    border: 1px solid #f1dcae;
    border-radius: 14px;
}
.constructive-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 13px 13px 13px 5px;
    font-size: 20px;
}
.constructive-nudge strong { display: block; color: #6b4b00; }
.constructive-nudge p { margin: 5px 0 11px; color: #6f624a; font-size: 13px; line-height: 1.45; }
.pseudo-avatar { display: grid; place-items: center; width: 40px; height: 40px; background: #f0f3fb; border-radius: 13px 13px 13px 5px; }
.recap-heading { max-width: 760px; margin-bottom: 30px; }
.recap-heading h1 { margin: 10px 0; font-size: clamp(40px, 6vw, 66px); line-height: 1; letter-spacing: -.055em; }
.recap-heading p { color: var(--muted); font-size: 18px; }
.privacy-threshold { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px; padding: 30px; }
.privacy-threshold h2 { margin: 0 0 8px; }
.privacy-threshold p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.6; }
.privacy-threshold > strong { color: var(--blue); font-size: 28px; }
.threshold-icon { display: grid; place-items: center; width: 60px; height: 60px; background: #edf1fb; border-radius: 20px 20px 20px 7px; font-size: 26px; }
.recap-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.recap-stats article { display: grid; gap: 7px; padding: 25px; }
.recap-stats strong { color: var(--blue); font-size: 38px; }
.recap-stats span { color: var(--muted); }
.recap-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.recap-card { display: block; padding: 24px; color: var(--ink); }
.recap-card:hover { text-decoration: none; transform: translateY(-2px); }
.recap-card h2 { min-height: 58px; margin: 16px 0 20px; font-size: 20px; line-height: 1.4; }
.recap-result { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px; background: #edf1fb; border-radius: 12px; }
.recap-result strong { color: var(--blue); font-size: 20px; }
.recap-card small { display: block; margin-top: 12px; color: var(--muted); }
.recap-privacy { margin-top: 20px; color: var(--muted); text-align: center; font-size: 13px; }
.pulse-heading { max-width: 800px; margin: 0 auto 28px; text-align: center; }
.pulse-heading h1 { margin: 10px 0; font-size: clamp(42px, 6vw, 68px); line-height: 1; letter-spacing: -.055em; }
.pulse-heading p { color: var(--muted); font-size: 18px; }
.company-pulse-card { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 20px; max-width: 980px; margin: 0 auto 20px; padding: 22px 28px; background: linear-gradient(135deg, #f8faff, white); }
.company-pulse-emoji { display: grid; place-items: center; width: 64px; height: 64px; background: #edf1fb; border-radius: 21px 21px 21px 7px; font-size: 36px; }
.company-pulse-card h2 { margin: 5px 0 3px; font-size: 25px; }
.company-pulse-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.pulse-scale { color: var(--muted); font-size: 18px; white-space: nowrap; }
.pulse-form { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
.pulse-question { min-width: 0; margin: 0; padding: 28px; border: 0; }
.pulse-question legend { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 0 20px; color: var(--ink); font-size: 21px; font-weight: 800; line-height: 1.35; }
.pulse-question legend > span { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; color: white; background: var(--blue); border-radius: 10px 10px 10px 4px; font-size: 14px; }
.emoji-choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.emoji-choice { position: relative; display: grid; place-items: center; gap: 7px; margin: 0; min-height: 128px; padding: 15px 8px; text-align: center; background: #fafbfe; border: 2px solid #e1e5ee; border-radius: 16px; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.emoji-choice:hover { border-color: #a8b7e8; transform: translateY(-2px); }
.emoji-choice.selected { background: #edf1ff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(49,87,213,.14), 0 10px 24px rgba(49,87,213,.12); transform: translateY(-2px); }
.emoji-choice input { position: absolute; opacity: 0; pointer-events: none; }
.emoji-face { font-size: 38px; line-height: 1; transition: transform .16s ease; }
.emoji-choice.selected .emoji-face { transform: scale(1.18); }
.emoji-label { color: #526078; font-size: 12px; font-weight: 750; line-height: 1.25; }
.emoji-choice.selected .emoji-label { color: var(--blue-dark); }
.emoji-check { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 22px; height: 22px; color: transparent; background: transparent; border: 2px solid #ced5e2; border-radius: 50%; font-size: 12px; font-weight: 900; }
.emoji-choice.selected .emoji-check { color: white; background: var(--blue); border-color: var(--blue); }
.pulse-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; }
.pulse-submit .identity-choice { margin: 0; }
.pulse-empty-emoji { font-size: 54px; }
.actions-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.actions-heading h1 { margin: 10px 0 8px; font-size: clamp(40px, 5vw, 60px); letter-spacing: -.05em; }
.actions-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.action-list { display: grid; gap: 16px; }
.action-card { display: grid; grid-template-columns: 78px 1fr; overflow: hidden; }
.action-vote-column { display: grid; place-items: start center; padding: 24px 12px; background: #f7f8fc; border-right: 1px solid var(--line); }
.action-vote-column form { margin: 0; }
.action-vote { display: grid; place-items: center; gap: 2px; min-width: 50px; padding: 9px 10px; color: #68738a; background: white; border: 2px solid #dce1eb; border-radius: 13px; cursor: pointer; }
.action-vote:hover { color: var(--blue); border-color: #aebbe6; }
.action-vote.voted { color: white; background: var(--blue); border-color: var(--blue); box-shadow: 0 8px 18px rgba(49,87,213,.22); }
.action-vote.done { color: white; background: #16876b; border-color: #16876b; box-shadow: 0 8px 18px rgba(22,135,107,.22); }
.action-vote span { font-size: 18px; line-height: 1; }
.action-vote strong { font-size: 17px; }
.action-vote.large { min-width: 78px; padding: 14px; }
.action-vote.large span { font-size: 25px; }
.action-vote.large strong { font-size: 24px; }
.action-vote.large small { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.action-card-body { padding: 25px; }
.action-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.action-status { padding: 5px 9px; color: #11624f; background: #dff6ef; border-radius: 99px; font-weight: 850; }
.action-status.signal-strong { color: #8a4b00; background: #fff1d6; }
.action-status.status-pending-done { color: #6b4b00; background: #fff5c7; }
.action-status.status-done { color: #12644f; background: #dff6ef; }
.action-card h2 { margin: 14px 0 9px; font-size: 23px; letter-spacing: -.025em; }
.action-card h2 a { color: var(--ink); }
.action-card h2 a:hover { color: var(--blue); text-decoration: none; }
.action-card-body > p { display: -webkit-box; margin: 0 0 20px; overflow: hidden; color: #4e596f; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.action-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.action-card-footer a { font-weight: 800; }
.action-empty-icon { font-size: 48px; }
.action-editor { max-width: 820px; margin: 0 auto; padding: 38px; }
.action-editor h1 { margin: 10px 0; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.045em; }
.action-editor > p { color: var(--muted); line-height: 1.55; }
.action-seed-note {
    margin: 20px 0 8px;
    padding: 16px;
    color: #43506c;
    background: #f8faff;
    border: 1px solid #dbe3fa;
    border-radius: 14px;
}
.action-seed-note strong { color: var(--blue-dark); }
.action-seed-note p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.action-settings { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 15px 0 22px; padding: 16px; background: #f5f7fc; border-radius: 13px; }
.action-settings .identity-choice { margin: 0; }
.action-detail { max-width: 900px; margin: 0 auto 20px; padding: 34px; }
.action-detail-top { display: grid; grid-template-columns: 92px 1fr; gap: 24px; align-items: start; }
.action-detail-top form { margin: 0; }
.action-detail h1 { margin: 15px 0 12px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.action-detail-top p { color: #465269; font-size: 17px; line-height: 1.7; }
.action-owner-settings { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 25px; padding: 16px 18px; background: #f5f7fc; border-radius: 13px; }
.action-owner-settings .identity-choice { margin: 0; }
.comments-closed { margin: 22px 0; padding: 18px; color: #6b7280; background: #f5f6f8; border-radius: 12px; text-align: center; font-weight: 700; }
.done-actions-section { display: grid; gap: 16px; margin-top: 34px; }
.done-count { padding: 9px 13px; color: #12644f; background: #dff6ef; border-radius: 99px; font-size: 13px; font-weight: 850; }
.done-count:hover { color: #12644f; text-decoration: none; background: #c9efe3; }
.done-list { opacity: .94; }
.done-card { background: linear-gradient(135deg, #fbfffd 0%, white 100%); }
.done-card .action-card-body > p { color: #526075; }
.done-column { background: #f0faf6; }
.done-original {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #f7f9fc;
    border: 1px solid #e6ebf4;
    border-radius: 12px;
}
.done-original summary { color: var(--blue); cursor: pointer; font-size: 13px; font-weight: 850; }
.done-original p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.done-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
    padding: 34px;
    background: radial-gradient(circle at top right, #dff6ef 0, transparent 36%), linear-gradient(135deg, white 0%, #f8fffc 100%);
}
.done-history-heading h1 { margin: 10px 0; font-size: clamp(40px, 5vw, 62px); line-height: 1; letter-spacing: -.055em; }
.done-history-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.done-history-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.done-history-stats article { display: grid; align-content: center; gap: 8px; min-height: 126px; padding: 22px; }
.done-history-stats strong { color: #16876b; font-size: clamp(24px, 3vw, 34px); line-height: 1.05; }
.done-history-stats span { color: var(--muted); font-weight: 750; line-height: 1.35; }
.done-history-list { display: grid; gap: 16px; }
.domain-activity-card {
    display: grid;
    grid-template-columns: 118px 1fr minmax(210px, .45fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 18px;
    padding: 24px;
    background: linear-gradient(135deg, #f8faff 0%, white 100%);
}
.activity-ring {
    display: grid;
    place-items: center;
    align-content: center;
    width: 108px;
    height: 108px;
    background:
        radial-gradient(circle, white 0 56%, transparent 57%),
        conic-gradient(var(--blue) var(--activity), #e8edf8 0);
    border-radius: 50%;
}
.activity-ring strong { color: var(--blue); font-size: 32px; line-height: 1; }
.activity-ring span { color: var(--muted); font-size: 13px; font-weight: 850; }
.activity-copy h2 { margin: 6px 0 6px; font-size: 28px; letter-spacing: -.035em; }
.activity-copy p { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.55; }
.signal-rule {
    display: grid;
    gap: 5px;
    padding: 16px;
    background: #172033;
    color: white;
    border-radius: 16px 16px 16px 6px;
}
.signal-rule strong { color: #ffe1a7; font-size: 35px; line-height: 1; }
.signal-rule span { font-weight: 850; line-height: 1.28; }
.signal-rule small { color: rgba(255,255,255,.68); line-height: 1.35; }
.signal-meter {
    display: grid;
    gap: 8px;
    margin: 18px 0 19px;
    padding: 13px;
    background: #f7f8fc;
    border: 1px solid #e5e9f3;
    border-radius: 13px;
}
.signal-meter.detail { max-width: 620px; margin-top: 20px; }
.signal-meter.is-strong {
    background: #fff8ea;
    border-color: #f1d09c;
}
.signal-meter-head { display: flex; justify-content: space-between; gap: 15px; color: #4f5b72; font-size: 13px; font-weight: 850; }
.signal-meter-head strong { color: var(--blue); white-space: nowrap; }
.signal-meter.is-strong .signal-meter-head strong { color: #9a4f00; }
.signal-bar {
    position: relative;
    height: 9px;
    overflow: hidden;
    background: #e7ecf7;
    border-radius: 99px;
}
.signal-bar span {
    display: block;
    width: var(--signal);
    height: 100%;
    background: linear-gradient(90deg, var(--blue), #6f88e6);
    border-radius: inherit;
    transition: width .2s ease;
}
.signal-meter.is-strong .signal-bar span { background: linear-gradient(90deg, #ef9f2d, #ffcf72); }
.signal-meter small { color: var(--muted); line-height: 1.4; }
.completion-section { max-width: 900px; margin: 0 auto 20px; padding: 30px; }
.completion-request-form > p,
.completion-pending-box > p { margin: 20px 0 10px; color: var(--muted); line-height: 1.55; }
.completion-request-form textarea { min-height: 105px; }
.completion-pending-box blockquote,
.completion-done-box blockquote {
    margin: 14px 0 0;
    padding: 14px 16px;
    color: #43506c;
    background: #f5f7fc;
    border-left: 4px solid var(--blue);
    border-radius: 10px;
    line-height: 1.55;
}
.completion-done-box {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: start;
    margin-top: 22px;
    padding: 18px;
    background: #f0faf6;
    border: 1px solid #c9e8df;
    border-radius: 16px;
}
.completion-icon { display: grid; place-items: center; width: 54px; height: 54px; color: white; background: #16876b; border-radius: 18px 18px 18px 6px; font-size: 27px; font-weight: 950; }
.completion-done-box h3 { margin: 0 0 6px; font-size: 20px; }
.completion-done-box p { margin: 0; color: var(--muted); line-height: 1.5; }
.completion-meter {
    display: grid;
    gap: 8px;
    margin: 18px 0 19px;
    padding: 13px;
    background: #fffaf0;
    border: 1px solid #f1dcae;
    border-radius: 13px;
}
.completion-meter.is-done {
    background: #f0faf6;
    border-color: #c9e8df;
}
.completion-meter-head { display: flex; justify-content: space-between; gap: 15px; color: #5d5660; font-size: 13px; font-weight: 850; }
.completion-meter-head strong { color: #9a4f00; white-space: nowrap; }
.completion-meter.is-done .completion-meter-head strong { color: #12644f; }
.completion-bar {
    position: relative;
    height: 9px;
    overflow: hidden;
    background: #efe7d7;
    border-radius: 99px;
}
.completion-meter.is-done .completion-bar { background: #d9f0e8; }
.completion-bar span {
    display: block;
    width: var(--completion);
    height: 100%;
    background: linear-gradient(90deg, #ef9f2d, #ffcf72);
    border-radius: inherit;
}
.completion-meter.is-done .completion-bar span { background: linear-gradient(90deg, #16876b, #5ec7a8); }
.completion-meter small { color: var(--muted); line-height: 1.4; }

nav a.active { color: var(--blue); }
.notification-center { position: relative; }
.notification-center summary {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    list-style: none;
    cursor: pointer;
    background: #f4f6fb;
    border: 1px solid #e0e4ee;
    border-radius: 14px;
}
.notification-center summary::-webkit-details-marker { display: none; }
.notification-center[open] summary { border-color: #b8c3df; background: #eef2fb; }
.notification-center .nav-badge { position: absolute; top: -6px; right: -6px; }
.bell-icon { font-size: 18px; }
.notification-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    z-index: 40;
    display: grid;
    gap: 8px;
    width: min(370px, 88vw);
    padding: 14px;
    box-shadow: 0 24px 70px rgba(23,32,51,.18);
}
.notification-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 10px; border-bottom: 1px solid var(--line); }
.notification-panel-head small { color: var(--muted); font-weight: 650; }
.notification-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 11px;
    padding: 12px;
    color: var(--ink);
    border-radius: 14px;
}
.notification-item:hover { text-decoration: none; background: #f5f7fc; }
.notification-icon { display: grid; place-items: center; width: 38px; height: 38px; background: #edf1fb; border-radius: 13px 13px 13px 5px; }
.notification-item small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }
.notification-empty { display: grid; place-items: center; padding: 24px 12px; text-align: center; color: var(--muted); }
.notification-empty span { font-size: 34px; }
.notification-empty p { margin: 8px 0 0; line-height: 1.45; }

.toast-stack {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 60;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}
.toast {
    margin: 0;
    box-shadow: 0 18px 48px rgba(23,32,51,.14);
    animation: toast-in .24s ease-out;
    pointer-events: auto;
}
.toast.is-hiding { animation: toast-out .18s ease-in forwards; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
    to { opacity: 0; transform: translateY(-8px) scale(.98); }
}

.today-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 18px;
    padding: 34px;
    background: radial-gradient(circle at top right, #eaf0ff 0, transparent 34%), linear-gradient(135deg, white 0%, #f8faff 100%);
}
.today-hero h1 { max-width: 780px; margin: 10px 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.055em; }
.today-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.today-stats { display: grid; gap: 12px; }
.today-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    color: var(--ink);
    background: rgba(255,255,255,.82);
    border: 1px solid #e2e7f4;
    border-radius: 16px;
}
.today-stat:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(49,87,213,.11); }
.today-stat strong { color: var(--blue); font-size: 29px; line-height: 1; }
.today-stat span { color: #4d5870; font-size: 13px; font-weight: 800; text-align: right; }
.today-stat.pulse strong { font-size: 31px; }
.feed-tabs {
    display: flex;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 0 0 24px;
    padding: 7px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(27,39,69,.06);
}
.feed-tabs a { padding: 10px 16px; color: #566178; border-radius: 11px; font-weight: 800; }
.feed-tabs a:hover { text-decoration: none; background: #f5f7fc; }
.feed-tabs a.active { color: white; background: var(--blue); }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.dashboard-main, .dashboard-section { display: grid; gap: 18px; }
.daily-mood-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 18px;
    padding: 24px;
    background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
}
.daily-mood-card h2 { margin: 6px 0 6px; font-size: 26px; letter-spacing: -.035em; }
.daily-mood-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.daily-mood-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.daily-mood-options button {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 86px;
    color: #526078;
    background: white;
    border: 2px solid #e1e6f0;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 850;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.daily-mood-options button:hover { border-color: #aebbe6; transform: translateY(-2px); }
.daily-mood-options button.selected { color: var(--blue-dark); background: #edf1ff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(49,87,213,.12); }
.daily-mood-options button span { font-size: 28px; line-height: 1; }
.daily-mood-options button small { font-size: 11px; line-height: 1.2; }
.collective-badges, .onboarding-card { margin-bottom: 18px; padding: 24px; }
.badge-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.badge-grid article {
    display: grid;
    gap: 7px;
    min-height: 128px;
    padding: 15px;
    color: #6b7280;
    background: #f6f7fa;
    border: 1px solid #e6e9f0;
    border-radius: 16px;
}
.badge-grid article.earned { color: #284260; background: #f8fbff; border-color: #cfdaf6; box-shadow: 0 10px 24px rgba(49,87,213,.07); }
.badge-grid article > span { font-size: 25px; }
.badge-grid strong { color: var(--ink); line-height: 1.25; }
.badge-grid small { color: var(--muted); line-height: 1.35; }
.onboarding-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: linear-gradient(135deg, #172033 0%, #263654 100%); color: white; }
.onboarding-card h2 { margin: 7px 0 6px; font-size: 27px; letter-spacing: -.035em; }
.onboarding-card p { margin: 0; color: rgba(255,255,255,.74); line-height: 1.5; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.section-heading h2 { margin: 5px 0 0; font-size: 28px; letter-spacing: -.035em; }
.section-heading > a { flex: 0 0 auto; font-weight: 800; font-size: 13px; }
.task-list, .dashboard-action-list { display: grid; gap: 12px; }
.dashboard-task {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 18px;
    color: var(--ink);
    border: 2px solid transparent;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.dashboard-task:hover { text-decoration: none; transform: translateY(-2px); border-color: #c8d3f7; box-shadow: 0 18px 44px rgba(49,87,213,.12); }
.dashboard-task strong { display: block; margin: 8px 0 4px; font-size: 17px; line-height: 1.35; }
.dashboard-task small { color: var(--muted); }
.dashboard-task em { color: var(--blue); font-style: normal; font-size: 13px; font-weight: 850; white-space: nowrap; }
.task-icon { display: grid; place-items: center; width: 48px; height: 48px; color: white; background: var(--blue); border-radius: 15px 15px 15px 5px; font-size: 21px; font-weight: 900; }
.emoji-task .task-icon { background: #ef9f2d; }
.dashboard-action {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px;
}
.dashboard-action form { margin: 0; }
.dashboard-action h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.dashboard-action h3 a { color: var(--ink); }
.dashboard-action h3 a:hover { color: var(--blue); text-decoration: none; }
.dashboard-action p { display: -webkit-box; margin: 0 0 11px; overflow: hidden; color: #4e596f; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dashboard-action small { color: var(--muted); }
.dashboard-side { display: grid; gap: 18px; }
.quick-card { display: grid; gap: 10px; padding: 22px; position: sticky; top: 96px; }
.quick-card a { padding: 12px 14px; color: #465069; background: #f5f7fc; border-radius: 12px; font-weight: 800; }
.quick-card a:hover { color: var(--blue); text-decoration: none; background: #edf1fb; }
.empty-state.compact { padding: 28px 22px; box-shadow: none; }
.empty-state.compact h2 { margin: 8px 0 6px; font-size: 20px; }
.empty-emoji { font-size: 34px; }

.quick-submit {
    position: relative;
    opacity: .72;
    transition: opacity .16s ease, transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.quick-answer-form.has-selection .quick-submit {
    opacity: 1;
    transform: translateY(-1px);
}
.quick-answer-form.has-selection .quick-submit::before {
    content: "✓ Réponse sélectionnée";
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    color: #2443ab;
    background: #edf1ff;
    border: 1px solid #cbd6fa;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 850;
}
.quick-answer-form.has-selection .quick-submit .button {
    box-shadow: 0 12px 28px rgba(49,87,213,.25);
}
.button:disabled, button:disabled { cursor: wait; opacity: .72; }

.me-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 30px;
}
.me-hero .profile-intro { flex: 1; padding: 0; border-bottom: 0; }
.me-hero h1 { margin: 6px 0; font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -.055em; }
.me-hero p { max-width: 760px; color: var(--muted); line-height: 1.55; }
.me-stats { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.me-stats article { display: grid; align-content: center; gap: 6px; min-height: 132px; padding: 22px; }
.me-stats article > strong { color: var(--blue); font-size: 38px; line-height: 1; }
.me-stats article > span { color: var(--muted); font-weight: 750; line-height: 1.35; }
.mood-card { grid-template-columns: 58px 1fr; align-items: center; background: linear-gradient(135deg, #f8faff, white); }
.mood-emoji { display: grid; place-items: center; width: 54px; height: 54px; background: #edf1fb; border-radius: 18px 18px 18px 6px; font-size: 31px; }
.mood-card h2 { margin: 5px 0 4px; font-size: 23px; }
.mood-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.me-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.me-panel { padding: 24px; }
.mini-list { display: grid; gap: 8px; margin-top: 16px; }
.mini-row {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    color: var(--ink);
    background: #f8f9fd;
    border: 1px solid #edf0f7;
    border-radius: 14px;
}
.mini-row:hover { text-decoration: none; background: #edf1fb; }
.mini-row > span:first-child { display: grid; place-items: center; width: 36px; height: 36px; background: white; border-radius: 12px 12px 12px 5px; font-weight: 900; }
.mini-row strong { display: block; line-height: 1.35; }
.mini-row small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.35; }
.pseudo-avatar { display: grid; place-items: center; width: 40px; height: 40px; background: #f0f3fb; border-radius: 13px 13px 13px 5px; font-size: 20px; }
.support-heading, .weekly-summary, .onboarding-page {
    margin-bottom: 18px;
    padding: 34px;
    background: radial-gradient(circle at top right, #edf1ff 0, transparent 38%), white;
}
.support-heading.gratitude { background: radial-gradient(circle at top right, #fff1d6 0, transparent 38%), white; }
.support-heading h1, .weekly-summary h1, .onboarding-page h1 {
    margin: 10px 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1;
    letter-spacing: -.055em;
}
.support-heading p, .weekly-summary p { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.support-layout { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: 18px; align-items: start; }
.support-form { padding: 24px; position: sticky; top: 96px; }
.support-list, .gratitude-list { display: grid; gap: 14px; }
.support-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 750; }
.support-footer form { margin: 0; }
.gratitude-card { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 22px; }
.gratitude-heart { display: grid; place-items: center; width: 46px; height: 46px; background: #fff1d6; border-radius: 15px 15px 15px 5px; font-size: 24px; }
.gratitude-card p { margin: 0 0 10px; color: #465269; font-size: 17px; line-height: 1.55; }
.gratitude-card small { color: var(--muted); font-weight: 750; }
.weekly-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.weekly-grid article { display: grid; gap: 7px; min-height: 132px; padding: 22px; }
.weekly-grid strong { color: var(--blue); font-size: 36px; line-height: 1; }
.weekly-grid span { font-size: 17px; font-weight: 850; }
.weekly-grid small { color: var(--muted); line-height: 1.35; }
.weekly-actions { padding: 24px; }
.onboarding-page { max-width: 980px; margin: 0 auto; }
.onboarding-page > p { color: var(--muted); line-height: 1.6; }
.onboarding-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.onboarding-steps article { padding: 22px; background: #f8f9fd; border: 1px solid #e7ecf5; border-radius: 18px; }
.onboarding-steps span { font-size: 30px; }
.onboarding-steps h2 { margin: 16px 0 8px; }
.onboarding-steps p { margin: 0; color: var(--muted); line-height: 1.5; }

@media (max-width: 980px) {
    .app-grid { grid-template-columns: minmax(0, 680px); }
    .profile-card, .side-note { display: none; }
    .hero { grid-template-columns: 1fr; padding: 50px 0; }
    .hero-card { max-width: 520px; }
    .member-grid { grid-template-columns: repeat(2, 1fr); }
    .horizontal-principles { grid-template-columns: 1fr; }
    .daily-mood-card, .support-layout { grid-template-columns: 1fr; }
    .support-form { position: static; }
    .badge-grid { grid-template-columns: repeat(3, 1fr); }
    .weekly-grid, .onboarding-steps { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .topbar { min-height: 64px; padding: 0 18px; }
    .organization-health { margin-left: auto; margin-right: 0; padding: 7px 9px; }
    .health-label { display: none; }
    .organization-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    nav { gap: 12px; }
    nav > a:not(.button), nav form { display: none; }
    .page { width: min(92vw, 600px); margin-top: 24px; }
    .hero { min-height: auto; }
    .hero h1 { font-size: 44px; }
    .hero > div > p { font-size: 17px; }
    .feature-grid, .member-grid { grid-template-columns: 1fr; }
    .horizontal-principles { padding: 24px; }
    .daily-mood-card, .collective-badges, .onboarding-card, .support-heading, .weekly-summary, .onboarding-page { padding: 24px; }
    .daily-mood-options { grid-template-columns: repeat(2, 1fr); }
    .daily-mood-options button:last-child { grid-column: 1 / -1; }
    .badge-grid { grid-template-columns: 1fr; }
    .onboarding-card { align-items: stretch; flex-direction: column; }
    .onboarding-card .button { width: 100%; }
    .support-footer { align-items: flex-start; flex-direction: column; }
    .gratitude-card { grid-template-columns: 1fr; }
    .auth-card, .profile-editor { padding: 25px; }
    .two-columns { grid-template-columns: 1fr; gap: 0; }
    .directory-head { align-items: stretch; flex-direction: column; }
    .directory-head h1 { font-size: 34px; }
    .search { flex-direction: column; }
    .questions-heading { align-items: stretch; flex-direction: column; }
    .questions-heading .button { width: 100%; }
    .question-heading-actions { align-items: stretch; flex-direction: column; }
    .question-spotlight { grid-template-columns: 42px 1fr; }
    .spotlight-action { grid-column: 2; }
    .recap-stats, .recap-list { grid-template-columns: 1fr; }
    .privacy-threshold { grid-template-columns: 1fr; text-align: center; }
    .threshold-icon { margin: 0 auto; }
    .option-editor { grid-template-columns: 1fr; }
    .question-editor, .question-detail, .comments-section { padding: 24px; }
    .question-footer span:nth-child(2) { margin-left: 0; }
    .poll-submit { align-items: stretch; flex-direction: column; }
    .poll-submit .button { width: 100%; }
    .emoji-poll { grid-template-columns: 1fr 1fr; }
    .emoji-choices { grid-template-columns: 1fr 1fr; }
    .emoji-choice:last-child { grid-column: 1 / -1; }
    .pulse-question { padding: 22px 16px; }
    .company-pulse-card { grid-template-columns: 58px 1fr; padding: 20px; }
    .company-pulse-emoji { width: 54px; height: 54px; font-size: 31px; }
    .pulse-scale { display: none; }
    .pulse-submit { align-items: stretch; flex-direction: column; }
    .pulse-submit .button { width: 100%; }
    .actions-heading { align-items: stretch; flex-direction: column; }
    .heading-actions { align-items: stretch; flex-direction: column; }
    .actions-heading .button { width: 100%; }
    .domain-activity-card { grid-template-columns: 1fr; text-align: center; }
    .activity-ring { margin: 0 auto; }
    .action-card { grid-template-columns: 64px 1fr; }
    .action-vote-column { padding: 20px 7px; }
    .action-card-body { padding: 21px 18px; }
    .action-card-footer { align-items: flex-start; flex-direction: column; }
    .action-editor, .action-detail { padding: 24px; }
    .completion-section { padding: 24px; }
    .completion-done-box { grid-template-columns: 1fr; text-align: center; }
    .completion-icon { margin: 0 auto; }
    .action-detail-top { grid-template-columns: 1fr; }
    .action-detail-top > form { width: max-content; }
    .action-owner-settings { align-items: stretch; flex-direction: column; }
    .constructive-nudge { grid-template-columns: 1fr; }
    .constructive-icon { margin: 0 auto; }
    .done-history-heading { align-items: stretch; flex-direction: column; padding: 24px; }
    .done-history-heading .button { width: 100%; }
    .done-history-stats { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    .today-hero, .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-side .profile-card, .dashboard-side .side-note, .quick-card { position: static; display: block; }
    .quick-card { display: grid; }
    .me-stats, .me-grid { grid-template-columns: 1fr 1fr; }
    .mood-card { grid-column: 1 / -1; }
    .done-history-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .today-hero { padding: 24px; }
    .today-stats, .me-stats, .me-grid, .dashboard-side { grid-template-columns: 1fr; }
    .feed-tabs { width: 100%; overflow-x: auto; }
    .feed-tabs a { flex: 1 0 auto; text-align: center; }
    .dashboard-task { grid-template-columns: 44px 1fr; }
    .dashboard-task em { grid-column: 2; }
    .task-icon { width: 42px; height: 42px; }
    .dashboard-action { grid-template-columns: 52px 1fr; padding: 15px; }
    .signal-meter-head, .completion-meter-head { align-items: flex-start; flex-direction: column; gap: 4px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .me-hero { align-items: stretch; flex-direction: column; }
    .toast-stack { top: 76px; right: 16px; }
    .done-history-stats { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .notification-center { margin-left: auto; }
    .notification-panel { right: -72px; }
    .organization-health + .notification-center { margin-left: 0; }
    .quick-answer-form.has-selection .quick-submit::before { justify-content: center; width: 100%; }
    .pulse-submit.quick-submit::before { width: 100%; }
}
