.diary-content .diary-learning-intro{display:flex;justify-content:space-between;align-items:center;gap:2rem;margin:2.2rem 0 1rem;padding:1.5rem 1.7rem;background:#102b3c;color:#fffaf0;border:1px solid rgba(22,183,165,.48);border-radius:14px}.diary-learning-intro>div{max-width:760px}.diary-learning-intro .explainer-label,.entry-explainer .explainer-label,.dictionary-heading .explainer-label{display:inline-block;color:#16b7a5;font:600 .65rem var(--mono);letter-spacing:.12em;text-transform:uppercase}.diary-learning-intro h2{font-size:clamp(1.35rem,2.5vw,2rem);line-height:1.18;margin:.5rem 0}.diary-learning-intro p{color:#e2e7e4;font-size:.86rem;margin:0;max-width:720px}.dictionary-open{flex:0 0 auto;border:1px solid #d2bd8e;border-radius:999px;background:#d2bd8e;color:#102b3c;padding:.85rem 1.15rem;font:600 .76rem var(--mono);cursor:pointer}.dictionary-open:hover{background:#f1dfb4}.dictionary-open:focus-visible,.dictionary-close:focus-visible,.ai-term-trigger:focus-visible,.behind-numbers summary:focus-visible{outline:3px solid #16b7a5;outline-offset:3px}.diary-content .entry-card.has-explainer{grid-template-columns:112px minmax(0,1.15fr) minmax(280px,.85fr) auto;gap:1.1rem;align-items:start;padding:2.2rem .2rem}.diary-content .entry-card .entry-main{min-width:0}.diary-content .entry-outcome{grid-column:4;grid-row:1}.diary-content .entry-card.has-explainer .entry-explainer{grid-column:3;grid-row:1;padding:1.2rem 1.25rem;background:#e7f1ed;border:1px solid #a8ccc0;border-left:4px solid #117e7d;border-radius:12px}.diary-content .entry-explainer h3{margin:.45rem 0 1rem;color:#102b3c;font-size:1.22rem;line-height:1.2}.diary-content .entry-explainer dl{margin:0}.diary-content .entry-explainer dl>div{padding:.65rem 0;border-top:1px solid rgba(16,43,60,.12)}.diary-content .entry-explainer dt{color:#164f50;font:600 .67rem var(--mono);letter-spacing:.035em}.diary-content .entry-explainer dd{margin:.27rem 0 0;color:#343d3a;font-size:.79rem;line-height:1.55}.diary-content .entry-explainer .explainer-note{margin:.8rem 0 0;padding-top:.65rem;border-top:1px solid rgba(16,43,60,.12);color:#4c5c56;font-size:.7rem;line-height:1.5}.diary-content .entry-main .entry-summary{max-width:760px;margin:0 0 1.25rem;color:#4b4b45;font-size:.96rem;line-height:1.7}.diary-content .entry-main .entry-detail{margin-top:1.05rem}.diary-content .entry-main .entry-detail h3{margin:0 0 .3rem;color:#102b3c;font-size:1rem}.diary-content .entry-main .entry-detail p,.diary-content .behind-numbers section p{font-size:.85rem;line-height:1.72;max-width:780px;color:#55554e}.diary-content .behind-numbers{margin-top:1.25rem;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);max-width:820px}.diary-content .behind-numbers summary{padding:.85rem .15rem;color:#164f50;font:600 .72rem var(--mono);cursor:pointer;list-style:none}.diary-content .behind-numbers summary::-webkit-details-marker{display:none}.diary-content .behind-numbers summary::before{content:'＋';display:inline-block;margin-right:.55rem;color:#a6854b}.diary-content .behind-numbers[open] summary::before{content:'−'}.diary-content .behind-numbers>div{padding:0 0 .9rem}.diary-content .behind-numbers section{padding:.65rem .85rem;margin:.45rem 0;background:#f3f6f2;border-radius:8px}.diary-content .behind-numbers h4{margin:0 0 .3rem;color:#102b3c;font-size:.86rem}.diary-content .behind-numbers section p{margin:0}.diary-content .ai-term-wrap{position:relative;display:inline}.diary-content .ai-term-trigger{border:0;border-bottom:1px dotted #117e7d;background:transparent;color:#0a6865;padding:0 .03em;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}.diary-content .ai-term-trigger:hover{color:#102b3c;border-bottom-style:solid}.diary-content .ai-term-popover{position:absolute;z-index:10;left:0;top:calc(100% + .45rem);width:min(320px,75vw);padding:.75rem .85rem;border:1px solid #8eb9ad;border-radius:9px;background:#102b3c;color:#fffaf0;box-shadow:0 8px 22px rgba(16,43,60,.2);font:400 .78rem/1.55 var(--sans);text-align:left}.diary-content .ai-term-popover[hidden]{display:none}.ai-dictionary-dialog{width:min(720px,calc(100vw - 2rem));max-width:none;max-height:min(82vh,820px);padding:1.4rem 1.5rem;background:#fffdf7;color:#252722;border:1px solid #a8ccc0;border-radius:16px;box-shadow:0 22px 70px rgba(5,23,33,.3)}.ai-dictionary-dialog::backdrop{background:rgba(7,25,35,.65)}.dictionary-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.dictionary-heading h2{margin:.35rem 0;font-size:2rem;color:#102b3c}.ai-dictionary-dialog>p{color:#54564e;font-size:.86rem}.dictionary-close{border:1px solid #b7b3a8;border-radius:999px;background:transparent;color:#252722;padding:.55rem .9rem;font:600 .7rem var(--mono);cursor:pointer}.dictionary-search-label{display:block;margin:.9rem 0 .35rem;color:#164f50;font:600 .68rem var(--mono)}.ai-dictionary-dialog input[type=search]{width:100%;padding:.8rem .9rem;border:1px solid #a8ccc0;border-radius:8px;background:#fff;color:#252722;font:inherit}.ai-dictionary-dialog input:focus-visible{outline:3px solid #16b7a5;outline-offset:2px}.dictionary-results{max-height:48vh;overflow:auto;margin-top:1rem;padding-right:.3rem}.dictionary-entry{padding:.75rem .1rem;border-top:1px solid #e0ddd3}.dictionary-entry h3{margin:0 0 .25rem;color:#164f50;font-size:.95rem}.dictionary-entry p,.dictionary-empty{margin:0;color:#50524b;font-size:.83rem;line-height:1.6}@media(max-width:1100px){.diary-content .entry-card.has-explainer{grid-template-columns:100px minmax(0,1fr) auto}.diary-content .entry-card.has-explainer .entry-explainer{grid-column:2/4;grid-row:2}.diary-content .entry-outcome{grid-column:3;grid-row:1}.diary-content .entry-explainer dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1rem}.diary-content .entry-explainer dl>div:nth-child(odd){padding-right:.6rem}}@media(max-width:700px){.diary-content .diary-learning-intro{display:block;padding:1.2rem;margin:1.5rem 0}.diary-learning-intro h2{font-size:1.45rem}.dictionary-open{margin-top:1rem;width:100%}.diary-content .entry-card.has-explainer{grid-template-columns:minmax(0,1fr);gap:.7rem;padding:1.5rem 0}.diary-content .entry-card.has-explainer>.entry-date,.diary-content .entry-card.has-explainer .entry-main,.diary-content .entry-card.has-explainer .entry-explainer,.diary-content .entry-outcome{grid-column:1;grid-row:auto}.diary-content .entry-card.has-explainer .entry-outcome{grid-row:1;justify-self:start}.diary-content .entry-card.has-explainer>.entry-date{grid-row:2;padding:0}.diary-content .entry-card.has-explainer .entry-main{grid-row:3}.diary-content .entry-card.has-explainer .entry-explainer{grid-row:4;padding:1rem}.diary-content .entry-explainer dl{display:block}.diary-content .entry-explainer dl>div:nth-child(odd){padding-right:0}.diary-content .entry-main h2{font-size:1.5rem}.ai-dictionary-dialog{width:calc(100vw - 1rem);max-height:90vh;padding:1rem}.dictionary-heading h2{font-size:1.55rem}.dictionary-results{max-height:48vh}.diary-content .ai-term-popover{width:min(290px,78vw)}}

/* Responsive evidence presentation for dated experiment entries. */
.diary-content .run-results{margin-top:1.1rem;max-width:760px}
.diary-content .run-results h3{margin-bottom:.55rem}
.run-results-scroll{overflow-x:auto;border:1px solid #c9c0ae;border-radius:9px;background:#fffdf8}
.run-results table{width:100%;border-collapse:collapse;color:#252722;font-size:.78rem;line-height:1.45}
.run-results th,.run-results td{padding:.65rem .75rem;text-align:left;border-bottom:1px solid #e4ded2}
.run-results thead th{background:#e7f1ed;color:#164f50;font-size:.67rem}
.run-results tbody th{font-weight:700;white-space:nowrap}
.run-results tbody tr:last-child th,.run-results tbody tr:last-child td{border-bottom:0}
.entry-visual-report{margin:1.2rem 0 0;max-width:900px;padding:.75rem;background:#fffdf8;border:1px solid #d3cbbb;border-radius:12px;box-shadow:0 8px 24px rgba(16,43,60,.07)}
.entry-visual-report>a{display:block;border-radius:7px;overflow:hidden;background:#fff}
.entry-visual-report img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.entry-visual-report figcaption{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem;padding:.7rem .25rem .1rem;color:#55554e;font-size:.72rem;line-height:1.5}
.entry-visual-report figcaption a{flex:0 0 auto;color:#0a6865;font-weight:700;text-underline-offset:3px}
.entry-visual-report figcaption a:focus-visible{outline:3px solid #117e7d;outline-offset:3px}
@media(max-width:700px){.run-results table{font-size:.7rem}.run-results th,.run-results td{padding:.55rem .45rem}.run-results thead th{font-size:.61rem}.entry-visual-report{padding:.5rem;margin-top:1rem}.entry-visual-report figcaption{flex-direction:column;gap:.35rem}}

/* Responsive evidence presentation for dated experiment entries. */
.diary-content .run-results{margin-top:1.1rem;max-width:760px}
.diary-content .run-results h3{margin-bottom:.55rem}
.run-results-scroll{overflow-x:auto;border:1px solid #c9c0ae;border-radius:9px;background:#fffdf8}
.run-results table{width:100%;border-collapse:collapse;color:#252722;font-size:.78rem;line-height:1.45}
.run-results th,.run-results td{padding:.65rem .75rem;text-align:left;border-bottom:1px solid #e4ded2}
.run-results thead th{background:#e7f1ed;color:#164f50;font-size:.67rem}
.run-results tbody th{font-weight:700;white-space:nowrap}
.run-results tbody tr:last-child th,.run-results tbody tr:last-child td{border-bottom:0}
.entry-visual-report{margin:1.2rem 0 0;max-width:900px;padding:.75rem;background:#fffdf8;border:1px solid #d3cbbb;border-radius:12px;box-shadow:0 8px 24px rgba(16,43,60,.07)}
.entry-visual-report>a{display:block;border-radius:7px;overflow:hidden;background:#fff}
.entry-visual-report img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.entry-visual-report figcaption{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem;padding:.7rem .25rem .1rem;color:#55554e;font-size:.72rem;line-height:1.5}
.entry-visual-report figcaption a{flex:0 0 auto;color:#0a6865;font-weight:700;text-underline-offset:3px}
.entry-visual-report figcaption a:focus-visible{outline:3px solid #117e7d;outline-offset:3px}
.chart-legend-note{max-width:900px;margin:.65rem 0 0;padding:.8rem .9rem;background:#e7f1ed;border-left:3px solid #117e7d;border-radius:4px;color:#343d3a;font-size:.78rem;line-height:1.6}
.chart-legend-note strong{color:#164f50}
@media(max-width:700px){.run-results table{font-size:.7rem}.run-results th,.run-results td{padding:.55rem .45rem}.run-results thead th{font-size:.61rem}.entry-visual-report{padding:.5rem;margin-top:1rem}.entry-visual-report figcaption{flex-direction:column;gap:.35rem}.chart-legend-note{font-size:.75rem;padding:.7rem}}
/* Let large evidence images shrink inside the diary grid on narrow screens. */
.diary-content .entry-main{min-width:0}
