:root {
    --ency-forest-950: #19332e;
    --ency-forest-900: #23443d;
    --ency-forest-700: #48675d;
    --ency-moss-200: #dbe4da;
    --ency-moss-100: #edf1e9;
    --ency-sun: #e9bd55;
    --ency-coral: #cf745a;
    --ency-paper: #f8f5ef;
    --ency-sheet: #fffdf9;
    --ency-ink: #2b2521;
    --ency-muted: #756c65;
    --ency-rule: rgba(43, 37, 33, 0.15);
    --ency-rule-strong: rgba(43, 37, 33, 0.26);
}

.ency-shell {
    min-height: 100vh;
    overflow: clip;
    background: var(--ency-paper);
    color: var(--ency-ink);
}

.ency-shell .container {
    width: min(100% - 40px, 1340px);
    max-width: 1340px;
}

.site-nav a[aria-current="page"] {
    color: var(--ency-forest-950);
    box-shadow: inset 0 -2px 0 var(--ency-coral);
}

.ency-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Compact knowledge toolbar: this replaces the former marketing hero. */
.ency-toolbar {
    border-bottom: 4px solid var(--ency-sun);
    background: var(--ency-forest-950);
    color: #fff;
}

.ency-toolbar-inner {
    display: grid;
    grid-template-columns: minmax(190px, 250px) auto;
    align-items: center;
    gap: clamp(22px, 4vw, 54px);
    min-height: 88px;
}

.ency-toolbar-title {
    display: flex;
    align-items: baseline;
    gap: 9px;
    color: #fff;
    text-decoration: none;
}

.ency-toolbar-title span {
    font-family: var(--font-serif);
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ency-toolbar-title small {
    color: var(--ency-sun);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.ency-search {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 48px;
    padding-left: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.ency-search svg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.66);
    stroke-linecap: round;
    stroke-width: 1.7;
}

.ency-search input {
    min-width: 0;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
}

.ency-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.ency-search:focus-within {
    border-color: var(--ency-sun);
    box-shadow: 0 0 0 3px rgba(233, 189, 85, 0.18);
}

.ency-search button {
    align-self: stretch;
    padding: 0 19px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 7px 7px 0;
    background: var(--ency-sun);
    color: var(--ency-forest-950);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.ency-toolbar-proof {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 650;
    white-space: nowrap;
}

.ency-toolbar-proof span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: var(--ency-sun);
}

/* The tree is always present on desktop and becomes one compact disclosure on mobile. */
.ency-workspace {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    align-items: start;
    gap: clamp(38px, 5vw, 72px);
    padding-top: 30px;
    padding-bottom: 108px;
}

.ency-tree {
    position: sticky;
    top: 96px;
}

.ency-tree-disclosure {
    border: 1px solid var(--ency-rule);
    border-top: 5px solid var(--ency-forest-900);
    border-radius: 4px 4px 12px 12px;
    background: var(--ency-sheet);
    box-shadow: 0 18px 48px -42px rgba(25, 51, 46, 0.8);
}

.ency-tree-disclosure > summary {
    display: none;
}

.ency-tree-body {
    padding: 23px 21px 20px;
}

.ency-tree-label,
.ency-overline,
.ency-entry-section-label {
    margin: 0;
    color: var(--ency-coral);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ency-tree-label {
    margin-bottom: 16px;
}

.ency-tree-root,
.ency-tree-root ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ency-tree-branch {
    border-top: 1px solid var(--ency-rule);
}

.ency-tree-branch:first-child {
    border-top: 0;
}

.ency-tree-root-link,
.ency-tree-branch ul a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.ency-tree-root-link {
    padding: 13px 0;
    font-size: 0.85rem;
    font-weight: 750;
    line-height: 1.35;
}

.ency-tree-root-link small,
.ency-tree-branch ul small {
    color: var(--ency-muted);
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
}

.ency-tree-branch--current > .ency-tree-root-link {
    color: var(--ency-forest-900);
}

.ency-tree-branch ul {
    position: relative;
    margin: -1px 0 13px 7px;
    padding: 2px 0 1px 17px;
    border-left: 1px solid #bdcabc;
}

.ency-tree-branch ul li {
    position: relative;
}

.ency-tree-branch ul li::before {
    content: "";
    position: absolute;
    top: 14px;
    left: -20px;
    width: 5px;
    height: 5px;
    border: 2px solid var(--ency-sheet);
    border-radius: 50%;
    background: #90a593;
    box-shadow: 0 0 0 1px #90a593;
}

.ency-tree-branch ul li.is-current::before {
    background: var(--ency-coral);
    box-shadow: 0 0 0 1px var(--ency-coral);
}

.ency-tree-branch ul li.is-current a {
    color: var(--ency-forest-950);
    font-weight: 750;
}

.ency-tree-branch ul a {
    padding: 7px 0;
    color: #5f5852;
    font-size: 0.75rem;
    line-height: 1.35;
}

.ency-tree-root a:hover,
.ency-tree-root a:focus-visible {
    color: var(--ency-coral);
}

.ency-tree-branch--muted .ency-tree-root-link {
    color: #6f6964;
}

.ency-tree-suggestion {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--ency-rule);
}

.ency-tree-suggestion > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(207, 116, 90, 0.45);
    border-radius: 50%;
    color: var(--ency-coral);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 650;
}

