/* timerclock — Premium Design System (reference palette) */
:root {
  --tc-primary-dark: #0B4F4A;
  --tc-primary: #0F766E;
  --tc-primary-hover: #0B4F4A;
  --tc-primary-soft: rgba(15, 118, 110, 0.1);
  --tc-primary-glow: rgba(20, 184, 166, 0.28);
  --tc-secondary: #0F766E;
  --tc-mint: #14B8A6;
  --tc-accent: #F4B400;
  --tc-accent-soft: rgba(244, 180, 0, 0.14);
  --tc-success: #14B8A6;
  --tc-warning: #F4B400;
  --tc-danger: #EF4444;
  --tc-bg: #F8FAFC;
  --tc-bg-alt: #F1F5F9;
  --tc-surface: #FFFFFF;
  --tc-surface-raised: #FFFFFF;
  --tc-surface-2: #F8FAFC;
  --tc-text: #111827;
  --tc-text-secondary: #6B7280;
  --tc-text-muted: #9CA3AF;
  --tc-border: #E5E7EB;
  --tc-border-light: #F3F4F6;
  --tc-header-bg: #0B4F4A;
  --tc-header-text: #F8FAFC;
  --tc-header-muted: rgba(248, 250, 252, 0.78);
  --tc-header-border: rgba(255, 255, 255, 0.1);
  --tc-header-nav-bg: rgba(255, 255, 255, 0.08);
  --tc-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  --tc-shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06);
  --tc-shadow-md: 0 10px 30px rgba(11, 79, 74, 0.1);
  --tc-shadow-lg: 0 20px 50px rgba(11, 79, 74, 0.14);
  --tc-radius: 20px;
  --tc-radius-sm: 12px;
  --tc-radius-pill: 999px;
  --tc-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tc-font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tc-font-mono: 'JetBrains Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace;
  --tc-max-width: 680px;
  --tc-content-width: 1120px;
  --tc-header-h: 64px;
  --tc-bottom-nav-h: 64px;
  --tc-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --tc-gradient: linear-gradient(135deg, #0B4F4A 0%, #0F766E 55%, #14B8A6 100%);
  --tc-header-gradient: linear-gradient(90deg, #0B4F4A 0%, #0F766E 100%);
  --tc-header-shadow: 0 4px 20px rgba(11, 79, 74, 0.28);
  --tc-gradient-warm: linear-gradient(135deg, #0B4F4A 0%, #14B8A6 45%, #F4B400 100%);
  --tc-gradient-soft: #F8FAFC;
}

[data-theme="dark"] {
  --tc-bg: #062E2B;
  --tc-bg-alt: #0B4F4A;
  --tc-surface: #0F3F3B;
  --tc-surface-raised: #134843;
  --tc-surface-2: #0F766E;
  --tc-text: #F8FAFC;
  --tc-text-secondary: #CBD5E1;
  --tc-text-muted: #94A3B8;
  --tc-border: rgba(255, 255, 255, 0.12);
  --tc-border-light: rgba(255, 255, 255, 0.06);
  --tc-header-bg: #062E2B;
  --tc-header-text: #F8FAFC;
  --tc-header-muted: #94A3B8;
  --tc-header-border: rgba(255, 255, 255, 0.08);
  --tc-header-nav-bg: rgba(255, 255, 255, 0.06);
  --tc-primary-soft: rgba(20, 184, 166, 0.18);
  --tc-primary-glow: rgba(20, 184, 166, 0.25);
  --tc-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --tc-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --tc-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --tc-gradient-soft: #062E2B;
  --tc-header-gradient: linear-gradient(90deg, #062E2B 0%, #0B4F4A 50%, #0F766E 100%);
  --tc-header-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--tc-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tc-text);
  background: var(--tc-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body > * { position: relative; z-index: 1; }

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--tc-primary);
  text-decoration: none;
  transition: color var(--tc-transition);
}

a:hover { color: var(--tc-primary-hover); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--tc-text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; color: var(--tc-text-secondary); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--tc-primary);
  color: #fff;
  border-radius: var(--tc-radius-sm);
  font-weight: 600;
}

.skip-link:focus { top: 16px; }

/* Header — premium teal bar */
.tc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--tc-header-h);
  background: var(--tc-header-gradient);
  border-bottom: none;
  box-shadow: var(--tc-header-shadow);
}

[data-theme="dark"] .tc-header {
  background: var(--tc-header-gradient);
  box-shadow: var(--tc-header-shadow);
}

.tc-header-inner {
  max-width: var(--tc-content-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tc-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 0;
}

.tc-header-nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.tc-header-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.tc-header-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  transition: color var(--tc-transition), background var(--tc-transition);
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
}

.tc-header-link svg { display: none; }

.tc-header-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: none;
}

.tc-header-link.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
  font-weight: 600;
}

.tc-header-link.active::after {
  display: none;
}

.tc-header-divider {
  width: 1px;
  height: 28px;
  background: var(--tc-header-border);
  margin: 0 4px;
  flex-shrink: 0;
}

.tc-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.tc-menu-btn svg {
  width: 20px;
  height: 20px;
}

.tc-menu-btn:hover,
.tc-menu-btn.is-open {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.tc-menu-btn.is-open {
  color: #F4B400;
}

.tc-header .tc-logo,
.tc-footer .tc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.tc-header .tc-logo:hover,
.tc-footer .tc-logo:hover {
  color: #fff;
  transform: none;
}

.tc-header .tc-logo-mark,
.tc-footer .tc-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.tc-logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
}

.tc-logo-mark svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.tc-logo-mark svg circle,
.tc-logo-mark svg line {
  stroke: #fff;
}

.tc-logo-mark svg circle[fill] {
  fill: #fff;
  stroke: none;
}

.tc-logo-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.tc-logo-text {
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}

.tc-header .tc-logo-text .tc-logo-accent,
.tc-footer .tc-logo-text .tc-logo-accent {
  color: #F4B400;
  background: none;
  -webkit-text-fill-color: #F4B400;
  background-clip: unset;
}

.tc-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.tc-header-search {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 0;
  color: rgba(255, 255, 255, 0.9);
  border: none;
  background: transparent;
  border-radius: 10px;
  transition: all var(--tc-transition);
}

.tc-header-search span { display: none; }

.tc-header-search svg {
  width: 18px;
  height: 18px;
}

.tc-header-search:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.tc-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--tc-transition);
}

.tc-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  transform: none;
  box-shadow: none;
}

