:root {
  color-scheme: light;
  --bg: #ffffff;
  --chrome: #f5f5f5;
  --chrome-strong: #eeeeee;
  --panel: #ffffff;
  --line: #d9d9d9;
  --line-strong: #c5c5c5;
  --text: #222222;
  --muted: #666666;
  --accent: #f37626;
  --accent-strong: #d85f12;
  --blue: #307fc1;
  --danger: #b00020;
  --warning: #946200;
  --input-bg: #f7f7f7;
  --output-bg: #ffffff;
  --content-width: min(1280px, calc(100vw - 48px));
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fafafa;
  color: var(--text);
  cursor: pointer;
  font-size: 0.88rem;
  padding: 4px 10px;
}

button:hover {
  border-color: #adadad;
  background: #e9e9e9;
}

button.run {
  border-color: var(--accent-strong);
  background: var(--accent);
  color: #ffffff;
}

button.run:hover {
  background: var(--accent-strong);
}

button.stop {
  border-color: #d7a9a9;
  color: #8f1d1d;
}

button.stop:hover {
  border-color: #be7d7d;
  background: #fff1f1;
}

button.primary {
  min-height: 36px;
  border-color: #1f6f65;
  background: #28796e;
  color: #ffffff;
  font-weight: 700;
  padding: 6px 16px;
}

button.primary:hover {
  border-color: #175f57;
  background: #1f6f65;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.shell {
  width: 100%;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.jupyter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome);
  padding: 8px 22px;
}

.notebook-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-strong);
  font-weight: 700;
}

.file-name {
  font-size: 1.08rem;
  font-weight: 600;
}

.file-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
}

.module-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: min(1600px, calc(100vw - 24px));
  margin: 30px auto 56px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.module-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #aeb8bf;
  border-radius: 4px;
  color: #252a2e;
  font-weight: 700;
  text-decoration: none;
}

.module-nav-button.primary {
  justify-self: end;
  border-color: #28796e;
  background: #28796e;
  color: #ffffff;
}

.module-nav-button.secondary {
  justify-self: start;
  background: #ffffff;
}

.module-progress,
.module-complete {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.certificate-section {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--content-width);
  margin: 18px auto 36px;
  border: 1px solid #d5ccda;
  border-left: 4px solid #77657f;
  border-radius: 0;
  background: #faf8fb;
  padding: 20px 22px;
}

.certificate-section h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}

.certificate-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.certificate-section button.primary {
  border-color: #685570;
  background: #77657f;
}

.certificate-section button.primary:hover:not(:disabled) {
  border-color: #594562;
  background: #685570;
}

.certificate-button-wrap {
  display: inline-flex;
  flex: 0 0 auto;
}

.certificate-section button.primary:disabled {
  border-color: #a9a0ad;
  background: #b9b1bc;
  color: #ffffff;
}

.access {
  width: min(720px, calc(100vw - 32px));
  margin: 96px auto 0;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 32px 40px;
}

.access-kicker {
  margin: 0 0 8px;
  color: #536b82;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-session-type {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.access-event-details {
  margin: 20px 0 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.access-speakers {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
}

.access-form {
  margin-top: 24px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

input,
textarea {
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  outline: 0;
}

input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 4px 8px;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.privacy-note,
.form-error,
.runtime-status,
.cell-status {
  color: var(--muted);
}

.form-error {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--danger);
  font-weight: 600;
}

.privacy-note {
  margin: 20px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.app {
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome-strong);
  padding: 10px 28px;
}

.topbar h1 {
  font-size: 1.35rem;
}

.session-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.session-panel span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0 8px;
}

.notice,
.runtime-status {
  width: var(--content-width);
  margin: 12px auto 0;
  border: 1px solid #e5d5a5;
  border-radius: 2px;
  background: #fff8dd;
  color: #4d4020;
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 9px 12px;
}

.runtime-status {
  border-color: #e2e6ea;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 7px 10px;
}

.notebook {
  width: var(--content-width);
  margin: 16px auto 44px;
}

.cell {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  background: var(--panel);
  margin: 8px 0;
  padding: 4px 0;
}

.code-cell {
  margin: 18px 0 26px;
  border: 1px solid #d4dbe2;
  border-left: 4px solid #657b8d;
  background: #ffffff;
  padding: 12px 12px 14px 0;
}

.code-cell + .code-cell {
  margin-top: 30px;
}

.code-cell:hover {
  border-color: #b9c4ce;
  border-left-color: #526b7e;
}

