/* Shared style of the T Booking step-by-step guides (install, Android, iPhone, roles). */
:root {
    --primary: #2563eb; --secondary: #7c3aed; --ink: #0f172a; --text: #334155; --muted: #64748b;
    --line: #e2e8f0; --bg: #ffffff; --soft: #f8fafc; --code: #0f172a; --code-text: #e2e8f0;
    --ok-bg: #ecfdf5; --ok-line: #6ee7b7; --ok-text: #065f46;
    --warn-bg: #fffbeb; --warn-line: #fcd34d; --warn-text: #92400e;
    --info-bg: #eff6ff; --info-line: #93c5fd; --info-text: #1e3a8a;
}
@media (prefers-color-scheme: dark) {
    :root { --ink: #f1f5f9; --text: #cbd5e1; --muted: #94a3b8; --line: #1e293b; --bg: #0b1120; --soft: #111827;
        --ok-bg: #052e22; --ok-line: #047857; --ok-text: #a7f3d0;
        --warn-bg: #2a1f05; --warn-line: #92400e; --warn-text: #fde68a; --info-bg: #0c1a3a; --info-line: #1e40af; --info-text: #bfdbfe; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--primary); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; }
img { max-width: 100%; height: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-word; }

/* Header */
.top { background: linear-gradient(120deg, #1d4ed8, #6d28d9 60%, #312e81); color: #fff; }
.top .in { max-width: 1040px; margin: 0 auto; padding: 18px 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; opacity: .75; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-top: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 10px 14px; border-radius: 12px 12px 0 0; opacity: .85; }
.tabs a:hover { opacity: 1; background: rgba(255,255,255,.1); }
.tabs a.on { background: var(--bg); color: var(--primary); opacity: 1; }
.hero { max-width: 1040px; margin: 0 auto; padding: 34px 16px 10px; }
.hero h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 8px; letter-spacing: -.02em; }
.hero p { margin: 0; font-size: 18px; color: var(--muted); max-width: 760px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.meta span { background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* Layout */
main { max-width: 1040px; margin: 0 auto; padding: 10px 16px 60px; }
.toc { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 20px 0 30px; }
.toc b { color: var(--ink); }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2 260px; }
.toc li { margin: 2px 0; }
section { scroll-margin-top: 20px; padding-top: 10px; }
section > h2 { font-size: 26px; margin: 38px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
section h3 { font-size: 19px; margin: 26px 0 8px; }

/* Numbered steps */
.steps { list-style: none; padding: 0; margin: 16px 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 22px 54px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 6px 14px -6px rgba(37,99,235,.6); }
.steps > li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li > b:first-child { color: var(--ink); font-size: 17px; }

/* Callouts */
.note { border-radius: 14px; padding: 12px 16px; margin: 14px 0; border: 1px solid var(--info-line); background: var(--info-bg); color: var(--info-text); }
.note.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-text); }
.note.ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-text); }
.note p { margin: 0; } .note p + p { margin-top: 6px; }
.note code { background: transparent; }

/* Code with copy button */
.code { position: relative; margin: 10px 0 16px; }
.code pre { background: var(--code); color: var(--code-text); padding: 14px 16px; padding-right: 76px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 0; }
.code pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; word-break: normal; }
.code button { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 8px; padding: 5px 10px; font: 600 12.5px system-ui, sans-serif; cursor: pointer; background: rgba(255,255,255,.14); color: #fff; }
.code button.done { background: #16a34a; }

/* Figures */
figure { margin: 16px 0 22px; }
figure img { display: block; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -26px rgba(15,23,42,.45); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 16px 0 22px; }
.phones figure { margin: 0; }
.phones img { border-radius: 22px; border: 6px solid #111827; box-shadow: 0 16px 30px -18px rgba(15,23,42,.6); }

/* Tables and cards */
.table-wrap { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--ink); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
td.y { color: #16a34a; font-weight: 800; text-align: center; } td.n { color: var(--muted); text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 14px 0 20px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--bg); }
.card h4 { margin: 0 0 6px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.card p, .card ul { margin: 0; font-size: 15px; }
.card ul { padding-left: 18px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 10px; background: var(--info-bg); color: var(--info-text); border: 1px solid var(--info-line); }
.tree { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; white-space: pre; overflow-x: auto; line-height: 1.65; }
.tree b { color: var(--primary); }
kbd { font: 600 13px system-ui, sans-serif; background: var(--soft); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--ink); }
.path { font-weight: 600; color: var(--ink); }
footer { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 16px; border-top: 1px solid var(--line); }
.next { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.next a { flex: 1 1 220px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; }
.next a small { display: block; color: var(--muted); }
.next a b { color: var(--ink); }
@media print { .top .tabs, .code button, .next { display: none; } }