/* Sidebar — compact tools panel */
.tc-sidebar-overlay {
  position: fixed;
  inset: 0;
  top: var(--tc-header-h);
  background: rgba(15, 23, 42, 0.15);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.tc-sidebar-overlay.open { opacity: 1; visibility: visible; }

.tc-sidebar {
  position: fixed;
  top: calc(var(--tc-header-h) + 10px);
  right: 16px;
  left: auto;
  width: 248px;
  max-height: none;
  height: auto;
  background: #FFFFFF;
  z-index: 1200;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(11, 79, 74, 0.14), 0 2px 8px rgba(11, 79, 74, 0.06);
}

.tc-sidebar.open { transform: translateX(0); }

.tc-sidebar-nav {
  flex: 0 0 auto;
  overflow: visible;
  max-height: none;
  padding: 8px 8px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tc-sidebar-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  margin-bottom: 1px;
  border-radius: 10px;
  color: #374151;
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.2;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.tc-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-nav-item:hover {
  background: rgba(20, 184, 166, 0.08);
  color: #0B4F4A;
  border-color: rgba(20, 184, 166, 0.12);
}

.tc-nav-item.active {
  color: #0B4F4A;
  background: rgba(20, 184, 166, 0.12);
  border-left-color: #F4B400;
  font-weight: 600;
}

.tc-nav-item.active .tc-nav-icon {
  color: #0F766E;
}

.tc-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  color: #0F766E;
  transition: color 0.2s ease, background 0.2s ease;
}

.tc-nav-icon svg {
  width: 14px;
  height: 14px;
}

.tc-nav-item:hover .tc-nav-icon {
  color: #0B4F4A;
  background: rgba(244, 180, 0, 0.14);
}

.tc-nav-item.active .tc-nav-icon {
  color: #0B4F4A;
  background: rgba(244, 180, 0, 0.18);
}

/* Main layout — centered content */
.tc-main {
  max-width: var(--tc-content-width);
  margin: 0 auto;
  padding: 24px 20px calc(var(--tc-bottom-nav-h) + 32px);
}

.tc-main.tc-timer-profile-page,
.tc-main.tc-tool-page:has(.tc-page-with-side) {
  max-width: none;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

.tc-tool-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.tc-tool-shell {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 12px 8px;
}

.tc-tool-page-head {
  text-align: center;
  margin: 0 0 20px;
  padding: 0 8px;
}

.tc-tool-page-head .tc-page-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tc-page-title-in-card {
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
}

.tc-tool-card-wrap {
  width: 100%;
}

.tc-tool-card-wrap[data-fullscreen-target] {
  padding: 22px 20px 18px;
}

.tc-timer-flat-wrap[data-fullscreen-target] {
  padding: 22px 20px 18px;
}

.tc-discover-browse {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tc-primary);
  text-decoration: none;
}

.tc-discover-browse:hover {
  text-decoration: underline;
}

.tc-discover-all a.tc-discover-browse {
  display: inline;
}

.tc-tool-shell > .tc-page-header .tc-page-title {
  display: block;
  width: 100%;
  text-align: center;
}

.tc-page-header {
  width: 100%;
  max-width: var(--tc-max-width);
  margin: 0 auto 12px;
  text-align: center;
  padding: 0 16px;
}

.tc-page-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--tc-text);
}

.tc-content-below {
  max-width: var(--tc-max-width);
  margin: 24px auto 0;
  padding: 0 16px 32px;
  text-align: left;
}

.tc-page-with-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 280px);
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  gap: 24px;
}

.tc-page-main {
  grid-column: 1;
  flex: none;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.tc-discover-side {
  grid-column: 2;
  flex: none;
  width: 100%;
  max-width: 280px;
  min-width: 240px;
  position: sticky;
  top: 72px;
  margin: 0;
  padding: 16px 14px 14px;
  text-align: left;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11, 79, 74, 0.07);
  align-self: flex-start;
  box-sizing: border-box;
}

.tc-discover-side .tc-discover-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #0B4F4A;
  margin: 0 0 10px;
  padding: 0;
  border-bottom: none;
}

.tc-discover-count {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--tc-text-muted);
}

.tc-discover-side .tc-discover-count {
  margin: 0 0 14px;
}

.tc-discover-scroll {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-width: thin;
}

.tc-discover-side .tc-discover-scroll {
  max-height: none;
  overflow: visible;
  padding: 0;
  margin: 0;
}

.tc-discover-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tc-discover-list a.tc-discover-link {
  display: block;
  padding: 9px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tc-text);
  text-decoration: none;
  line-height: 1.35;
  border-radius: var(--tc-radius-sm);
  transition: background var(--tc-transition), color var(--tc-transition);
}

.tc-discover-list a.tc-discover-link:hover {
  background: var(--tc-bg-alt);
  color: var(--tc-primary);
}

.tc-discover-side .tc-discover-all {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--tc-border);
}

.tc-discover-scroll::-webkit-scrollbar {
  width: 5px;
}

.tc-discover-scroll::-webkit-scrollbar-thumb {
  background: var(--tc-border);
  border-radius: 4px;
}

.tc-discover-side .tc-discover-all {
  margin: 14px 0 0;
  padding: 12px 0 2px;
  border-top: 1px solid var(--tc-border);
}

.tc-discover-all {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--tc-border);
}

.tc-discover-all a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tc-primary);
}

.tc-discover-table td {
  padding: 4px 10px 4px 0;
  vertical-align: top;
  width: 50%;
}

.tc-discover-table a.tc-discover-link {
  display: block;
  padding: 3px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tc-text);
  text-decoration: none;
  line-height: 1.35;
  transition: color var(--tc-transition);
}

.tc-discover-table a.tc-discover-link:hover {
  color: var(--tc-primary);
}

.tc-timer-profile-page .tc-page-header {
  width: 100%;
  text-align: center;
  padding: 0;
}

