:root {
  --t4f-ink: #171816;
  --t4f-ink-soft: #24251f;
  --t4f-ink-muted: #34352f;
  --t4f-paper: #f7f5ef;
  --t4f-surface: #ffffff;
  --t4f-surface-muted: #efede6;
  --t4f-gold: #c7a84b;
  --t4f-gold-strong: #a9872d;
  --t4f-gold-soft: #f3ead0;
  --t4f-text: #24251f;
  --t4f-text-muted: #67685f;
  --t4f-line: #dedbd2;
  --t4f-success: #1f8a5b;
  --t4f-warning: #b7791f;
  --t4f-danger: #c2413b;
  --t4f-info: #356a8a;
  --t4f-radius-sm: 8px;
  --t4f-radius-md: 14px;
  --t4f-radius-lg: 22px;
  --t4f-shadow-sm: 0 1px 2px rgb(23 24 22 / 6%);
  --t4f-shadow-md: 0 18px 50px rgb(23 24 22 / 10%);
  --t4f-content: 1180px;
  --t4f-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang TC", "PingFang SC", "Microsoft JhengHei",
    "Microsoft YaHei", sans-serif;
}

.t4f-public,
.t4f-workspace,
.t4f-purchase,
.t4f-product-detail {
  color: var(--t4f-text);
  font-family: var(--t4f-font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.t4f-public *,
.t4f-workspace *,
.t4f-purchase *,
.t4f-product-detail * {
  box-sizing: border-box;
}

.t4f-public :where(a, button, input, select, textarea),
.t4f-workspace :where(a, button, input, select, textarea),
.t4f-purchase :where(a, button, input, select, textarea),
.t4f-product-detail :where(a, button, input, select, textarea) {
  font: inherit;
}

.t4f-public :where(a, button, input, select, textarea):focus-visible,
.t4f-workspace :where(a, button, input, select, textarea):focus-visible,
.t4f-purchase :where(a, button, input, select, textarea):focus-visible,
.t4f-product-detail :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgb(199 168 75 / 34%);
  outline-offset: 3px;
}

.t4f-container {
  width: min(calc(100% - 40px), var(--t4f-content));
  margin-inline: auto;
}

.t4f-section {
  padding-block: clamp(64px, 8vw, 108px);
}

.t4f-eyebrow {
  margin: 0 0 14px;
  color: var(--t4f-gold-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.t4f-display {
  margin: 0;
  max-width: 16ch;
  color: inherit;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.t4f-section-title {
  margin: 0;
  max-width: 22ch;
  color: var(--t4f-text);
  font-size: clamp(1.85rem, 3.2vw, 3.2rem);
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.t4f-lead {
  max-width: 64ch;
  color: var(--t4f-text-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.t4f-btn-primary,
.t4f-btn-secondary,
.t4f-btn-quiet {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--t4f-radius-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease,
    color 180ms ease, transform 180ms ease;
}

.t4f-btn-primary {
  background: var(--t4f-gold);
  color: var(--t4f-ink);
  border: 1px solid var(--t4f-gold);
}

.t4f-btn-primary:hover {
  background: #d2b65e;
  border-color: #d2b65e;
  color: var(--t4f-ink);
  transform: translateY(-1px);
}

.t4f-btn-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid var(--t4f-line);
}

.t4f-btn-secondary:hover {
  border-color: var(--t4f-gold-strong);
  color: var(--t4f-gold-strong);
  transform: translateY(-1px);
}

.t4f-btn-quiet {
  background: transparent;
  color: var(--t4f-text-muted);
  border: 1px solid transparent;
}

.t4f-btn-quiet:hover {
  color: var(--t4f-text);
  background: var(--t4f-surface-muted);
}

.t4f-card,
.t4f-tool-panel,
.t4f-media-panel,
.t4f-form-section,
.t4f-data-surface,
.t4f-state-panel {
  background: var(--t4f-surface);
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-md);
  box-shadow: var(--t4f-shadow-sm);
}

.t4f-field,
.t4f-public .input-field,
.t4f-workspace :where(input, select, textarea),
.t4f-purchase .form-control {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-sm);
  background: var(--t4f-surface);
  color: var(--t4f-text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.t4f-field:focus,
.t4f-public .input-field:focus,
.t4f-workspace :where(input, select, textarea):focus,
.t4f-purchase .form-control:focus {
  border-color: var(--t4f-gold-strong);
  box-shadow: 0 0 0 4px rgb(199 168 75 / 13%);
  outline: none;
}

.t4f-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--t4f-line);
  border-radius: 999px;
  background: var(--t4f-surface);
  color: var(--t4f-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.t4f-divider {
  height: 1px;
  border: 0;
  background: var(--t4f-line);
}

.t4f-module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.t4f-module-header h1,
.t4f-module-header h2 {
  margin: 0;
}

.t4f-toolbar,
.t4f-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.t4f-list-row,
.t4f-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--t4f-line);
}

.t4f-list-row:last-child,
.t4f-product-row:last-child {
  border-bottom: 0;
}

.t4f-state-panel {
  padding: 28px;
  text-align: center;
  color: var(--t4f-text-muted);
}

.t4f-public {
  min-height: 100vh;
  background: var(--t4f-paper);
}

.t4f-public #home-page {
  overflow: clip;
}

.t4f-public header {
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(23 24 22 / 96%);
  backdrop-filter: blur(16px);
}

.t4f-public .section-title {
  color: var(--t4f-text);
  letter-spacing: -0.035em;
}

.t4f-public .section-desc {
  color: var(--t4f-text-muted);
}

.t4f-public .feature-card,
.t4f-public .system-card,
.t4f-public .process-card {
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-md);
  box-shadow: none;
}

.t4f-public .modal-content {
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-lg);
  box-shadow: var(--t4f-shadow-md);
}

.t4f-public .top-nav {
  background: rgb(23 24 22 / 97%);
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  box-shadow: none;
}

.t4f-public .top-nav-item {
  position: relative;
  font-size: 0.9rem;
  font-weight: 650;
  color: rgb(255 255 255 / 72%);
}

.t4f-public .top-nav-item:hover,
.t4f-public .top-nav-item.active {
  color: #f5e8ba;
}

.t4f-public-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 132px) 0 0;
  background: var(--t4f-ink);
  color: #f7f4eb;
}

