/* Inbox zero. Loaded after articles.css, for this article only.

   The colour rule does the arguing. Orange is a pull: an email that lands while you work and takes
   your eyes off it. Indigo is time that came back: work with the inbox closed, and old mail you never
   had to open. A person stays grey, because a person writing to you is not the leak. The look is.
   Mail that never reached the inbox stays on the page as a pale ghost, so the day still shows how
   much arrived.

   The day runs sideways on wide screens and downwards on phones. Both read the same --t, in minutes
   after 9:00 out of 480, so the one drawing has two layouts. */

.a-hero h1, .a-body h2, .a-body h3 { text-wrap: balance; }
.a-hero .lead, .a-body p, .a-body li { text-wrap: pretty; }
.iz-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* A person before the picture, in one line, so the day still clears the fold. */
.iz-by { margin-top: 18px; }
.iz-by img { width: 32px; height: 32px; }
.iz-by strong { display: inline; margin-right: 0.6em; }

/* ---------- The set piece: one working day, two ways ----------
   The sorted day is the markup's own state, so no JS still gets the finished picture. tool.js adds
   is-before to show the open inbox, then takes it away and the transitions below run the change. */
.iz-fig { --lab: 8.4rem; margin: 22px 0 0; padding: clamp(14px, 2.4vw, 22px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float); display: grid; gap: 14px; min-width: 0; }
.iz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.iz-q1 { display: grid; gap: 3px; min-width: 0; }
.iz-q1 b { font-family: var(--serif); font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); font-weight: 700; line-height: 1.15; color: var(--ink); }
.iz-q1 span { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.iz-q1 .iz-af { display: block; color: var(--primary-deep); }
.iz-q1 .iz-b4 { color: var(--lift-ink); }

/* Two sentences in one place, the sorted one by default, so no JS still reads true. */
.iz-fig .iz-b4 { display: none; }
.iz-fig.is-before .iz-af { display: none; }
.iz-fig.is-before span.iz-b4 { display: inline; }
.iz-fig.is-before .iz-q1 .iz-b4 { display: block; }
.iz-fig.is-before li.iz-b4 { display: flex; }

.iz-sw { flex: none; display: grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: 999px; background: var(--grid); }
.iz-sw[hidden] { display: none; }
.iz-sw button { padding: 0.45em 0.9em; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 700 0.8125rem/1.2 var(--sans); cursor: pointer; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.iz-sw button:hover { color: var(--ink); }
.iz-sw [aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 26, 59, 0.16); }
.iz-sw button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.iz-chart { display: grid; gap: 5px; min-width: 0; }
.iz-axis { position: relative; height: 14px; margin-left: calc(var(--lab) + 12px); }
.iz-axis span { position: absolute; font: 500 0.6875rem/1 var(--mono); color: var(--ink-hint); transform: translateX(-50%); }
.iz-axis span:nth-child(1) { left: 0; transform: none; }
.iz-axis span:nth-child(2) { left: 25%; }
.iz-axis span:nth-child(3) { left: 50%; }
.iz-axis span:nth-child(4) { left: 75%; }
.iz-axis span:nth-child(5) { right: 0; transform: none; }
.iz-lane { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; }
.iz-name { font-size: 0.8125rem; font-weight: 600; line-height: 1.2; color: var(--ink-2); }
.iz-narrow { display: none; }
.is-work .iz-name { font-weight: 700; color: var(--ink); }
.iz-track { position: relative; height: 24px; border-radius: 6px; background: var(--paper) repeating-linear-gradient(to right, var(--grid) 0 1px, transparent 1px 25%); }
.is-work .iz-track { height: 36px; }

/* Arrivals. A person is the grey of a person everywhere on this site. */
.is-people .iz-track i, .is-auto .iz-track i { position: absolute; top: 4px; bottom: 4px; left: calc(var(--t) * 100% / 480); width: 3px; border-radius: 2px; }
.is-people .iz-track i { background: #6C7396; }
.is-auto .iz-track i { background: #DCDFEC; transition: background-color 0.45s var(--ease); transition-delay: calc(var(--t) * 1.2ms + 0.15s); }
.is-before .is-auto .iz-track i { background: #AEB5D6; transition: none; }

/* The work. Sorted, it is indigo and comes in long pieces. With the inbox open it is plain grey, and
   every arrival cuts it: an orange mark with a gap of paper on each side. */
.iz-seg, .iz-chk, .iz-lunch { position: absolute; top: 4px; bottom: 4px; left: calc(var(--t) * 100% / 480); width: calc(var(--len) * 100% / 480); }
.iz-seg { border-radius: 4px; background: var(--primary-deep); transition: background-color 0.5s var(--ease); transition-delay: calc(var(--t) * 1.2ms + 0.3s); }
.iz-chk { top: 1px; bottom: 1px; display: grid; place-items: center; border-radius: 5px; background: var(--night); color: #fff; font: 700 0.6875rem/1 var(--sans); transition: background-color 0.4s var(--ease); transition-delay: calc(var(--t) * 1.2ms + 0.2s); }
.iz-chk span { transition: opacity 0.3s; transition-delay: calc(var(--t) * 1.2ms + 0.4s); }
.iz-lunch { display: grid; place-items: center; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--grid) 0 4px, transparent 4px 8px); font: 600 0.6875rem/1 var(--sans); color: var(--ink-hint); }
.iz-cut { position: absolute; z-index: 1; top: 1px; bottom: 1px; left: calc(var(--t) * 100% / 480 - 2px); width: 4px; border-radius: 2px; background: var(--lift); box-shadow: 0 0 0 2px var(--paper); opacity: 0; transition: opacity 0.3s; transition-delay: calc(var(--t) * 1.2ms); }
.is-before .iz-seg, .is-before .iz-chk { background: #C9CDE0; transition: none; }
.is-before .iz-seg { border-radius: 0; }
.is-before .iz-seg[style*="--t:0"] { border-radius: 4px 0 0 4px; }
.is-before .iz-chk { top: 4px; bottom: 4px; border-radius: 0; }
.is-before .iz-chk span { opacity: 0; transition: none; }
.is-before .iz-cut { opacity: 1; transition: none; }

/* Where the machines' mail went, said under the lane's own name, so the picture needs no key. */
.iz-name small { display: block; margin-top: 1px; font-size: 0.75rem; font-weight: 600; color: var(--ink-hint); }

/* One number: the stretch of work the change gives back. Indigo, because it is time that came back. */
.iz-read { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "eye eye" "num txt"; align-items: baseline; gap: 2px 14px; padding: 12px 16px; border-radius: 12px; background: var(--paper); min-width: 0; }
.iz-read .eyebrow { grid-area: eye; color: var(--ink-hint); }
.iz-read b { grid-area: num; font-family: var(--serif); font-size: clamp(2rem, 1.7rem + 1.2vw, 2.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--primary-deep); }
.iz-read small { grid-area: txt; font-size: 0.9375rem; line-height: 1.35; color: var(--ink-2); text-wrap: balance; }
.is-before .iz-read b { color: var(--ink-hint); }
.iz-cap { margin-top: 12px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-hint); }

/* ---------- Step 1: the list ----------
   The one dark surface in the reading column: where the reader stops reading and writes. */
.iz-tool { padding: clamp(16px, 2.6vw, 26px); border-radius: 22px; background: var(--night); color-scheme: dark; display: grid; gap: 12px; min-width: 0; }
.iz-lab { font-size: 0.875rem; font-weight: 700; line-height: 1.3; color: var(--on-night); text-wrap: balance; }
.iz-tool textarea { width: 100%; min-width: 0; padding: 0.7em 0.85em; border: 1px solid var(--night-line); border-radius: 12px; background: var(--night-2); color: var(--on-night); font: 500 1.0625rem/1.55 var(--sans); resize: vertical; transition: border-color 0.2s, box-shadow 0.2s; }
.iz-tool textarea::placeholder { color: var(--on-night-2); }
.iz-tool textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.iz-count { font: 600 0.9375rem/1.4 var(--sans); color: var(--on-night); }
.iz-count.is-none { font-weight: 500; color: var(--on-night-2); }
.iz-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.iz-text { padding: 0.2em 0; border: 0; background: none; color: var(--on-night); font: 600 0.9375rem/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.iz-text:hover { color: #fff; }
.iz-tool button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.a-body .iz-tool .fine { line-height: 1.5; color: var(--on-night-2); }

.iz-empty { padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem; line-height: 1.5; color: var(--ink-hint); }
.iz-tool .iz-empty { background: var(--night-2); box-shadow: none; color: var(--on-night-2); }

/* ---------- Step 2: the questions, as a path ---------- */
.iz-path { margin: 0; display: grid; gap: 0; }
.iz-q, .iz-q2 { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem 10.5rem; align-items: center; }
.iz-q > span:first-child { padding: 13px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.iz-to { position: relative; height: 2px; background: #AEB5D6; font-size: 0.75rem; font-style: normal; font-weight: 700; color: var(--ink-hint); }
.iz-to::after { content: ""; position: absolute; right: 0; top: -4px; border-left: 7px solid #AEB5D6; border-block: 5px solid transparent; }
.iz-to span { position: absolute; left: 0; right: 7px; bottom: 5px; line-height: 1.2; text-align: center; }
.iz-out { padding: 10px 12px; border-radius: 12px; background: var(--night); font-size: 0.875rem; font-weight: 700; line-height: 1.2; text-align: center; color: #fff; white-space: nowrap; }
.iz-on { position: relative; height: 30px; margin-left: 28px; border-left: 2px solid #AEB5D6; font-size: 0.75rem; font-weight: 700; line-height: 30px; color: var(--ink-hint); }
.iz-on span { padding-left: 10px; }
/* The second question has four answers. Its card sits behind all of them, and each answer has its
   own arrow, so every outcome ends in the same column as the first one. */
.iz-q2 { grid-template-rows: auto auto auto auto auto 10px; row-gap: 6px; }
.iz-q2::before { content: ""; grid-column: 1; grid-row: 1 / 7; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.iz-q2h { position: relative; grid-column: 1; grid-row: 1; padding: 13px 16px 2px; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.iz-a { position: relative; grid-column: 1; grid-row: var(--r); margin-inline: 10px; padding: 7px 12px; border-radius: 9px; background: var(--paper); font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.iz-q2 .iz-to { grid-column: 2; grid-row: var(--r); }
.iz-q2 .iz-out { grid-column: 3; grid-row: var(--r); }

/* ---------- Step 2: the sort ---------- */
#iz-sorter { display: grid; gap: 12px; min-width: 0; }
.iz-tally { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9375rem; line-height: 1.3; color: var(--ink-2); }
.iz-tally:empty { display: none; }
.iz-tally b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.iz-tally .is-open, .iz-tally .is-open b { color: var(--lift-ink); }

.a-body .iz-sort { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.iz-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name n" "q q" "seg seg"; gap: 8px 14px; align-items: center; min-width: 0; padding: 11px 12px 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem; line-height: 1.35; }
.iz-row > strong { grid-area: name; min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.iz-n { grid-area: n; justify-self: end; display: flex; align-items: center; gap: 7px; font-size: 0.875rem; font-weight: 600; color: var(--ink-hint); white-space: nowrap; }
.iz-n input { width: 4.4rem; padding: 0.4em 0.55em; border: 1px solid var(--rule); border-radius: 9px; background: var(--paper); color: var(--ink); font: 600 0.9375rem/1.2 var(--mono); text-align: right; transition: border-color 0.2s, box-shadow 0.2s; }
.iz-n input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.iz-row .iz-ask { grid-area: q; min-width: 0; display: grid; gap: 2px; font-size: 0.9375rem; line-height: 1.35; color: var(--ink-2); }
.iz-row .iz-so { font-size: 0.8125rem; color: var(--ink-hint); }
.iz-row > .iz-seg2 { grid-area: seg; }
/* Still loose, so still orange: the mark goes the moment the line gets a move. */
.iz-row.is-open { box-shadow: inset 0 0 0 1px var(--rule), inset 3px 0 0 var(--lift); }
.iz-row.is-set { grid-template-areas: "name n" "why tag"; }
.iz-tag { grid-area: tag; justify-self: end; align-self: start; padding: 0.35em 0.8em; border-radius: 999px; background: var(--night); color: #fff; font: 700 0.875rem/1.2 var(--sans); white-space: nowrap; }
.iz-why { grid-area: why; min-width: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.iz-link { padding: 0.1em 0; border: 0; background: none; color: var(--primary-deep); font: 600 0.875rem/1.3 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.iz-why .iz-link { margin-left: 0.5em; }
.iz-link:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
/* The sample before there is a list. Recomputed colours, not opacity. */
.is-ghost .iz-row > strong { font-weight: 500; color: var(--ink-hint); }
.is-ghost .iz-seg2 button, .is-ghost .iz-link { color: var(--ink-hint); cursor: default; }
.is-ghost .iz-tag { background: #DFE1EC; color: var(--ink-2); }
.is-ghost .iz-n input { color: var(--ink-hint); }
.iz-try { justify-self: start; padding: 0.6em 1.05em; border: 0; border-radius: 999px; background: var(--primary-tint); color: var(--primary-deep); font: 700 0.9375rem/1.2 var(--sans); cursor: pointer; }
.iz-try:hover { background: #DFE4FD; }
.iz-try:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.iz-seg2 { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.iz-seg2 button { min-height: 2.5rem; padding: 0.35em 0.6em; border: 0; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); font: 700 0.9375rem/1.15 var(--sans); cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s, color 0.2s; }
.iz-seg2 button:hover { box-shadow: inset 0 0 0 2px #B5BAD2; }
.iz-seg2 button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---------- Step 2: the reader's own count ---------- */
.iz-result { padding: clamp(16px, 2.6vw, 24px); border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 14px; min-width: 0; }
.iz-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.iz-res > div { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--paper); min-width: 0; }
.iz-res .eyebrow { color: var(--ink-hint); }
.iz-res b { font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 2.6vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.iz-res small { font-size: 0.8125rem; line-height: 1.3; color: var(--ink-hint); }
.iz-left b { color: var(--ink); }
.iz-back b { color: var(--primary-deep); }
.iz-dots { display: grid; grid-template-columns: repeat(auto-fill, 12px); gap: 5px; }
.iz-dots:empty { display: none; }
.iz-dots i { width: 12px; height: 12px; border-radius: 4px; background: #D9DCEB; }
.iz-dots .is-back { background: var(--primary-deep); }
.iz-dots .is-keep { background: #6C7396; }
/* The example's count, until the reader has a list: the same shape, in recomputed quiet colours. */
.iz-result.is-ghost .iz-res b { color: var(--ink-hint); }
.iz-result.is-ghost .iz-dots .is-back { background: #C9D2FC; }
.iz-result.is-ghost .iz-dots .is-keep { background: #C3C8DE; }
.iz-result.is-ghost .iz-say { color: var(--ink-hint); }
.iz-say { font-size: 1.0625rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.iz-say b { font-family: var(--mono); font-weight: 600; }

/* ---------- Step 3: the two times, and the five moves ---------- */
.iz-times, .iz-date { padding: clamp(14px, 2.4vw, 20px); border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; min-width: 0; }
.iz-times label, .iz-date label { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.iz-times input, .iz-date input { min-width: 0; padding: 0.55em 0.75em; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); font: 600 1rem/1.2 var(--sans); font-variant-numeric: tabular-nums; transition: border-color 0.2s, box-shadow 0.2s; }
.iz-times input:focus, .iz-date input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 108, 248, 0.25); }
.iz-tsay { flex-basis: 100%; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.iz-tsay:empty { display: none; }

.a-body .iz-five { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-bottom: 1px solid var(--rule); counter-reset: five; }
.iz-five li { display: grid; grid-template-columns: 1.6rem 6.4rem minmax(0, 1fr); gap: 4px 10px; align-items: baseline; padding-block: 11px; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.45; counter-increment: five; }
.iz-five li::before { content: counter(five); font: 600 0.8125rem/1 var(--mono); color: var(--ink-hint); }
.iz-five b { font-weight: 700; color: var(--ink); }

/* ---------- Step 4: the old pile ---------- */
.iz-pile { margin: 0; padding: clamp(16px, 2.6vw, 22px); border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; position: relative; }
.iz-pp { display: grid; gap: 10px; align-content: start; min-width: 0; }
.iz-ph { font-size: 0.875rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.a-body .iz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.iz-list li { display: grid; grid-template-columns: 7px minmax(0, 1fr) 3.4rem; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.iz-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #AEB5D6; }
.iz-list li i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(#C3C8DE, #C3C8DE) left / 34% 100% no-repeat, linear-gradient(#E1E4EF, #E1E4EF) right / 58% 100% no-repeat; }
.iz-list li span { font: 500 0.6875rem/1 var(--mono); color: var(--ink-hint); text-align: right; white-space: nowrap; }
.iz-list .iz-line { display: flex; align-items: center; gap: 8px; padding: 3px 0; background: none; box-shadow: none; font: 700 0.75rem/1.2 var(--sans); color: var(--ink); }
.iz-list .iz-line::before, .iz-list .iz-line::after { content: ""; height: 2px; border-radius: 1px; background: var(--night); }
.iz-list .iz-line::before { flex: none; width: 10px; }
.iz-list .iz-line::after { flex: 1 1 auto; }
.iz-list .iz-line span { font: inherit; color: inherit; }
.iz-list .iz-more { display: block; padding: 4px 0 0; background: none; box-shadow: none; font-size: 0.8125rem; line-height: 1.3; color: var(--ink-hint); text-align: center; }
.iz-list .iz-more::before { display: none; }
.iz-box { display: grid; gap: 8px; padding: 10px 12px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.iz-boxh { font-size: 0.8125rem; line-height: 1.35; color: var(--ink-2); }
.iz-boxh b { margin-right: 0.45em; color: var(--ink); }
.iz-box .iz-list li { background: var(--paper); box-shadow: none; }
.iz-filed { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.iz-filed i { display: block; height: 9px; border-radius: 3px; background: #C9D2FC; }
.iz-came { font-size: 0.9375rem; line-height: 1.35; font-weight: 600; color: var(--primary-deep); }
.iz-cap2 { grid-column: 1 / -1; font-size: 0.875rem; line-height: 1.45; color: var(--ink-hint); }
.iz-pile figcaption { grid-column: 1 / -1; }

/* ---------- Gmail or Outlook ---------- */
.iz-plat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 1rem; font-weight: 600; color: var(--ink); }
.iz-plat[hidden] { display: none; }
.iz-plat button { padding: 0.5em 1em; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-2); font: 700 0.9375rem/1.2 var(--sans); cursor: pointer; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.iz-plat button:hover { box-shadow: inset 0 0 0 2px #B5BAD2; }
.iz-plat [aria-pressed="true"], .iz-plat [aria-pressed="true"]:hover { background: var(--night); color: #fff; box-shadow: none; }
.iz-plat button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
/* Set by tool.js. Without JS both show, each with its own name on it. */
.iz-on-g .iz-o, .iz-on-o .iz-g { display: none; }

.iz-how { display: grid; gap: 10px; min-width: 0; padding: 16px 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem; line-height: 1.55; }
.iz-how > p + p strong { display: block; margin-top: 4px; }
.iz-who { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-hint); }
.iz-swap { padding: 0; border: 0; background: none; color: var(--primary-deep); font: 700 0.875rem/1.3 var(--sans); letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.iz-swap[hidden] { display: none; }
.iz-swap:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.iz-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.iz-route span { display: inline-flex; align-items: center; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
/* The chevron leads the next item, so a wrapped path starts a line with it and never ends one on it. */
.iz-route span:not(:first-child)::before { content: ""; display: inline-block; flex: none; width: 6px; height: 6px; margin: 0 9px 0 6px; border-top: 2px solid #AEB5D6; border-right: 2px solid #AEB5D6; transform: rotate(45deg); }

/* One panel per step for the doing: the controls on top, then the steps for the reader's mail,
   divided by a rule instead of each in a box of its own. */
.iz-panel { display: grid; gap: 0; min-width: 0; padding: 4px clamp(16px, 2.6vw, 22px); border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.iz-panel > * { padding-block: 16px; }
.iz-panel > * + * { border-top: 1px solid var(--rule); }
.iz-panel .iz-how { padding-inline: 0; border-radius: 0; background: none; box-shadow: none; }
.iz-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.iz-panel .iz-date { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.iz-dsay { flex-basis: 100%; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
/* Outlook picked in a panel that starts with Gmail's steps: Outlook's are now first, so no rule on top. */
.iz-on-o .iz-panel > .iz-g:first-child + .iz-o { border-top: 0; }

/* ---------- Step 5: the plan, as a card ----------
   The reward of the page, so it is a designed thing and not a terminal: the moves wear the same dark
   tags as the sort in step 2, and the counts sit right-aligned. Copy gives the plain text version. */
.iz-plan { display: grid; gap: 18px; min-width: 0; padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-float); }
.iz-plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.iz-plan-head .eyebrow { color: var(--ink-hint); }
.iz-plan-head h3 { margin-top: 4px; font-size: var(--t-h3); line-height: 1.1; }
.iz-copy { flex: none; padding: 0.6em 1.1em; border: 0; border-radius: 999px; background: var(--primary-deep); color: #fff; font: 700 0.9375rem/1.2 var(--sans); cursor: pointer; transition: background-color 0.2s; }
.iz-copy:hover { background: var(--night); }
.iz-copy:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.iz-copy[hidden] { display: none; }
.iz-plan-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.iz-ps { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.iz-ph4 { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-hint); }
.iz-pbig { font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem); font-weight: 700; line-height: 1.15; color: var(--ink); }
.iz-plan-moves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.iz-pm { display: grid; gap: 6px; align-content: start; min-width: 0; }
.iz-pt { justify-self: start; padding: 0.3em 0.8em; border-radius: 999px; background: var(--night); color: #fff; font: 700 0.8125rem/1.2 var(--sans); }
.iz-pn { font-size: 0.875rem; line-height: 1.35; color: var(--ink-hint); }
.a-body .iz-pm ul { list-style: none; margin: 2px 0 0; padding: 0; gap: 0; }
.iz-pm li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 7px; border-top: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.35; }
.iz-pm li span { min-width: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.iz-pm li b { flex: none; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--ink-hint); }
.iz-pm .is-none { font-weight: 500; color: var(--ink-hint); }
.iz-plan-foot { padding-top: 14px; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.iz-plan-foot b { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.iz-plan-foot b:first-child { color: var(--primary-deep); }

/* ---------- What was checked ----------
   The not-checked list runs far longer than the checked one, so they stack and neither leaves a hole.
   The sources are a short list by maker, not a paragraph of links. */
[data-sec="checked"] .a-proof { grid-template-columns: minmax(0, 1fr); }
.iz-src { display: grid; gap: 8px; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.iz-src h3 { font-size: 1.125rem; }
.a-body .iz-src ul { list-style: none; padding: 0; gap: 6px; }
.iz-src b { color: var(--ink); font-weight: 700; }

/* ---------- Step 6: one week of Read weekly ---------- */
.iz-week { margin: 6px 0; padding: clamp(16px, 2.6vw, 22px); border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 10px; }
.iz-wh { font-size: 0.875rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.iz-wk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 6px 8px; }
.iz-wd { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-hint); }
.iz-wd.is-rev { color: var(--ink); }
.iz-wc { display: flex; flex-direction: column; gap: 4px; min-height: 5.2rem; padding: 8px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.iz-wc i { display: block; height: 9px; border-radius: 3px; background: #C3C8DE; }
.iz-wc.is-rev { justify-content: center; gap: 3px; padding: 10px 14px; background: var(--night); box-shadow: none; }
.iz-wc.is-rev b { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; line-height: 1.15; color: #fff; }
.iz-wc.is-rev small { font-size: 0.8125rem; line-height: 1.3; color: var(--on-night-2); }

/* ---------- Phones ----------
   Eight hours do not fit sideways next to a label at 390. So hours run down the screen, each lane is
   a column, and the work column is the widest. A different drawing of the same day. */
@media (max-width: 640px) {
  .iz-by strong { display: block; margin: 0 0 1px; }
  .iz-fig { --h: 360px; --top: 22px; }
  .iz-name small { display: none; }
  .iz-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .iz-sw { justify-self: start; }
  .iz-chart { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 0 6px; }
  .iz-axis { height: var(--h); margin: var(--top) 0 0; }
  .iz-axis span, .iz-axis span:nth-child(n) { left: 0; right: auto; transform: translateY(-50%); }
  .iz-axis span:nth-child(1) { top: 0; transform: none; }
  .iz-axis span:nth-child(2) { top: 25%; }
  .iz-axis span:nth-child(3) { top: 50%; }
  .iz-axis span:nth-child(4) { top: 75%; }
  .iz-axis span:nth-child(5) { top: auto; bottom: 0; transform: none; }
  .iz-lane { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--top) var(--h); gap: 0; align-items: start; }
  .iz-name { font-size: 0.6875rem; line-height: 1.1; text-align: center; }
  .iz-wide { display: none; }
  .iz-narrow { display: inline; }
  .iz-track, .is-work .iz-track { width: 100%; height: var(--h); background: var(--paper) repeating-linear-gradient(to bottom, var(--grid) 0 1px, transparent 1px 25%); }
  .is-people .iz-track i, .is-auto .iz-track i { top: calc(var(--t) * 100% / 480); bottom: auto; left: 7px; right: 7px; width: auto; height: 3px; }
  .iz-seg, .iz-chk, .iz-lunch { top: calc(var(--t) * 100% / 480); bottom: auto; left: 5px; right: 5px; width: auto; height: calc(var(--len) * 100% / 480); }
  .iz-chk, .is-before .iz-chk { top: calc(var(--t) * 100% / 480); bottom: auto; left: 2px; right: 2px; }
  .is-before .iz-chk { left: 5px; right: 5px; }
  .is-before .iz-seg[style*="--t:0"] { border-radius: 4px 4px 0 0; }
  .iz-cut { top: calc(var(--t) * 100% / 480 - 2px); bottom: auto; left: 2px; right: 2px; width: auto; height: 4px; }
  .iz-read > div { padding: 10px 12px; }

  .iz-q, .iz-q2 { grid-template-columns: minmax(0, 1fr) 8.8rem; column-gap: 8px; }
  .iz-q { row-gap: 0; }
  .iz-q > span:first-child { grid-column: 1 / -1; }
  .iz-q > .iz-to { grid-column: 1; grid-row: 2; align-self: center; height: auto; margin-top: 6px; padding-right: 2px; background: none; text-align: right; }
  .iz-q > .iz-to::after { display: none; }
  .iz-q > .iz-to span { position: static; display: inline; }
  .iz-q > .iz-to span::after { content: " →"; }
  .iz-q > .iz-out { grid-column: 2; grid-row: 2; margin-top: 6px; }
  /* The No line leaves from its question, so it runs up past the outcome beside it. */
  .iz-on { display: flex; align-items: flex-end; height: 74px; margin-top: -44px; line-height: 1.8; pointer-events: none; }
  .iz-q2 .iz-to { display: none; }
  .iz-q2 .iz-out { grid-column: 2; }
  .iz-q2::before { grid-column: 1; }
  .iz-out { padding: 9px 8px; font-size: 0.8125rem; white-space: normal; }
  .iz-a { margin-inline: 8px; padding: 7px 10px; font-size: 0.875rem; }

  .iz-row, .iz-row.is-set { grid-template-columns: minmax(0, 1fr) auto; }
  .iz-row.is-set { grid-template-areas: "name n" "tag tag" "why why"; }
  .iz-tag { justify-self: start; }
  .iz-seg2.is-four { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iz-res { grid-template-columns: minmax(0, 1fr); }

  .iz-five li { grid-template-columns: 1.4rem minmax(0, 1fr); }
  .iz-five li span { grid-column: 2; }

  .iz-pile { grid-template-columns: minmax(0, 1fr); }
  .iz-filed { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  /* The week turns on its side: one row a day, the days down the left, Friday last like any day. */
  .iz-wk { grid-template-columns: 2.6rem minmax(0, 1fr); grid-template-rows: repeat(5, auto); grid-auto-flow: column; align-items: center; gap: 6px 10px; }
  .iz-wc { flex-direction: row; align-items: center; min-height: 2.4rem; padding: 6px 8px; }
  .iz-wc i { width: 2.4rem; }
  .iz-wc.is-rev { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 8px 12px; }
  .iz-wc.is-rev b { font-size: 1rem; }

  .iz-plan-head { flex-direction: column; }
  .iz-plan-top, .iz-plan-moves { grid-template-columns: minmax(0, 1fr); }
  .iz-ctrl { display: grid; justify-content: stretch; }
}
@media (max-width: 340px) {
  .iz-chart { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 4px; }
  .iz-q, .iz-q2 { grid-template-columns: minmax(0, 1fr) 7.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .iz-sw button, .iz-seg2 button, .iz-plat button, .is-auto .iz-track i, .iz-seg, .iz-chk, .iz-chk span, .iz-cut { transition: none; }
}