@media (max-width: 960px) {
  .tc-tool-page {
    display: flex;
    flex-direction: column;
  }

  .tc-tool-page .tc-breadcrumb {
    order: 10;
    margin-top: 8px;
  }

  .tc-tool-page .tc-tool-shell {
    order: 1;
  }

  .tc-tool-page .tc-content-below {
    order: 5;
  }

  .tc-page-with-side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .tc-page-main {
    grid-column: auto;
    flex: none;
    max-width: none;
    width: 100%;
  }

  .tc-discover-side {
    grid-column: auto;
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    position: static;
  }

  .tc-discover-side .tc-discover-scroll {
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .tc-tool-shell {
    padding: 0 16px 8px;
  }
}

.tc-tool-stack {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

.tc-tool-card {
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  padding: 20px 18px;
  box-shadow: none;
}

.tc-tool-flat {
  width: 100%;
  padding: 8px 4px 16px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.tc-tool-flat-bordered {
  padding: 22px 20px 18px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11, 79, 74, 0.07);
}

/* Hide filler tip/status/empty chrome — keep controls & functionality intact */
.tc-tm-status,
.tc-ck-status,
.tc-wz-status,
.tc-pr-status,
.tc-sp-status,
.tc-cd-status,
.tc-ck-tagline,
.tc-wz-tagline,
.tc-pr-tagline,
.tc-sp-tagline,
.tc-cd-tagline,
.tc-timer-tagline,
.tc-ck-guide,
.tc-ck-report,
.tc-wz-guide,
.tc-wz-report,
.tc-pr-report,
.tc-sp-report,
.tc-tm-guide,
.tc-tm-report,
.tc-ck-panel,
.tc-wz-panel,
.tc-tm-panel,
.tc-pr-panel,
.tc-sp-panel,
.tc-tm-empty,
.tc-ck-empty,
.tc-wz-empty,
.tc-pr-empty,
.tc-sp-empty,
.tc-cd-empty,
.tc-tm-list-empty,
.tc-discover-count,
.tc-discover-all {
  display: none !important;
}

.tc-tm-list:empty,
.tc-ck-list:empty,
.tc-wz-list:empty,
.tc-pr-list:empty,
.tc-sp-list:empty,
.tc-tm-list:has(.tc-tm-list-empty),
.tc-ck-list:has(li:only-child:empty),
.tc-wz-list:has(li.tc-tm-list-empty) {
  display: none !important;
}

.tc-section-title:has(+ .tc-tm-list:empty),
.tc-section-title:has(+ .tc-ck-list:empty),
.tc-section-title:has(+ .tc-wz-list:empty),
.tc-section-title:has(+ .tc-pr-list:empty),
.tc-section-title:has(+ .tc-sp-list:empty),
.tc-section-title:has(+ .tc-tm-list:has(.tc-tm-list-empty)) {
  display: none !important;
}

.tc-discover-side .tc-discover-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tc-discover-side .tc-discover-link {
  display: block;
  padding: 8px 4px;
  font-size: 0.875rem;
  font-weight: 560;
  color: #111827;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.tc-discover-side .tc-discover-link:hover {
  background: rgba(11, 79, 74, 0.06);
  color: #0B4F4A;
}

.tc-tool-card-clock {
  text-align: center;
  padding: 24px 16px;
  overflow: hidden;
}

.tc-clock-switch {
  margin: 12px 0 0;
  font-size: 0.875rem;
}

.tc-clock-switch a {
  color: var(--tc-primary);
  font-weight: 600;
}

.tc-inline-settings {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.tc-inline-settings .tc-select {
  flex: 1;
}

.tc-shortcuts-box {
  margin: 10px 0;
  padding: 10px 12px;
  background: var(--tc-bg-alt);
  border-radius: var(--tc-radius-sm);
  font-size: 0.8125rem;
  color: var(--tc-text-secondary);
  text-align: center;
}

.tc-tool-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  width: 100%;
  max-width: var(--tc-content-width);
  margin: 0 auto;
  align-items: start;
}

.tc-tool-workspace-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--tc-max-width);
}

.tc-tool-panel {
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  padding: 18px 20px;
  box-shadow: none;
}

.tc-tool-panel-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tc-live-clock-compact {
  margin-bottom: 12px;
}

.tc-live-clock-compact .tc-live-time {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  text-shadow: none;
}

.tc-live-clock-compact .tc-live-date {
  font-size: 0.8125rem;
  margin-top: 4px;
}

.tc-timer-controls {
  width: 100%;
  margin-bottom: 8px;
}

.tc-section-compact {
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 0 0;
  border-bottom: none;
}

.tc-section-compact:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.tc-form-row-compact {
  gap: 10px;
}

.tc-settings-compact .tc-settings-row {
  padding: 8px 0;
}

.tc-tool-center {
  width: 100%;
  max-width: var(--tc-max-width);
  margin: 0 auto;
}

/* Live clock display */
.tc-live-clock {
  text-align: center;
  margin-bottom: 24px;
  animation: fadeInDown 0.5s ease;
}

.tc-live-time {
  font-family: var(--tc-font-mono);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--tc-text);
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: none;
}

.tc-live-date {
  font-size: 0.95rem;
  color: var(--tc-text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

/* Sections — flat, no nested cards */
.tc-section {
  width: 100%;
  max-width: var(--tc-max-width);
  margin: 0 auto 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--tc-border);
}

.tc-section:last-child { border-bottom: none; }

.tc-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tc-text-muted);
  margin-bottom: 14px;
}

/* Buttons */
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--tc-font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--tc-radius-sm);
  cursor: pointer;
  transition: all var(--tc-transition);
  text-decoration: none;
  line-height: 1.2;
}

.tc-btn-primary {
  background: var(--tc-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(11, 79, 74, 0.35);
}

.tc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 79, 74, 0.45);
  color: #fff;
}

.tc-btn-secondary {
  background: var(--tc-bg-alt);
  color: var(--tc-text);
  border: 1px solid var(--tc-border);
}

.tc-btn-secondary:hover {
  border-color: var(--tc-primary);
  color: var(--tc-primary);
  background: var(--tc-primary-soft);
}

.tc-btn-ghost {
  background: transparent;
  color: var(--tc-text-secondary);
  border: 1px solid var(--tc-border);
}

.tc-btn-ghost:hover {
  background: var(--tc-primary-soft);
  border-color: var(--tc-primary);
  color: var(--tc-primary);
}

.tc-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tc-btn-group .tc-btn { flex: 1; min-width: 120px; }

/* Preset pills */
.tc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-preset {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-pill);
  background: var(--tc-surface);
  color: var(--tc-text-secondary);
  cursor: pointer;
  transition: all var(--tc-transition);
  box-shadow: var(--tc-shadow);
}

.tc-preset:hover,
.tc-preset.active {
  border-color: var(--tc-primary);
  background: var(--tc-primary-soft);
  color: var(--tc-primary);
  box-shadow: 0 4px 12px rgba(11, 79, 74, 0.15);
  transform: translateY(-1px);
}