.t4f-public-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  padding-bottom: clamp(64px, 8vw, 112px);
}

.t4f-public-hero-copy .t4f-eyebrow {
  max-width: 58ch;
  color: #cbbf9d;
  font-size: 0.72rem;
  line-height: 1.6;
}

.t4f-public-hero-copy .t4f-display {
  max-width: 13ch;
}

.t4f-hero-emphasis {
  display: block;
  color: #e0c66f;
}

.t4f-public-hero .t4f-lead {
  margin: 28px 0 0;
  max-width: 58ch;
  color: rgb(255 255 255 / 64%);
}

.t4f-public-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.t4f-public-actions .t4f-btn-secondary {
  color: #fff;
  border-color: rgb(255 255 255 / 22%);
}

.t4f-capability-index {
  position: relative;
  padding: 18px 0 18px 38px;
  border-left: 1px solid rgb(255 255 255 / 16%);
}

.t4f-hero-mark {
  width: min(210px, 58%);
  height: auto;
  display: block;
  margin: 0 0 32px auto;
  opacity: 0.92;
}

.t4f-capability-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.t4f-capability-row > span {
  color: var(--t4f-gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.t4f-capability-row > strong {
  color: rgb(255 255 255 / 84%);
  font-size: 0.95rem;
  font-weight: 650;
}

.t4f-public-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgb(255 255 255 / 13%);
}

.t4f-stat-item {
  min-width: 0;
  padding: 26px clamp(12px, 2.4vw, 30px);
  border-right: 1px solid rgb(255 255 255 / 12%);
}

.t4f-stat-item:last-child {
  border-right: 0;
}

.t4f-stat-item p {
  margin: 0 0 5px;
  color: #ead27e;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}

.t4f-stat-item span {
  color: rgb(255 255 255 / 54%);
  font-size: 0.82rem;
}

.t4f-benefit-list > .container > div:first-child,
.t4f-system-section > .container > div:first-child,
.t4f-process-section > .container > div:first-child,
.t4f-faq-section > .container > div:first-child {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.t4f-benefit-list > .container > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--t4f-line);
}

.t4f-benefit-list > .container > div:last-child > div {
  position: relative;
  min-height: 230px;
  padding: 34px 38px 34px 86px;
  border: 0;
  border-right: 1px solid var(--t4f-line);
  border-bottom: 1px solid var(--t4f-line);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.t4f-benefit-list > .container > div:last-child > div:nth-child(2n) {
  border-right: 0;
}

.t4f-benefit-list > .container > div:last-child > div:hover {
  background: #fbfaf6;
  transform: none;
}

.t4f-benefit-list > .container > div:last-child > div > div:first-child {
  position: absolute;
  top: 34px;
  left: 28px;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  background: var(--t4f-gold-soft);
}

.t4f-benefit-list h3,
.t4f-benefit-list p {
  text-align: left !important;
}

.t4f-benefit-list h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

.t4f-benefit-list p {
  line-height: 1.75;
}

.t4f-system-section {
  background: var(--t4f-surface-muted) !important;
}

.t4f-system-section .shadow-card,
.t4f-process-section .shadow-card,
.t4f-faq-section .shadow-card {
  box-shadow: none;
}

.t4f-system-section .max-w-6xl > div:first-child {
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-lg);
  background: var(--t4f-surface);
}

.t4f-system-section .max-w-6xl > div:first-child .bg-gray-50 {
  border: 0;
  border-radius: var(--t4f-radius-sm);
  background: transparent;
}

.t4f-process-section .grid > div {
  padding: 30px 0 0;
  border: 0;
  border-top: 2px solid var(--t4f-line);
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  transform: none;
}

.t4f-process-section .grid > div > div:not(.hidden) {
  width: 42px;
  height: 42px;
  margin: 0 0 22px;
  background: var(--t4f-ink);
  color: #f4dd8d;
  box-shadow: none;
  font-size: 1rem;
}

.t4f-process-section .grid > div > .hidden {
  display: none !important;
}

.t4f-license-preview {
  background: #e9e3d4;
}

.t4f-license-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.t4f-license-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 28px;
  color: var(--t4f-text-muted);
}

.t4f-license-price strong {
  color: var(--t4f-text);
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
}

.t4f-license-benefits {
  border-top: 1px solid rgb(36 37 31 / 22%);
}

.t4f-license-benefits > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgb(36 37 31 / 16%);
}

.t4f-license-benefits i {
  color: var(--t4f-gold-strong);
}

