:root {
    --tla-bg: #071229;
    --tla-panel: rgba(9, 21, 48, 0.84);
    --tla-panel-2: rgba(13, 29, 63, 0.78);
    --tla-border: rgba(129, 162, 255, 0.24);
    --tla-border-strong: rgba(83, 228, 238, 0.42);
    --tla-text: #f3f7ff;
    --tla-muted: #aebad8;
    --tla-cyan: #55f4f0;
    --tla-blue: #42a5ff;
    --tla-purple: #8b4dff;
    --tla-purple-2: #b05cff;
    --tla-green: #32f0c1;
    --tla-orange: #ff9b50;
    --tla-red: #ff644d;
    --tla-radius: 22px;
    --tla-shadow: 0 22px 80px rgba(0,0,0,.32);
}

.tla, .tla * { box-sizing: border-box; }

.tla {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    color: var(--tla-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tla__hero {
    padding: clamp(1.25rem, 2.7vw, 2.35rem) clamp(1rem, 3vw, 2.2rem) 1rem;
    border: 1px solid var(--tla-border);
    border-bottom: 0;
    border-radius: var(--tla-radius) var(--tla-radius) 0 0;
    background:
        radial-gradient(circle at 16% 0%, rgba(80, 207, 255, .18), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(133, 77, 255, .18), transparent 28%),
        linear-gradient(135deg, rgba(8, 22, 50, .95), rgba(5, 12, 31, .96));
}

.tla__kicker {
    color: var(--tla-cyan);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 950;
    font-size: .78rem;
    margin-bottom: .7rem;
}

.tla__title {
    margin: 0;
    color: #f6f8ff;
    font-size: clamp(2rem, 4.1vw, 3.55rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 950;
}

.tla__subtitle {
    max-width: 1050px;
    margin: .9rem 0 0;
    color: #d5ddf4;
    font-size: clamp(.96rem, 1.18vw, 1.13rem);
    line-height: 1.55;
}

.tla__privacy-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(85, 244, 240, .28);
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(21, 109, 124, .28), rgba(13, 39, 73, .53));
    box-shadow: inset 0 0 26px rgba(67, 232, 229, .05);
}

.tla__privacy-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(85, 244, 240, .34);
    background: rgba(85, 244, 240, .08);
    box-shadow: 0 0 24px rgba(85, 244, 240, .14);
}

.tla__privacy-banner strong {
    display: block;
    color: var(--tla-cyan);
    font-weight: 900;
    font-size: 1.05rem;
}

.tla__privacy-banner p {
    margin: .18rem 0 0;
    color: #dce6fb;
    line-height: 1.45;
}

.tla__how-panel {
    border-left: 1px solid var(--tla-border);
    border-right: 1px solid var(--tla-border);
    border-top: 0;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(5, 13, 32, .9), rgba(5, 12, 29, .82));
}

.tla__how-title {
    font-size: 1rem;
    font-weight: 900;
    color: #f5f8ff;
    margin-bottom: .85rem;
}

.tla__how-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .7rem;
}

.tla__how-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: .7rem;
    align-items: start;
    padding: .9rem;
    border: 1px solid rgba(129, 162, 255, .18);
    border-radius: 16px;
    background: rgba(8, 18, 42, .7);
}

.tla__how-step-num {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #062038;
    font-weight: 950;
    background: linear-gradient(135deg, #55f4f0, #6ba0ff);
}

.tla__how-step strong {
    display: block;
    color: #f7fbff;
    font-size: .86rem;
    line-height: 1.25;
    margin-bottom: .25rem;
}

.tla__how-step p {
    margin: 0;
    color: #b9c6e8;
    font-size: .78rem;
    line-height: 1.45;
}

.tla__mode-tabs {
    display: flex;
    gap: .55rem;
    padding: 1rem 1rem 0;
    border-left: 1px solid var(--tla-border);
    border-right: 1px solid var(--tla-border);
    background: linear-gradient(180deg, rgba(5, 13, 32, .9), rgba(5, 12, 29, .78));
}

.tla__mode {
    border: 1px solid rgba(129, 162, 255, .22);
    border-radius: 999px;
    background: rgba(10, 22, 48, .9);
    color: #dfe8ff;
    padding: .55rem 1.25rem;
    font-weight: 850;
    cursor: pointer;
}

.tla__mode.is-active {
    border-color: rgba(85, 244, 240, .62);
    background: linear-gradient(135deg, rgba(85, 244, 240, .20), rgba(139, 77, 255, .35));
    color: white;
    box-shadow: 0 0 0 3px rgba(85, 244, 240, .06), 0 10px 30px rgba(139, 77, 255, .17);
}

.tla__workspace {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--tla-border);
    border-top: 0;
    border-radius: 0 0 0 0;
    background: linear-gradient(180deg, rgba(5, 13, 32, .9), rgba(5, 12, 29, .78));
    box-shadow: var(--tla-shadow);
}