/* Form controls */
.tc-select,
.tc-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--tc-font);
  font-size: 0.95rem;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-sm);
  background: var(--tc-surface);
  color: var(--tc-text);
  transition: border-color var(--tc-transition);
}

.tc-select:focus,
.tc-input:focus {
  outline: none;
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 3px var(--tc-primary-soft);
}

.tc-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.tc-form-group {
  flex: 1;
  min-width: 80px;
}

.tc-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tc-text-secondary);
  margin-bottom: 6px;
}

/* Toggle switch */
.tc-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.tc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tc-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--tc-border);
  border-radius: var(--tc-radius-pill);
  cursor: pointer;
  transition: background var(--tc-transition);
}

.tc-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--tc-transition);
  box-shadow: var(--tc-shadow);
}

.tc-toggle input:checked + .tc-toggle-slider {
  background: var(--tc-primary);
}

.tc-toggle input:checked + .tc-toggle-slider::before {
  transform: translateX(22px);
}

/* Bottom navigation */
.tc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tc-bottom-nav-h);
  background: var(--tc-surface);
  border-top: 1px solid var(--tc-border);
  z-index: 900;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tc-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  max-width: 80px;
  padding: 6px 4px;
  color: var(--tc-text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  transition: color var(--tc-transition);
}

.tc-bottom-nav a svg { width: 22px; height: 22px; }

.tc-bottom-nav a:hover,
.tc-bottom-nav a.active {
  color: var(--tc-primary);
}

.tc-bottom-nav a.active svg { stroke: var(--tc-primary); }

/* Footer — compact, ordered, no duplicate links */
.tc-footer {
  position: relative;
  overflow: visible;
  background: linear-gradient(105deg, #0B4F4A 0%, #0F766E 55%, #0B4F4A 100%);
  border-top: none;
  box-shadow: 0 -4px 24px rgba(11, 79, 74, 0.2);
  padding: 0;
  margin-top: 48px;
  color: #fff;
}

.tc-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(244, 180, 0, 0.12) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: tcFooterShine 7s ease-in-out infinite;
  pointer-events: none;
}

.tc-footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--tc-content-width);
  margin: 0 auto;
  padding: 18px 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tc-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tc-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px 4px;
}

.tc-footer-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.tc-footer-nav a:hover {
  color: #F4B400;
  background: rgba(255, 255, 255, 0.08);
}

.tc-footer-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tc-footer-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tc-footer-chip:hover {
  transform: translateY(-2px);
  border-color: #F4B400;
  color: #F4B400;
  background: rgba(244, 180, 0, 0.12);
}

.tc-footer-chip--accent {
  /* same look as other chips — no special gold rectangle */
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.tc-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.tc-footer-copy {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

@keyframes tcFooterShine {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}

@media (max-width: 768px) {
  .tc-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .tc-footer-nav {
    justify-content: flex-start;
  }

  .tc-footer-inner {
    padding: 16px 16px 12px;
  }
}

/* Footer language picker */
.tc-footer-bottom,
.tc-lang-wrap {
  overflow: visible;
}

.tc-lang-wrap {
  display: flex;
  justify-content: center;
  padding: 2px 0 0;
}

.tc-lang-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.tc-lang-picker {
  position: relative;
  z-index: 40;
  overflow: visible;
}

.tc-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tc-lang-trigger:hover,
.tc-lang-trigger:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.tc-lang-globe {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tc-lang-menu {
  position: fixed;
  min-width: 220px;
  max-height: min(320px, 45vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--tc-bg);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-md);
  box-shadow: var(--tc-shadow-lg);
  z-index: 4000;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #e5e7eb;
}

.tc-lang-menu::-webkit-scrollbar {
  width: 8px;
}

.tc-lang-menu::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 8px;
}

.tc-lang-menu::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 8px;
}

.tc-lang-menu[hidden] {
  display: none;
}

.tc-lang-menu [role="option"] {
  padding: 10px 18px;
  font-size: 0.9375rem;
  color: var(--tc-text);
  cursor: pointer;
}

.tc-lang-menu [role="option"]:hover,
.tc-lang-menu [role="option"]:focus {
  background: var(--tc-bg-alt);
  outline: none;
}

.tc-lang-menu [role="option"].is-active {
  color: var(--tc-primary);
  font-weight: 600;
}

/* Hide Google Translate chrome */
.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt {
  display: none !important;
}

html.tc-translate-active body {
  top: 0 !important;
}

body > .skiptranslate {
  display: none !important;
}

.goog-te-gadget {
  font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
  display: none !important;
}

/* Home info sections — premium */
.tc-home-about {
  max-width: var(--tc-content-width);
  width: 100%;
  margin: 48px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tc-home-info {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 26px 24px 24px;
  box-shadow: 0 10px 28px rgba(11, 79, 74, 0.07);
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tc-home-info::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #0B4F4A, #14B8A6, #F4B400);
}

.tc-home-info:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 16px 34px rgba(11, 79, 74, 0.12);
}

.tc-home-info-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.16), rgba(244, 180, 0, 0.12));
  color: #0F766E;
}

.tc-home-info-icon svg {
  width: 22px;
  height: 22px;
}

.tc-home-info h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.tc-home-info p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #6B7280;
}

.tc-home-info p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .tc-home-about {
    grid-template-columns: 1fr;
  }
}

/* Content blocks */
.tc-content-block {
  max-width: var(--tc-max-width);
  margin: 0 auto;
  padding: 32px 0;
}

.tc-content-block h2 {
  font-size: 1.25rem;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--tc-border);
}

.tc-content-block h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.tc-faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--tc-border);
}

.tc-faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Discover / explore more (below-content blocks only; not timer sidebar) */
.tc-discover:not(.tc-discover-side) {
  width: 100%;
  max-width: var(--tc-max-width);
  margin: 28px auto 24px;
  padding: 0 16px;
  text-align: center;
}

.tc-discover-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tc-discover-side .tc-discover-grid {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.tc-discover-side .tc-discover-chip {
  justify-content: flex-start;
  padding: 5px 0;
  font-size: 0.8125rem;
  border: none;
  background: none;
  border-radius: 0;
  color: var(--tc-text-secondary);
  font-weight: 500;
}

.tc-discover-side .tc-discover-chip:hover {
  color: var(--tc-primary);
  background: none;
  border: none;
}

.tc-discover-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tc-text);
  margin: 0 0 14px;
}