.t4f-license-benefits .t4f-btn-primary {
  margin-top: 24px;
}

.t4f-faq-section {
  background: var(--t4f-paper) !important;
}

.t4f-faq-section .space-y-4 {
  max-width: 920px;
  margin-left: 0;
}

.t4f-faq-section .space-y-4 > div {
  border: 0;
  border-top: 1px solid var(--t4f-line);
  border-radius: 0;
  background: transparent;
}

.t4f-faq-section .space-y-4 > div:last-child {
  border-bottom: 1px solid var(--t4f-line);
}

.t4f-faq-section .faq-toggle {
  padding: 24px 0;
  background: transparent;
}

.t4f-faq-section .faq-content {
  background: transparent;
}

.t4f-faq-section .faq-content > div {
  padding: 0 42px 26px 0;
  line-height: 1.75;
}

.t4f-community-section {
  background: var(--t4f-surface);
}

.t4f-community-section .group-section {
  width: min(calc(100% - 40px), var(--t4f-content));
  margin-inline: auto;
  border-radius: var(--t4f-radius-lg);
  background: var(--t4f-ink);
  box-shadow: none;
}

.t4f-community-section .group-section::before,
.t4f-community-section .group-section::after {
  display: none;
}

.t4f-community-section .backdrop-blur-sm {
  border: 1px solid rgb(255 255 255 / 12%);
  background: transparent;
  backdrop-filter: none;
}

.t4f-public footer {
  border-top: 1px solid rgb(255 255 255 / 8%);
  background: #11120f;
}

.t4f-workspace {
  background: var(--t4f-paper);
  color: var(--t4f-text);
}

.t4f-workspace .sidebar {
  background: var(--t4f-ink);
  border-right: 1px solid rgb(255 255 255 / 8%);
  box-shadow: none;
}

.t4f-workspace .sidebar-brand {
  border-bottom-color: rgb(255 255 255 / 9%);
}

.t4f-workspace .nav-item a {
  border-radius: var(--t4f-radius-sm);
}

.t4f-workspace .nav-item.active a {
  background: rgb(199 168 75 / 13%);
  color: #f5e8ba;
  box-shadow: inset 3px 0 0 var(--t4f-gold);
}

.t4f-workspace .main-content {
  background: var(--t4f-paper);
}

.t4f-workspace .card,
.t4f-workspace .stat-card,
.t4f-workspace .result-card,
.t4f-workspace .input-bar {
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-md);
  box-shadow: var(--t4f-shadow-sm);
}

.t4f-workspace .btn {
  min-height: 42px;
  border-radius: var(--t4f-radius-sm);
  box-shadow: none;
}

.t4f-workspace .sidebar {
  width: 244px;
  padding: 0 14px;
  color: rgb(255 255 255 / 72%);
  backdrop-filter: none;
}

.t4f-workspace .sidebar-brand {
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 26px 12px 22px;
}

.t4f-workspace .brand-text .main-title {
  background: none;
  color: #ead27e;
  -webkit-text-fill-color: currentColor;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.t4f-workspace .nav-menu {
  padding: 12px 0;
}

.t4f-workspace .nav-item {
  margin: 2px 0;
  border-radius: var(--t4f-radius-sm);
}

.t4f-workspace .nav-item a {
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  color: rgb(255 255 255 / 62%);
  border-radius: var(--t4f-radius-sm);
  font-size: 0.88rem;
  font-weight: 570;
  overflow: visible;
  transform: none;
}

.t4f-workspace .nav-item a:hover {
  background: rgb(255 255 255 / 6%);
  color: #fff;
  transform: none;
}

.t4f-workspace .nav-item.active a {
  background: rgb(199 168 75 / 13%);
  color: #f5e8ba !important;
  box-shadow: inset 3px 0 0 var(--t4f-gold);
}

.t4f-workspace .nav-item.active .nav-text,
.t4f-workspace .nav-item.active .nav-icon {
  color: #f5e8ba !important;
}

.t4f-workspace .nav-icon {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  opacity: 0.78;
  object-fit: contain;
}

.t4f-workspace .nav-item a:hover .nav-icon,
.t4f-workspace .nav-item.active .nav-icon {
  opacity: 1;
  transform: none;
  animation: none;
}

.t4f-workspace .sidebar-ad-slot {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--t4f-radius-sm);
  background: rgb(255 255 255 / 4%);
  box-shadow: none;
}

.t4f-workspace .sidebar-ad-slot h4 {
  color: rgb(255 255 255 / 76%);
}

.t4f-workspace .sidebar-ad-slot p,
.t4f-workspace .logout-item a {
  color: rgb(255 255 255 / 45%);
}

.t4f-workspace .sidebar-footer {
  padding: 16px 0 22px;
  border-top-color: rgb(255 255 255 / 8%);
}

.t4f-workspace .main-content {
  min-height: 100vh;
  margin-left: 244px;
  padding: clamp(24px, 3vw, 46px);
}

.t4f-workspace .module {
  width: min(100%, 1380px);
  margin-inline: auto;
}

.t4f-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--t4f-line);
}

.t4f-panel-header h1 {
  margin: 0;
  color: var(--t4f-text);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 740;
  letter-spacing: -0.04em;
}

.t4f-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 26px;
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-md);
  background: var(--t4f-surface);
  overflow: hidden;
}