.tla__bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 1rem;
    padding: 0 1rem 1rem;
    border-left: 1px solid var(--tla-border);
    border-right: 1px solid var(--tla-border);
    border-bottom: 1px solid var(--tla-border);
    border-radius: 0 0 var(--tla-radius) var(--tla-radius);
    background: linear-gradient(180deg, rgba(5, 13, 32, .9), rgba(5, 12, 29, .78));
    box-shadow: var(--tla-shadow);
}

.tla__left,
.tla__right {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
}

.tla__panel {
    border: 1px solid var(--tla-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 0%, rgba(66, 165, 255, .10), transparent 28%),
        linear-gradient(180deg, rgba(11, 26, 57, .82), rgba(6, 15, 35, .84));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    padding: 1.05rem;
}

.tla__panel-head {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.tla__panel-head > span {
    display: inline-grid;
    place-items: center;
    min-width: 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    color: #a9edff;
    font-weight: 950;
    background: radial-gradient(circle at 30% 20%, rgba(85, 244, 240, .34), rgba(35, 93, 180, .42));
    border: 1px solid rgba(85, 244, 240, .24);
}

.tla__panel-head h2 {
    margin: 0;
    color: #f6f8ff;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 900;
}

.tla__accordion { padding: 0; overflow: hidden; }

.tla__accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.05rem;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.tla__accordion-toggle i {
    font-style: normal;
    color: #dce7ff;
    transition: transform .2s ease;
}

.tla__accordion.is-open .tla__accordion-toggle i { transform: rotate(180deg); }

.tla__accordion-content { padding: 0 1.05rem 1.05rem; }

.tla__accordion:not(.is-open) .tla__accordion-content { display: none; }

.tla__tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

.tla__tile-grid--actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tla__tile {
    position: relative;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .45rem;
    padding: .82rem .55rem;
    border: 1px solid rgba(129, 162, 255, .25);
    border-radius: 14px;
    background: rgba(9, 20, 45, .78);
    color: #eef4ff;
    text-align: center;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.tla__tile:hover {
    transform: translateY(-1px);
    border-color: rgba(85, 244, 240, .5);
}

.tla__tile > span {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .75rem;
    color: #b5c8ff;
    font-size: 1.1rem;
    background: rgba(66, 165, 255, .08);
    border: 1px solid rgba(129, 162, 255, .20);
}

.tla__tile strong {
    color: #f6f8ff;
    font-size: .8rem;
    line-height: 1.18;
    font-weight: 850;
}

.tla__tile.is-selected {
    border-color: rgba(176, 92, 255, .86);
    background: linear-gradient(135deg, rgba(139, 77, 255, .32), rgba(10, 22, 48, .86));
    box-shadow: 0 0 0 3px rgba(176, 92, 255, .08), 0 14px 34px rgba(0,0,0,.18);
}

.tla__tile.is-selected::after {
    content: "✓";
    position: absolute;
    top: .45rem;
    right: .45rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #7ba4ff;
    color: #06132c;
    font-size: .75rem;
    font-weight: 950;
}

.tla__advanced-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: .8rem;
}

.tla__advanced label,
.tla__full-label {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    color: #cbd7f7;
    font-size: .83rem;
    font-weight: 850;
}

.tla__advanced select,
.tla__advanced textarea {
    width: 100%;
    border: 1px solid var(--tla-border);
    border-radius: 12px;
    background: rgba(6, 16, 38, .95);
    color: #f3f7ff;
    padding: .8rem;
    font: inherit;
    outline: none;
}

.tla__advanced textarea {
    min-height: 95px;
    resize: vertical;
}

.tla__prompt {
    width: 100%;
    min-height: 260px;
    border: 1px solid rgba(129, 162, 255, .26);
    border-radius: 14px;
    background: rgba(5, 14, 35, .92);
    color: #f4f7ff;
    padding: 1rem;
    font: inherit;
    line-height: 1.55;
    resize: vertical;
    outline: none;
}

.tla__prompt:focus {
    border-color: rgba(85, 244, 240, .42);
    box-shadow: 0 0 0 3px rgba(85, 244, 240, .06);
}

.tla__prompt-count {
    margin-top: .35rem;
    text-align: right;
    color: #9eaccd;
    font-size: .75rem;
}

.tla__button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .85rem;
}