.tc-discover-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tc-discover-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius-pill);
  background: var(--tc-surface);
  color: var(--tc-text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--tc-transition), background var(--tc-transition), color var(--tc-transition), transform var(--tc-transition);
}

.tc-discover-chip:hover {
  border-color: rgba(15, 118, 110, 0.45);
  background: var(--tc-primary-soft);
  color: var(--tc-primary);
  transform: translateY(-1px);
}

/* Legacy discover links (fallback) */
.tc-discover-header {
  display: none;
}

.tc-discover-link {
  display: none;
}

/* Home page — compact premium shining hero */
.tc-hero {
  text-align: left;
  padding: 0;
  max-width: none;
  margin: 0 0 8px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(244, 180, 0, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 10% 40%, rgba(20, 184, 166, 0.22) 0%, transparent 50%),
    linear-gradient(110deg, #0B4F4A 0%, #0F766E 48%, #0B4F4A 100%);
  color: #F8FAFC;
  border-radius: 0;
}

.tc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--tc-content-width);
  margin: 0 auto;
  padding: 28px 24px 30px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  min-height: 0;
}

.tc-hero-copy {
  min-width: 0;
}

.tc-hero h1,
.tc-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.tc-hero-title .tc-hero-title-word {
  display: inline-block;
  position: relative;
  background: linear-gradient(90deg, #FFFFFF 0%, #FFE08A 35%, #F4B400 50%, #FFE08A 65%, #FFFFFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tcTitleShine 3s linear infinite;
}

.tc-hero-title .tc-hero-title-word::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #F4B400, transparent);
  background-size: 200% 100%;
  animation: tcTitleUnderline 2.4s ease-in-out infinite;
}

@keyframes tcTitleShine {
  0% { background-position: 100% center; }
  100% { background-position: -100% center; }
}

@keyframes tcTitleUnderline {
  0%, 100% { opacity: 0.35; background-position: 100% 0; transform: scaleX(0.85); }
  50% { opacity: 1; background-position: 0 0; transform: scaleX(1); }
}

.tc-hero-lead {
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 0 14px;
  color: rgba(248, 250, 252, 0.8);
  line-height: 1.45;
}

.tc-hero h1 .gradient-text,
.tc-hero h1 .tc-hero-accent {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #F4B400;
  color: #F4B400;
  text-shadow: 0 0 24px rgba(244, 180, 0, 0.45);
}

.tc-hero-clock {
  max-width: none;
  margin: 0;
  text-align: left;
}

.tc-hero-clock-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.82);
  margin: 0 0 6px;
}

.tc-hero-digits {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  flex-wrap: wrap;
}

.tc-hero-digit {
  font-family: var(--tc-font-mono);
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
}

.tc-hero-digit-sep {
  font-family: var(--tc-font-mono);
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  font-weight: 300;
  color: #F4B400;
  line-height: 1;
  opacity: 0.95;
  text-shadow: 0 0 14px rgba(244, 180, 0, 0.55);
}

.tc-hero-digit-sec.tc-hero-tick {
  animation: digitTick 0.35s ease;
}

.tc-hero-ampm {
  margin-left: 8px;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  color: #5EEAD4;
  align-self: center;
}

.tc-hero-clock .tc-hero-date {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.86);
  line-height: 1.35;
}

/* Contained professional hero clock */
.tc-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
}

.tc-hero-clock-orbit {
  position: absolute;
  width: min(100%, 248px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(244, 180, 0, 0.18);
  box-shadow:
    inset 0 0 0 18px rgba(20, 184, 166, 0.04),
    0 0 0 28px rgba(255, 255, 255, 0.03);
  pointer-events: none;
  animation: tcOrbitPulse 6s ease-in-out infinite;
}

@keyframes tcOrbitPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

.tc-hero-clock-frame {
  width: min(100%, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(8, 40, 38, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 32px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.tc-hero-shine-clock {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.tc-hero-shine-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 180, 0, 0.28) 0%, transparent 70%);
  animation: tcClockGlow 3.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.tc-hero-shine-face {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  filter: none;
  animation: none;
  overflow: visible;
}

.tc-hero-shine-sweep {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  z-index: 2;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.16) 24deg, transparent 48deg);
  animation: tcShineSweep 5s linear infinite;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

@keyframes tcClockGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

@keyframes tcShineSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes digitTick {
  0% { opacity: 1; }
  40% { opacity: 0.5; }
  100% { opacity: 1; }
}

@media (max-width: 900px) {
  .tc-hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 18px 24px;
    text-align: center;
  }

  .tc-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tc-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .tc-hero-clock {
    text-align: center;
  }

  .tc-hero-digits {
    justify-content: center;
  }

  .tc-hero-clock-frame {
    width: min(100%, 168px);
  }
}

.tc-hero-time {
  display: block;
  font-family: var(--tc-font-mono);
  font-size: clamp(2.75rem, 11vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--tc-text);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  .tc-hero-shine-glow,
  .tc-hero-shine-sweep,
  .tc-hero-title .tc-hero-title-word,
  .tc-hero-title .tc-hero-title-word::after,
  .tc-hero-clock-orbit,
  .tc-footer-shine,
  .tc-browse-title,
  .tc-title-shine,
  [class*="animate"],
  [class*="shine"],
  .tc-logo-accent {
    animation: none !important;
    transition: none !important;
  }

  .tc-hero-title .tc-hero-title-word {
    -webkit-text-fill-color: #FFFFFF;
    color: #FFFFFF;
    background: none;
  }
}

/* Ultra-narrow + large desktop polish */
@media (max-width: 360px) {
  .tc-hero-digits { gap: 2px; }
  .tc-hero-digit { font-size: clamp(1.35rem, 9vw, 1.85rem); }
  .tc-bottom-nav-label { font-size: 0.65rem; }
  .tc-page-with-side { gap: 12px; }
  .tc-tool-flat-bordered { padding: 14px 12px; }
}

@media (min-width: 1400px) {
  .tc-main { max-width: 1280px; }
}

@media (min-width: 1600px) {
  .tc-main { max-width: 1360px; }
}

/* Home world clocks — seamless premium panel under hero */
.tc-hero + .tc-home-world,
.tc-home-world {
  max-width: none;
  margin: 0;
  padding: 0;
  background: #F8FAFC;
  border-top: 1px solid rgba(11, 79, 74, 0.08);
}

.tc-home-world-panel {
  max-width: var(--tc-content-width);
  margin: 0 auto;
  padding: 32px 16px 40px;
  position: relative;
  z-index: 2;
}

.tc-home-world-head {
  text-align: center;
  margin-bottom: 22px;
}

.tc-section-eyebrow {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0F766E;
}

.tc-home-world-title {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111827;
}

.tc-home-world-title span {
  color: #0F766E;
  font-weight: 700;
}

.tc-home-world-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}

