/* TingDong AI · shared light application theme
   Homepage is the visual source of truth: soft gray canvas, white surfaces,
   readable dark typography, restrained green accent, generous spacing. */

body.td-unified-ui{
  --bg:#f4f6f8;
  --card:#ffffff;
  --card2:#f6f8fa;
  --surface:#ffffff;
  --surface2:#f6f8fa;
  --border:#dce2e8;
  --text:#182235;
  --muted:#687588;
  --green:#20b278;
  --danger:#d85b68;
  --red:#d85b68;
  --amber:#a9771d;
  --blue:#4c78b8;
  --shadow:0 12px 34px rgba(35,48,67,.07);
  margin:0;
  min-height:100vh;
  background:#f4f6f8!important;
  color:var(--text)!important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif!important;
  font-size:16px;
  line-height:1.58;
  -webkit-font-smoothing:antialiased;
}
body.td-unified-ui *{box-sizing:border-box}
body.td-unified-ui a{color:inherit}
body.td-unified-ui .muted,
body.td-unified-ui .intro,
body.td-unified-ui .lead,
body.td-unified-ui .sub{color:var(--muted)!important}

/* Shared shell / navigation */
body.td-unified-ui .brand{
  color:var(--text)!important;
  font-size:28px!important;
  font-weight:950!important;
  letter-spacing:-.6px;
}
body.td-unified-ui .top,
body.td-unified-ui .topbar,
body.td-unified-ui .header{color:var(--text)!important}
body.td-unified-ui .back,
body.td-unified-ui .legalFooter,
body.td-unified-ui .legalFooter a{color:#758195!important}
body.td-unified-ui .back{
  font-size:15px!important;
  font-weight:800!important;
}
body.td-unified-ui .legalFooter{
  font-size:13.5px!important;
  line-height:1.55!important;
}
body.td-unified-ui .legalFooter a:hover{color:#26354a!important}

/* Readable headings everywhere */
body.td-unified-ui h1{color:var(--text)!important;font-weight:950!important;letter-spacing:-.7px}
body.td-unified-ui h2,
body.td-unified-ui h3,
body.td-unified-ui .title,
body.td-unified-ui .topTitle,
body.td-unified-ui .panelTitle,
body.td-unified-ui .sheetTitle{color:var(--text)!important}
body.td-unified-ui .title{font-size:30px!important;line-height:1.2!important}
body.td-unified-ui .sub{font-size:14px!important;line-height:1.6!important}
body.td-unified-ui .panelTitle{font-size:18px!important}
body.td-unified-ui .panelSub{font-size:13.5px!important;line-height:1.55!important;color:var(--muted)!important}

/* Shared surfaces */
body.td-unified-ui .card,
body.td-unified-ui .panel,
body.td-unified-ui .listCard,
body.td-unified-ui .ordersPanel,
body.td-unified-ui .quickItem,
body.td-unified-ui .tdRedeemCard,
body.td-unified-ui .item,
body.td-unified-ui .order,
body.td-unified-ui .contact{
  background:#fff!important;
  border-color:var(--border)!important;
  color:var(--text)!important;
  box-shadow:var(--shadow)!important;
}
body.td-unified-ui .card,
body.td-unified-ui .panel,
body.td-unified-ui .listCard,
body.td-unified-ui .ordersPanel{border-radius:20px!important}
body.td-unified-ui .item,
body.td-unified-ui .order,
body.td-unified-ui .contact{border-radius:15px!important}

/* Buttons and links: larger tap targets, same language as homepage */
body.td-unified-ui button,
body.td-unified-ui .btn,
body.td-unified-ui a.btn,
body.td-unified-ui .authLink,
body.td-unified-ui .authBtn,
body.td-unified-ui .accountLink{
  min-height:42px;
  border-color:var(--border)!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#354258!important;
  font-size:14.5px!important;
  font-weight:850!important;
}
body.td-unified-ui .btn.primary,
body.td-unified-ui .btn.ok,
body.td-unified-ui button.primary,
body.td-unified-ui .primary,
body.td-unified-ui .authLink.primary{
  background:var(--green)!important;
  border-color:transparent!important;
  color:#fff!important;
}
body.td-unified-ui button:disabled,
body.td-unified-ui .btn:disabled{opacity:.5}

/* Inputs */
body.td-unified-ui input:not([type="checkbox"]):not([type="radio"]),
body.td-unified-ui select,
body.td-unified-ui textarea,
body.td-unified-ui .proofPicker{
  background:#fff!important;
  border-color:#d4dce5!important;
  color:var(--text)!important;
  font-size:15.5px!important;
  border-radius:12px!important;
}
body.td-unified-ui input::placeholder,
body.td-unified-ui textarea::placeholder{color:#9aa4b2!important}
body.td-unified-ui input:focus,
body.td-unified-ui select:focus,
body.td-unified-ui textarea:focus{
  border-color:#72cba9!important;
  box-shadow:0 0 0 3px rgba(32,178,120,.10)!important;
}
body.td-unified-ui .field label,
body.td-unified-ui .sheetField label{color:#46546a!important;font-size:14.5px!important}
body.td-unified-ui .fieldHint,
body.td-unified-ui .agree,
body.td-unified-ui .note{font-size:13.5px!important;color:var(--muted)!important}

/* Messages */
body.td-unified-ui .msg,
body.td-unified-ui .orderState{
  background:#fff7f7!important;
  border-color:#efcbd0!important;
  color:#a74753!important;
  font-size:14px!important;
}
body.td-unified-ui .msg.ok,
body.td-unified-ui .msg.success,
body.td-unified-ui .orderState.ok{
  background:#f1fbf6!important;
  border-color:#c6ead9!important;
  color:#187a54!important;
}

/* Login / register / password / contact family */
body.td-page-login .wrap,
body.td-page-register .wrap,
body.td-page-forgot-password .wrap,
body.td-page-reset-password .wrap{max-width:500px!important;padding-top:30px!important}
body.td-page-login .card,
body.td-page-register .card,
body.td-page-forgot-password .card,
body.td-page-reset-password .card{padding:28px!important}
body.td-page-login h1,
body.td-page-register h1,
body.td-page-forgot-password h1,
body.td-page-reset-password h1{font-size:32px!important;line-height:1.2!important}
body.td-page-login .intro,
body.td-page-register .intro,
body.td-page-forgot-password .intro,
body.td-page-reset-password .intro{font-size:15px!important}
body.td-page-login .switch,
body.td-page-register .switch{font-size:14.5px!important;color:var(--muted)!important}
body.td-page-login .switch a,
body.td-page-register .switch a,
body.td-page-login .forgot a{color:#16845c!important}
body.td-page-login .forgot a{
  background:#f4fbf7!important;
  border-color:#cfe8dc!important;
  font-size:14px!important;
}

body.td-page-contact .wrap{max-width:800px!important;padding-top:28px!important}
body.td-page-contact h1{font-size:32px!important}
body.td-page-contact .lead,
body.td-page-contact .muted{font-size:15px!important}
body.td-page-contact .qqBox{
  background:#f7f9fb!important;
  border-color:var(--border)!important;
}
body.td-page-contact .qqNum{font-size:23px!important;color:var(--text)!important}

/* History */
body.td-page-history .wrap{max-width:1060px!important;padding-top:26px!important}
body.td-page-history .retentionNotice{
  background:#fffaf0!important;
  border-color:#ead9ac!important;
  color:#755f2a!important;
  font-size:14px!important;
}
body.td-page-history .retentionNotice strong{color:#8b6519!important}
body.td-page-history .toolbar{font-size:15px!important}
body.td-page-history .name{font-size:17px!important;color:var(--text)!important}
body.td-page-history .meta{font-size:13.5px!important;color:var(--muted)!important}
body.td-page-history .seg{
  background:#f8fafc!important;
  border-color:var(--border)!important;
}
body.td-page-history .source{font-size:17px!important;color:var(--text)!important}
body.td-page-history .zh{font-size:15px!important;color:#46546a!important}
body.td-page-history .explain{font-size:14px!important;color:#657287!important;border-top-color:#e2e7ec!important}
body.td-page-history .raw{
  background:#f8fafc!important;
  border-color:var(--border)!important;
  color:#344258!important;
  font-size:14.5px!important;
}
body.td-page-history .time{color:#16845c!important}
body.td-page-history .lang{border-color:#d7dee6!important;color:#5f6d82!important}
body.td-page-history .loading,
body.td-page-history .empty{font-size:14px!important;color:var(--muted)!important}

/* Account */
body.td-page-account .wrap{width:min(780px,100%)!important;padding-top:22px!important}
body.td-page-account .topIcon{
  background:#fff!important;
  border-color:var(--border)!important;
  color:var(--text)!important;
  box-shadow:0 5px 18px rgba(35,48,67,.05)!important;
}
body.td-page-account .topTitle{font-size:20px!important}
body.td-page-account .profileName{font-size:20px!important;color:var(--text)!important}
body.td-page-account .profileEmail{font-size:14px!important;color:var(--muted)!important}
body.td-page-account .memberCard{
  background:linear-gradient(145deg,#ffffff,#f2fbf6)!important;
  border-color:#c7e7d7!important;
  color:var(--text)!important;
  box-shadow:var(--shadow)!important;
}
body.td-page-account .memberCard:after{background:rgba(32,178,120,.07)!important}
body.td-page-account .memberEyebrow{font-size:13.5px!important;color:#25805d!important}
body.td-page-account .memberTitle{font-size:25px!important;color:var(--text)!important}
body.td-page-account .memberDate,
body.td-page-account .usageText,
body.td-page-account .trialDesc{font-size:13.5px!important;color:#617063!important}
body.td-page-account .remain{color:var(--text)!important}
body.td-page-account .buyBtn{background:var(--green)!important;color:#fff!important;font-size:13.5px!important}
body.td-page-account .trialBox{
  background:rgba(255,255,255,.72)!important;
  border-color:#d9e9e0!important;
}
body.td-page-account .trialState{color:#16845c!important}
body.td-page-account .quickItem{min-height:90px!important}
body.td-page-account .quickLabel{font-size:14.5px!important;color:var(--text)!important}
body.td-page-account .sectionTitle{font-size:14px!important;color:#6c788b!important}
body.td-page-account .row{color:var(--text)!important;border-top-color:#e5e9ed!important}
body.td-page-account .rowIcon{background:#f5f7f9!important;border-color:var(--border)!important;color:#425066!important}
body.td-page-account .rowTitle{font-size:15px!important;color:var(--text)!important}
body.td-page-account .rowDesc,
body.td-page-account .securityStatus{font-size:13px!important}
body.td-page-account .rowDesc{color:var(--muted)!important}
body.td-page-account .securityStatus{color:#16845c!important}
body.td-page-account .orderName{font-size:14px!important}
body.td-page-account .orderDate,
body.td-page-account .status,
body.td-page-account .empty{font-size:12.5px!important}
body.td-page-account .logoutBtn{
  background:#fff!important;
  border-color:var(--border)!important;
  color:#526076!important;
  font-size:14.5px!important;
}
body.td-page-account .deleteLink,
body.td-page-account .dangerNote{font-size:12.5px!important}
body.td-page-account .tdRedeemTitle{font-size:16px!important;color:var(--text)!important}
body.td-page-account .tdRedeemDesc,
body.td-page-account .tdRedeemNote{font-size:13px!important;color:var(--muted)!important}
body.td-page-account .adminHub{
  background:#fffaf0!important;
  border-color:#ead9ac!important;
  box-shadow:var(--shadow)!important;
  color:var(--text)!important;
}
body.td-page-account .adminHubIcon{background:#fff4cf!important;border-color:#ead9ac!important;color:#8b6519!important}
body.td-page-account .adminHubTitle{font-size:16px!important}
body.td-page-account .adminHubDesc{font-size:13px!important;color:#776a48!important}

/* Admin */
body.td-page-admin .wrap{width:min(1080px,100%)!important;padding-top:25px!important}
body.td-page-admin .tabs{
  background:#fff!important;
  border-color:var(--border)!important;
  box-shadow:var(--shadow)!important;
}
body.td-page-admin .tab{color:#6e7a8d!important;font-size:14.5px!important}
body.td-page-admin .tab.active{background:#eef9f3!important;color:#167d57!important;box-shadow:inset 0 0 0 1px #cbe8da!important}
body.td-page-admin .badge{background:#eef1f4!important;color:#5c687b!important;font-size:11.5px!important}
body.td-page-admin .tab.active .badge{background:#dff4e9!important;color:#167d57!important}
body.td-page-admin .metric{background:#fff!important;border-color:var(--border)!important;box-shadow:var(--shadow)!important}
body.td-page-admin .metricLabel{font-size:13px!important;color:var(--muted)!important}
body.td-page-admin .metricValue{color:var(--text)!important}
body.td-page-admin .filter{
  background:#fff!important;
  border-color:var(--border)!important;
  color:#647186!important;
  font-size:13px!important;
}
body.td-page-admin .filter.active{background:#eef9f3!important;border-color:#c8e8d8!important;color:#167d57!important}
body.td-page-admin .orderTitle{font-size:14.5px!important;color:var(--text)!important}
body.td-page-admin .meta{font-size:12.5px!important;color:var(--muted)!important}
body.td-page-admin .status,
body.td-page-admin .provider,
body.td-page-admin .contactStatus{font-size:11.5px!important;background:#f7f9fb!important}
body.td-page-admin .contactText{font-size:14px!important;color:#425066!important}
body.td-page-admin .empty{font-size:13.5px!important;color:var(--muted)!important}
body.td-page-admin .sheet,
body.td-page-account .sheet{
  background:#fff!important;
  border-color:var(--border)!important;
  color:var(--text)!important;
}
body.td-page-admin .sheetHead,
body.td-page-account .sheetHead{background:#fff!important;border-bottom-color:#e3e8ed!important}
body.td-page-admin .close,
body.td-page-account .sheetClose{background:#f5f7f9!important;border-color:var(--border)!important;color:#4a586d!important}
body.td-page-admin .label{font-size:12px!important;color:var(--muted)!important}
body.td-page-admin .value{font-size:13.5px!important;color:#3f4d62!important}
body.td-page-admin .grid{border-color:var(--border)!important}
body.td-page-admin .cell{border-color:#e4e9ee!important}
body.td-page-admin .historyBox{background:#f7f9fb!important;border-color:#dce3e9!important;color:#677488!important}
body.td-page-admin .audit{background:#f1f8fd!important;border-color:#cfe2ef!important;color:#41647c!important}
body.td-page-admin .refundBox{background:#fff6f6!important;border-color:#edcbd0!important;color:#70444b!important}
body.td-page-admin .refundReason{background:#fff!important;border-color:#dfc9cd!important;color:var(--text)!important}

/* Generic legal / informational pages */
body.td-page-terms .wrap,
body.td-page-privacy .wrap,
body.td-page-payment-return .wrap{max-width:900px!important}
body.td-page-terms .card,
body.td-page-privacy .card,
body.td-page-payment-return .card{background:#fff!important;color:var(--text)!important}
body.td-page-terms p,
body.td-page-terms li,
body.td-page-privacy p,
body.td-page-privacy li{font-size:15px!important;line-height:1.75!important;color:#4f5d71!important}

/* Dialog backdrop is shared, only the sheet changes to light. */
body.td-unified-ui .modal,
body.td-unified-ui .sheetBackdrop,
body.td-unified-ui .membershipModal,
body.td-unified-ui .tdExampleModal{background:rgba(29,39,54,.46)!important}

@media(max-width:700px){
  body.td-unified-ui{font-size:15.5px}
  body.td-unified-ui .brand{font-size:25px!important}
  body.td-unified-ui .title{font-size:27px!important}
  body.td-unified-ui .sub{font-size:13.5px!important}
  body.td-unified-ui button,
  body.td-unified-ui .btn,
  body.td-unified-ui a.btn{font-size:14px!important}
  body.td-page-login .card,
  body.td-page-register .card,
  body.td-page-forgot-password .card,
  body.td-page-reset-password .card{padding:22px!important}
  body.td-page-login h1,
  body.td-page-register h1,
  body.td-page-forgot-password h1,
  body.td-page-reset-password h1{font-size:29px!important}
}