.ency-tree-suggestion p {
    margin: 1px 0 4px;
    color: var(--ency-muted);
    font-size: 0.68rem;
    line-height: 1.35;
}

.ency-tree-suggestion a {
    color: var(--ency-forest-900);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.ency-tree-suggestion a:hover,
.ency-tree-suggestion a:focus-visible,
.ency-tree-suggestion a[aria-current="page"] {
    color: var(--ency-coral);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.ency-tree-suggestion i {
    font-style: normal;
}

.ency-tree-legend {
    display: grid;
    gap: 7px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ency-rule);
    color: var(--ency-muted);
    font-size: 0.65rem;
}

.ency-tree-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ency-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ency-dot--public {
    background: var(--ency-forest-700);
}

.ency-dot--planned {
    border: 1px solid #9d958e;
    background: transparent;
}

.ency-index,
.ency-entry {
    min-width: 0;
    max-width: 940px;
}

.ency-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 2px 0 31px;
    color: var(--ency-muted);
    font-size: 0.72rem;
}

.ency-breadcrumbs a {
    color: var(--ency-forest-700);
    text-decoration-color: rgba(72, 103, 93, 0.3);
    text-underline-offset: 3px;
}

.ency-branch-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 46px;
    padding-bottom: 31px;
    border-bottom: 2px solid var(--ency-ink);
}