.tc-home-world-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(11, 79, 74, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  min-height: 118px;
  position: relative;
}

.tc-home-world-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #0F766E, #14B8A6);
  opacity: 0.85;
}

.tc-home-world-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 8px 22px rgba(11, 79, 74, 0.1);
  transform: translateY(-2px);
}

.tc-home-world-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 4px 14px;
  border-bottom: none;
  background: transparent;
}

.tc-home-world-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.tc-home-world-flag {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(15, 118, 110, 0.2);
  box-shadow: none;
}

.tc-home-world-card-title {
  font-size: 0.78rem;
  font-weight: 500;
  color: #6B7280;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.tc-home-world-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.tc-home-world-menu-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--tc-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  padding: 0;
}

.tc-home-world-menu-btn:hover {
  background: var(--tc-surface-2);
  color: var(--tc-text);
}

.tc-home-world-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  min-width: 120px;
  margin-top: 4px;
  padding: 4px;
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  box-shadow: var(--tc-shadow-md);
}

.tc-home-world-menu-delete {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--tc-danger);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
}

.tc-home-world-menu-delete:hover {
  background: rgba(239, 68, 68, 0.08);
}

.tc-home-world-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tc-home-world-select-row .tc-select {
  flex: 1;
  min-width: 0;
}

.tc-home-world-modal-flag {
  width: 28px;
  height: 21px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.tc-home-world-clock {
  padding: 4px 12px 0 14px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.tc-world-hm {
  font-family: var(--tc-font-mono);
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #374151;
}

.tc-world-sec {
  font-family: var(--tc-font-mono);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #9CA3AF;
}

.tc-world-ampm {
  margin-left: 6px;
  font-family: var(--tc-font);
  font-size: 0.75rem;
  font-weight: 600;
  color: #0F766E;
  letter-spacing: 0.04em;
}

.tc-home-world-meta {
  margin: 0;
  padding: 8px 12px 12px 14px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #9CA3AF;
  line-height: 1.4;
}

.tc-home-world-add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  height: 100%;
  padding: 16px;
  background: #FFFFFF;
  border: 1.5px dashed rgba(15, 118, 110, 0.28);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: none;
}

.tc-home-world-add-card:hover {
  border-color: #0F766E;
  box-shadow: 0 8px 20px rgba(11, 79, 74, 0.08);
  transform: translateY(-2px);
}

.tc-home-world-add-card span {
  display: inline-block;
  padding: 8px 22px;
  background: #0F766E;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: none;
}

.tc-home-world-modal-panel {
  padding: 0;
  max-width: 400px;
  overflow: hidden;
}

.tc-home-world-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--tc-primary);
  color: #fff;
}

.tc-home-world-modal-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.tc-home-world-modal-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.9;
}

.tc-home-world-modal-close:hover {
  opacity: 1;
}

.tc-home-world-modal-panel .tc-form-group {
  padding: 0 20px;
  margin-top: 14px;
}

.tc-home-world-modal-panel .tc-form-group:first-of-type {
  margin-top: 18px;
}

.tc-home-world-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 20px 20px;
}

.tc-home-world-modal-actions .tc-btn-primary {
  min-width: 72px;
}

@media (max-width: 1024px) {
  .tc-home-world-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Mobile Lighthouse: avoid decorative animation work without changing desktop. */
  .tc-animate-in,
  .tc-footer-shine,
  .tc-hero-title .tc-hero-title-word,
  .tc-hero-title .tc-hero-title-word::after,
  .tc-hero-clock-orbit,
  .tc-hero-shine-glow,
  .tc-hero-shine-sweep {
    animation: none !important;
    transition: none !important;
  }

  .tc-home-world-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .tc-home-world-grid {
    grid-template-columns: 1fr;
  }

  .tc-world-hm {
    font-size: 1.3rem;
    font-weight: 500;
  }

  .tc-world-sec {
    font-size: 1rem;
  }
}

.tc-home-browse {
  max-width: var(--tc-content-width);
  margin: 8px auto 48px;
  padding: 28px 16px 8px;
}

.tc-home-browse .tc-browse-header {
  text-align: center;
  margin-bottom: 28px;
}

.tc-home-browse .tc-browse-header h2,
.tc-browse-title {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: #111827;
}

.tc-browse-title span {
  background: linear-gradient(90deg, #0F766E, #14B8A6 45%, #F4B400);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tcBrowseTitleShine 4s ease-in-out infinite;
  background-size: 180% auto;
}

@keyframes tcBrowseTitleShine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.tc-home-browse-link {
  text-align: center;
  margin: 24px 0 0;
}

.tc-home-browse-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0F766E;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  background: rgba(20, 184, 166, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tc-home-browse-link a:hover {
  transform: translateY(-2px);
  border-color: #F4B400;
  color: #0B4F4A;
  box-shadow: 0 8px 18px rgba(11, 79, 74, 0.1);
}

.tc-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
  max-width: var(--tc-content-width);
  margin: 0 auto;
  padding: 0 4px;
}

.tc-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 14px;
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  text-align: center;
  color: var(--tc-text);
  transition: all var(--tc-transition);
  box-shadow: var(--tc-shadow);
}

.tc-tool-card:hover {
  border-color: var(--tc-primary);
  transform: translateY(-4px);
  box-shadow: var(--tc-shadow-lg);
  color: var(--tc-text);
}

.tc-tool-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tc-gradient);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(11, 79, 74, 0.3);
}

.tc-tool-card-icon svg {
  width: 24px;
  height: 24px;
}

.tc-tool-card span {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Category section on home — premium */
.tc-home-categories {
  max-width: var(--tc-content-width);
  width: 100%;
  margin: 48px auto 0;
  padding: 0 16px;
}

.tc-home-categories-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  color: #111827;
}

.tc-home-categories-title span {
  color: #F4B400;
}

.tc-home-categories-lead {
  text-align: center;
  margin: 0 auto 26px;
  max-width: 560px;
  font-size: 0.95rem;
  color: #6B7280;
  line-height: 1.55;
}

.tc-home-categories-lead a {
  color: #0F766E;
  font-weight: 700;
}