.t4f-workspace .t4f-dashboard-stats .stat-card {
  min-width: 0;
  padding: 24px;
  border: 0;
  border-right: 1px solid var(--t4f-line);
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

.t4f-workspace .t4f-dashboard-stats .stat-card:last-child {
  border-right: 0;
}

.t4f-stat-icon {
  margin-bottom: 18px;
  color: var(--t4f-gold-strong);
  font-size: 1rem;
}

.t4f-workspace .t4f-dashboard-stats .stat-value {
  color: var(--t4f-text);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.t4f-workspace .t4f-dashboard-stats .stat-label {
  color: var(--t4f-text-muted);
  font-size: 0.82rem;
}

.t4f-workspace .t4f-license-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 24px 26px;
  border: 1px solid #ddcf9f !important;
  background: #f4edd8 !important;
  box-shadow: none;
}

.t4f-workspace .t4f-license-status h2 {
  color: var(--t4f-text);
  font-size: 1.05rem;
}

.t4f-workspace .t4f-license-status #ea-status-icon {
  color: var(--t4f-warning);
}

.t4f-workspace .t4f-status-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 10px;
}

.t4f-workspace .t4f-status-icon.is-success {
  color: #28875a !important;
}

.t4f-workspace .t4f-status-icon.is-warning {
  color: #a46d16 !important;
}

.t4f-workspace .t4f-status-icon svg,
.t4f-workspace .t4f-button-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t4f-workspace .t4f-primary-tool-watermark {
  position: absolute;
  right: -10px;
  bottom: -18px;
  width: min(32vw, 330px);
  color: #ead27e;
  opacity: 0.09;
  pointer-events: none;
  transform: rotate(-5deg);
}

.t4f-workspace .t4f-primary-tool-watermark svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t4f-workspace .t4f-primary-tool {
  min-height: 300px;
  padding: clamp(28px, 4vw, 54px) !important;
  border: 0 !important;
  border-radius: var(--t4f-radius-lg);
  background: var(--t4f-ink) !important;
  box-shadow: none;
}

.t4f-workspace .t4f-primary-tool > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-right: 0 !important;
}

.t4f-workspace .t4f-primary-tool > div:last-child {
  display: none;
}

.t4f-workspace .t4f-primary-tool-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: var(--t4f-gold) !important;
  color: var(--t4f-ink);
  box-shadow: none !important;
  font-size: 1rem !important;
}

.t4f-workspace .t4f-primary-tool h2 {
  color: #ead27e !important;
  letter-spacing: -0.025em;
}

.t4f-workspace .t4f-primary-tool .t4f-btn-primary,
.t4f-workspace .t4f-license-status .t4f-btn-primary {
  background: var(--t4f-gold) !important;
  color: var(--t4f-ink) !important;
  box-shadow: none !important;
}

.t4f-workspace .t4f-recent-history {
  padding: 0;
  overflow: hidden;
}

.t4f-workspace .t4f-recent-history > div:first-child {
  margin: 0 !important;
  padding: 20px 24px;
  border-bottom: 1px solid var(--t4f-line);
}

.t4f-workspace #dashboard-history-list {
  padding: 4px 24px 18px;
}

.t4f-workspace .ad-banner-card {
  padding: 18px 22px;
  border: 1px dashed #d5cfbd;
  background: transparent;
  box-shadow: none;
}

.t4f-workspace .ad-banner-card .ad-badge {
  background: var(--t4f-surface-muted);
  color: var(--t4f-text-muted);
}

.t4f-module-surface > h1,
.t4f-module-surface > div:first-child h1 {
  color: var(--t4f-text) !important;
  font-size: clamp(1.7rem, 2.8vw, 2.45rem) !important;
  font-weight: 740 !important;
  letter-spacing: -0.035em !important;
}

.t4f-module-surface > h1 {
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--t4f-line);
}

.t4f-module-surface .card {
  box-shadow: none;
}

.t4f-module-surface .analysis-header {
  margin-bottom: 20px !important;
  padding: 0 0 18px !important;
  border: 0;
  border-bottom: 1px solid var(--t4f-line);
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.t4f-module-surface .analysis-header h1 {
  color: var(--t4f-text) !important;
  font-size: clamp(1.7rem, 2.8vw, 2.45rem) !important;
  letter-spacing: -0.035em;
}

.t4f-tool-surface #analysis-content-wrapper {
  padding: 0 !important;
}

.t4f-tool-surface #analysis-intro {
  max-width: 900px;
  margin: 0 auto 30px !important;
  text-align: left !important;
}

.t4f-tool-surface #analysis-intro > div:first-child {
  display: none;
}

.t4f-tool-surface #analysis-intro h2 {
  color: var(--t4f-text) !important;
  font-size: clamp(1.7rem, 3vw, 2.65rem) !important;
  letter-spacing: -0.04em !important;
}

.t4f-tool-surface #analysis-intro > p {
  max-width: 62ch;
  color: var(--t4f-text-muted) !important;
  line-height: 1.75;
}

.t4f-tool-surface #analysis-intro .tag-gold {
  border-color: var(--t4f-line) !important;
  background: var(--t4f-surface-muted) !important;
  color: var(--t4f-text-muted) !important;
}

.t4f-tool-surface .analysis-methods > div {
  width: min(100%, 420px) !important;
  border: 1px solid var(--t4f-line) !important;
  border-radius: var(--t4f-radius-md) !important;
  background: var(--t4f-surface) !important;
  box-shadow: none !important;
}