.ency-branch-header h1,
.ency-entry-header h1 {
    margin: 8px 0 0;
    color: var(--ency-ink);
    font-family: var(--font-serif);
    font-size: clamp(2.65rem, 5vw, 4.65rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.ency-branch-header > div > p:last-child {
    max-width: 660px;
    margin: 19px 0 0;
    color: var(--ency-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.ency-branch-stats {
    display: flex;
    gap: 22px;
    margin: 0;
}

.ency-branch-stats div {
    min-width: 82px;
    padding-left: 14px;
    border-left: 1px solid var(--ency-rule-strong);
}

.ency-branch-stats dt {
    color: var(--ency-forest-900);
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 650;
    line-height: 1;
}

.ency-branch-stats dd {
    margin: 5px 0 0;
    color: var(--ency-muted);
    font-size: 0.63rem;
    line-height: 1.3;
}

.ency-filters {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 20px 0 46px;
    padding-bottom: 19px;
    overflow-x: auto;
    border-bottom: 1px solid var(--ency-rule);
    scrollbar-width: none;
}

.ency-filters::-webkit-scrollbar {
    display: none;
}

.ency-filters-label {
    margin-right: 5px;
    color: var(--ency-muted);
    font-size: 0.69rem;
    font-weight: 750;
    white-space: nowrap;
}

.ency-filters a {
    padding: 7px 12px;
    border: 1px solid var(--ency-rule-strong);
    border-radius: 4px;
    background: transparent;
    color: #5b544e;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.ency-filters a:hover,
.ency-filters a:focus-visible,
.ency-filters a.is-active {
    border-color: var(--ency-forest-900);
    background: var(--ency-forest-900);
    color: #fff;
}

.ency-question-groups {
    display: grid;
    gap: 58px;
}

.ency-empty-state {
    padding: 42px;
    border: 1px solid var(--ency-rule);
    border-radius: 8px;
    background: var(--ency-sheet);
}

.ency-empty-state h2 {
    margin: 0;
    color: var(--ency-forest-950);
    font-family: var(--font-serif);
    font-size: 1.7rem;
}

.ency-empty-state p {
    margin: 12px 0 0;
    color: var(--ency-muted);
    line-height: 1.65;
}

.ency-empty-state a {
    display: inline-block;
    margin-top: 18px;
    color: var(--ency-forest-900);
    font-size: 0.82rem;
    font-weight: 750;
}

.ency-question-group {
    scroll-margin-top: 24px;
}

.ency-question-group > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
    align-items: end;
    gap: 30px;
    margin-bottom: 10px;
}

.ency-question-group > header > div {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.ency-question-group > header span {
    color: var(--ency-coral);
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.ency-question-group h2 {
    margin: 0;
    color: var(--ency-forest-950);
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.ency-question-group > header p {
    margin: 0;
    color: var(--ency-muted);
    font-size: 0.74rem;
    line-height: 1.55;
}

.ency-question-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ency-rule-strong);
    list-style: none;
}

.ency-question-list li {
    border-bottom: 1px solid var(--ency-rule);
}

.ency-question-link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 74px;
    padding: 14px 4px;
    color: inherit;
    text-decoration: none;
}

.ency-question-link strong {
    max-width: 690px;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.48;
}

.ency-question-title {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px;
}

.ency-recommended-badge {
    display: inline-flex;
    min-height: 21px;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 6px;
    border: 1px solid rgba(175, 129, 25, 0.42);
    border-radius: 999px;
    background: rgba(244, 219, 139, 0.34);
    color: #72581b;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.ency-recommended-badge svg {
    width: 12px;
    height: 12px;
    fill: var(--ency-sun);
    stroke: #806219;
    stroke-width: 0.5;
}

.ency-entry-header .ency-overline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ency-entry-header .ency-recommended-badge {
    transform: translateY(-1px);
}

.ency-guide-mark {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    margin-top: 2px;
    border: 1px solid rgba(207, 116, 90, 0.46);
    border-radius: 50%;
    background: rgba(255, 252, 247, 0.72);
    color: var(--ency-coral);
}

.ency-guide-mark svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
}

.ency-question-link small {
    color: var(--ency-muted);
    font-size: 0.65rem;
    white-space: nowrap;
}

.ency-question-link small b {
    color: var(--ency-forest-700);
    font-weight: 750;
}

.ency-question-link small em {
    display: block;
    margin-top: 4px;
    color: var(--ency-coral);
    font-style: normal;
    font-weight: 750;
}

.ency-question-link--featured {
    grid-template-columns: minmax(0, 1fr) auto 28px;
    margin: 0 -14px;
    padding-right: 14px;
    padding-left: 14px;
    border-left: 3px solid var(--ency-coral);
    background: linear-gradient(90deg, rgba(219, 228, 218, 0.72), rgba(219, 228, 218, 0.14));
}

.ency-question-link--featured:hover,
.ency-question-link--featured:focus-visible {
    color: var(--ency-forest-950);
    background: var(--ency-moss-200);
}

.ency-question-arrow {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(35, 68, 61, 0.35);
    border-radius: 50%;
    color: var(--ency-forest-900);
    transition: transform 160ms ease;
}

.ency-question-link--featured:hover .ency-question-arrow {
    transform: translateX(3px);
}

.ency-index-note {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-top: 70px;
    padding: 25px 0;
    border-top: 1px solid var(--ency-rule-strong);
    border-bottom: 1px solid var(--ency-rule-strong);
}

.ency-index-note > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: var(--ency-forest-900);
    color: var(--ency-sun);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 750;
}

.ency-index-note p {
    max-width: 760px;
    margin: 0;
    color: var(--ency-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.ency-index-note strong {
    color: var(--ency-ink);
}

/* Entry reading surface */
.ency-workspace--entry {
    grid-template-columns: 292px minmax(0, 880px);
}

.ency-entry-back {
    display: inline-block;
    margin-bottom: 29px;
    color: var(--ency-forest-700);
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
}

.ency-entry-back:hover,
.ency-entry-back:focus-visible {
    color: var(--ency-coral);
}

.ency-entry-header {
    padding-bottom: 31px;
    border-bottom: 2px solid var(--ency-ink);
}

.ency-entry-header h1 {
    max-width: 850px;
    font-size: clamp(2.65rem, 4.7vw, 4.2rem);
}

.ency-entry-lead {
    max-width: 760px;
    margin: 22px 0 0;
    color: #5f5751;
    font-family: var(--font-serif);
    font-size: clamp(1.08rem, 1.7vw, 1.3rem);
    line-height: 1.55;
}

.ency-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 30px;
    margin: 29px 0 0;
}

.ency-entry-meta div {
    display: flex;
    gap: 7px;
}

.ency-entry-meta dt,
.ency-entry-meta dd {
    margin: 0;
    font-size: 0.66rem;
}

.ency-entry-meta dt {
    color: var(--ency-muted);
}

.ency-entry-meta dd {
    color: var(--ency-forest-700);
    font-weight: 750;
}

.ency-preview-warning {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    margin: 24px 0 46px;
    padding: 14px 16px;
    border-left: 3px solid var(--ency-sun);
    background: #f3ead2;
    color: #655737;
    font-size: 0.7rem;
    line-height: 1.5;
}

.ency-preview-warning strong {
    color: #473d28;
}

.ency-entry-body {
    max-width: 760px;
}

.ency-entry-header + .ency-entry-body {
    padding-top: 31px;
}

.ency-entry-body > section > p:not(.ency-entry-section-label) {
    margin: 17px 0 0;
    color: #3c3530;
    font-size: 1.04rem;
    line-height: 1.8;
}

.ency-entry-body > section > p:nth-child(2) {
    font-size: 1.16rem;
    line-height: 1.72;
}

.ency-today-note {
    position: relative;
    margin: 44px 0;
    padding: 27px 30px 29px;
    border-left: 4px solid var(--ency-coral);
    background: var(--ency-moss-100);
}

.ency-today-note::before {
    content: "dzisiaj";
    position: absolute;
    top: 12px;
    right: 15px;
    color: rgba(35, 68, 61, 0.12);
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-style: italic;
}

.ency-today-note ol {
    display: grid;
    gap: 15px;
    margin: 19px 0 0;
    padding-left: 22px;
}

.ency-today-note li {
    padding-left: 6px;
    color: #34453f;
    font-size: 0.93rem;
    line-height: 1.65;
}

.ency-today-note li::marker {
    color: var(--ency-coral);
    font-weight: 800;
}

.ency-boundary {
    padding: 25px 0 5px 25px;
    border-left: 1px solid var(--ency-rule-strong);
}

.ency-sources,
.ency-related {
    margin-top: 62px;
    padding-top: 31px;
    border-top: 2px solid var(--ency-ink);
}

.ency-sources > header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
}

.ency-sources h2,
.ency-related h2 {
    margin: 7px 0 0;
    color: var(--ency-forest-950);
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.ency-sources > header > span {
    padding: 6px 9px;
    border: 1px solid var(--ency-rule);
    border-radius: 3px;
    color: var(--ency-muted);
    font-size: 0.6rem;
    white-space: nowrap;
}

.ency-sources ol {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.ency-sources li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--ency-rule);
}

.ency-source-number {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--ency-forest-900);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
}

.ency-sources li strong {
    font-size: 0.79rem;
}

.ency-sources li p {
    margin: 6px 0;
    color: #5e5650;
    font-size: 0.73rem;
    line-height: 1.5;
}

.ency-sources li small {
    color: #8a817a;
    font-size: 0.62rem;
}

.ency-sources a {
    color: var(--ency-forest-900);
}

.ency-sources-empty {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--ency-rule);
    border-radius: 6px;
    background: var(--ency-sheet);
    color: var(--ency-muted);
    font-size: 0.76rem;
    line-height: 1.6;
}