.tla__btn,
.tla__handoff-card {
    border: 1px solid rgba(129, 162, 255, .25);
    border-radius: 12px;
    background: rgba(14, 29, 63, .92);
    color: #dce7ff;
    padding: .78rem 1rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform .16s ease, filter .16s ease, border-color .16s ease;
}

.tla__btn:hover,
.tla__handoff-card:hover,
.tla__example:hover {
    transform: translateY(-1px);
    border-color: rgba(85, 244, 240, .44);
}

.tla__btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--tla-purple-2), #5d6aff);
    color: white;
    box-shadow: 0 12px 30px rgba(104,84,255,.25);
}

.tla__handoff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.tla__handoff-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    min-height: 96px;
    text-align: left;
}

.tla__handoff-card strong {
    color: #fff;
    font-size: .94rem;
}

.tla__handoff-card span {
    color: #b9c6e8;
    font-size: .8rem;
    line-height: 1.35;
}

.tla__handoff-note {
    margin-top: .8rem;
    border: 1px solid rgba(85, 244, 240, .24);
    border-radius: 12px;
    background: rgba(85, 244, 240, .06);
    padding: .85rem .95rem;
    color: #dff8ff;
    font-size: .85rem;
    line-height: 1.5;
}

.tla__handoff-note strong { color: var(--tla-cyan); }

.tla__notice {
    min-height: 1.2rem;
    margin-top: .7rem;
    color: var(--tla-green);
    font-size: .82rem;
    line-height: 1.4;
}

.tla__example-list { display: grid; gap: .55rem; }

.tla__example {
    display: grid;
    grid-template-columns: minmax(130px, .65fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    width: 100%;
    border: 1px solid rgba(129, 162, 255, .20);
    border-radius: 12px;
    background: rgba(8, 18, 42, .86);
    color: #eaf1ff;
    padding: .72rem .85rem;
    text-align: left;
    cursor: pointer;
}

.tla__example strong { font-size: .85rem; }
.tla__example em { color: #aebad8; font-size: .78rem; font-style: normal; line-height: 1.35; }
.tla__example span {
    color: #dce7ff;
    border: 1px solid rgba(129, 162, 255, .25);
    border-radius: 9px;
    padding: .4rem .55rem;
    font-size: .75rem;
    font-weight: 850;
}

.tla__disclaimer {
    border-color: rgba(255, 100, 77, .64);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 100, 77, .16), transparent 34%),
        linear-gradient(180deg, rgba(45, 21, 28, .82), rgba(13, 18, 42, .88));
}

.tla__disclaimer .tla__panel-head > span {
    color: #ffc0ad;
    background: rgba(255, 100, 77, .15);
    border-color: rgba(255, 100, 77, .42);
}

.tla__disclaimer strong {
    display: block;
    color: #ffd38b;
    font-size: 1.07rem;
    line-height: 1.35;
    margin-bottom: .6rem;
}

.tla__disclaimer p {
    color: #f0d5cf;
    line-height: 1.55;
    margin: 0 0 .85rem;
}

.tla__disclaimer div:not(.tla__panel-head) {
    border: 1px solid rgba(255, 155, 80, .5);
    background: rgba(255, 100, 77, .14);
    border-radius: 12px;
    color: #ffd0a8;
    padding: .8rem .9rem;
    font-weight: 850;
    line-height: 1.35;
}