.t4f-tool-surface .analysis-methods h3 {
  color: var(--t4f-text) !important;
}

.t4f-tool-surface .input-bar {
  border: 1px solid var(--t4f-line) !important;
  border-radius: var(--t4f-radius-md) !important;
  background: var(--t4f-surface-muted) !important;
  box-shadow: none !important;
}

.t4f-tool-surface #deepseek-input {
  border-color: var(--t4f-line) !important;
  box-shadow: none !important;
}

.t4f-list-surface .brokers-showcase {
  padding: 0;
  overflow: hidden;
}

.t4f-list-surface .broker-grid {
  gap: 0;
}

.t4f-list-surface .broker-card {
  border: 0;
  border-bottom: 1px solid var(--t4f-line);
  border-radius: 0;
  box-shadow: none;
}

.t4f-list-surface .broker-card:last-child {
  border-bottom: 0;
}

.t4f-list-surface .broker-badge {
  border-radius: 999px;
  background: var(--t4f-surface-muted);
  color: var(--t4f-text-muted);
}

.t4f-list-surface .broker-cta,
.t4f-download-surface .ea-download-link {
  background: var(--t4f-gold) !important;
  color: var(--t4f-ink) !important;
  box-shadow: none !important;
}

.t4f-media-surface .video-card {
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-md);
  box-shadow: none;
  overflow: hidden;
}

.t4f-media-surface iframe {
  background: var(--t4f-ink);
}

.t4f-download-surface .ea-download-tab-btn {
  min-height: 42px;
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-sm);
  background: var(--t4f-surface);
  color: var(--t4f-text-muted);
}

.t4f-download-surface .ea-download-tab-btn.active {
  border-color: var(--t4f-gold-strong);
  background: var(--t4f-gold-soft);
  color: var(--t4f-text);
}

.t4f-download-surface .ea-download-tab-pane,
.t4f-chart-surface > .card,
.t4f-contact-surface > .card,
.t4f-profile-surface > .card,
.t4f-history-surface > .card {
  border: 1px solid var(--t4f-line);
  background: var(--t4f-surface);
  box-shadow: none;
}

.t4f-data-module > div:first-child {
  margin-bottom: 24px !important;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--t4f-line);
}

.t4f-data-module > div[style*="display: grid"] > div {
  border-color: var(--t4f-line) !important;
  border-radius: var(--t4f-radius-md) !important;
  box-shadow: none !important;
}

.t4f-data-module button,
.t4f-data-module a,
.t4f-chart-surface button,
.t4f-chart-surface a {
  box-shadow: none !important;
}

.t4f-profile-surface .grid-2 {
  align-items: start;
}

.t4f-profile-surface .form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--t4f-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.t4f-profile-surface .card .card {
  border-radius: var(--t4f-radius-sm);
  background: var(--t4f-surface-muted);
}

.t4f-history-surface > p {
  margin-top: -14px;
  margin-bottom: 24px !important;
}

.t4f-history-surface > .stats-grid {
  gap: 0;
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-md);
  background: var(--t4f-surface);
  overflow: hidden;
}

.t4f-history-surface > .stats-grid .stat-card {
  border: 0;
  border-right: 1px solid var(--t4f-line);
  border-radius: 0;
  box-shadow: none;
}

.t4f-history-surface > .stats-grid .stat-card:last-child {
  border-right: 0;
}

.t4f-history-surface > .card > div:first-child {
  margin-bottom: 0 !important;
}

.t4f-history-surface #history-search-btn,
.t4f-profile-surface #profile-save-btn,
.t4f-profile-surface #profile-ea-buy-btn {
  background: var(--t4f-gold) !important;
  color: var(--t4f-ink) !important;
  box-shadow: none !important;
}

.t4f-purchase {
  min-height: 100vh;
  background: var(--t4f-paper);
}

.t4f-purchase .container {
  max-width: 1080px;
}

.t4f-purchase .card {
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-md);
  box-shadow: var(--t4f-shadow-sm);
}

.t4f-purchase .price {
  color: var(--t4f-gold-strong);
}

.t4f-purchase .btn-pay {
  min-height: 52px;
  border-radius: var(--t4f-radius-sm);
  background: var(--t4f-gold);
  color: var(--t4f-ink);
}

.t4f-purchase .btn-pay:hover {
  background: #d2b65e;
}

.t4f-checkout-header {
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  background: var(--t4f-ink);
}

.t4f-checkout-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.t4f-checkout-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ead27e;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.t4f-checkout-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.t4f-checkout-back {
  color: rgb(255 255 255 / 65%);
}

.t4f-checkout-back:hover {
  background: rgb(255 255 255 / 6%);
  color: #fff;
}

.t4f-purchase .t4f-checkout-shell {
  margin: clamp(34px, 6vw, 76px) auto;
  padding: 0 20px;
}

.t4f-purchase .purchase-grid {
  grid-template-columns: minmax(300px, 0.82fr) minmax(380px, 1.18fr);
  gap: 24px;
  align-items: stretch;
}

.t4f-purchase .t4f-plan-summary,
.t4f-purchase .t4f-checkout-form {
  padding: clamp(28px, 4vw, 44px);
}

.t4f-purchase .t4f-plan-summary {
  border-color: var(--t4f-ink);
  background: var(--t4f-ink);
  color: #fff;
}