.ency-sources-empty strong {
    color: var(--ency-ink);
}

.ency-sources-empty p {
    margin: 5px 0 0;
}

.ency-related > div {
    margin-top: 20px;
    border-top: 1px solid var(--ency-rule-strong);
}

.ency-related a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 66px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--ency-rule);
    color: var(--ency-ink);
    font-size: 0.83rem;
    font-weight: 650;
    line-height: 1.45;
    text-decoration: none;
}

.ency-related a b {
    color: var(--ency-coral);
    font-size: 1.1rem;
}

.ency-related a:hover,
.ency-related a:focus-visible {
    color: var(--ency-coral);
}

.ency-entry-footer {
    margin-top: 34px;
}

.ency-suggestion {
    min-width: 0;
    max-width: 940px;
}

.ency-suggestion-header {
    max-width: 840px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--ency-ink);
}

.ency-suggestion-header h1 {
    margin: 8px 0 0;
    color: var(--ency-ink);
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.ency-suggestion-header > p:last-child {
    max-width: 700px;
    margin: 20px 0 0;
    color: var(--ency-muted);
    font-size: 1rem;
    line-height: 1.68;
}

.ency-suggestion-card {
    position: relative;
    display: grid;
    gap: 13px;
    max-width: 840px;
    margin-top: 34px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--ency-rule-strong);
    border-left: 5px solid var(--ency-coral);
    border-radius: 0 8px 8px 0;
    background: var(--ency-sheet);
    box-shadow: 0 22px 56px -48px rgba(25, 51, 46, 0.9);
}

