/* Task 1 follows the five approved screens. All layout rules are scoped to it. */
.shell:has(.t1-screen) { min-height: 100dvh; height: auto; display: flex; flex-direction: column; overflow: visible; background: radial-gradient(ellipse at 8% 4%, #978aff90, transparent 52%), radial-gradient(ellipse at 88% 10%, #88c7ffbd, transparent 64%), linear-gradient(135deg, #e9e8ff, #d4e7ff 60%, #eeecff); }
.shell:has(.t1-screen) .topbar { position: static; flex-shrink: 0; background: transparent; backdrop-filter: none; }
.shell:has(.t1-screen) .topbar-inner { width: calc(100% - 128px); max-width: 1780px; min-height: 76px; gap: 28px; }
.shell:has(.t1-screen) .brand img { width: 126px; }
.shell:has(.t1-screen) .brand > span { display: block; padding: 9px 14px; border-radius: 30px; background: #ffffffdb; color: #171720; font-size: 13px; font-weight: 600; }
.shell:has(.t1-screen) .top-progress-row { color: #15152a; font-size: 12px; font-weight: 600; }
.shell:has(.t1-screen) .progress-track { height: 8px; background: #fff; }
.shell:has(.t1-screen) .progress-fill { background: linear-gradient(90deg, #7455ff, #483aff); }
.shell:has(.t1-screen) .time-pill { padding: 11px 18px; border-radius: 30px; background: #050719; color: #fff; font-size: 12px; }
.shell:has(.t1-screen) .reset-button { padding: 11px 22px; border-radius: 30px; border: 0; background: #fff; color: #181828; font-size: 12px; }
.t1-screen { --t1-muted: #7c83a7; --t1-line: #e7e9f8; flex: 1; width: calc(100% - 40px); margin: 0 auto 20px; padding: 26px; border-radius: 26px; background: #ffffffed; color: #121426; }
.t1-screen svg { display: block; width: 24px; height: 24px; flex: 0 0 auto; }
.t1-heading { margin-bottom: 24px; }
.t1-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 12px; font-weight: 600; }
.t1-back { border: 0; background: transparent; color: #7e83b5; padding: 10px 16px 10px 0; margin-right: 10px; font-weight: 600; }
.t1-task-badge, .t1-step-badge { padding: 11px 16px; border-radius: 24px; white-space: nowrap; }
.t1-task-badge { background: #dbff28; color: #11151d; }
.t1-step-badge { background: #f1f0ff; color: #434765; }
.t1-heading h1 { max-width: none; margin: 0; font-size: clamp(24px, 2.25vw, 36px); line-height: 1.2; letter-spacing: -.8px; font-weight: 600; outline: none; }
.t1-heading > p { margin: 10px 0 0; color: #59617f; font-size: 15px; line-height: 1.5; }
.t1-source-heading { position: relative; }
.t1-source { flex: 0 0 auto; }
.t1-source .t1-heading { padding-right: 0; }
.t1-hint { display: none; }
.t1-source-chat { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--t1-line); border-radius: 20px; background: #fff; overflow: hidden; }
.t1-sidebar { padding: 18px 14px; background: linear-gradient(140deg, #f6f6fc, #f0f2f8); border-right: 1px solid var(--t1-line); }
.t1-sidebar-sections { display: grid; gap: 5px; }
.t1-sidebar-sections > span { display: flex; align-items: center; gap: 17px; padding: 13px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #5c6583; }
.t1-sidebar-sections .is-current { background: #e8e4ff; color: #6744ff; }
.t1-sidebar h2 { margin: 24px 9px 14px; font-size: 12px; color: #69718d; font-weight: 500; }
.t1-sidebar ul { list-style: none; padding: 0 9px; margin: 0; display: grid; gap: 14px; }
.t1-sidebar li { display: flex; gap: 9px; align-items: center; }
.t1-sidebar .colleague-avatar { width: 36px; height: 36px; }
.t1-sidebar strong { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; }
.t1-sidebar small { display: block; color: #8b94ae; font-size: 11px; margin-top: 2px; }
.t1-online { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #31bb72; vertical-align: middle; flex: 0 0 auto; }
.t1-online.is-away { background: #a2aec5; }
.t1-team-chat { min-width: 0; display: flex; flex-direction: column; }
.t1-source .observed-chat { display: flex; flex: 1; flex-direction: column; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.t1-source .observed-chat__header { min-height: 64px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--t1-line); }
.t1-source .observed-chat__header b { font-size: 16px; }
.t1-source .observed-chat__eyebrow { display: none; }
.t1-source .observed-chat__identity small { color: var(--t1-muted); font-size: 12px; }
.t1-source .observed-chat__channel-mark { background: transparent; color: #6846ff; font-size: 30px; }
.t1-source .observed-chat__workspace { min-height: 0; height: clamp(340px, calc(100dvh - 385px), 560px); overflow-y: auto; padding: 10px 26px 16px; background: linear-gradient(110deg, #fff, #fafbff); scrollbar-width: thin; }
.t1-source .observed-chat__day { margin: 0 0 15px; }
.t1-source .observed-chat__thread { max-height: none; overflow: visible; gap: 14px; }
.t1-source .colleague-message { max-width: 880px; gap: 12px; }
.t1-source .colleague-avatar { width: 40px; height: 40px; }
.t1-source .observed-chat__members .colleague-avatar { width: 32px; height: 32px; }
.t1-source .colleague-message__meta { margin-bottom: 3px; font-size: 12px; }
.t1-source .colleague-message__meta time { color: var(--t1-muted); }
.t1-source .colleague-message__content { padding: 7px 10px; border: 0; border-radius: 0 10px 10px; background: #f2f3f8; }
.t1-source .colleague-message p { font-size: 15px; line-height: 1.45; }
.t1-source .colleague-message__reaction { font-size: 11px; margin-top: 4px; padding: 2px 8px; background: #f5f5fa; }
.t1-source .observed-chat__composer { display: none; }
.t1-source-notice { display: flex; gap: 10px; align-items: center; margin: 0 18px 8px; padding: 9px 12px; background: #eeedff; border-radius: 10px; color: #7b82a7; font-size: 11px; line-height: 1.45; }
.t1-source-notice b { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 auto; border-radius: 50%; background: #5343ff; color: #fff; font-size: 12px; }
.t1-actions { display: flex; align-items: center; gap: 20px; margin-top: 16px; padding: 16px; border: 1px solid #dcd5ff; border-radius: 18px; background: #eeebff; color: #30245b; }
.t1-next-icon { display: grid; place-items: center; flex: 0 0 auto; width: 62px; height: 48px; border-radius: 28px; font-size: 42px; line-height: 1; background: #fff; color: #6245ff; }
.t1-actions > div { flex: 1; }
.t1-actions strong { font-size: 19px; font-weight: 600; }
.t1-actions p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; color: #635887; }
.t1-screen .button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 28px; font-size: 13px; line-height: 1.35; background: #4535ff; color: #fff; border: 1px solid transparent; box-shadow: none; }
.t1-actions .button { position: relative; z-index: 1; flex: 0 0 auto; border: 1px solid #5840ed; background: #5840ed; color: #fff; font-size: 15px; font-weight: 600; }
.t1-actions .button:hover { background: #4930d6; border-color: #4930d6; }
.t1-actions .button > svg { width: 20px; height: 20px; }
.t1-launch { position: relative; overflow: hidden; isolation: isolate; animation: t1-glow 4s ease-in-out infinite; }
.t1-launch::after { content: ""; position: absolute; inset: -100% auto -100% -70%; width: 28%; transform: rotate(20deg); background: linear-gradient(90deg, transparent, #ffffff25, transparent); pointer-events: none; animation: t1-shine 6s ease-in-out infinite; }
.t1-workspace { display: flex; justify-content: center; padding: 0 32px; }
.t1-workspace-inner { width: min(1420px, 80%); padding: 26px 32px; border-radius: 26px; background: #ffffffbc; box-shadow: 0 5px 45px #5a69ac07; }
.shell:has(.t1-workspace):not(:has(.t1-marina)) { background: linear-gradient(135deg, #c9c1ff, #e1dcff 65%, #d7e4ff); }
.t1-workspace:not(.t1-marina), .t1-workspace-inner { background: transparent; box-shadow: none; }
.t1-workspace .t1-heading { margin-bottom: 24px; }
.t1-chat { display: flex; flex-direction: column; height: clamp(450px, calc(100dvh - 270px), 800px); border: 1px solid var(--t1-line); border-radius: 18px; background: #fff; overflow: hidden; }
.t1-chat-header { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #e9edfc; background: #fff; }
.t1-chat-header > div { display: flex; gap: 14px; align-items: center; }
.t1-chat-header strong { display: block; font-size: 21px; font-weight: 600; }
.t1-chat-header small { display: block; margin-top: 3px; color: var(--t1-muted); font-size: 13px; }
.t1-ai-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ab80ff, #6355ff); font-size: 19px; font-weight: 600; line-height: 1; }
.t1-context-badge { padding: 9px 15px; border-radius: 25px; background: #e8f9df; color: #40862d; font-size: 12px; font-weight: 500; }
.t1-feed { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px; scrollbar-width: thin; background: radial-gradient(ellipse at 15% 45%, #e8f2ff, transparent 70%), linear-gradient(115deg, #e5efff, #e9f3ff 75%, #e2ecff); }
.t1-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 0; }
.t1-empty .t1-ai-icon { position: relative; width: 72px; height: 72px; border-radius: 26px; font-size: 30px; margin-bottom: 20px; background: linear-gradient(140deg, #8c6dff, #4d32ff 60%, #9880ff); box-shadow: inset 0 0 10px #ffffff50; }
.t1-empty .t1-ai-icon::after { content: "✦"; position: absolute; top: 10px; right: 12px; font-size: 14px; }
.t1-empty h2 { max-width: none; margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.3; letter-spacing: -.5px; }
.t1-composer { flex: 0 0 auto; padding: 14px 18px; background: #fff; border-radius: 12px 12px 0 0; }
.t1-composer-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.t1-send-hint { margin: 0 0 0 auto; padding: 7px 11px; border-radius: 9px; background: #fff0db; color: #795020; font-size: 12px; line-height: 1.4; }
.t1-send-hint span { margin-left: 5px; font-size: 17px; }
.t1-send--ready { animation: t1-send-pulse 1.8s .7s ease-in-out 4; }
.t1-context-chip { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 8px 13px; border-radius: 28px; color: #35356b; background: #f0efff; font-size: 12px; font-weight: 500; }
.t1-context-chip svg { width: 20px; height: 20px; }
.t1-attachment { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 10px 12px; max-width: 100%; border: 1px solid #ffffff75; border-radius: 13px; background: #ffffff75; text-align: left; }
.t1-attachment strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; }
.t1-attachment small { display: block; margin-top: 3px; font-size: 12px; color: #9193ac; }
.t1-file-icon { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 38px; border-radius: 9px; background: #fff; color: #503bff; }
.t1-file-icon svg { width: 25px; height: 25px; }
.t1-input-row { display: flex; align-items: stretch; gap: 10px; margin-top: 9px; }
.t1-input-row textarea { display: block; flex: 1; width: 100%; min-width: 0; height: 58px; padding: 14px; border: 1px solid #dfdef8; border-radius: 13px; background: #fff; resize: none; outline: none; font-size: 13px; line-height: 1.7; color: #262946; }
.t1-send { display: grid; place-items: center; flex: 0 0 auto; width: 58px; min-height: 58px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #664cff, #4433ff); color: #fff; transition: transform .2s; }
.t1-send svg { width: 27px; height: 27px; }
.t1-send:not(:disabled):hover { transform: translateY(-2px); }
.t1-send:disabled { background: #c2bcff; cursor: default; }
.t1-input-row--waiting { margin-top: 0; }
.t1-input-row--waiting > span { display: flex; align-items: center; flex: 1; gap: 14px; border: 1px solid #e4e0fa; border-radius: 13px; padding: 12px; color: #a0a3bb; font-size: 13px; }
.t1-input-row--waiting > span svg { color: #8a86b8; }
.t1-message { margin-bottom: 22px; max-width: 100%; animation: t1-message-in .35s ease-out both; }
.t1-message--user { margin-left: auto; width: fit-content; max-width: 56%; }
.t1-bubble { font-size: 14px; line-height: 1.5; }
.t1-bubble > p { margin: 0 0 12px; }
.t1-bubble > p:last-child { margin-bottom: 0; }
.t1-message--user > .t1-bubble { padding: 12px 15px; border: 1px solid #ced2ff; border-radius: 16px; background: #dddfffce; }
.t1-message--user .t1-attachment + p { margin: 12px 0 0; }
.t1-time { display: block; color: #949ac2; font-size: 11px; line-height: 1.4; margin-top: 6px; }
.t1-time b { color: #5443ff; font-size: 16px; margin-left: 4px; }
.t1-message--user > .t1-time { text-align: right; }
.t1-message--ai { display: flex; align-items: flex-start; gap: 15px; }
.t1-message--ai > .t1-bubble { background: #fff; padding: 14px 16px 10px; border-radius: 0 16px 16px; min-width: 0; }
.t1-message--ai > .t1-ai-icon { width: 46px; height: 46px; }
.t1-ack .t1-bubble { max-width: 510px; }
.t1-ack { animation-delay: .3s; }
.t1-processing { display: flex; align-items: center; gap: 10px; color: #7b83a8; font-size: 12px; padding: 8px 0 8px 61px; }
.t1-dots { display: flex; gap: 4px; }
.t1-dots i { width: 5px; height: 5px; border-radius: 50%; background: #8172e4; animation: t1-dot 1.2s ease-in-out infinite; }
.t1-dots i:nth-child(2) { animation-delay: .15s; }
.t1-dots i:nth-child(3) { animation-delay: .3s; }
.t1-send-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.t1-send-result > span { font-size: 12px; color: var(--t1-muted); }
.t1-result { margin-bottom: 0; }
.t1-result > .t1-bubble { flex: 1; }
.t1-plan { border: 1px solid #e8eafa; border-radius: 10px; padding: 12px; background: #fff; overflow: hidden; }
.t1-plan > header { padding-bottom: 9px; }
.t1-plan h2 { max-width: none; margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.4px; }
.t1-plan header p { margin: 3px 0 0; font-size: 11px; color: var(--t1-muted); }
.t1-deadline { margin-bottom: 10px; padding: 7px 10px; border-radius: 6px; background: #f4f3ff; font-size: 11px; }
.t1-deadline > span { display: inline-block; margin-left: 8px; color: var(--t1-muted); font-size: 10px; }
.t1-plan table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; text-align: left; border: 1px solid #e9ebf8; border-radius: 7px; overflow: hidden; }
.t1-plan th { padding: 8px 12px; color: #555d80; background: #f0f2fa; font-weight: 500; }
.t1-plan td { padding: 7px 12px; border-top: 1px solid #eceefa; vertical-align: top; overflow-wrap: anywhere; }
.t1-plan th + th, .t1-plan td + td { border-left: 1px solid #eceefa; }
.t1-plan th:first-child { width: 43%; }
.t1-plan-notes { padding-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t1-plan-notes > section { display: flex; align-items: flex-start; gap: 10px; border-radius: 9px; padding: 10px; background: #edf4ff; }
.t1-note-icon { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #d7e7ff; color: #3473ff; font-size: 18px; font-weight: 600; }
.t1-plan-notes h3 { margin: 0 0 4px; font-size: 12px; font-weight: 600; }
.t1-plan-notes p { margin: 0; color: #697393; font-size: 12px; line-height: 1.45; }
.t1-plan-notes .t1-risk { background: #fff1f6; }
.t1-risk .t1-note-icon { color: #f0447e; background: #ffe0eb; }
.shell:has(.t1-marina) { background: radial-gradient(ellipse at 8% 10%, #f5ffc6, transparent 50%), radial-gradient(ellipse at 90% 75%, #e4e1f7, transparent 75%), #f9f9fc; }
.shell:has(.t1-marina) .top-progress, .shell:has(.t1-marina) .header-actions { display: none; }
.t1-marina { width: min(1040px, calc(100% - 64px)); flex: 0 0 auto; margin: 30px auto; padding: 0; background: transparent; }
.t1-marina .t1-chat { height: clamp(560px, calc(100dvh - 150px), 900px); width: 100%; border-radius: 26px; box-shadow: 0 20px 60px #7970c818; background: #ffffffa8; }
.t1-marina .t1-chat-header { padding: 15px 20px; background: #ffffff75; }
.t1-marina .t1-chat-header strong { font-size: 14px; }
.t1-marina .t1-chat-header small { font-size: 12px; }
.t1-window-dots { display: flex; gap: 4px; }
.t1-window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #ff635d; }
.t1-window-dots i:nth-child(2) { background: #fbc344; }
.t1-window-dots i:nth-child(3) { background: #37c853; }
.t1-marina .t1-feed { padding: 22px 32px; background: linear-gradient(120deg, #ece8fb, #e7edfc); }
.t1-marina .t1-bubble { font-size: 18px; }
.t1-message--marina { display: flex; gap: 14px; align-items: flex-start; max-width: 78%; margin-bottom: 20px; }
.t1-message--marina .colleague-avatar { width: 44px; height: 44px; }
.t1-author { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; font-size: 14px; }
.t1-author strong { font-weight: 600; }
.t1-author time { color: #9194ae; font-size: 12px; }
.t1-message--marina .t1-bubble { display: inline-block; padding: 12px 15px; border-radius: 0 16px 16px; background: #fff; border: 1px solid #dcd9f0; box-shadow: 0 3px 12px #55508a0a; }
.t1-marina .t1-message--user { max-width: 55%; margin-top: -8px; margin-bottom: 20px; }
.t1-marina .t1-message--user > .t1-time { margin: 0 0 5px; }
.t1-marina .t1-message--user > .t1-bubble { padding: 14px 16px; border: 1px solid #cec5f4; background: #ddd5ff; }
.t1-marina .t1-attachment { padding: 12px; background: #fff; }
.t1-marina .t1-file-icon { width: 42px; height: 42px; background: #f6f5ff; }
.t1-marina .t1-composer { padding: 10px 24px 20px; background: transparent; min-height: 78px; }
.t1-marina .t1-composer > .button { width: 100%; font-size: 16px; font-weight: 600; }
.t1-sent-plan summary { cursor: pointer; list-style: none; }
.t1-sent-plan summary::-webkit-details-marker { display: none; }
.t1-sent-plan summary > span { display: block; margin-top: 6px; color: #6f65bb; font-size: 10px; }
.t1-sent-plan summary .t1-plan-toggle { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 8px 12px; margin-top: 9px; border: 1px solid #aa9be4; border-radius: 10px; background: #f9f7ff; color: #4b358f; font-size: 14px; font-weight: 600; }
.t1-plan-toggle b { font-size: 22px; line-height: 1; transition: transform .2s; }
.t1-sent-plan summary .t1-plan-tip { color: #594c88; font-size: 12px; }
.t1-plan-collapse, .t1-sent-plan[open] .t1-plan-expand, .t1-sent-plan[open] .t1-plan-tip { display: none; }
.t1-sent-plan[open] .t1-plan-collapse { display: inline; }
.t1-sent-plan[open] .t1-plan-toggle b { transform: rotate(180deg); }
.t1-handoff-notes { margin-top: 15px; padding-top: 12px; border-top: 1px solid #bfb2eb; font-size: 14px; line-height: 1.5; color: #453866; }
.t1-handoff-notes p { margin: 0 0 10px; }
.t1-handoff-notes p:last-child { margin-bottom: 0; }
.t1-sent-plan[open] > .t1-plan { margin-top: 12px; }
.t1-sent-plan .t1-plan-notes { grid-template-columns: 1fr; }
.t1-screen button:focus-visible, .t1-screen summary:focus-visible, .t1-screen textarea:focus-visible { outline: 3px solid #9b90ff; outline-offset: 3px; }
@keyframes t1-message-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes t1-dot { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@keyframes t1-glow { 0%, 100% { box-shadow: 0 3px 12px #5845ff15; } 50% { box-shadow: 0 4px 22px #5845ff35; } }
@keyframes t1-shine { 0%, 65% { left: -70%; } 100% { left: 140%; } }
@keyframes t1-send-pulse { 0%, 100% { box-shadow: 0 0 0 0 #7454ff00; } 50% { box-shadow: 0 0 0 6px #7454ff25, 0 5px 18px #6346ff35; } }
/* Read the full desktop conversation with page scrolling; keep the next step in reach. */
@media (min-width: 761px) {
  .t1-source .observed-chat__workspace { height: auto; overflow: visible; }
  .t1-source .t1-actions { position: sticky; bottom: 16px; z-index: 5; box-shadow: 0 -6px 22px #55418812, 0 8px 24px #55418816; }
}
@media (min-width: 1500px) {
  .t1-screen { padding: 26px; }
  .t1-workspace { padding: 0 32px; }
  .t1-source .t1-heading h1 { font-size: 30px; }
  .t1-source .t1-heading > p { font-size: 14px; }
  .t1-hint { display: flex; gap: 16px; align-items: center; position: absolute; top: 0; right: 0; padding: 15px; border-radius: 14px; border: 1px solid #edeafe; background: #f7f6ff; }
  .t1-hint-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; color: #6745ff; background: #eeebff; }
  .t1-hint strong { font-size: 12px; font-weight: 600; }
  .t1-hint ul { display: flex; gap: 15px; list-style: none; padding: 0; margin: 10px 0 0; color: #626c8b; font-size: 11px; }
  .t1-hint li::before { content: '✓'; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; border-radius: 50%; background: #2fbc73; color: #fff; }
  .t1-hint li:nth-child(2)::before { background: #527aff; }
  .t1-hint li:nth-child(3)::before { background: #8f4bff; }
  .t1-hint li:nth-child(4)::before { background: #ed4ca3; }
  .t1-marina { padding: 0; }
}
@media (max-width: 1100px) {
  .shell:has(.t1-screen) .topbar-inner { width: calc(100% - 64px); gap: 20px; }
  .shell:has(.t1-screen) .brand > span { display: none; }
  .t1-sidebar { padding: 14px 10px; }
  .t1-source-chat { grid-template-columns: 180px minmax(0, 1fr); }
  .t1-sidebar-sections > span { font-size: 12px; gap: 12px; }
  .t1-actions p { max-width: 380px; }
  .t1-workspace { padding: 0 16px; }
  .t1-workspace-inner { width: 100%; padding: 24px 16px; }
}
@media (max-width: 760px) {
  .shell:has(.t1-screen) .topbar-inner { width: calc(100% - 32px); min-height: 64px; gap: 14px; }
  .shell:has(.t1-screen) .brand img { width: 89px; }
  .shell:has(.t1-screen) .top-progress-row { font-size: 10px; }
  .shell:has(.t1-screen) .header-actions .time-pill { display: none; }
  .shell:has(.t1-screen) .reset-button { padding: 9px 12px; font-size: 10px; }
  .t1-screen { width: calc(100% - 20px); padding: 16px 12px; border-radius: 20px; margin-bottom: 10px; }
  .t1-heading { margin-bottom: 16px; }
  .t1-heading h1 { font-size: 23px; letter-spacing: -.6px; }
  .t1-heading > p { font-size: 12px; line-height: 1.5; margin-top: 8px; }
  .t1-steps { gap: 6px; margin-bottom: 16px; font-size: 10px; flex-wrap: wrap; }
  .t1-back { padding: 7px 5px 7px 0; margin-right: 3px; }
  .t1-task-badge, .t1-step-badge { padding: 8px 10px; }
  .t1-step-badge { white-space: normal; }
  .t1-source-chat { display: block; border-radius: 14px; }
  .t1-sidebar { display: none; }
  .t1-source .observed-chat__header { padding: 12px; min-height: 60px; }
  .t1-source .observed-chat__header-tools { display: none; }
  .t1-source .observed-chat__header b { font-size: 12px; }
  .t1-source .observed-chat__identity { gap: 9px; }
  .t1-source .observed-chat__identity small { font-size: 10px; }
  .t1-source .observed-chat__workspace { height: 36dvh; min-height: 240px; padding: 12px 10px; }
  .t1-source .colleague-message { gap: 8px; }
  .t1-source .colleague-avatar { width: 30px; height: 30px; }
  .t1-source .colleague-message p { font-size: 13px; }
  .t1-source .colleague-message__meta { font-size: 11px; }
  .t1-source .colleague-message__content { padding: 7px 9px; }
  .t1-source-notice { margin: 0 8px 8px; font-size: 10px; padding: 7px 9px; }
  .t1-actions { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px 12px; border-radius: 14px; }
  .t1-next-icon { display: none; }
  .t1-actions .button > svg { display: none; }
  .t1-actions strong { font-size: 17px; }
  .t1-actions p { font-size: 12px; }
  .t1-screen .t1-actions .button { grid-column: 1 / -1; width: 100%; font-size: 16px; min-height: 52px; gap: 8px; }
  .t1-screen .button { padding: 12px; min-height: 46px; font-size: 12px; }
  .t1-workspace { display: block; padding: 16px 12px 12px; }
  .t1-workspace-inner { padding: 0; width: 100%; background: transparent; box-shadow: none; }
  .t1-workspace .t1-heading { margin-bottom: 16px; }
  .t1-chat { height: calc(100dvh - 232px); min-height: 430px; border-radius: 14px; }
  .t1-chat-header { padding: 11px 12px; gap: 8px; }
  .t1-chat-header > div { gap: 9px; }
  .t1-chat-header strong { font-size: 17px; }
  .t1-chat-header small { font-size: 10px; }
  .t1-ai-icon { width: 36px; height: 36px; font-size: 15px; }
  .t1-context-badge { max-width: 94px; padding: 7px 9px; font-size: 9px; text-align: center; }
  .t1-feed { padding: 16px 10px; }
  .t1-empty h2 { max-width: 260px; font-size: 21px; }
  .t1-empty .t1-ai-icon { width: 60px; height: 60px; font-size: 26px; border-radius: 22px; margin-bottom: 16px; }
  .t1-composer { padding: 11px 10px; }
  .t1-context-chip { padding: 8px 10px; gap: 6px; font-size: 10px; }
  .t1-context-chip svg { width: 17px; height: 17px; }
  .t1-send-hint { font-size: 12px; padding: 5px 8px; }
  .t1-input-row { gap: 7px; }
  .t1-input-row textarea { height: 100px; padding: 10px; font-size: 13px; line-height: 1.6; }
  .t1-send { width: 44px; min-height: 46px; align-self: flex-end; border-radius: 12px; }
  .t1-send svg { width: 23px; height: 23px; }
  .t1-input-row--waiting > span { font-size: 11px; gap: 8px; }
  .t1-message--user { max-width: 91%; }
  .t1-message--user > .t1-bubble { padding: 10px; }
  .t1-attachment { padding: 8px; gap: 8px; }
  .t1-attachment strong { font-size: 11px; }
  .t1-attachment small { font-size: 10px; }
  .t1-file-icon { width: 27px; height: 32px; }
  .t1-file-icon svg { width: 22px; height: 22px; }
  .t1-message--ai { gap: 7px; }
  .t1-message--ai > .t1-ai-icon { width: 28px; height: 28px; font-size: 12px; }
  .t1-message--ai > .t1-bubble { padding: 11px; }
  .t1-bubble, .t1-marina .t1-bubble { font-size: 14px; }
  .t1-time { font-size: 10px; }
  .t1-processing { padding-left: 35px; font-size: 11px; }
  .t1-send-result { flex-direction: column; gap: 8px; }
  .t1-send-result > span { font-size: 10px; }
  .t1-send-result .button { width: 100%; }
  .t1-plan { padding: 9px; }
  .t1-plan h2 { font-size: 14px; letter-spacing: -.3px; }
  .t1-plan header p { font-size: 10px; }
  .t1-plan table, .t1-plan tbody { display: block; }
  .t1-plan thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .t1-plan tr { display: block; padding: 9px; border-top: 1px solid #edf0f4; }
  .t1-plan tr:first-child { border-top: 0; }
  .t1-plan td, .t1-plan td + td { display: block; padding: 2px 0; border: 0; font-size: 13px; }
  .t1-plan td:first-child { margin-bottom: 4px; font-weight: 600; }
  .t1-plan td[data-label]::before { content: attr(data-label) ': '; color: var(--t1-muted); font-size: 10px; }
  .t1-deadline { padding: 8px; font-size: 10px; }
  .t1-deadline > span { display: block; margin: 3px 0 0; }
  .t1-plan-notes { grid-template-columns: 1fr; }
  .t1-plan-notes > section { padding: 9px; gap: 7px; }
  .t1-plan-notes p { font-size: 12px; }
  .t1-note-icon { width: 22px; height: 22px; font-size: 14px; }
  .shell:has(.t1-marina) .brand > span { display: block; padding: 7px 10px; font-size: 10px; }
  .t1-marina { width: calc(100% - 20px); padding: 0; margin: 10px auto; }
  .t1-marina .t1-chat { height: calc(100dvh - 90px); min-height: 560px; border-radius: 18px; }
  .t1-marina .t1-chat-header { padding: 13px; }
  .t1-marina .t1-chat-header strong { font-size: 12px; }
  .t1-marina .t1-chat-header small { font-size: 10px; }
  .t1-marina .t1-feed { padding: 18px 12px; }
  .t1-message--marina { max-width: 95%; gap: 9px; margin-bottom: 22px; }
  .t1-message--marina .colleague-avatar { width: 32px; height: 32px; }
  .t1-author { font-size: 12px; }
  .t1-author time { font-size: 10px; }
  .t1-message--marina .t1-bubble { padding: 10px 12px; }
  .t1-marina .t1-message--user { max-width: 88%; margin-top: 0; }
  .t1-marina .t1-message--user > .t1-bubble { padding: 12px; }
  .t1-marina .t1-attachment { padding: 10px; }
  .t1-marina .t1-file-icon { width: 32px; height: 36px; }
  .t1-marina .t1-composer { padding: 10px 12px 14px; min-height: 70px; }
  .t1-marina .t1-composer > .button { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .t1-screen *, .t1-screen *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