.code-cell:focus-within {
  border-color: #8da6ba;
  border-left-color: var(--blue);
}

.markdown-cell {
  margin: 14px 0;
}

.cell:hover {
  border-color: #e7e7e7;
  border-left-color: #c7c7c7;
}

.cell:focus-within {
  border-color: #cfcfcf;
  border-left-color: var(--blue);
}

.cell-gutter {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 0 0;
  text-align: right;
}

.cell-gutter .run {
  align-self: flex-end;
  min-width: 48px;
  min-height: 28px;
  padding: 3px 8px;
}

.execution-count {
  align-self: flex-end;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  white-space: nowrap;
}

.markdown-gutter {
  min-height: 24px;
}

.cell-main {
  min-width: 0;
}

.cell-manual {
  margin: 0 0 10px;
  border: 1px solid #e3c772;
  border-left: 4px solid #f0a91e;
  border-radius: 3px;
  background: #fff7d6;
  color: #4d3a08;
  font-size: 0.82rem;
  line-height: 1.42;
  padding: 8px 10px;
}

.manual-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
}

.manual-controls span {
  white-space: normal;
}

.manual-gemini {
  margin-top: 7px;
  border-top: 1px solid rgba(133, 92, 0, 0.25);
  padding-top: 7px;
}

.manual-section-title {
  margin-bottom: 3px;
  color: #6f4b00;
  font-weight: 700;
}

.manual-step-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 7px;
  margin: 5px 0 8px;
}

.manual-step {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid #e4bd4d;
  border-radius: 3px;
  background: #ffffff;
  color: #4d3a08;
  padding: 5px 8px;
}

.manual-step strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0a91e;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 0.78rem;
}

.manual-step span {
  font-weight: 700;
}

.manual-prompt-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  border: 1px solid #e4bd4d;
  border-radius: 3px;
  background: #fffdf4;
  padding: 7px 8px;
}

.manual-prompt-label {
  color: #6f4b00;
  font-weight: 700;
}

.manual-prompt {
  display: block;
  border-left: 1px solid #d8d8d8;
  padding-left: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.manual-prompt-copy {
  border-color: #d79a16;
  background: #ffffff;
  color: #6f4b00;
  font-weight: 700;
  white-space: nowrap;
}

.request-prompt-note {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.cell-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.code-cell.has-gemini.gemini-open .cell-workspace {
  align-items: start;
  grid-template-columns: minmax(420px, 1.15fr) minmax(340px, 0.85fr);
}

.code-pane {
  min-width: 0;
}

.markdown-body {
  padding: 7px 10px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 0 0 10px;
  font-weight: 500;
}

.markdown-body h1 {
  font-size: 1.82rem;
}

.markdown-body h2 {
  font-size: 1.42rem;
}

.markdown-body p {
  line-height: 1.6;
  margin: 0 0 10px;
}

.markdown-body a {
  color: var(--blue);
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.markdown-body strong {
  font-weight: 700;
}

.markdown-body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
}

.markdown-body code {
  border: 1px solid #e1e1e1;
  border-radius: 3px;
  background: #f6f6f6;
  color: #111111;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  padding: 1px 4px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.markdown-body pre {
  overflow-x: auto;
  border: 1px solid #d7e1e8;
  border-left: 4px solid #2b8075;
  border-radius: 4px;
  background: #f8fbfb;
  color: #24313a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 10px 0 16px;
  padding: 12px 14px;
  white-space: pre-wrap;
}

.markdown-body pre code {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  padding: 0;
  white-space: inherit;
}

.markdown-body ol,
.markdown-body ul {
  margin: 0 0 12px 28px;
  padding: 0;
}

.markdown-body li {
  line-height: 1.6;
  margin: 4px 0;
}

.markdown-body blockquote {
  margin: 8px 0 14px;
  border-left: 4px solid #d8d8d8;
  color: #444444;
  padding: 4px 0 4px 14px;
}

.markdown-body table {
  width: 100%;
  margin: 10px 0 16px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
}

.markdown-body th {
  background: #f2f2f2;
  font-weight: 700;
}

.cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 0 0 5px;
}

.cell-title {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.cell-status {
  font-size: 0.8rem;
}

.cell-actions {
  display: flex;
  gap: 6px;
}

.ai-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: #9fc5bd;
  background: #f3faf8;
  color: #175f57;
  font-weight: 700;
  padding-left: 11px;
  padding-right: 12px;
}

.ai-toggle:hover {
  border-color: #5fa297;
  background: #e8f4f1;
}

.ai-toggle.is-open {
  border-color: #28796e;
  background: #28796e;
  color: #ffffff;
}

.ai-toggle.is-open:hover {
  border-color: #175f57;
  background: #1f6f65;
}

.ai-toggle-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.markdown-assistant-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.notebook-prompt-copy-bar {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 8px;
}

.notebook-prompt-copy {
  min-height: 34px;
  border-color: #28796e;
  color: #175f57;
  font-weight: 700;
}

.prompt-panel {
  margin: 8px 0 0;
  border: 1px solid #abc8c2;
  border-left: 4px solid #28796e;
  background: #f3faf8;
  padding: 12px;
  min-width: 0;
}

.prompt-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.prompt-title {
  color: #175f57;
  font-size: 0.9rem;
  font-weight: 700;
}

.prompt-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 2px;
}