.tla__privacy-panel ul,
.tla__privacy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .7rem;
}

.tla__privacy-list li {
    position: relative;
    padding-left: 1.8rem;
    color: #d6e1ff;
    font-size: .86rem;
    line-height: 1.4;
}

.tla__privacy-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .05rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #06132c;
    background: #32f0c1;
    font-size: .72rem;
    font-weight: 950;
}

/* Rich right-rail guide rendered by the desktop theme when available. */
.tl-guide .tla-guide { display: grid; gap: .9rem; }
.tl-guide .tla-guide-card {
    border: 1px solid rgba(129, 162, 255, .20);
    border-radius: 16px;
    background: rgba(8, 18, 42, .66);
    padding: 1rem;
}
.tl-guide .tla-guide-card h2 {
    margin: 0 0 .65rem;
    font-size: 1rem;
    color: #f6f8ff;
}
.tl-guide .tla-guide-intro {
    margin: 0 0 .8rem;
    color: #aebad8;
    font-size: .79rem;
    line-height: 1.45;
}
.tl-guide .tla-guide-card ol,
.tl-guide .tla-guide-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .7rem;
}
.tl-guide .tla-guide-card li {
    position: relative;
    padding-left: 1.8rem;
    color: #d6e1ff;
    font-size: .8rem;
    line-height: 1.4;
}
.tl-guide .tla-guide-card li strong { display:block; color:#fff; font-size:.81rem; margin-bottom:.12rem; }
.tl-guide .tla-guide-card li span { display:block; color:#aebad8; font-size:.77rem; line-height:1.4; }
.tl-guide .tla-guide-card ol { counter-reset: tla-guide-step; }
.tl-guide .tla-guide-card ol li::before {
    counter-increment: tla-guide-step;
    content: counter(tla-guide-step);
    position: absolute;
    left: 0;
    top: -.05rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(52,217,255,.1);
    border: 1px solid rgba(52,217,255,.35);
    color: #69ebff;
    font-size: .65rem;
    font-weight: 950;
}
.tl-guide .tla-guide-card ul li::before {
    content: "•";
    position: absolute;
    left: .35rem;
    color: #d6e1ff;
}
.tl-guide .tla-guide-checks li::before {
    content: "✓" !important;
    left: 0 !important;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #06132c !important;
    background: #32f0c1;
    font-size: .72rem;
    font-weight: 950;
}
.tl-guide .tla-guide-card--warning {
    border-color: rgba(255, 100, 77, .65);
    background: linear-gradient(180deg, rgba(54, 23, 31, .82), rgba(13, 18, 42, .84));
}
.tl-guide .tla-guide-card--warning h2 { color: #ffb299; }
.tl-guide .tla-guide-card--warning strong {
    display: block;
    color: #ffd38b;
    font-size: .95rem;
    line-height: 1.32;
    margin-bottom: .55rem;
}
.tl-guide .tla-guide-card--warning p {
    margin: 0 0 .7rem;
    color: #f0d5cf;
    font-size: .8rem;
    line-height: 1.45;
}
.tl-guide .tla-guide-alert {
    border: 1px solid rgba(255, 155, 80, .5);
    background: rgba(255, 100, 77, .14);
    border-radius: 12px;
    color: #ffd0a8;
    padding: .75rem;
    font-size: .8rem;
    font-weight: 850;
    line-height: 1.35;
}

@media (max-width: 1320px) {
    .tla__how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
    .tla__workspace,
    .tla__bottom-grid { grid-template-columns: 1fr; }
    .tla__tile-grid,
    .tla__tile-grid--actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tla__how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .tla__privacy-banner { align-items: flex-start; }
    .tla__advanced-grid,
    .tla__handoff-grid { grid-template-columns: 1fr; }
    .tla__example { grid-template-columns: 1fr; }
    .tla__accordion-toggle { padding: .95rem; }
    .tla__accordion-content { padding: 0 .95rem .95rem; }
    .tla__how-steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .tla__mode-tabs { flex-wrap: wrap; }
    .tla__tile-grid,
    .tla__tile-grid--actions { grid-template-columns: 1fr; }
    .tla__button-row { flex-direction: column; }
    .tla__btn { width: 100%; }
}