.ency-suggestion-card label {
    color: var(--ency-forest-950);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ency-suggestion-card textarea {
    width: 100%;
    min-height: 190px;
    padding: 18px 19px;
    resize: vertical;
    border: 1px solid var(--ency-rule-strong);
    border-radius: 5px;
    outline: 0;
    background: var(--ency-paper);
    color: var(--ency-ink);
    font: inherit;
    font-size: 1.04rem;
    line-height: 1.7;
}

.ency-suggestion-card textarea::placeholder {
    color: #968b82;
}

.ency-suggestion-card textarea:focus {
    border-color: var(--ency-forest-700);
    box-shadow: 0 0 0 3px rgba(72, 103, 93, 0.12);
}

.ency-suggestion-form-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin-top: 6px;
}

.ency-suggestion-form-footer p {
    max-width: 520px;
    margin: 0;
    color: var(--ency-muted);
    font-size: 0.7rem;
    line-height: 1.55;
}

.ency-suggestion-form-footer button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--ency-forest-900);
    border-radius: 4px;
    background: var(--ency-forest-900);
    color: #fff;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

.ency-suggestion-form-footer button:hover,
.ency-suggestion-form-footer button:focus-visible {
    background: var(--ency-forest-950);
}

.ency-suggestion-form-footer button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.ency-suggestion-note {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    max-width: 840px;
    margin-top: 24px;
    padding: 19px 0 0;
    border-top: 1px solid var(--ency-rule);
}