.context-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #cbd6de;
  border-radius: 3px;
  background: #ffffff;
  color: #506273;
  font-size: 0.74rem;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 2px 8px;
}

.context-badge[hidden] {
  display: none;
}

.context-badge.uses-context {
  border-color: #9fc5bd;
  background: #eaf5f2;
  color: #175f57;
}

.context-badge.general-question {
  border-color: #d7dde3;
  background: #f7f9fa;
  color: #59636d;
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
}

.prompt-send {
  min-width: 84px;
}

.prompt-text {
  min-height: 132px;
  background: #ffffff;
  font-size: 0.86rem;
  overflow: auto;
  resize: vertical;
}

.gemini-output {
  min-height: 220px;
  margin: 10px 0 0;
  border: 1px solid #c7d9d5;
  border-left: 3px solid #5b948c;
  background: #ffffff;
  color: #111111;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-x: auto;
  padding: 10px 12px;
  white-space: pre-wrap;
}

.gemini-output.loading-output {
  color: #59636d;
  font-style: italic;
}

.editor-region {
  margin-top: 8px;
}

.region-label {
  color: #506273;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.output-region {
  margin-top: 12px;
  border-top: 1px solid #ccd4dc;
  padding-top: 10px;
}

.output-label {
  color: #59636d;
}

.code-text {
  display: block;
  width: 100%;
  min-height: 132px;
  resize: none;
  overflow: hidden;
  border: 1px solid #aebbc6;
  border-radius: 3px;
  background: var(--input-bg);
  color: #111111;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 10px 12px;
}

.compact-code-text {
  height: 132px;
  resize: vertical;
  overflow: auto;
}

textarea {
  display: block;
  width: 100%;
  border-radius: 2px;
  background: var(--input-bg);
  color: #111111;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 10px 12px;
}

.output {
  min-height: 42px;
  margin: 0;
  border: 1px solid #d8dee4;
  border-left: 3px solid #8999a7;
  background: #f7f9fa;
  color: #111111;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
  padding: 9px 12px;
  white-space: pre-wrap;
}

.output.rich-output,
.gemini-output.rich-output {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  white-space: normal;
}

.output.rich-output h1,
.output.rich-output h2,
.output.rich-output h3,
.gemini-output.rich-output h1,
.gemini-output.rich-output h2,
.gemini-output.rich-output h3 {
  margin: 8px 0 10px;
  font-weight: 600;
}

.output.rich-output p,
.gemini-output.rich-output p {
  line-height: 1.55;
  margin: 0 0 10px;
}

.output.rich-output table,
.gemini-output.rich-output table {
  width: 100%;
  margin: 8px 0 14px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.output.rich-output th,
.output.rich-output td,
.gemini-output.rich-output th,
.gemini-output.rich-output td {
  border: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
}

.output.rich-output th,
.gemini-output.rich-output th {
  background: #f2f2f2;
  font-weight: 700;
}

.rendered-code,
.output.rich-output pre,
.gemini-output.rich-output pre {
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: anywhere;
  border: 1px solid #dedede;
  border-radius: 3px;
  background: #f7f7f7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 8px 0 12px;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-block-shell {
  margin: 8px 0 12px;
  border: 1px solid #cfd7de;
  border-radius: 3px;
  background: #f7f7f7;
  overflow: hidden;
}

.code-block-shell .rendered-code,
.code-block-shell pre {
  border: 0;
  border-radius: 0;
  margin: 0;
  white-space: pre;
  word-break: normal;
}

.code-block-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #d8dee4;
  background: #edf3f5;
  padding: 7px 9px;
}

