.tanco-page-header nav a[aria-current="page"] { color: var(--red); }
.tanco-page-header > .nav-cta { justify-self: end; }
.tanco-page { min-height: calc(100svh - 72px); padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 64px) clamp(52px, 8vw, 110px); }
.tanco-chat-shell { width: min(1160px, 100%); min-height: min(740px, calc(100svh - 142px)); display: grid; grid-template-columns: minmax(205px, 252px) minmax(0, 1fr); margin: 0 auto; border: 1px solid var(--line); border-top: 2px solid var(--red); background: var(--ink); box-shadow: 13px 13px 0 var(--red-dark); }
.tanco-sidebar { display: flex; flex-direction: column; min-width: 0; padding: 18px 0 0; border-right: 1px solid var(--line); background: rgba(20, 19, 18, .64); }
.new-conversation { min-height: 38px; margin: 0 16px; padding: 8px 11px; border: 1px solid var(--red); border-radius: 0; background: var(--red); color: #fff; cursor: pointer; font-size: .72rem; font-weight: 700; text-align: left; }
.new-conversation:hover { background: var(--red-dark); }
.tanco-sidebar h2 { margin: 28px 16px 10px; color: var(--muted); font: 700 .63rem var(--mono); letter-spacing: .1em; }
.conversation-list { display: grid; align-content: start; overflow-y: auto; max-height: calc(min(740px, 100svh - 142px) - 110px); margin: 0; padding: 0; list-style: none; }
.conversation-list button { width: 100%; min-height: 64px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 0; background: transparent; color: var(--paper); cursor: pointer; text-align: left; }
.conversation-list button:hover, .conversation-list button.is-active { border-left-color: var(--red); background: var(--ink-2); }
.conversation-list b, .conversation-list span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-list b { font-size: .76rem; font-weight: 600; }.conversation-list span { margin-top: 5px; color: var(--muted); font: .6rem var(--mono); }
.tanco-conversation { min-width: 0; display: grid; grid-template-rows: auto auto minmax(280px, 1fr) auto; }
.tanco-chat-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 24px; border-bottom: 1px solid var(--line); }
.tanco-identity { display: flex; align-items: center; gap: 13px; }.tanco-avatar { position: relative; width: 58px; height: 43.5px; flex: 0 0 58px; display: block; }
.tanco-frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; image-rendering: pixelated; opacity: 0; }.tanco-frame:nth-child(1) { animation: tanco-stage-one 3.2s steps(1,end) infinite; }.tanco-frame:nth-child(2) { animation: tanco-stage-two 3.2s steps(1,end) infinite; }.tanco-frame:nth-child(3) { animation: tanco-stage-three 3.2s steps(1,end) infinite; }
.tanco-identity p { margin: 0; color: var(--red); font: 700 .62rem var(--mono); letter-spacing: .14em; }.tanco-identity h1 { margin: 5px 0 0; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1; }
.tanco-contact { margin: 0; color: var(--muted); font-size: .72rem; white-space: nowrap; }.tanco-contact a { color: var(--paper-2); }.tanco-contact a:hover { color: var(--red); }
.tanco-intro-copy { margin: 0; padding: 15px 24px; border-bottom: 1px solid var(--line); color: var(--paper-2); font-family: var(--serif); font-size: clamp(.9rem, 1.25vw, 1.04rem); line-height: 1.6; }
.conversation-scroll { display: grid; align-content: start; gap: 16px; overflow-y: auto; padding: clamp(22px, 4vw, 42px); background-image: linear-gradient(var(--ink-2) 1px, transparent 1px), linear-gradient(90deg, var(--ink-2) 1px, transparent 1px); background-size: 48px 48px; }
.tanco-page-message { display: flex; gap: 10px; align-items: flex-end; max-width: min(78%, 700px); margin: 0; }.tanco-page-message.user { justify-self: end; align-self: end; }
.tanco-message-avatar { position: relative; width: 34px; height: 25.5px; flex: 0 0 34px; margin-bottom: 4px; }.tanco-message-avatar .tanco-frame { animation-duration: 3.2s; }
.tanco-message-bubble { min-width: 0; padding: 12px 14px; line-height: 1.72; white-space: pre-wrap; }.tanco-page-message.assistant .tanco-message-bubble { border: 1px solid var(--line); border-left: 3px solid var(--red); background: rgba(25, 23, 21, .96); color: var(--paper); }.tanco-page-message.user .tanco-message-bubble { background: var(--red); color: #fff; }
.tanco-page-message-meta { display: block; margin-bottom: 5px; color: var(--muted); font: .58rem var(--mono); letter-spacing: .08em; }.tanco-page-message.user .tanco-page-message-meta { color: #f7cbc5; }.tanco-message-bubble p { margin: 0; font-size: .86rem; }
.tanco-page-form { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--ink-2); }.tanco-page-form textarea { width: 100%; min-height: 92px; padding: 12px; border: 1px solid var(--line); border-radius: 0; background: var(--ink); color: var(--paper); font: .83rem/1.65 var(--sans); resize: vertical; }
.tanco-form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 10px; }.tanco-form-bottom > span { color: var(--muted); font: .63rem var(--mono); }.tanco-page-send { min-width: 104px; min-height: 37px; display: inline-flex; align-items: center; justify-content: space-between; gap: 15px; padding: 7px 10px 7px 13px; border: 1px solid var(--red); border-radius: 0; background: var(--red); color: #fff; cursor: pointer; font-size: .74rem; font-weight: 700; }.tanco-page-send:hover { background: var(--red-dark); }.tanco-page-send:disabled { opacity: .6; cursor: wait; }
@media (max-width: 760px) { .tanco-page { padding: 18px 12px 42px; }.tanco-chat-shell { min-height: calc(100svh - 88px); grid-template-columns: 1fr; box-shadow: 7px 7px 0 var(--red-dark); }.tanco-sidebar { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }.new-conversation { margin: 0; }.tanco-sidebar h2 { margin: 0; }.conversation-list { grid-column: 1 / -1; grid-auto-flow: column; grid-auto-columns: minmax(160px, 72%); max-height: none; overflow-x: auto; overflow-y: hidden; border-top: 1px solid var(--line); }.conversation-list button { min-height: 58px; border-left: 0; border-bottom: 0; border-right: 1px solid var(--line); }.conversation-list button.is-active { border-left: 0; border-bottom: 3px solid var(--red); }.tanco-chat-head { align-items: flex-start; padding: 16px; }.tanco-avatar { width: 50px; height: 37.5px; flex-basis: 50px; }.tanco-contact { padding-top: 4px; white-space: normal; text-align: right; }.tanco-intro-copy { padding: 14px 16px; }.conversation-scroll { min-height: 270px; padding: 18px; }.tanco-page-message { max-width: 94%; }.tanco-page-form { padding: 14px; }.tanco-form-bottom { align-items: flex-end; }.tanco-form-bottom > span { max-width: 165px; line-height: 1.45; } }
@media (max-width: 420px) { .tanco-page { padding-inline: 8px; }.tanco-chat-shell { min-height: calc(100dvh - 82px); box-shadow: 5px 5px 0 var(--red-dark); }.tanco-sidebar { grid-template-columns: 1fr; gap: 8px; }.new-conversation { min-height: 44px; }.tanco-sidebar h2 { display: none; }.conversation-list { grid-auto-columns: minmax(142px,82%); }.tanco-chat-head { gap: 12px; padding: 14px; }.tanco-identity { gap: 9px; }.tanco-avatar { width: 42px; height: 31.5px; flex-basis: 42px; }.tanco-identity h1 { font-size: 1.18rem; }.tanco-contact { max-width: 112px; font-size: .65rem; }.tanco-intro-copy { font-size: .88rem; }.conversation-scroll { min-height: 240px; padding: 14px; }.tanco-page-message { max-width: 98%; gap: 7px; }.tanco-message-bubble { padding: 10px 11px; }.tanco-page-form { padding: 12px; }.tanco-page-form textarea { min-height: 84px; }.tanco-form-bottom > span { max-width: 138px; font-size: .57rem; }.tanco-page-send { min-width: 88px; min-height: 42px; } }
@media (prefers-reduced-motion: reduce) { .tanco-frame { animation: none !important; }.tanco-frame:nth-child(1), .tanco-frame:nth-child(2) { opacity: 0; }.tanco-frame:nth-child(3) { opacity: 1; } }