.t4f-purchase .t4f-plan-summary h2 {
  color: #ead27e;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.t4f-purchase .t4f-plan-summary .price {
  margin: 34px 0 6px;
  color: #f5e8ba;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  letter-spacing: -0.065em;
  line-height: 1;
  text-align: left;
}

.t4f-purchase .t4f-plan-summary .price::before {
  content: "¥";
  margin-right: 7px;
  color: var(--t4f-gold);
  font-size: 1.1rem;
}

.t4f-purchase .t4f-plan-summary .subtitle {
  margin-bottom: 42px;
  color: rgb(255 255 255 / 52%);
  text-align: left;
}

.t4f-purchase .t4f-plan-summary .feature-item {
  align-items: flex-start;
  padding: 12px 0;
  margin: 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: rgb(255 255 255 / 76%);
  line-height: 1.55;
}

.t4f-purchase .t4f-plan-summary .check-icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  background: transparent;
  color: #e5cb72;
}

.t4f-purchase .t4f-checkout-form h2 {
  margin-bottom: 30px;
  color: var(--t4f-text);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.t4f-purchase .t4f-checkout-form .form-group {
  margin-bottom: 24px;
}

.t4f-purchase .t4f-checkout-form .form-label {
  margin-bottom: 8px;
  color: var(--t4f-text-muted);
  font-size: 0.82rem;
  font-weight: 680;
}

.t4f-purchase .t4f-checkout-form .form-control {
  padding: 13px 14px;
}

.t4f-purchase .payment-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-color: var(--t4f-line);
  background: var(--t4f-surface);
}

.t4f-purchase .payment-card.active {
  border-color: var(--t4f-gold-strong);
  background: var(--t4f-gold-soft);
}

.t4f-purchase .payment-card i,
.t4f-purchase .payment-card img {
  margin: 0;
}

.t4f-purchase .t4f-checkout-form .btn-pay {
  width: 100%;
  margin-top: 8px;
  border: 0;
  font-size: 1rem;
  font-weight: 760;
}

.t4f-purchase .t4f-purchase-notes {
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-md);
  background: transparent;
  color: var(--t4f-text-muted);
}

.t4f-purchase .t4f-purchase-notes .info-title {
  color: var(--t4f-text);
}

.t4f-product-detail {
  min-height: 100vh;
  background: var(--t4f-paper);
  color: var(--t4f-text);
}

.t4f-product-detail .container {
  max-width: 1040px;
}

.t4f-product-detail :where(.header, .section, .info-card, .feature-card, .download-section) {
  border-color: var(--t4f-line);
  box-shadow: var(--t4f-shadow-sm);
}

.t4f-product-detail .btn-download {
  border-radius: var(--t4f-radius-sm);
  background: var(--t4f-gold);
  color: var(--t4f-ink);
  box-shadow: none;
}

.t4f-detail-header,
.t4f-detail-hero,
.t4f-detail-section,
.t4f-download-panel {
  width: min(calc(100% - 40px), 1040px);
  margin-inline: auto;
}

.t4f-detail-section {
  padding-block: 34px;
  border-bottom: 1px solid var(--t4f-line);
}

.t4f-spec-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-md);
}

.t4f-install-steps {
  display: grid;
  gap: 12px;
  counter-reset: install-step;
}

.t4f-install-steps > * {
  counter-increment: install-step;
}

.t4f-product-detail > .container {
  width: min(calc(100% - 40px), 1040px);
  margin: clamp(28px, 5vw, 64px) auto;
  padding: 0 0 60px;
}

.t4f-product-detail .t4f-detail-header {
  width: 100%;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 0 0 22px;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid var(--t4f-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.t4f-product-detail .t4f-detail-header h1 {
  margin: 0;
  color: var(--t4f-text);
  font-size: clamp(2rem, 4.8vw, 4.25rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.t4f-product-detail .back-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--t4f-line);
  border-radius: var(--t4f-radius-sm);
  background: var(--t4f-surface);
  color: var(--t4f-text-muted);
  box-shadow: none;
  text-decoration: none;
}

.t4f-product-detail .product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 36px;
}

.t4f-product-detail .tag,
.t4f-product-detail .tag.version {
  padding: 6px 10px;
  border: 1px solid var(--t4f-line);
  border-radius: 999px;
  background: var(--t4f-surface);
  color: var(--t4f-text-muted);
  font-size: 0.75rem;
}

.t4f-product-detail .t4f-detail-hero {
  width: 100%;
  margin: 0 0 44px;
  padding: clamp(28px, 4vw, 46px);
  border: 0;
  border-radius: var(--t4f-radius-lg);
  background: var(--t4f-ink);
  color: rgb(255 255 255 / 72%);
  box-shadow: none;
}

.t4f-product-detail .t4f-detail-hero :where(h2, h3, strong) {
  color: #f2dd91;
}

.t4f-product-detail .t4f-detail-hero p {
  margin: 0;
  color: rgb(255 255 255 / 68%) !important;
  font-size: 1.03rem;
  line-height: 1.85;
}

.t4f-product-detail > .container > h2 {
  margin: 52px 0 18px;
  color: var(--t4f-text);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
}

.t4f-product-detail > .container > h3 {
  margin: 34px 0 12px;
  color: var(--t4f-text);
  font-size: 1.18rem;
}

.t4f-product-detail .section-box,
.t4f-product-detail .role-box,
.t4f-product-detail .role-card,
.t4f-product-detail .value-box,
.t4f-product-detail .quote-box,
.t4f-product-detail .install-box,
.t4f-product-detail .contact-info {
  border: 1px solid var(--t4f-line) !important;
  border-radius: var(--t4f-radius-md) !important;
  background: var(--t4f-surface) !important;
  box-shadow: none !important;
}

.t4f-product-detail .t4f-detail-section {
  width: 100%;
  margin: 0 0 26px;
  padding: 28px;
}

.t4f-product-detail .feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--t4f-line);
}

