/* Codex-4 hosted shell. Opt in with <html class="tt-shell host-page">. */
html.tt-shell * { box-sizing: border-box; }
html.tt-shell body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; }
html.tt-shell button, html.tt-shell input, html.tt-shell select, html.tt-shell textarea { font: inherit; }
html.tt-shell button, html.tt-shell a, html.tt-shell input, html.tt-shell select { touch-action: manipulation; }
html.tt-shell button { cursor: pointer; }
html.tt-shell a { color: inherit; text-underline-offset: 4px; }
html.tt-shell [hidden] { display: none !important; }
html.tt-shell :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
html.tt-shell {
  --bg: #0a0b0d; --surface: #14161a; --raised: #252931; --field: #0a0b0d;
  --ink: #f7f7f4; --copy: #d7d9de; --muted: #a9afb9; --line: #353a44;
  --accent: #ffd43b; --accent-ink: #101114; --accent-text: #ffd43b;
  --radius: 16px; --gutter: 32px; --gap: 24px;
  --preview-height: min(864px, calc(100dvh - 48px));
  --preview-width: calc(var(--preview-height) * 9 / 16);
  background: var(--bg); color: var(--ink); color-scheme: dark;
  font-size: 16px; line-height: 1.55;
}
html.tt-shell body { background: var(--bg) !important; color: var(--ink) !important; }
html.tt-shell .layout { display: grid; align-items: start; gap: var(--gap); }
html.tt-shell .guide-column, html.tt-shell .content-column { display: grid; gap: 24px; min-width: 0; }
html.tt-shell .masthead { min-width: 0; }
html.tt-shell .brand-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
html.tt-shell .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 800; letter-spacing: -.4px; }
html.tt-shell .brand-mark { position: relative; display: grid; place-content: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: #101114; font-size: 27px; font-weight: 900; letter-spacing: -1px; padding-right: 12px; line-height: 1; transform: rotate(-5deg); }
html.tt-shell .brand-mark>span { position: absolute; right: 3px; top: 8px; font-size: 25px; }
html.tt-shell .app-link { color: var(--copy); font-size: 14px; text-decoration: none; white-space: nowrap; }
html.tt-shell .app-link .tt-tikfinity-arrow { color: var(--accent-text); margin-left: 6px; }
html.tt-shell .intro { padding: 30px 0 0; }
html.tt-shell .eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 14px; font-weight: 650; }
html.tt-shell h1 { margin: 0; font-size: clamp(38px, 3.2vw, 54px); font-weight: 850; line-height: 1.06; letter-spacing: -2px; }
html.tt-shell .title-dot { color: var(--accent-text); }
html.tt-shell .intro-copy { color: var(--copy); max-width: 680px; margin: 18px 0 0; font-size: 16px; line-height: 1.65; }
html.tt-shell .panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; scroll-margin-top: 76px; }
html.tt-shell .section-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
html.tt-shell .section-heading h2 { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.6px; font-weight: 750; }
html.tt-shell .section-number { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 800; }
html.tt-shell .section-copy, html.tt-shell .note, html.tt-shell .field-help { color: var(--copy); font-size: 15px; line-height: 1.6; }
html.tt-shell .section-copy { margin: 0 0 20px; }
html.tt-shell .note { margin: 18px 0 0; }
html.tt-shell .field-help { margin: 12px 0 0; }
html.tt-shell .mode-panel { display: grid; gap: 12px; }
html.tt-shell .modes { display: flex; width: fit-content; max-width: 100%; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
html.tt-shell .modes button { min-height: 38px; padding: 8px 20px; border: 0; border-radius: 8px; background: transparent; color: var(--copy); font-size: 15px; font-weight: 700; }
html.tt-shell .modes button[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); }
html.tt-shell .mode-help { margin: 0; color: var(--copy); font-size: 15px; }
html.tt-shell .host-connection .tt-core-status { margin: 0; color: var(--ink); font: inherit; }
html.tt-shell .tt-core-status:not([data-connected=true]):not([data-mode=demo]):not([data-mode=practice])>.tt-core-pill { display: none; }
html.tt-shell .tt-core-status[data-mode=demo]>.tt-core-pill, html.tt-shell .tt-core-status[data-mode=practice]>.tt-core-pill { display: none; }
html.tt-shell .tt-core-pill { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1.4 "Segoe UI", sans-serif; background: #14161a; color: #f7f7f4 !important; border: 1px solid #353a44; padding: 8px 12px; }
html.tt-shell .tt-core-status[data-connected=true] .tt-core-pill { background: #163e32; border-color: #65b493; color: #c9ffe2 !important; }
html.tt-shell .tt-core-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #62d394; }
html.tt-shell .host-connection .tt-core-notice { margin: 0; padding: 12px 16px; background: var(--surface); color: var(--copy); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; box-shadow: none; font-size: 15px; line-height: 1.55; }
html.tt-shell .host-connection .tt-core-notice strong { color: var(--ink); font-size: 15px; }
html.tt-shell .host-connection .tt-core-notice a { color: var(--accent-text); }
html.tt-shell .preview-section { position: fixed; top: 24px; width: var(--preview-width); height: var(--preview-height); z-index: 2; }
html.tt-shell .preview-wrap { width: 100%; height: 100%; background: #0a0b0d; border-radius: 12px; overflow: hidden; outline: 1px solid #353a44; box-shadow: 0 18px 60px #0003; }
html.tt-shell .preview-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
html.tt-shell .tt-core-play { color: var(--ink); background: var(--raised); border-radius: 12px; padding: 4px 14px; gap: 0; }
html.tt-shell .tt-core-play li { padding: 13px 0; border-bottom: 1px solid var(--line); gap: 12px; }
html.tt-shell .tt-core-play li:last-child { border: 0; }
html.tt-shell .tt-core-play p { font-size: 15px; line-height: 1.6; }
html.tt-shell .tt-core-play svg { padding: 5px; border-radius: 8px; background: var(--surface); }
html.tt-shell .tt-core-play strong { color: var(--ink); font-weight: 800; }
html.tt-shell .gift-legend-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
html.tt-shell .gift-legend-row:first-child { padding-top: 0; }
html.tt-shell .gift-copy { flex: 1; min-width: 160px; overflow-wrap: anywhere; }
html.tt-shell .gift-copy>strong, html.tt-shell .gift-copy>span { display: block; }
html.tt-shell .gift-copy>strong { font-size: 16px; }
html.tt-shell .gift-copy>span { color: var(--copy); font-size: 14px; margin-top: 3px; }
html.tt-shell .tt-core-controls { flex: none; gap: 6px; margin-left: auto; justify-content: flex-end; }
html.tt-shell .tt-core-controls button { font-size: 14px; font-weight: 650; padding: 9px 12px; min-height: 40px; border-color: var(--line); background: var(--raised); color: var(--ink); }
html.tt-shell .tt-core-controls .tt-core-clear { background: transparent; color: var(--copy); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
html.tt-shell .gift-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
html.tt-shell .gift-picker-status, html.tt-shell .save-status { color: var(--muted); font-size: 14px; }
html.tt-shell .gift-picker-status { margin: 16px 0 0; }
html.tt-shell .gift-picker-status:empty { display: none; }
html.tt-shell .save-status { margin-left: auto; }
html.tt-shell .input-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
html.tt-shell label { font-size: 15px; font-weight: 600; min-width: 0; }
html.tt-shell input:not([type=checkbox]), html.tt-shell select { display: block; width: 100%; min-width: 0; padding: 11px 12px; min-height: 46px; margin-top: 7px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--ink); }
html.tt-shell input::placeholder { color: var(--muted); opacity: 1; }
html.tt-shell input[type=color] { height: 46px; padding: 5px; }
html.tt-shell fieldset { border: 0; margin: 0 0 26px; padding: 0; }
html.tt-shell legend { padding: 0 0 16px; font-size: 15px; font-weight: 750; color: var(--accent-text); }
html.tt-shell .switch-list { display: grid; margin-top: 18px; }
html.tt-shell .switch { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 52px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 500; cursor: pointer; }
html.tt-shell .switch small { display: block; font-size: 14px; color: var(--copy); margin-top: 3px; }
html.tt-shell .switch input { appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--raised); cursor: pointer; }
html.tt-shell .switch input::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: var(--muted); }
html.tt-shell .switch input:checked { background: var(--accent); border-color: var(--accent); }
html.tt-shell .switch input:checked::after { transform: translateX(16px); background: var(--accent-ink); }
html.tt-shell .settings-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
html.tt-shell .settings-foot p { margin: 0; max-width: 320px; font-size: 14px; color: var(--copy); }
html.tt-shell .primary, html.tt-shell .secondary, html.tt-shell .effects button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 9px; font-size: 15px; font-weight: 700; line-height: 1.4; }
html.tt-shell .primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
html.tt-shell .secondary, html.tt-shell .effects button { background: var(--raised); color: var(--ink); }
html.tt-shell button:hover:not(:disabled) { border-color: var(--accent-text); }
html.tt-shell .primary:hover:not(:disabled), html.tt-shell .modes button[aria-pressed=true]:hover { background: #ffe56b; color: #101114; }
html.tt-shell button:disabled { opacity: 1; background: var(--raised); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
html.tt-shell .source-label { font-size: 14px; }
html.tt-shell .copy-box { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
html.tt-shell .copy-box input { flex: 1; margin: 0; font-size: 14px; }
html.tt-shell .source-actions { margin-top: 12px; font-size: 14px; }
html.tt-shell .overlay-size { font-size: 15px; margin: 20px 0 0; }
html.tt-shell .setup-columns { display: grid; gap: 20px; margin-top: 24px; }
html.tt-shell .setup-columns h3 { font-size: 16px; margin: 0 0 10px; }
html.tt-shell .setup-columns ol { padding-left: 22px; margin: 0; color: var(--copy); font-size: 15px; }
html.tt-shell .setup-columns li { margin: 7px 0; }
html.tt-shell .setup-columns strong { color: var(--ink); }
html.tt-shell details { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--copy); font-size: 15px; }
html.tt-shell summary { color: var(--ink); font-weight: 650; cursor: pointer; }
html.tt-shell .field-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
html.tt-shell .field-row label { flex: 1; }
html.tt-shell .effects, html.tt-shell .button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
html.tt-shell #field { list-style: none; padding: 0; display: grid; gap: 10px; }
html.tt-shell #field li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
html.tt-shell .footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: 0 var(--gutter); padding: 24px 0 32px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
html.tt-shell .footer .brand { font-size: 15px; }

html.tt-shell .layout { padding: 24px var(--gutter) 60px; grid-template-columns: minmax(0,1fr) var(--preview-width) minmax(0,1fr); }
html.tt-shell .content-column { grid-column: 3; }
html.tt-shell .preview-section { left: calc(50% - var(--preview-width) / 2); }
html.tt-shell .footer { width: calc((100% - var(--gutter) * 2 - var(--preview-width) - var(--gap) * 2) / 2); }
html.tt-shell .tt-gift-picker-dialog { color: #f7f7f4; background: #14161a; color-scheme: dark; }
html.tt-shell .tt-gift-picker-dialog input { background: #0a0b0d; color: #f7f7f4; color-scheme: dark; }
html.tt-shell .tt-gift-picker-dialog input::placeholder { color: #a9afb9; }
html.tt-shell .tt-gift-picker-option { background: #252931; color: #f7f7f4; font-size: 15px; }
html.tt-shell .tt-gift-picker-search, html.tt-shell .tt-gift-picker-stale, html.tt-shell .tt-gift-picker-error, html.tt-shell .tt-gift-picker-empty { font-size: 14px; }
html.tt-shell .tt-gift-picker-option-copy span, html.tt-shell .tt-gift-picker-heading p, html.tt-shell .tt-gift-picker-manual-body p, html.tt-shell .tt-gift-picker-manual label { color: #d7d9de; font-size: 14px; }
html.tt-shell .tt-gift-picker-manual button.tt-gift-picker-manual-toggle { color: #ffd43b; font-size: 14px; }
html.tt-shell .tt-gift-picker-manual-body button { background: #ffd43b; color: #101114; }

html.tt-shell .team-joins, html.tt-shell .effects { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; width:100%; }
html.tt-shell .team-joins button { height:100%; }
html.tt-shell .streaming-panel p { color:var(--copy); font-size:15px; line-height:1.6; }
html.tt-shell .streaming-panel a, html.tt-shell .help a { color:var(--accent-text); }
html.tt-shell .photo-credits { border-top:1px solid var(--line); padding-top:18px; font-size:14px; }
html.tt-shell .status { padding:12px 14px; background:var(--raised); border-radius:9px; color:var(--copy); font-size:14px; }
html.tt-shell .status p { margin:0; }
html.tt-shell .check-row { display:flex; gap:12px; align-items:center; margin-top:16px; }
html.tt-shell input[type=checkbox] { accent-color:var(--accent); }
html.tt-shell .panel h3 { font-size:16px; }
html.tt-shell .panel p { overflow-wrap:anywhere; }
@media (min-width:1280px) and (max-width:1550px) {
  html.tt-shell { --gutter:24px; --gap:20px; }
  html.tt-shell .panel { padding:20px; }
  html.tt-shell .input-grid { grid-template-columns:1fr; }
  html.tt-shell .copy-box input { flex-basis:100%; }
}
@media (max-width:1279px) {
  html.tt-shell .layout { display:flex; flex-direction:column; padding:0; margin:24px; }
  html.tt-shell .guide-column { display:contents; }
  html.tt-shell .preview-section { order:-1; position:relative; top:auto; left:auto; width:min(360px,100%); height:auto; aspect-ratio:9/16; margin:24px auto; }
  html.tt-shell .masthead { order:-3; }
  html.tt-shell .mode-panel { order:-2; }
  html.tt-shell .guide-column, html.tt-shell .content-column { width:100%; }
  html.tt-shell .preview-wrap { position:absolute; inset:0; }
  html.tt-shell .footer { width:auto; margin:0 24px; }
}
@media (max-width:600px) {
  html.tt-shell .layout { margin:20px 16px; gap:20px; }
  html.tt-shell h1 { font-size:43px; }
  html.tt-shell .brand { font-size:15px; }
  html.tt-shell .app-link { font-size:14px; }
  html.tt-shell .panel { padding:22px 18px; }
  html.tt-shell .section-heading h2 { font-size:22px; }
  html.tt-shell .input-grid { grid-template-columns:1fr; }
  html.tt-shell .preview-section { width:min(320px,calc(100vw - 40px)); margin:4px auto 24px; }
  html.tt-shell .copy-box input { flex-basis:100%; }
  html.tt-shell .copy-box button { width:100%; }
  html.tt-shell .field-row label { flex-basis:100%; }
  html.tt-shell .save-status { margin-left:38px; }
  html.tt-shell .footer { flex-direction:column; align-items:start; }
  html.tt-shell .tt-gift-picker-dialog { max-height:calc(100dvh - 24px); }
  html.tt-shell .tt-gift-picker-results { max-height:42dvh; }
}
