/* Tuansu storefront: achromatic surfaces and controls; color has a purpose. */
body { font-family: 'Public Sans Variable', 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
:root {
  --primary: #25282a; --primary-foreground: #fff; --ring: #555b60;
  --background: #f8f8f6; --foreground: #222426;
  --card: #fff; --card-foreground: #222426;
  --popover: #fff; --popover-foreground: #222426;
  --secondary: #f0f1ef; --secondary-foreground: #383b3d;
  --muted: #f0f1ef; --muted-foreground: #606367;
  --border: #e1e3df; --input: #cdd0cc;
  --accent: #eaece9; --accent-foreground: #25282a;
  --chart-1: #6e42a0; --chart-2: #9a5c2f; --chart-3: #267460;
  --chart-4: #a54663; --chart-5: #6260a4;
  --overview-accent-1: #6e42a0; --overview-accent-2: #9a5c2f; --overview-accent-3: #267460;
  --sidebar: #f0f1ef; --sidebar-primary: #25282a; --sidebar-foreground: #383b3d;
  --sidebar-accent: #eaece9; --sidebar-accent-foreground: #25282a;
  --sidebar-border: #e1e3df; --sidebar-ring: #555b60;
  --ts-panel: #25282a; --ts-panel-inset: #1d2022; --ts-panel-muted: #c5c8c7;
}
.dark {
  --primary: #f0f1ef; --primary-foreground: #202225; --ring: #d8dad7;
  --background: #161719; --foreground: #f2f3f1;
  --card: #222427; --card-foreground: #f2f3f1;
  --popover: #292b2e; --popover-foreground: #f2f3f1;
  --secondary: #303236; --secondary-foreground: #e2e4e1;
  --muted: #2b2d30; --muted-foreground: #b8bbba;
  --border: #3e4144; --input: #555a5d;
  --accent: #383b3e; --accent-foreground: #f2f3f1;
  --chart-1: #bea0e4; --chart-2: #d6aa75; --chart-3: #78b4a1;
  --chart-4: #d78e9d; --chart-5: #9fa5d5;
  --overview-accent-1: #bea0e4; --overview-accent-2: #d6aa75; --overview-accent-3: #78b4a1;
  --sidebar: #202225; --sidebar-primary: #f0f1ef; --sidebar-foreground: #e6e8e5;
  --sidebar-accent: #34373b; --sidebar-accent-foreground: #fff;
  --sidebar-border: #3e4144; --sidebar-ring: #d8dad7;
  --ts-panel: #25282a; --ts-panel-inset: #1d2022; --ts-panel-muted: #c5c8c7;
}
.ts-public { background: var(--background); }
img[src='/tuansu-mark-v1.svg'] { content: url('/tuansu-mark-iris-20261025.svg'); }
.ts-legacy-home > section, .ts-legacy-home > footer { display: none !important; }
.ts-legacy-home > div:not(#tuansu-storefront-home):not([class*='fixed']) { display: none !important; }
.ts-legacy-home > #tuansu-storefront-home { display: block; }
.ts-public-header > div { max-width: 1280px !important; padding: 0 32px !important; }
.ts-public-header nav { height: 76px !important; padding: 0 !important; border-radius: 0 !important; background: var(--background) !important; border-bottom: 1px solid var(--border); box-shadow: none !important; backdrop-filter: none !important; }
.ts-public-header nav > div:first-child > a > div { width: 36px; height: 36px; }
.ts-public-header nav > div:first-child > a > span { font-size: 15px; letter-spacing: -.4px; }
.ts-public-header [data-slot=button] { border-radius: 7px; }
.ts-width { width: min(1216px, calc(100% - 64px)); margin-inline: auto; }
.ts-public main.ts-store-home { padding-top: calc(76px + var(--ds-topbar-height, 0px)) !important; }
.ts-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 7%; padding-block: 86px 82px; }
.ts-intro { display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted-foreground); margin: 0 0 28px; }
.ts-intro span { color: var(--muted-foreground); }
.ts-hero h1 { font-family: 'Lora Variable', 'Lora', Georgia, serif; font-size: clamp(44px, 4.4vw, 64px); line-height: 1.14; letter-spacing: -.046em; font-weight: 600; white-space: pre-line; text-wrap: balance; }
.ts-lead { font-size: 17px; line-height: 1.75; color: var(--muted-foreground); max-width: 46ch; margin-top: 25px; }
.ts-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.ts-actions [data-slot=button] { min-height: 46px; padding-inline: 20px; border-radius: 7px; font-size: 14px; font-weight: 650; }
.ts-text-link { display: inline-flex; gap: 9px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted-foreground); }
.ts-text-link:hover, .ts-steps a:hover, .ts-catalog-inner a:hover { color: var(--primary); }
.ts-access-panel { background: var(--ts-panel); color: #fff; border-radius: 14px; box-shadow: 0 22px 45px -32px #20222599; overflow: hidden; }
.ts-access-top { display: flex; align-items: center; gap: 12px; padding: 24px 26px; font-size: 15px; font-weight: 600; border-bottom: 1px solid #ffffff2b; }
.ts-access-top img { border: 1px solid #ffffff30; border-radius: 9px; }
.ts-access-tag { margin-left: auto; border: 1px solid #ffffff45; padding: 3px 9px; font: 11px/1.5 ui-monospace, monospace; border-radius: 4px; }
.ts-endpoint-block { padding: 26px 26px 18px; }
.ts-endpoint-block > span { font-size: 12px; color: var(--ts-panel-muted); }
.ts-endpoint-block > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; background: var(--ts-panel-inset); padding: 9px 10px 9px 13px; border: 1px solid #ffffff29; border-radius: 6px; }
.ts-endpoint-block code { font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.ts-access-panel [data-slot=button] { color: #fff; }
.ts-access-panel [data-slot=button]:hover { background: #ffffff25; }
.ts-access-links { padding: 0 26px 17px; }
.ts-access-links a { display: flex; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid #ffffff2b; }
.ts-access-links a:last-child { border-bottom: 0; }
.ts-access-links a > svg:first-child { width: 19px; flex-shrink: 0; color: var(--ts-panel-muted); }
.ts-access-links a > svg:last-child { width: 17px; margin-left: auto; flex-shrink: 0; transition: transform .15s; }
.ts-access-links a:hover > svg:last-child { transform: translateX(3px); }
.ts-access-links strong { display: block; font-size: 14px; font-weight: 600; }
.ts-access-links small { display: block; font-size: 12px; line-height: 1.6; color: var(--ts-panel-muted); margin-top: 3px; }
.ts-access-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 26px; border-top: 1px solid #ffffff2b; font: 11px/1.5 ui-monospace, monospace; color: var(--ts-panel-muted); }
.ts-catalog-strip { border-block: 1px solid var(--border); background: var(--card); }
.ts-catalog-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 29px; }
.ts-catalog-inner > span { color: var(--muted-foreground); font-size: 12px; }
.ts-catalog-inner > div { display: flex; align-items: center; gap: 22px; font-size: 18px; letter-spacing: -.6px; font-weight: 600; }
.ts-catalog-inner i { font: 12px/1 ui-monospace, monospace; color: var(--muted-foreground); }
.ts-catalog-inner a, .ts-steps a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.ts-start { padding-block: 80px; scroll-margin-top: 140px; }
.ts-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 36px; }
.ts-store-home h2 { font-family: 'Lora Variable', 'Lora', Georgia, serif; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.23; letter-spacing: -.035em; font-weight: 600; white-space: pre-line; text-wrap: balance; }
.ts-section-head p { color: var(--muted-foreground); font-size: 15px; line-height: 1.72; max-width: 34ch; }
.ts-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--border); list-style: none; }
.ts-steps li { padding: 28px 30px 0 0; }
.ts-steps li + li { padding-left: 30px; border-left: 1px solid var(--border); }
.ts-step-number { display: inline-block; font: 12px/1.6 ui-monospace, monospace; color: var(--primary); margin-bottom: 20px; }
.ts-steps h3 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.ts-steps p { color: var(--muted-foreground); font-size: 15px; line-height: 1.75; margin: 12px 0 22px; }
.ts-integrate { display: grid; grid-template-columns: .85fr 1.2fr; gap: 60px; align-items: center; padding: 44px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.ts-integrate > div:first-child > svg { color: var(--primary); margin-bottom: 20px; }
.ts-integrate h2 { margin-bottom: 16px; }
.ts-integrate p { color: var(--muted-foreground); font-size: 15px; line-height: 1.75; margin-bottom: 20px; }
.ts-code { min-width: 0; background: #202225; border: 1px solid #484c50; color: #f0f1ef; border-radius: 8px; }
.ts-code > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 17px; border-bottom: 1px solid #ffffff20; font: 11px/1.5 ui-monospace, monospace; color: #c5c8c7; }
.ts-code [data-slot=button] { color: #e7e9e6; }
.ts-code [data-slot=button]:hover { background: #ffffff20; }
.ts-code pre { padding: 22px; overflow-x: auto; font-size: 11px; line-height: 1.9; }
.ts-code > p { color: #c5c8c7; border-top: 1px solid #ffffff20; padding: 14px 22px; margin: 0; font-size: 11px; }
.ts-help { display: grid; grid-template-columns: .85fr 1.2fr; gap: 90px; padding-block: 80px; }
.ts-help > div:first-child > p { font-size: 15px; line-height: 1.75; color: var(--muted-foreground); margin: 16px 0 24px; }
.ts-help > div:first-child > a { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-size: 14px; font-weight: 600; }
.ts-faq details { border-bottom: 1px solid var(--border); }
.ts-faq details:first-child { border-top: 1px solid var(--border); }
.ts-faq summary { cursor: pointer; padding: 22px 4px; font-size: 14px; font-weight: 600; }
.ts-faq p { color: var(--muted-foreground); padding: 0 4px 22px; font-size: 14px; line-height: 1.85; }
.ts-public footer { background: var(--card); }
.ts-public footer > div { max-width: 1280px; padding: 38px 32px; }
.ts-public footer p.uppercase { text-transform: none; letter-spacing: 0; color: var(--foreground); }
.ts-public footer .mt-12 { margin-top: 30px; }
.ts-public footer > div > div:first-child > div:last-child { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ts-public footer span.flex.flex-wrap { font-size: 11px; line-height: 1.7; }
.ts-product-footer > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; }
.ts-footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; }
.ts-product-footer p { margin-top: 12px; font-size: 12px; color: var(--muted-foreground); }
.ts-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: 13px; }
.ts-footer-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--border); padding-top: 24px; font-size: 11px; color: var(--muted-foreground); }
.ts-pricing > div[aria-hidden] { display: none; }
.ts-pricing > div:last-child { max-width: 1400px; padding-top: calc(100px + var(--ds-topbar-height, 0px)); }
.ts-pricing header { text-align: left; margin-left: 0; max-width: none; padding-top: 20px; }
.ts-pricing header h1 { font-family: 'Lora Variable', 'Lora', Georgia, serif; font-size: clamp(34px, 3.2vw, 46px); font-weight: 600; line-height: 1.22; letter-spacing: -.035em; }
.ts-pricing header p, .ts-pricing header > div { margin-left: 0; }
.ts-pricing [data-slot=card], .ts-pricing table { box-shadow: none; }
.ts-pricing .ts-model-card { border: 1px solid var(--border); border-radius: 10px; box-shadow: none; }
.ts-pricing .ts-model-card:hover { border-color: var(--primary); }
.ts-pricing thead { background: var(--muted); }
.ts-pricing table { font-variant-numeric: tabular-nums; }
[data-slot=sidebar-inset] { background: var(--background); }
body.has-ds-topbar [data-slot=sidebar-wrapper] { padding-top: var(--ds-topbar-height, 0px); }
[data-slot=sidebar-inset] > header a[href='/wallet'] { background: var(--primary) !important; background-image: none !important; color: var(--primary-foreground) !important; border-radius: 7px !important; box-shadow: none !important; }
[data-slot=sidebar-container] { top: var(--ds-topbar-height, 0px) !important; height: calc(100svh - var(--ds-topbar-height, 0px)) !important; }
[data-slot=sidebar-footer] > div[class*='from-[#ff'] { background: var(--primary) !important; background-image: none !important; color: var(--primary-foreground) !important; border-radius: 9px; box-shadow: none !important; }
html body [data-slot=sidebar] [data-slot=sidebar-menu-button] { background-image: none !important; }
html body [data-slot=sidebar] [data-slot=sidebar-menu-button]:is([data-active=true],.active) { background: var(--primary) !important; color: var(--primary-foreground) !important; border-radius: 7px !important; }
[data-slot=sidebar-header] a[href='/keys'] > div:first-child { background: var(--primary) url('/tuansu-mark-iris-20261025.svg') center/cover no-repeat !important; font-size: 0 !important; box-shadow: none !important; }
[data-slot=sidebar-inset] [data-slot=card], .ts-account-v13 { box-shadow: none !important; border-color: var(--border) !important; }
.ts-account-v13 { border-radius: 12px !important; background: var(--card) !important; }
.tuansu-sales-panel.ts-account-v13, .ts-account-dialog, .dark .tuansu-sales-panel.ts-account-v13, .dark .ts-account-dialog { --ac-bg: var(--background); --ac-panel: var(--card); --ac-input: var(--muted); --ac-text: var(--foreground); --ac-muted: var(--muted-foreground); --ac-line: var(--border); --ac-accent: var(--primary); --ac-tint: var(--accent); }
.ts-account-v13 .ac-section-heading { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.ts-account-v13 .ac-endpoint { background: var(--muted) !important; border-color: var(--border) !important; }
.ts-account-v13 .ac-overview > div { background: var(--background) !important; border-color: var(--border) !important; box-shadow: none !important; }
body.ts-view-wallet .tuansu-sales-panel.ts-account-v13 .grid.ac-amount-fields, body.ts-view-wallet .tuansu-sales-panel.ts-account-v13 .grid.ac-overview, body.ts-view-wallet .tuansu-sales-panel.ts-account-v13 .ac-wallet-summary > dl.grid { display: grid !important; }
.tuansu-sales-panel:has(#ts-pm-vietqr.active) .tuansu-crypto-payment-box { display: none !important; }
.tuansu-sales-panel .tcp-body:has(.tcp-qr-col[style*='display: none']) { grid-template-columns: minmax(0,1fr) !important; }
.tuansu-sales-panel .tcp-details-col { min-width: 0; }
.tuansu-sales-panel .tcp-row:has(.tcp-wallet-box[style*='display: none']) { display: none; }
.ts-account-v13 [role=tablist] { overflow-x: auto; }
.ts-account-v13 [role=tab] { flex-shrink: 0; }
.ts-account-v13 [role=tablist] { background: var(--muted) !important; border-color: var(--border) !important; }
.ts-account-v13 [role=tab][data-active], .ts-account-v13 [role=tab][data-state=active] { background: var(--card) !important; color: var(--primary) !important; }
.ts-account-v13 [data-slot=button] { border-radius: 7px; }
.ts-account-v13 table { font-variant-numeric: tabular-nums; }
.ts-store-home :is(a,button,summary):focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
.ts-access-panel :is(a,button):focus-visible { outline-color: #fff; }
#deepseek-weekend-banner { display: none !important; }
#ds-weekend-topbar { background: #f0f1ef !important; color: #383b3d !important; border-bottom: 1px solid #e1e3df !important; box-shadow: none !important; }
#ds-weekend-topbar .ds-topbar-badge { background: transparent !important; color: #383b3d !important; border: 0 !important; box-shadow: none !important; }
#ds-weekend-topbar .ds-topbar-text, #ds-weekend-topbar .ds-topbar-text :is(b,strong) { color: #383b3d !important; }
#ds-weekend-topbar .ds-topbar-cta { background: #25282a !important; color: #fff !important; box-shadow: none !important; border-radius: 4px !important; }
#ds-weekend-float-pill { display: none !important; }
.ts-auth { grid-template-columns: 1fr 1fr; background: var(--card); padding: 100px 6vw 70px; align-items: center; gap: 6vw; }
.ts-auth > a:first-of-type h1 { font-size: 16px; font-weight: 650; }
.ts-auth > a:first-of-type, .ts-auth > div.absolute { top: calc(24px + var(--ds-topbar-height, 0px)) !important; }
.ts-auth > a:first-of-type img { border-radius: 8px; }
.ts-auth-story { background: var(--ts-panel); color: #fff; padding: clamp(30px, 5vw, 70px); border-radius: 14px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.ts-auth-story h2 { font-family: 'Lora Variable', 'Lora', Georgia, serif; font-size: clamp(35px, 3.5vw, 52px); line-height: 1.18; letter-spacing: -.04em; white-space: pre-line; margin: 32px 0 24px; font-weight: 600; }
.ts-auth-story p { font-size: 14px; line-height: 1.9; color: var(--ts-panel-muted); }
.ts-auth-story a { font-size: 13px; margin-top: 32px; }
.ts-auth-form { padding: 20px 0 !important; margin: 0 !important; min-width: 0; }
.ts-auth-form h2 { font-family: 'Lora Variable', 'Lora', Georgia, serif; font-size: 32px; font-weight: 600; line-height: 1.24; letter-spacing: -.035em; }
.ts-auth-form > div { width: min(100%, 430px); padding: 0 20px !important; }
.ts-auth-form input:not([type=checkbox]), .ts-auth-form button[type=submit] { min-height: 44px; border-radius: 7px; }
.ts-auth-form button:not([type=submit]) { border-radius: 7px; }
.ts-auth a[href='/key'] { border-color: var(--border); background: var(--muted); }
.ts-auth a[href='/key'] span { color: var(--primary); }
.ts-auth a[href='/key']:hover { border-color: var(--input); background: var(--accent); }
@media (max-width: 1100px) {
  .ts-catalog-inner { flex-wrap: wrap; } .ts-catalog-inner > div { order: 3; width: 100%; justify-content: space-between; gap: 10px; }
  .ts-hero { gap: 5%; } .ts-hero h1 { font-size: 46px; }
  .ts-integrate { gap: 32px; padding: 32px; } .ts-help { gap: 40px; }
}
@media (max-width: 700px) {
  .ts-width { width: calc(100% - 40px); }
  .ts-public-header > div { padding-inline: 20px !important; }
  .ts-public-header nav { height: 68px !important; }
  .ts-public-header nav > div:first-child > a > span { max-width: 135px; font-size: 13px; }
  .ts-public-header nav > div:first-child > a > div { width: 30px; height: 30px; }
  .ts-public main.ts-store-home { padding-top: calc(68px + var(--ds-topbar-height, 0px)) !important; }
  .ts-hero { grid-template-columns: 1fr; padding-block: 46px; gap: 34px; }
  .ts-intro { margin-bottom: 22px; font-size: 11px; gap: 8px; }
  .ts-hero h1 { font-size: clamp(38px, 8.6vw, 44px); }
  .ts-lead { font-size: 15px; line-height: 1.7; margin-top: 20px; }
  .ts-actions { margin: 24px 0; gap: 10px; }
  .ts-actions [data-slot=button] { min-height: 44px; font-size: 13px; padding-inline: 14px; }
  .ts-access-top { padding: 20px; } .ts-endpoint-block { padding: 20px 20px 10px; } .ts-access-links { padding-inline: 20px; }
  .ts-access-bottom { padding-inline: 20px; }
  .ts-catalog-inner { padding-block: 22px; gap: 18px; }
  .ts-catalog-inner > div { font-size: 13px; gap: 8px; letter-spacing: -.3px; flex-wrap: wrap; }
  .ts-catalog-inner i { font-size: 10px; }
  .ts-start { padding-block: 46px; } .ts-section-head { display: block; margin-bottom: 26px; } .ts-section-head p { margin-top: 15px; max-width: none; }
  .ts-steps { grid-template-columns: 1fr; }
  .ts-steps li, .ts-steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .ts-step-number { margin-bottom: 10px; } .ts-steps p { margin: 8px 0 15px; }
  .ts-integrate { grid-template-columns: 1fr; padding: 24px 20px; gap: 28px; }
  .ts-code pre { padding: 16px; font-size: 10px; } .ts-code > p { padding: 12px 16px; }
  .ts-help { grid-template-columns: 1fr; gap: 30px; padding-block: 46px; }
  .ts-public footer > div { padding: 30px 20px; }
  .ts-product-footer > div { grid-template-columns: 1fr; }
  .ts-footer-links { grid-template-columns: 1fr 1fr; }
  .ts-public footer > div > div:first-child > div:last-child { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
  .ts-pricing > div:last-child { padding-top: calc(78px + var(--ds-topbar-height, 0px)); }
  .ts-auth { display: block; padding: 100px 20px 30px; }
  .ts-auth-story { display: none; }
  .ts-auth-form > div { padding: 0 !important; }
  [data-slot=sidebar-inset] > header { min-width: 0; }
  [data-slot=sidebar-inset] > header > div { min-width: 0; }
  [data-slot=sidebar-inset] > header a[href='/wallet'] { display: none !important; }
  [data-slot=sidebar-inset] > header > div > div [data-slot=sidebar-trigger] { display: none; }
  #ds-weekend-float-pill { bottom: 12px !important; right: 12px !important; font-size: 10px !important; padding: 8px 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .ts-public *, .ts-public *::before, .ts-public *::after { animation: none !important; transition: none !important; }
}