.t4f-product-detail .feature-list li {
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid var(--t4f-line);
  color: var(--t4f-text-muted);
  line-height: 1.65;
}

.t4f-product-detail .feature-list li::before {
  color: var(--t4f-gold-strong);
}

.t4f-product-detail .model-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.t4f-product-detail .model-table th,
.t4f-product-detail .model-table td {
  padding: 14px 16px;
  border-color: var(--t4f-line);
  text-align: left;
}

.t4f-product-detail .model-table th {
  background: var(--t4f-surface-muted);
  color: var(--t4f-text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.t4f-contract-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.t4f-model-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--t4f-line);
  border-bottom: 1px solid var(--t4f-line);
}

.t4f-model-comparison article {
  position: relative;
  padding: 28px 30px 30px 62px;
  border-right: 1px solid var(--t4f-line);
}

.t4f-model-comparison article:last-child {
  border-right: 0;
}

.t4f-model-comparison article > span {
  position: absolute;
  top: 29px;
  left: 0;
  color: var(--t4f-gold-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 760;
}

.t4f-model-comparison h4 {
  margin: 0 0 8px;
  color: var(--t4f-text);
  font-size: 1.1rem;
}

.t4f-model-comparison p {
  margin: 0;
  color: var(--t4f-text-muted);
  line-height: 1.65;
}

.t4f-product-detail .t4f-dual-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--t4f-line);
  border-bottom: 1px solid var(--t4f-line);
}

.t4f-product-detail .t4f-dual-role-grid .role-box {
  margin: 0;
  padding: 28px;
  border: 0 !important;
  border-right: 1px solid var(--t4f-line) !important;
  border-radius: 0 !important;
}

.t4f-product-detail .t4f-dual-role-grid .role-box:last-child {
  border-right: 0 !important;
}

.t4f-product-detail .t4f-audit-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--t4f-line);
  border-bottom: 1px solid var(--t4f-line);
  background: transparent;
}

.t4f-product-detail .t4f-audit-flow .flow-node {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 26px;
  border: 0;
  border-right: 1px solid var(--t4f-line);
  border-radius: 0;
  background: transparent;
  color: var(--t4f-text);
  box-shadow: none;
}

.t4f-product-detail .t4f-audit-flow .flow-arrow {
  display: none;
}

.t4f-product-detail .t4f-audit-flow .flow-branch {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--t4f-line);
}

.t4f-product-detail .t4f-audit-flow .flow-result {
  padding: 18px 24px;
  border: 0;
  border-right: 1px solid var(--t4f-line);
  border-radius: 0;
  background: var(--t4f-surface);
  box-shadow: none;
}

.t4f-product-detail :where(.monitor-box, .panel-preview, .code-block) {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #30322d;
  border-radius: var(--t4f-radius-md);
  background: var(--t4f-ink);
  color: rgb(255 255 255 / 76%);
  box-shadow: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.65;
}

.t4f-product-detail .role-grid,
.t4f-product-detail .value-comparison,
.t4f-product-detail .ui-panel-list {
  gap: 16px;
}

.t4f-product-detail .install-box,
.t4f-product-detail .contact-info {
  margin-top: 34px;
  padding: 28px;
}

.t4f-product-detail .install-steps,
.t4f-product-detail .install-box ol {
  margin: 0;
  padding-left: 24px;
  color: var(--t4f-text-muted);
  line-height: 1.8;
}

.t4f-product-detail .t4f-download-panel {
  width: 100%;
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--t4f-radius-lg);
  background: var(--t4f-ink);
}

.t4f-product-detail .t4f-download-panel .btn-download {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid var(--t4f-gold);
  background: var(--t4f-gold);
  color: var(--t4f-ink);
  box-shadow: none;
  font-weight: 740;
  text-align: center;
}

.t4f-product-detail .t4f-download-panel .btn-download + .btn-download {
  border-color: rgb(255 255 255 / 22%);
  background: transparent;
  color: #fff;
}

