﻿:root {
  --ta-accent: #ff8541;
  --ta-accent-dark: #f79009;
  --ta-green: #17b26a;
  --ta-ink: #1a2c38;
  --ta-ink-2: #0d212e;
  --ta-panel: #223647;
  --ta-card: #223647;
  --ta-wash: #2a4152;
  --ta-page: #16303f;
  --ta-text: #e9eef2;
  --ta-muted: #9db1c0;
  --ta-line: #ffffff14;
  --ta-star: #ffc531;
  --ta-radius: 10px;
  --ta-shadow: 0 2px 10px rgba(4, 12, 18, .35);
}
html[data-theme="light"] {
  --ta-panel: #ffffff;
  --ta-card: #ffffff;
  --ta-wash: #eef3f7;
  --ta-page: #eef3f7;
  --ta-ink-2: #14303e;
  --ta-text: #2c3a46;
  --ta-muted: #67788a;
  --ta-line: #dfe6ec;
  --ta-shadow: 0 2px 8px rgba(23, 37, 48, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  font-family: 'Segoe UI', 'Nunito Sans', Arial, sans-serif;
  font-size: 13.5px;
  color: var(--ta-text);
  background: var(--ta-page);
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: var(--ta-accent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; color: var(--ta-text); }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
.ta-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; }

.ta-shell { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 12px; }

/* ---------- Header ---------- */
.ta-header {
  position: sticky; top: 0; z-index: 900;
  background: linear-gradient(180deg, #1a2c38 0%, #17293a 100%);
  border-bottom: 2px solid var(--ta-accent);
  box-shadow: 0 3px 12px rgba(4, 12, 18, .4);
}
html[data-theme="light"] .ta-header { background: linear-gradient(180deg, #14303e 0%, #183645 100%); }
.ta-header-row { display: flex; align-items: center; gap: 16px; height: 62px; }
.ta-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .4px; white-space: nowrap; }
html[data-theme="light"] .ta-brand { color: #fff; }
.ta-brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(160deg, #ff9d66 0%, #f76b1c 100%);
  color: #1a2c38; font-size: 15px; font-weight: 900;
  box-shadow: 0 2px 8px rgba(255, 133, 65, .45);
}
.ta-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.ta-nav a {
  color: #d7e2ea; font-weight: 700; font-size: 13px;
  padding: 7px 14px; border-radius: 18px; transition: .2s;
}
.ta-nav a:hover { color: #fff; background: #ffffff14; }
.ta-nav a.is-current { color: #1a2c38; background: linear-gradient(160deg, #ffa066, #ff7f2a); box-shadow: 0 2px 8px rgba(255, 133, 65, .4); }
.ta-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 20px; font-weight: 800; font-size: 13px;
  border: 0; transition: .2s; color: #fff;
}
.ta-btn-ghost { background: #ffffff14; border: 1px solid #ffffff2e; color: #eaf1f6; }
.ta-btn-ghost:hover { background: #ffffff26; }
.ta-btn-accent { background: linear-gradient(160deg, #ffa066, #f76b1c); box-shadow: 0 2px 10px rgba(247, 107, 28, .45); }
.ta-btn-accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ta-menu { display: none; background: none; border: 0; color: #fff; width: 40px; height: 40px; font-size: 22px; }
.ta-mode {
  width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center;
  background: #ffffff14; border: 1px solid #ffffff2e; color: #ffd379; font-size: 15px; transition: .2s;
}
.ta-mode:hover { background: #ffffff26; }
html[data-theme="light"] .ta-mode { color: #ffb347; }

/* ---------- Hero ---------- */
.ta-hero {
  padding: 34px 0 30px; text-align: center;
  background:
    radial-gradient(900px 260px at 50% -60px, rgba(255, 133, 65, .22), transparent 72%),
    var(--ta-ink);
  border-bottom: 1px solid var(--ta-line);
  color: #fff;
}
html[data-theme="light"] .ta-hero { background: radial-gradient(900px 260px at 50% -60px, rgba(255, 133, 65, .16), transparent 72%), #14303e; color: #fff; }
.ta-hero h1 { font-size: 34px; font-weight: 900; color: #fff; }
.ta-hero h1 em { font-style: normal; background: linear-gradient(179deg, #ffe8b8 8%, #ffb31a 96%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ta-hero p { margin: 8px auto 20px; max-width: 640px; color: #c7d5df; font-size: 14px; }
.ta-search {
  display: flex; max-width: 520px; margin: 0 auto; background: #fff;
  border-radius: 24px; overflow: hidden; box-shadow: 0 4px 18px rgba(6, 14, 20, .35);
}
.ta-search input { flex: 1; border: 0; outline: 0; padding: 12px 18px; font-size: 14px; color: #233; background: #fff; }
.ta-search button { border: 0; padding: 0 22px; background: linear-gradient(160deg, #ffa066, #f76b1c); color: #fff; font-weight: 800; }

/* ---------- Frame ---------- */
.ta-frame { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; padding: 24px 0 40px; align-items: start; }
.ta-catbar ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-bottom: 18px; }
.ta-catbar ul::-webkit-scrollbar { display: none; }
.ta-catbar a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 13px;
  background: var(--ta-card); color: var(--ta-text); border: 1px solid var(--ta-line);
  transition: .2s; box-shadow: var(--ta-shadow);
}
.ta-catbar a:hover { border-color: var(--ta-accent); }
.ta-catbar a.is-active { background: linear-gradient(160deg, #ffa066, #ff7f2a); color: #1a2c38; border-color: transparent; }

/* ---------- Sections ---------- */
.ta-section { margin-bottom: 26px; }
.ta-sec-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--ta-line);
}
.ta-sec-head h2 { font-size: 19px; font-weight: 800; }
.ta-sec-head h2::before { content: ''; display: inline-block; width: 5px; height: 18px; margin-right: 9px; border-radius: 3px; background: linear-gradient(180deg, #ffba7a, #f76b1c); vertical-align: -3px; }
.ta-sec-head .ta-count { color: var(--ta-muted); font-size: 12px; font-weight: 700; }
.ta-sec-head .ta-more { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--ta-accent); text-transform: uppercase; letter-spacing: .5px; }

/* rows (latest + category) */
.ta-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ta-frame, .ta-primary, .ta-side { min-width: 0; }
.ta-rows > .ta-row { min-width: 0; overflow: hidden; }
.ta-t { max-width: 100%; }
.ta-row {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  background: var(--ta-card); border: 1px solid var(--ta-line);
  border-radius: var(--ta-radius); box-shadow: var(--ta-shadow); transition: .2s;
}
.ta-row:hover { transform: translateY(-2px); border-color: #ff854166; }
.ta-row .ta-ic { position: relative; flex: none; width: 66px; height: 66px; border-radius: 14px; overflow: hidden; background: var(--ta-wash); }
.ta-row .ta-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ta-row > a { min-width: 0; flex: 1 1 auto; }
.ta-row .ta-t { font-weight: 800; color: var(--ta-text); font-size: 13.5px; line-height: 1.35; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a:hover .ta-t { color: var(--ta-accent); }
.ta-row .ta-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--ta-muted); font-size: 11.5px; }
.ta-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.ta-badge-new { background: #d7270f; color: #fff; }
.ta-badge-upd { background: var(--ta-green); color: #1a2c38; }
.ta-row .ta-ver { color: var(--ta-accent); font-weight: 700; font-size: 11.5px; }

/* trending strip */
.ta-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: #ff854166 transparent; max-width: 100%; }
.ta-strip > .ta-strip-card { flex: none; }
.ta-strip::-webkit-scrollbar { height: 6px; }
.ta-strip::-webkit-scrollbar-thumb { border-radius: 6px; background: #ff85416b; }
.ta-strip::-webkit-scrollbar-track { background: transparent; }
.ta-strip-card {
  flex: none; width: 150px; text-align: center; padding: 14px 10px 12px;
  background: linear-gradient(180deg, var(--ta-card) 0%, var(--ta-card) 100%);
  border: 1px solid var(--ta-line); border-radius: var(--ta-radius); box-shadow: var(--ta-shadow); transition: .2s;
}
.ta-strip-card:hover { transform: translateY(-3px); border-color: #ff854188; }
.ta-strip-card .ta-ic { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 20px; overflow: hidden; background: var(--ta-wash); box-shadow: 0 4px 14px rgba(4, 12, 18, .35); }
.ta-strip-card .ta-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ta-strip-card .ta-t { font-weight: 800; font-size: 12.5px; display: block; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ta-text); }
.ta-strip-card .ta-ver { color: var(--ta-muted); font-size: 11px; }

/* ---------- Sidebar ---------- */
.ta-side { display: flex; flex-direction: column; gap: 18px; }
.ta-panelbox { background: var(--ta-card); border: 1px solid var(--ta-line); border-radius: var(--ta-radius); padding: 16px; box-shadow: var(--ta-shadow); }
.ta-panelbox h2 { font-size: 15px; font-weight: 800; margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--ta-line); }
.ta-side-search { display: flex; background: var(--ta-wash); border-radius: 20px; overflow: hidden; border: 1px solid var(--ta-line); }
.ta-side-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ta-text); padding: 9px 14px; font-size: 13px; }
html[data-theme="light"] .ta-side-search { background: #fff; }
.ta-side-search button { border: 0; background: linear-gradient(160deg, #ffa066, #f76b1c); color: #fff; padding: 0 16px; font-weight: 800; }
.ta-trust { display: flex; flex-direction: column; gap: 9px; color: var(--ta-text); font-size: 12.5px; font-weight: 600; }
.ta-trust span { display: flex; align-items: center; gap: 8px; }
.ta-trust .ta-svg { color: var(--ta-accent); width: 14px; height: 14px; }
.ta-rated { display: flex; flex-direction: column; gap: 10px; }
.ta-rated a { display: flex; gap: 10px; align-items: center; color: inherit; padding: 8px; border-radius: 9px; transition: .15s; }
.ta-rated a:hover { background: var(--ta-wash); }
.ta-rated img { width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: cover; }
.ta-rated b { display: block; font-size: 12.5px; color: var(--ta-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.ta-rated small { color: var(--ta-muted); font-size: 11px; }

/* ---------- Detail page ---------- */
.ta-detail { max-width: 100%; }
.ta-box { background: var(--ta-card); border: 1px solid var(--ta-line); border-radius: var(--ta-radius); padding: 18px; margin-bottom: 20px; box-shadow: var(--ta-shadow); }
.ta-crumb { font-size: 12px; color: var(--ta-muted); margin-bottom: 12px; }
.ta-crumb a { color: var(--ta-muted); }
.ta-crumb a:hover { color: var(--ta-accent); }
.ta-app-head { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 20px; }
.ta-app-main .ta-kicker { display: inline-block; padding: 3px 11px; border-radius: 12px; background: #17b26a26; color: var(--ta-green); font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px; }
.ta-app-main h1 { font-size: 25px; font-weight: 900; word-break: break-word; }
.ta-app-main .ta-bigver { display: inline-block; margin-top: 9px; padding: 4px 13px; border-radius: 14px; background: linear-gradient(160deg, #ffa066, #f76b1c); color: #1a2c38; font-weight: 800; font-size: 12px; }
.ta-app-main .ta-desc { margin-top: 12px; color: var(--ta-muted); line-height: 1.65; }
.ta-chips { margin-top: 11px; display: flex; gap: 7px; flex-wrap: wrap; }
.ta-chips a { padding: 3px 12px; border-radius: 12px; background: #ff85411f; color: var(--ta-accent); font-size: 11.5px; font-weight: 700; }
.ta-chips a:hover { background: var(--ta-accent); color: #1a2c38; }
.ta-app-aside { text-align: center; }
.ta-app-icon-wrap { position: relative; display: inline-block; margin-bottom: 12px; }
.ta-app-icon { width: 132px; height: 132px; border-radius: 26px; object-fit: cover; box-shadow: 0 8px 22px rgba(4, 12, 18, .45); }
.ta-status { position: absolute; top: -8px; left: -22px; z-index: 8; width: 92px; padding: 3px 0; text-align: center; font-size: 9px; text-transform: uppercase; letter-spacing: .6px; color: #fff; transform: rotate(-45deg); transform-origin: right bottom; }
.ta-download-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 12px 16px; border-radius: 24px; font-weight: 900; font-size: 13.5px; text-transform: uppercase; letter-spacing: .6px;
  background: linear-gradient(160deg, #ffa066, #f76b1c); color: #1a2c38;
  box-shadow: 0 4px 16px rgba(247, 107, 28, .45); transition: .2s; border: 0;
}
.ta-download-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.ta-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.ta-fact { background: var(--ta-card); border: 1px solid var(--ta-line); border-radius: var(--ta-radius); padding: 12px 14px; box-shadow: var(--ta-shadow); }
.ta-fact b { display: block; font-size: 13.5px; color: var(--ta-accent); }
.ta-fact small { display: block; margin-top: 3px; color: var(--ta-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.ta-box h2.ta-boxtitle { font-size: 16px; font-weight: 800; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--ta-line); position: relative; }
.ta-box h2.ta-boxtitle::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 46px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #ffba7a, #f76b1c); }
.ta-toc ol { counter-reset: ta-toc; }
.ta-toc > ol > li { margin: 7px 0; }
.ta-toc > ol > li > a { color: var(--ta-text); font-weight: 700; }
.ta-toc > ol > li > a::before { counter-increment: ta-toc; content: counter(ta-toc) '. '; color: var(--ta-accent); font-weight: 900; }
.ta-toc .ta-toc-sub { margin: 5px 0 6px 24px; }
.ta-toc .ta-toc-sub a { color: var(--ta-muted); font-size: 12.5px; font-weight: 500; }
.ta-toc a:hover { color: var(--ta-accent); }
.ta-entry { line-height: 1.8; font-size: 13.5px; color: var(--ta-text); }
.ta-entry h2 { font-size: 19px; margin: 26px 0 10px; }
.ta-entry h3 { font-size: 15.5px; margin: 20px 0 8px; }
.ta-entry p { margin: 0 0 12px; }
.ta-entry .ta-lead { font-weight: 700; }
.ta-entry ol, .ta-entry ul { margin: 0 0 14px 22px; }
.ta-entry ol { list-style: decimal; }
.ta-entry ul { list-style: disc; }
.ta-entry li { margin-bottom: 6px; }
details.ta-faq { border: 1px solid var(--ta-line); border-radius: 9px; padding: 11px 15px; margin-bottom: 10px; background: var(--ta-wash); }
details.ta-faq summary { cursor: pointer; font-weight: 800; color: var(--ta-text); list-style: none; position: relative; padding-right: 22px; }
details.ta-faq summary::-webkit-details-marker { display: none; }
details.ta-faq summary::after { content: '+'; position: absolute; right: 2px; top: 0; color: var(--ta-accent); font-size: 16px; font-weight: 900; }
details.ta-faq[open] summary::after { content: '\2212'; }
details.ta-faq p { margin: 8px 0 0; color: var(--ta-muted); }
.ta-dl { border: 1px dashed #ff85418c; text-align: center; }
.ta-dl .ta-download-btn { width: auto; min-width: 280px; }
.ta-install { margin-top: 16px; text-align: left; padding: 13px 15px; border-radius: 9px; background: var(--ta-wash); line-height: 1.75; }
.ta-install p { margin: 0 0 4px; }
.ta-share { display: flex; gap: 9px; flex-wrap: wrap; }
.ta-share a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px;
  border-radius: 20px; background: var(--ta-wash); border: 1px solid var(--ta-line);
  color: var(--ta-text); font-size: 12px; font-weight: 700; transition: .2s;
}
.ta-share a i { font-style: normal; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: linear-gradient(160deg, #ffa066, #f76b1c); color: #1a2c38; font-size: 11px; font-weight: 900; }
.ta-share a:hover { border-color: var(--ta-accent); color: var(--ta-accent); }
.ta-form label { display: block; font-weight: 700; margin-bottom: 12px; color: var(--ta-text); }
.ta-form input, .ta-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1px solid var(--ta-line); border-radius: 9px;
  background: var(--ta-wash); color: var(--ta-text); font-size: 13px;
}
html[data-theme="light"] .ta-form input, html[data-theme="light"] .ta-form textarea { background: #fff; }
.ta-form input:focus, .ta-form textarea:focus { outline: 2px solid #ff854166; border-color: var(--ta-accent); }
.ta-form button {
  background: linear-gradient(160deg, #ffa066, #f76b1c); color: #1a2c38; border: 0;
  padding: 11px 26px; border-radius: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; font-size: 12.5px;
}
.ta-form button:hover { filter: brightness(1.08); }
.ta-success { color: var(--ta-green); font-weight: 800; margin-top: 10px; }
.ta-grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ta-minicard { text-align: center; padding: 13px 9px; background: var(--ta-card); border: 1px solid var(--ta-line); border-radius: var(--ta-radius); box-shadow: var(--ta-shadow); transition: .2s; }
.ta-minicard:hover { transform: translateY(-3px); border-color: #ff854188; }
.ta-minicard img { width: 72px; height: 72px; border-radius: 17px; object-fit: cover; margin-bottom: 8px; }
.ta-minicard .ta-t { display: block; font-weight: 800; font-size: 12.5px; color: var(--ta-text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-minicard .ta-ver { display: block; color: var(--ta-muted); font-size: 11px; }
.ta-missing { text-align: center; padding: 44px 16px; }
.ta-missing p { color: var(--ta-muted); margin: 0 0 18px; }
.ta-missing .ta-download-btn { width: auto; display: inline-flex; }

/* ---------- Floating auth ---------- */
.ta-authbar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 1200;
}
.ta-authbar a {
  padding: 11px 30px; border-radius: 24px; font-weight: 900; font-size: 13px;
  box-shadow: 0 6px 18px rgba(4, 10, 16, .45); transition: .2s; color: #fff;
}
.ta-authbar .ta-login { background: #223647ee; border: 1px solid #ff85416b; }
.ta-authbar .ta-register { background: linear-gradient(160deg, #ffa066, #f76b1c); color: #1a2c38; }
html[data-theme="light"] .ta-authbar .ta-login { background: #14303eee; }
.ta-authbar a:hover { transform: translateY(-2px); }
.ta-top {
  position: fixed; right: 18px; bottom: 76px; z-index: 1100;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: linear-gradient(160deg, #ffa066, #f76b1c); color: #1a2c38; font-size: 15px;
  opacity: 0; pointer-events: none; transition: .25s; display: grid; place-items: center;
}
.ta-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .ta-nav a { padding: 6px 10px; font-size: 12px; }
  .ta-btn { padding: 7px 13px; font-size: 12px; }
  .ta-brand { font-size: 17px; }
  .ta-brand-mark { width: 30px; height: 30px; font-size: 13px; }
}
@media (max-width: 1024px) {
  .ta-frame { grid-template-columns: 1fr; }
  .ta-rows { grid-template-columns: repeat(2, 1fr); }
  .ta-grid5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .ta-app-head { grid-template-columns: 1fr; }
  .ta-app-aside { max-width: 320px; margin: 0 auto; }
  .ta-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 785px) {
  .ta-hero h1 { font-size: 27px; }
  .ta-nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #14293a; padding: 10px 14px 14px; border-bottom: 2px solid var(--ta-accent); z-index: 899;
  }
  html[data-theme="light"] .ta-nav { background: #122c3a; }
  .ta-nav.is-open { display: flex; }
  .ta-menu { display: inline-grid; place-items: center; }
  .ta-shell { padding: 0 10px; }
  .ta-header-row { gap: 8px; }
  .ta-brand { font-size: 17px; }
  .ta-brand-mark { width: 30px; height: 30px; font-size: 13px; }
  .ta-tools .ta-btn { padding: 7px 12px; font-size: 12px; }
}
@media (max-width: 520px) {
  .ta-rows { grid-template-columns: 1fr; }
  .ta-grid5 { grid-template-columns: repeat(2, 1fr); }
  .ta-strip-card { width: 132px; }
  .ta-hero h1 { font-size: 23px; }
  .ta-authbar { gap: 8px; }
  .ta-authbar a { padding: 10px 20px; font-size: 12px; }
  .ta-btn-ghost, .ta-tools .ta-btn-ghost { display: none; }
  .ta-brand { font-size: 15px; }
  .ta-tools { gap: 6px; }
  .ta-tools .ta-btn-accent { padding: 6px 11px; font-size: 11px; }
}

 

/* Catalog icon cap: app icons are low-resolution; every list/grid surface
   renders them at or below 64px with object-fit contain (never upscaled). */
.ta-row .ta-ic { width: 64px; height: 64px; }
.ta-row .ta-ic img { object-fit: contain; }
.ta-strip-card .ta-ic { width: 64px; height: 64px; border-radius: 16px; }
.ta-strip-card .ta-ic img { object-fit: contain; }
.ta-minicard img { width: 64px; height: 64px; border-radius: 15px; object-fit: contain; background: var(--ta-wash); }
.ta-rated img { object-fit: contain; background: var(--ta-wash); }
.ta-app-icon { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; background: var(--ta-wash); box-shadow: 0 4px 14px rgba(4, 12, 18, .35); }

/* Language switcher pill (mandatory once the site serves more than one locale) */
.ta-lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 20px; background: #ffffff14; border: 1px solid #ffffff2e; }
.ta-lang-seg { display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 16px; font-size: 12px; font-weight: 800; letter-spacing: .4px; color: #eaf1f6; transition: .2s; }
.ta-lang-seg:hover { background: #ffffff26; color: #fff; }
.ta-lang-seg.is-active { background: linear-gradient(160deg, #ffa066, #f76b1c); color: #1a2c38; box-shadow: 0 2px 8px rgba(255, 133, 65, .4); }

/* App introduction / description box (v2: rendered from app_site_details.description) */
.ta-appdesc p { margin: 0; color: var(--ta-text); font-size: 13.5px; line-height: 1.7; }

/* Full category tag row with the app's own category highlighted */
.ta-chips a.is-active { background: linear-gradient(160deg, #ffa066, #ff7f2a); color: #1a2c38; }
.ta-metacats-box .ta-tags { margin-top: 0; }

/* Detail head download action (shared .app-dl-btn must match the primary button) */
.ta-apphead-cta { margin-top: 12px; }
.app-dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 12px 16px; border-radius: 24px; font-weight: 900; font-size: 13.5px; text-transform: uppercase; letter-spacing: .6px;
  background: linear-gradient(160deg, #ffa066, #f76b1c); color: #1a2c38;
  box-shadow: 0 4px 16px rgba(247, 107, 28, .45); transition: .2s; border: 0;
}
.app-dl-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* v2 delay download zone: progress bar fills over 3s, then the final
   admin-link button is revealed. No text heading inside the zone. */
.app-dl-zone {
  background: var(--ta-card); border: 1px dashed #ff85418c; border-radius: var(--ta-radius);
  padding: 18px; margin-bottom: 20px; box-shadow: var(--ta-shadow); text-align: center;
}
.app-dl-progress { display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--ta-muted); font-size: 12.5px; font-weight: 700; }
.app-dl-bar { display: block; width: 100%; max-width: 420px; height: 10px; border-radius: 6px; background: var(--ta-wash); border: 1px solid var(--ta-line); overflow: hidden; }
.app-dl-bar b { display: block; width: 0; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffba7a, #f76b1c); }
.app-dl-zone[data-dl-state="ready"] .app-dl-progress { display: none; }
.app-dl-final {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 280px;
  padding: 12px 16px; border-radius: 24px; font-weight: 900; font-size: 13.5px; text-transform: uppercase; letter-spacing: .6px;
  background: linear-gradient(160deg, #ffa066, #f76b1c); color: #1a2c38;
  box-shadow: 0 4px 16px rgba(247, 107, 28, .45);
}
.app-dl-final.is-ready { animation: ta-pop .3s ease; }
@keyframes ta-pop { from { transform: scale(.94); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.app-dl-install { margin-top: 16px; text-align: left; padding: 13px 15px; border-radius: 9px; background: var(--ta-wash); line-height: 1.75; }
.app-dl-install b { color: var(--ta-text); }
.app-dl-install ol { margin: 6px 0 0 20px; list-style: decimal; color: var(--ta-text); }
.app-dl-install li { margin-bottom: 4px; }

/* Landing page (v2 intermediate download step) */
.ta-landing { max-width: 100%; }
.ta-landing-id { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ta-landing-id h1 { font-size: 24px; font-weight: 900; word-break: break-word; }
.ta-landing-meta { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; color: var(--ta-text); font-weight: 700; }
.ta-chip-inline { padding: 3px 12px; border-radius: 12px; background: #ff85411f; color: var(--ta-accent); font-size: 11.5px; font-weight: 700; }
.ta-landing-facts { margin-bottom: 16px; }
.ta-landing-desc { margin-bottom: 16px; }
.ta-landing-desc p { margin: 0; color: var(--ta-text); font-size: 13.5px; line-height: 1.7; }
.ta-landing-tags { margin-bottom: 18px; }
.ta-landing-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ta-landing-actions .ta-download-btn { width: auto; min-width: 240px; }
html[data-theme="light"] .ta-landing-actions .ta-btn-ghost { background: var(--ta-wash); border-color: var(--ta-line); color: var(--ta-text); }
.ta-landing .ta-install ol { margin: 6px 0 0 20px; list-style: decimal; }
.ta-landing .ta-install li { margin-bottom: 4px; }

@media (max-width: 520px) {
}
@media (max-width: 860px) {
  .ta-landing-actions .ta-download-btn { width: 100%; }
}
@media (max-width: 520px) {
  .ta-lang { padding: 2px; }
  .ta-lang-seg { padding: 4px 9px; font-size: 11px; }
  .ta-apphead-cta .app-dl-btn { width: 100%; }
}


/* ==== Footer (siteapp12) ==== */
.ta-footer{background:var(--ta-panel,#223647);color:var(--ta-text,#e9eef2);border-top:1px solid var(--ta-line,#ffffff14);margin-top:40px;padding:32px 0 20px}
.ta-ft-wrap{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.ta-ft-head{text-align:center;max-width:680px;margin-inline:auto;min-width:0}
.ta-ft-name{display:inline-block;margin:0;padding-bottom:9px;font-size:26px;font-weight:800;color:var(--ta-text,#e9eef2);border-bottom:3px solid var(--ta-accent,#ff8541);overflow-wrap:anywhere}
.ta-ft-desc{margin:14px auto 0;font-size:12.5px;line-height:1.8;color:var(--ta-muted,#9db1c0);overflow-wrap:anywhere}
.ta-ft-contact{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin:14px 0 0;padding:0;list-style:none}
.ta-ft-contact li{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--ta-muted,#9db1c0);min-width:0}
.ta-ft-contact i{color:var(--ta-accent,#ff8541);flex:0 0 auto}
.ta-ft-contact a{color:inherit;text-decoration:none;overflow-wrap:anywhere}
.ta-ft-contact a:hover{color:var(--ta-accent,#ff8541)}
.ta-ft-cols{display:flex;flex-wrap:wrap;gap:24px 34px;margin-top:26px;padding-top:24px;border-top:1px solid var(--ta-line,#ffffff14)}
.ta-ft-grp{flex:1 1 180px;min-width:0}
.ta-ft-grp h3{margin:0 0 11px;padding-top:9px;border-top:2px solid var(--ta-accent,#ff8541);font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--ta-text,#e9eef2)}
.ta-ft-grp ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.ta-ft-grp li{font-size:12.5px;min-width:0}
.ta-ft-grp a{color:var(--ta-muted,#9db1c0);text-decoration:none;overflow-wrap:anywhere}
.ta-ft-grp a:hover{color:var(--ta-accent,#ff8541)}
.ta-ft-media{display:flex;flex-wrap:wrap;justify-content:center;gap:11px;margin-top:26px}
.ta-ft-media a{width:46px;height:46px;border-radius:50%;overflow:hidden;border:2px solid var(--ta-line,#ffffff14);background:var(--ta-wash,#2a4152)}
.ta-ft-media a:hover{border-color:var(--ta-accent,#ff8541)}
.ta-ft-media img{width:100%;height:100%;object-fit:cover;display:block}
.ta-ft-legal{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 18px;margin-top:26px;padding-top:16px;border-top:2px dashed var(--ta-line,#ffffff14);font-size:12px;color:var(--ta-muted,#9db1c0);text-align:center}
.ta-ft-copy{min-width:0;overflow-wrap:anywhere}
.ta-ft-age{padding:2px 11px;border-radius:999px;border:1px solid var(--ta-accent,#ff8541);color:var(--ta-accent,#ff8541);font-weight:800}
.ta-ft-share{display:inline-flex;gap:8px}
.ta-ft-share a{display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;background:var(--ta-wash,#2a4152);color:var(--ta-muted,#9db1c0);text-decoration:none}
.ta-ft-share a:hover{color:#fff;background:var(--ta-accent,#ff8541)}
@media(max-width:640px){.ta-ft-name{font-size:22px}}
.ta-social{margin-top:22px;display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.ta-social a{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#ffffff14;border:1px solid #ffffff22;color:#eef4f8;font-weight:800;font-size:14px;transition:.2s}
.ta-social a:hover{transform:translateY(-2px);background:linear-gradient(160deg,#ffa066,#f76b1c);color:#1a2c38}
.ta-side .ta-social{margin-top:0;justify-content:flex-start}
.ta-side .ta-social a{width:36px;height:36px;border-radius:10px}