.tc-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tc-category-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 10px 28px rgba(11, 79, 74, 0.07);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.tc-category-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #0B4F4A, #14B8A6, #F4B400);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.tc-category-panel:hover {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 16px 34px rgba(11, 79, 74, 0.13);
  transform: translateY(-4px);
}

.tc-category-panel:hover::before {
  opacity: 1;
}

.tc-category-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E5E7EB;
}

.tc-category-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tc-category-panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #0B4F4A, #14B8A6);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 79, 74, 0.28);
}

.tc-category-panel-icon svg {
  width: 20px;
  height: 20px;
}

.tc-category-panel-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.25;
}

.tc-category-view {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0F766E;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  transition: background 0.2s ease, color 0.2s ease;
}

.tc-category-view:hover {
  background: rgba(244, 180, 0, 0.14);
  color: #0B4F4A;
  border-color: rgba(244, 180, 0, 0.35);
}

.tc-category-view:hover {
  color: var(--tc-primary-hover);
}

.tc-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
}

.tc-category-list li {
  margin: 0;
}

.tc-category-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tc-text-secondary);
  text-decoration: none;
  transition: color var(--tc-transition), padding-left var(--tc-transition);
}

.tc-category-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #14B8A6;
  border-top: 1.5px solid #14B8A6;
  border-radius: 0;
  background: transparent;
  opacity: 0.7;
  flex-shrink: 0;
  transform: rotate(45deg);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.tc-category-list a:hover {
  color: #0B4F4A;
  padding-left: 2px;
}

.tc-category-list a:hover::before {
  opacity: 1;
  border-color: #F4B400;
}

@media (max-width: 720px) {
  .tc-category-grid {
    grid-template-columns: 1fr;
  }

  .tc-category-list {
    grid-template-columns: 1fr;
  }
}

/* Browse pages */
.tc-browse-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.tc-breadcrumb {
  font-size: 0.8125rem;
  color: var(--tc-text-muted);
  margin-bottom: 16px;
}

.tc-breadcrumb a {
  color: var(--tc-primary);
  font-weight: 600;
}

.tc-breadcrumb span[aria-hidden="true"] {
  margin: 0 6px;
}

.tc-browse-header {
  text-align: center;
  margin-bottom: 24px;
}

.tc-browse-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--tc-text);
}

.tc-browse-lead {
  margin: 0;
  color: var(--tc-text-secondary);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.tc-browse-search {
  max-width: 480px;
  margin: 20px auto 8px;
}

.tc-browse-search-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--tc-text-muted);
  margin: 0 0 8px;
}

.tc-browse-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.tc-browse-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 18px 18px;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  background: linear-gradient(165deg, #FFFFFF 0%, #F8FAFC 100%);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(11, 79, 74, 0.06);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  position: relative;
  overflow: hidden;
}

.tc-browse-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #0B4F4A, #14B8A6, #F4B400);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.tc-browse-card:hover {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 16px 34px rgba(11, 79, 74, 0.14);
  transform: translateY(-4px);
}

.tc-browse-card:hover::before {
  opacity: 1;
}

.tc-browse-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.16), rgba(244, 180, 0, 0.12));
  color: #0F766E;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.tc-browse-card-icon svg {
  width: 22px;
  height: 22px;
}

.tc-browse-card:hover .tc-browse-card-icon {
  color: #0B4F4A;
  background: linear-gradient(145deg, rgba(244, 180, 0, 0.2), rgba(20, 184, 166, 0.18));
}

.tc-browse-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 760;
  color: #111827;
  letter-spacing: -0.02em;
}

.tc-browse-card p {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  color: #6B7280;
  line-height: 1.5;
  flex: 1;
}

.tc-browse-count {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0B4F4A;
  background: rgba(20, 184, 166, 0.14);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.tc-browse-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tc-browse-filter .tc-input {
  flex: 1;
  min-width: 200px;
}

.tc-browse-filter-count {
  font-size: 0.8125rem;
  color: var(--tc-text-muted);
  white-space: nowrap;
}

.tc-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px 12px;
  padding: 4px 0;
}

.tc-browse-link {
  display: block;
  padding: 8px 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--tc-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--tc-transition);
}

.tc-browse-link:hover {
  color: var(--tc-primary);
  background: transparent;
}

.tc-browse-link[hidden] {
  display: none;
}

.tc-browse-back {
  margin-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--tc-text-secondary);
}

.tc-browse-back a {
  color: var(--tc-primary);
  font-weight: 600;
}

/* Search modal */
body.tc-search-open {
  overflow: hidden;
}

.tc-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.tc-search-overlay[hidden] {
  display: none !important;
}

.tc-search-modal {
  width: min(560px, 100%);
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.tc-search-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--tc-border);
}

.tc-search-modal-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tc-text);
}

.tc-search-close {
  border: none;
  background: transparent;
  color: var(--tc-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--tc-radius-sm);
}

.tc-search-close:hover {
  color: var(--tc-text);
  background: var(--tc-bg-alt);
}

.tc-search-modal-form {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tc-border);
}

.tc-search-modal-form .tc-input {
  width: 100%;
}

.tc-search-modal-results {
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}

.tc-search-modal-hint {
  margin: 12px;
  font-size: 0.875rem;
  color: var(--tc-text-muted);
  text-align: center;
}

.tc-search-hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--tc-radius-sm);
  text-decoration: none;
  color: var(--tc-text);
  transition: background var(--tc-transition);
}

.tc-search-hit:hover {
  background: var(--tc-primary-soft);
}

.tc-search-hit-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.tc-search-hit-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tc-text-muted);
  text-transform: capitalize;
  flex-shrink: 0;
}

/* Home FAQ section — premium */
.tc-home-faq {
  max-width: 720px;
  width: 100%;
  margin: 52px auto 8px;
  padding: 0 16px;
}

.tc-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  text-align: center;
}