@media (max-width: 1024px) {
  .t4f-container {
    width: min(calc(100% - 32px), var(--t4f-content));
  }

  .t4f-list-row,
  .t4f-product-row {
    gap: 16px;
  }

  .t4f-public-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
    gap: 48px;
  }

  .t4f-public .top-nav nav {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  /* t4f-mobile-safety:start */
  .t4f-public .t4f-desktop-actions {
    display: none;
  }

  .t4f-public #menu-toggle {
    display: block;
  }

  .t4f-public-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .t4f-capability-index {
    grid-template-columns: 1fr;
  }

  /* Retained as a mobile guard should a future hero decoration be restored. */
  .t4f-public-hero::after {
    display: none;
  }
  /* t4f-mobile-safety:end */

  .t4f-section {
    padding-block: 64px;
  }

  .t4f-module-header,
  .t4f-list-row,
  .t4f-product-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .t4f-toolbar,
  .t4f-filter-bar {
    align-items: stretch;
  }

  .t4f-toolbar > *,
  .t4f-filter-bar > * {
    min-width: 0;
  }

  .t4f-purchase .purchase-grid {
    grid-template-columns: 1fr;
  }

  .t4f-purchase .t4f-checkout-shell {
    margin: 24px auto 40px;
    padding: 0 16px;
  }

  .t4f-purchase .t4f-checkout-nav {
    width: min(calc(100% - 28px), var(--t4f-content));
  }

  .t4f-purchase .t4f-plan-summary,
  .t4f-purchase .t4f-checkout-form {
    padding: 28px 22px;
  }

  .t4f-product-detail > .container {
    width: min(calc(100% - 28px), 1040px);
    margin-top: 20px;
  }

  .t4f-product-detail .t4f-detail-header {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column-reverse;
    padding: 18px 0 24px;
  }

  .t4f-model-comparison,
  .t4f-product-detail .t4f-dual-role-grid,
  .t4f-product-detail .t4f-audit-flow,
  .t4f-product-detail .role-grid,
  .t4f-product-detail .value-comparison,
  .t4f-product-detail .ui-panel-list {
    grid-template-columns: 1fr;
  }

  .t4f-model-comparison article,
  .t4f-product-detail .t4f-dual-role-grid .role-box,
  .t4f-product-detail .t4f-audit-flow .flow-node {
    border-right: 0 !important;
    border-bottom: 1px solid var(--t4f-line) !important;
  }

  .t4f-product-detail .t4f-audit-flow .flow-branch {
    grid-template-columns: 1fr;
  }

  .t4f-product-detail .model-table {
    min-width: 680px;
  }

  .t4f-product-detail .t4f-detail-section:has(.model-table) {
    overflow-x: auto;
  }

  .t4f-workspace .sidebar {
    width: min(84vw, 300px);
    padding-inline: 12px;
    transform: translateX(-100%);
  }

  .t4f-workspace .sidebar.open {
    transform: translateX(0);
    box-shadow: 18px 0 48px rgb(0 0 0 / 24%);
  }

  .t4f-workspace .main-content {
    margin-left: 0;
    padding: 74px 18px 24px;
  }

  .t4f-workspace .hamburger {
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    border-radius: var(--t4f-radius-sm);
    background: var(--t4f-ink);
    color: #ead27e;
    box-shadow: var(--t4f-shadow-md);
  }

  .t4f-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .t4f-workspace .t4f-dashboard-stats .stat-card:nth-child(2) {
    border-right: 0;
  }

  .t4f-workspace .t4f-dashboard-stats .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--t4f-line);
  }

  .t4f-workspace .t4f-primary-tool {
    min-height: 0;
    display: block !important;
  }

  .t4f-tool-surface .analysis-methods {
    flex-direction: column;
    align-items: stretch;
  }

  .t4f-tool-surface .analysis-methods > div {
    width: 100% !important;
  }

  .t4f-tool-surface .input-bar > div:first-child,
  .t4f-tool-surface .input-bar > div:first-child > div:first-child,
  .t4f-data-module > div:first-child,
  .t4f-data-module > div:first-child > div:last-child {
    align-items: stretch !important;
    flex-direction: column;
  }

  .t4f-history-surface > .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .t4f-history-surface > .stats-grid .stat-card:nth-child(2) {
    border-right: 0;
  }

  .t4f-history-surface > .stats-grid .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--t4f-line);
  }

  .t4f-public-hero {
    padding-top: 72px;
  }

  .t4f-public-hero-grid,
  .t4f-license-grid {
    grid-template-columns: 1fr;
  }

  .t4f-capability-index {
    display: grid;
    padding: 0;
    border: 0;
    border-top: 1px solid rgb(255 255 255 / 16%);
  }

  .t4f-hero-mark {
    display: none;
  }

  .t4f-capability-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    padding: 18px 14px;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .t4f-capability-row:last-child {
    border-right: 0;
  }

  .t4f-capability-row > span {
    display: block;
    margin: 0;
  }

  .t4f-benefit-list > .container > div:last-child {
    grid-template-columns: 1fr;
  }

  .t4f-benefit-list > .container > div:last-child > div,
  .t4f-benefit-list > .container > div:last-child > div:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 480px) {
  .t4f-container,
  .t4f-detail-header,
  .t4f-detail-hero,
  .t4f-detail-section,
  .t4f-download-panel {
    width: min(calc(100% - 24px), var(--t4f-content));
  }

  .t4f-btn-primary,
  .t4f-btn-secondary {
    width: 100%;
  }

  .t4f-workspace .main-content {
    padding-inline: 14px;
  }

  .t4f-public-hero {
    padding-top: 54px;
  }

  .t4f-public-hero-grid {
    gap: 34px;
    padding-bottom: 48px;
  }

  .t4f-public-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .t4f-capability-index {
    grid-template-columns: 1fr;
  }

  .t4f-capability-row {
    display: grid;
    grid-template-columns: 34px 1fr;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .t4f-capability-row > span {
    margin: 0;
  }

  .t4f-public-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .t4f-stat-item:nth-child(2) {
    border-right: 0;
  }

  .t4f-stat-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .t4f-benefit-list > .container > div:last-child > div {
    min-height: 0;
    padding: 28px 0 28px 58px;
  }

  .t4f-benefit-list > .container > div:last-child > div > div:first-child {
    top: 28px;
    left: 0;
  }

  .t4f-community-section .group-section {
    width: min(calc(100% - 24px), var(--t4f-content));
    padding: 34px 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