.ency-suggestion-note > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--ency-forest-900);
    color: var(--ency-sun);
    font-family: var(--font-serif);
    font-size: 0.7rem;
    font-weight: 700;
}

.ency-suggestion-note p {
    margin: 0;
    color: var(--ency-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.ency-suggestion-note strong {
    color: var(--ency-forest-950);
}

.ency-suggestion-success {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 20px;
    max-width: 840px;
    margin-top: 34px;
    padding: clamp(25px, 4vw, 38px);
    border: 1px solid rgba(72, 103, 93, 0.35);
    border-radius: 8px;
    background: var(--ency-moss-100);
}

.ency-suggestion-success > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: var(--ency-forest-900);
    color: #fff;
    font-size: 1.1rem;
}

.ency-suggestion-success h2 {
    margin: 8px 0 0;
    color: var(--ency-forest-950);
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.ency-suggestion-success div > p:not(.ency-entry-section-label) {
    max-width: 650px;
    margin: 12px 0 0;
    color: var(--ency-muted);
    line-height: 1.65;
}

.ency-suggestion-success a {
    display: inline-block;
    margin-top: 20px;
    color: var(--ency-forest-900);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.ency-suggestion-success i {
    font-style: normal;
}

.ency-entry-return {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid var(--ency-forest-900);
    border-radius: 4px;
    background: var(--ency-forest-900);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.ency-entry-return span:first-child {
    color: var(--ency-sun);
    transition: transform 160ms ease;
}

.ency-entry-return:hover,
.ency-entry-return:focus-visible {
    border-color: var(--ency-forest-950);
    background: var(--ency-forest-950);
    color: #fff;
}

.ency-entry-return:hover span:first-child,
.ency-entry-return:focus-visible span:first-child {
    transform: translateX(-3px);
}

.ency-shell a:focus-visible,
.ency-shell button:focus-visible,
.ency-tree-disclosure > summary:focus-visible {
    outline: 3px solid rgba(233, 189, 85, 0.75);
    outline-offset: 3px;
}

@media (max-width: 1120px) {
    .ency-toolbar-inner {
        grid-template-columns: 220px minmax(300px, 1fr);
    }

    .ency-toolbar-proof {
        display: none;
    }

    .ency-workspace,
    .ency-workspace--entry {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 36px;
    }
}

@media (min-width: 901px) {
    .ency-tree-disclosure:not([open]) > .ency-tree-body {
        display: block;
    }
}

@media (max-width: 900px) {
    .ency-toolbar-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 0 16px;
    }

    .ency-toolbar-title {
        justify-content: space-between;
    }

    .ency-workspace,
    .ency-workspace--entry {
        grid-template-columns: 1fr;
        gap: 27px;
        padding-top: 20px;
    }

    .ency-tree-disclosure {
        border-top-width: 1px;
        border-radius: 7px;
    }

    .ency-tree {
        position: static;
    }

    .ency-tree-disclosure > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 15px 17px;
        color: var(--ency-forest-950);
        cursor: pointer;
        list-style: none;
    }

    .ency-tree-disclosure > summary::-webkit-details-marker {
        display: none;
    }

    .ency-tree-disclosure > summary::after {
        content: "+";
        color: var(--ency-coral);
        font-size: 1.25rem;
        font-weight: 500;
    }

    .ency-tree-disclosure[open] > summary::after {
        content: "−";
    }

    .ency-tree-disclosure > summary span {
        font-family: var(--font-serif);
        font-size: 1rem;
        font-weight: 650;
    }

    .ency-tree-disclosure > summary small {
        margin-left: auto;
        color: var(--ency-muted);
        font-size: 0.65rem;
    }

    .ency-tree-body {
        border-top: 1px solid var(--ency-rule);
    }

    .ency-breadcrumbs {
        margin-bottom: 22px;
    }

    .ency-branch-header {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ency-branch-stats {
        justify-self: start;
    }

    .ency-question-group > header {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ency-entry-back {
        margin-bottom: 28px;
    }
}

@media (max-width: 620px) {
    .ency-shell .container {
        width: min(100% - 28px, 1340px);
    }

    .ency-toolbar-title span {
        font-size: 1.15rem;
    }

    .ency-search {
        grid-template-columns: 20px minmax(0, 1fr) auto;
    }

    .ency-search input {
        padding: 0 8px;
        font-size: 0.8rem;
    }

    .ency-search button {
        padding: 0 12px;
        font-size: 0.7rem;
    }

    .ency-tree-disclosure > summary small {
        display: none;
    }

    .ency-workspace,
    .ency-workspace--entry {
        padding-bottom: 76px;
    }

    .ency-branch-header h1 {
        font-size: 2.7rem;
    }

    .ency-branch-stats {
        gap: 12px;
    }

    .ency-branch-stats div {
        min-width: 0;
        padding-right: 9px;
    }

    .ency-filters {
        width: calc(100% + 14px);
        margin-top: 16px;
        margin-bottom: 38px;
        padding-right: 14px;
    }

    .ency-question-groups {
        gap: 47px;
    }

    .ency-question-link,
    .ency-question-link--featured {
        grid-template-columns: 1fr;
        gap: 7px;
        min-height: 0;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .ency-question-link--featured {
        grid-template-columns: 1fr 28px;
    }

    .ency-question-link--featured strong,
    .ency-question-link--featured small {
        grid-column: 1;
    }

    .ency-question-arrow {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .ency-question-link small {
        white-space: normal;
    }

    .ency-question-link small em {
        display: inline;
        margin: 0 0 0 6px;
    }

    .ency-index-note {
        grid-template-columns: 40px 1fr;
        gap: 13px;
    }

    .ency-index-note > span {
        width: 40px;
        height: 40px;
        font-size: 0.76rem;
    }

    .ency-entry-header h1 {
        font-size: 2.65rem;
    }

    .ency-suggestion-header h1 {
        font-size: 2.7rem;
    }

    .ency-suggestion-card {
        padding: 23px 20px;
    }

    .ency-suggestion-card textarea {
        min-height: 170px;
        font-size: 0.96rem;
    }

    .ency-suggestion-form-footer {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ency-suggestion-form-footer button {
        width: 100%;
    }

    .ency-suggestion-success {
        grid-template-columns: 1fr;
    }

    .ency-entry-lead {
        font-size: 1.08rem;
    }

    .ency-entry-meta {
        display: grid;
        gap: 7px;
    }

    .ency-preview-warning {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ency-entry-body > section > p:not(.ency-entry-section-label) {
        font-size: 0.97rem;
    }

    .ency-entry-body > section > p:nth-child(2) {
        font-size: 1.06rem;
    }

    .ency-today-note {
        margin-right: -5px;
        margin-left: -5px;
        padding: 24px 21px 25px;
    }

    .ency-today-note::before {
        display: none;
    }

    .ency-boundary {
        padding-left: 18px;
    }

    .ency-sources > header {
        display: block;
    }

    .ency-sources > header > span {
        display: inline-block;
        margin-top: 12px;
    }
}

.ency-guide-branches {
    margin-top: 38px;
}

.ency-guide-branches > h2 {
    max-width: 760px;
    margin: 8px 0 22px;
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.ency-guide-branches > div {
    display: grid;
    gap: 12px;
}

.ency-guide-branch {
    padding: 20px 22px;
    border: 1px solid rgba(40, 36, 31, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.ency-guide-branch > p {
    margin: 0 0 10px;
    line-height: 1.55;
}

.ency-guide-branch > a,
.ency-guide-branch > strong {
    color: inherit;
    font-weight: 700;
}

.ency-guide-branch--fail-open {
    border-style: dashed;
    background: rgba(239, 230, 210, 0.42);
}

@media (prefers-reduced-motion: reduce) {
    .ency-question-arrow,
    .ency-entry-return span:first-child {
        transition: none;
    }
}