.tc-section-head--center {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.tc-section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.tc-section-head h2 span {
  color: #F4B400;
}

.tc-section-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0F766E;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.tc-section-link:hover {
  color: #0B4F4A;
  border-color: rgba(244, 180, 0, 0.4);
  background: rgba(244, 180, 0, 0.12);
}

.tc-faq-list {
  background: linear-gradient(165deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(11, 79, 74, 0.07);
}

.tc-faq-details {
  border-bottom: 1px solid #E5E7EB;
}

.tc-faq-details:last-child {
  border-bottom: none;
}

.tc-faq-details summary {
  padding: 18px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s ease;
}

.tc-faq-details summary::-webkit-details-marker {
  display: none;
}

.tc-faq-details summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: #0F766E;
  flex-shrink: 0;
  line-height: 1;
}

.tc-faq-details[open] summary::after {
  content: '\2212';
  color: #F4B400;
}

.tc-faq-details summary:hover {
  background: rgba(20, 184, 166, 0.06);
}

.tc-faq-details p {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #6B7280;
}

.tc-faq-details summary:hover {
  background: var(--tc-bg-alt);
}

.tc-faq-details p {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--tc-text-secondary);
}

/* Blog */
.tc-blog-main {
  max-width: var(--tc-content-width);
  padding-top: 8px;
}

.tc-blog-page {
  width: 100%;
}

.tc-blog-hero {
  text-align: center;
  padding: 32px 20px 28px;
  margin-bottom: 8px;
}

.tc-blog-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
}

.tc-blog-hero h1 .gradient-text {
  background: var(--tc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tc-blog-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--tc-text-secondary);
}

.tc-blog-hero-lead {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px !important;
}
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--tc-text-secondary);
}

.tc-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 4px 16px;
}

.tc-blog-card,
a.tc-blog-card {
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--tc-transition), box-shadow var(--tc-transition), transform var(--tc-transition);
  display: flex;
  flex-direction: column;
}

a.tc-blog-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.tc-blog-card:hover,
a.tc-blog-card:hover {
  border-color: rgba(11, 79, 74, 0.4);
  box-shadow: var(--tc-shadow-md);
  transform: translateY(-2px);
}

.tc-blog-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tc-blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tc-blog-card-cat {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tc-primary);
  background: var(--tc-primary-soft);
  border-radius: var(--tc-radius-pill);
}

.tc-blog-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tc-text-secondary);
  margin: 0;
}

.tc-blog-card h2 {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

a.tc-blog-card:hover h2 {
  color: var(--tc-primary);
}

.tc-blog-card-excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--tc-text-secondary);
  margin: 0 0 16px;
  flex: 1;
}

.tc-blog-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tc-primary);
  margin-top: auto;
}

.tc-blog-read:hover {
  color: var(--tc-primary-hover);
}

/* Article layout */
.tc-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
  max-width: var(--tc-content-width);
  margin: 0 auto;
  padding: 0 4px 24px;
}

.tc-article-main {
  min-width: 0;
}

.tc-article-header {
  margin-bottom: 24px;
}

.tc-article-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 10px 0 0;
}

.tc-article-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tc-primary);
  margin: 0;
}

.tc-article-meta time {
  color: var(--tc-text-secondary);
  font-weight: 500;
}

.tc-article-content {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--tc-text-secondary);
}

.tc-article-content h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  padding-top: 8px;
  color: var(--tc-text);
  letter-spacing: -0.02em;
  scroll-margin-top: 80px;
}

.tc-article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.tc-article-content p {
  margin: 0 0 1rem;
}

.tc-article-cta {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--tc-primary-soft);
  border: 1px solid rgba(11, 79, 74, 0.2);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.tc-article-cta a {
  font-weight: 600;
}

.tc-article-sidebar {
  position: sticky;
  top: calc(var(--tc-header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tc-toc {
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: var(--tc-shadow);
}

.tc-toc-title {
  margin: 0 0 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tc-primary);
}

.tc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.tc-toc li {
  counter-increment: toc;
  margin-bottom: 6px;
}

.tc-toc li:last-child {
  margin-bottom: 0;
}

.tc-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tc-text-secondary);
  text-decoration: none;
  transition: background var(--tc-transition), color var(--tc-transition);
}

.tc-toc a::before {
  content: counter(toc) ". ";
  color: var(--tc-primary);
  font-weight: 600;
}

.tc-toc a:hover {
  background: var(--tc-primary-soft);
  color: var(--tc-primary);
}

.tc-sidebar-tools {
  background: var(--tc-bg-alt);
  border: 1px solid var(--tc-border);
  border-radius: 14px;
  padding: 16px 18px;
}

.tc-sidebar-tools h3 {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tc-text-muted);
}

.tc-sidebar-tools a {
  display: block;
  padding: 6px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tc-primary);
}

/* Breadcrumb */
.tc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 12px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tc-text-secondary);
  background: var(--tc-bg-alt);
  border: 1px solid var(--tc-border);
  border-radius: 10px;
}

.tc-breadcrumb a {
  color: var(--tc-primary);
  font-weight: 600;
  text-decoration: none;
}

.tc-breadcrumb a:hover {
  color: var(--tc-primary-hover);
}

.tc-breadcrumb-sep {
  color: var(--tc-text-muted);
  user-select: none;
}

.tc-breadcrumb-current {
  color: var(--tc-text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .tc-article-layout {
    grid-template-columns: 1fr;
  }

  .tc-article-sidebar {
    position: static;
    order: -1;
  }

  .tc-toc ol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 12px;
  }
}

@media (max-width: 520px) {
  .tc-toc ol {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes tick {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.tc-animate-in { animation: fadeInDown 0.4s ease; }

/* Ad placeholder — AdSense ready */
.tc-ad-slot {
  max-width: var(--tc-max-width);
  margin: 24px auto;
  min-height: 90px;
  background: var(--tc-bg-alt);
  border: 1px dashed var(--tc-border);
  border-radius: var(--tc-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tc-text-muted);
  font-size: 0.75rem;
}

/* Responsive */
@media (min-width: 768px) {
  .tc-bottom-nav { display: none; }
  .tc-main { padding-bottom: 48px; }
  .tc-header-nav { display: flex; }
}

@media (min-width: 992px) {
  .tc-header-link { padding: 8px 16px; }
}

@media (max-width: 767px) {
  .tc-header-inner { padding: 0 16px; }
  .tc-logo-text { font-size: 1.05rem; }
  .tc-sidebar {
    right: 10px;
    width: min(248px, calc(100vw - 20px));
    max-height: none;
    overflow: visible;
  }
}

/* Utility */
.tc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.tc-text-center { text-align: center; }
.tc-mt-0 { margin-top: 0; }
.tc-mb-0 { margin-bottom: 0; }

/* High contrast mode */
[data-a11y="high-contrast"] {
  --tc-border: #000;
  --tc-text: #000;
  --tc-bg: #fff;
}

[data-a11y="large-text"] { font-size: 18px; }