.code-block-label {
  color: #506273;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.code-block-toolbar .code-block-label {
  margin-right: auto;
}

.code-copy-button,
.code-insert-button {
  min-height: 28px;
  border: 1px solid #8bb8af;
  border-radius: 3px;
  background: #ffffff;
  color: #175f57;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 5px 10px;
}

.code-insert-button {
  border-color: #28796e;
  background: #28796e;
  color: #ffffff;
}

.code-copy-button:hover {
  border-color: #28796e;
  background: #f3faf8;
}

.code-insert-button:hover {
  border-color: #175f57;
  background: #1f6f65;
}

.output.rich-output code,
.gemini-output.rich-output code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.status-running {
  color: var(--warning);
}

.status-error {
  color: var(--danger);
}

.status-done {
  color: var(--blue);
}

.status-stopped {
  color: #8f1d1d;
}

@media (max-width: 720px) {
  .jupyter-bar,
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .session-panel {
    justify-content: flex-start;
  }

  .notice,
  .runtime-status,
  .notebook,
  .module-navigation {
    width: calc(100vw - 20px);
  }

  .module-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .module-progress {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .certificate-section {
    align-items: stretch;
    flex-direction: column;
  }

  .access {
    margin-top: 48px;
  }

  .cell {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .cell-gutter {
    padding-right: 6px;
  }

  .cell-gutter .run {
    min-width: 42px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .cell-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .prompt-panel-head {
    flex-direction: column;
  }

  .prompt-actions {
    justify-content: flex-start;
  }

  .manual-step-grid,
  .manual-prompt-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .manual-prompt {
    border-top: 1px solid #d8d8d8;
    border-left: 0;
    padding-top: 8px;
    padding-left: 0;
  }

  .manual-prompt-copy {
    justify-self: flex-start;
  }

  .code-row {
    align-items: stretch;
    flex-direction: column;
  }

  .code-cell.has-gemini.gemini-open .cell-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}


.readiness-banner {
  box-sizing: border-box;
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: var(--content-width);
  margin: 12px auto 0;
  padding: 9px 12px;
  color: #714609;
  background: #fff6df;
  border: 1px solid #efcc80;
  border-left: 4px solid #d79522;
  border-radius: 4px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.readiness-banner strong { white-space: nowrap; }
.readiness-banner[hidden] { display: none; }
@media (max-width: 720px) {
  .readiness-banner { align-items: flex-start; flex-direction: column; gap: 2px; }
}
.readiness-dialog {
  box-sizing: border-box;
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 32px;
  border: 1px solid #ead9b6;
  border-radius: 18px;
  background: #fffdf8;
  color: #302b22;
  box-shadow: 0 24px 80px #0003;
}
.readiness-dialog::backdrop { background: #18233399; }
.readiness-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #fff0ca;
  border-radius: 16px;
  font-size: 28px;
}
.readiness-eyebrow { margin: 22px 0 8px; color: #926319; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.readiness-dialog h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.25; }
.readiness-dialog p { line-height: 1.65; }
.readiness-python { padding: 14px 16px; background: #f0f4f1; border-radius: 10px; color: #365344; }
.readiness-dialog form { margin-top: 24px; }
.readiness-dialog button { width: 100%; padding: 12px 18px; }

.markdown-edit-actions {
  margin-top: 10px;
}

.markdown-text {
  box-sizing: border-box;
  width: 100%;
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  font: inherit;
  line-height: 1.55;
}

.download-notebook-section {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--content-width);
  margin: 18px auto 36px;
  padding: 20px 22px;
  border: 1px solid #c5d0db;
  border-left: 4px solid #536b82;
  border-radius: 0;
  background: #f6f8fa;
}

.download-notebook-section h2 { margin: 0 0 6px; font-size: 1.05rem; }
.download-notebook-section p { margin: 0; line-height: 1.5; }
.download-notebook-section .download-note { margin-top: 4px; color: var(--muted); font-size: 0.84rem; }
.download-notebook-section button { flex: 0 0 auto; }
.download-notebook-section button.primary { border-color: #455d73; background: #536b82; }
.download-notebook-section button.primary:hover { border-color: #394f63; background: #455d73; }

@media (max-width: 720px) {
  .download-notebook-section { align-items: stretch; flex-direction: column; }
  .download-notebook-section button { width: 100%; }
}
