.tcfwb-layer {
  --tcfwb-ink: #0f172a;
  --tcfwb-muted: #64748b;
  --tcfwb-line: #dbe4ef;
  --tcfwb-soft: #f4f8fb;
  --tcfwb-primary: #0369a1;
  --tcfwb-primary-dark: #075985;
  --tcfwb-green: #0f766e;
  --tcfwb-orange: #ea580c;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  color: var(--tcfwb-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans Devanagari", sans-serif;
}

.tcfwb-layer[hidden],
.tcfwb-layer [hidden] {
  display: none !important;
}

body.tcfwb-open {
  overflow: hidden !important;
}

.tcfwb-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgb(14 165 233 / 20%), transparent 34rem),
    rgb(2 6 23 / 72%);
  backdrop-filter: blur(8px);
}

.tcfwb-dialog {
  position: absolute;
  inset: clamp(10px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 24px;
  background: #f7fafc;
  box-shadow: 0 32px 90px rgb(2 6 23 / 34%);
}

.tcfwb-header {
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px 20px;
  border-bottom: 1px solid #dce6ef;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 5px 20px rgb(15 23 42 / 4%);
}

.tcfwb-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #0284c7, #075985);
  color: white;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 9px 22px rgb(2 132 199 / 24%);
}

.tcfwb-heading {
  min-width: 0;
}

.tcfwb-eyebrow,
.tcfwb-kicker {
  color: var(--tcfwb-primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tcfwb-heading h2 {
  margin: 2px 0 0;
  overflow: hidden;
  color: #0f172a;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcfwb-heading p {
  margin: 3px 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcfwb-privacy-badge {
  align-self: center;
  padding: 8px 11px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tcfwb-privacy-badge[data-mode="ai"] {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.tcfwb-privacy-badge[data-mode="browser"] {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.tcfwb-icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #dbe4ef;
  border-radius: 13px;
  background: white;
  color: #475569;
  cursor: pointer;
  font: 400 29px/1 Arial, sans-serif;
  transition: 160ms ease;
}

.tcfwb-icon-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
}

.tcfwb-live {
  position: absolute;
  z-index: 4;
  top: 87px;
  left: 50%;
  max-width: min(560px, calc(100% - 32px));
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: 180ms ease;
}

.tcfwb-live:not(:empty) {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tcfwb-live[data-tone="success"] {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.tcfwb-live[data-tone="error"] {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.tcfwb-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: clamp(18px, 2.4vw, 30px);
  background:
    radial-gradient(circle at 100% 0%, rgb(14 165 233 / 7%), transparent 30rem),
    linear-gradient(180deg, #f8fbfd 0%, #f3f7fa 100%);
}

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

.tcfwb-panel {
  min-width: 0;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--tcfwb-line);
  border-radius: 20px;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 12px 35px rgb(15 23 42 / 6%);
}

.tcfwb-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.tcfwb-panel-heading h3,
.tcfwb-voice-control h3 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.tcfwb-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  margin-bottom: 14px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.tcfwb-field > span {
  letter-spacing: 0.02em;
}

.tcfwb-field small,
.tcfwb-hint {
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.tcfwb-content input,
.tcfwb-content select,
.tcfwb-content textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #0f172a;
  font: 500 13px/1.5 inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.tcfwb-content input,
.tcfwb-content select {
  min-height: 42px;
  padding: 8px 11px;
}

.tcfwb-content textarea {
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}

.tcfwb-content input:focus,
.tcfwb-content select:focus,
.tcfwb-content textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgb(14 165 233 / 12%);
}

.tcfwb-content input[type="color"] {
  padding: 5px;
  cursor: pointer;
}

.tcfwb-content input[type="range"] {
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--tcfwb-primary);
}

.tcfwb-content input[type="file"] {
  padding: 7px;
}

.tcfwb-content input[type="file"]::file-selector-button {
  margin-right: 9px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  font: 800 11px inherit;
  cursor: pointer;
}

.tcfwb-devanagari {
  font-family: "Noto Sans Devanagari", Mangal, "Nirmala UI", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

.tcfwb-kruti {
  font-family: "Kruti Dev 010", "Kruti Dev", monospace !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
}

.tcfwb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.tcfwb-btn {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font: 850 11px/1.1 inherit;
  letter-spacing: 0.01em;
  transition: 150ms ease;
}

.tcfwb-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.tcfwb-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.tcfwb-btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: white;
  box-shadow: 0 8px 18px rgb(3 105 161 / 18%);
}

.tcfwb-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369a1, #075985);
}

.tcfwb-btn-secondary {
  border-color: #cbd5e1;
  background: white;
  color: #334155;
}

.tcfwb-btn-ghost,
.tcfwb-text-btn {
  border: 0;
  background: transparent;
  color: var(--tcfwb-primary);
}

.tcfwb-text-btn {
  padding: 4px;
  cursor: pointer;
  font: 800 10px inherit;
}

.tcfwb-wide {
  width: 100%;
}

.tcfwb-actions,
.tcfwb-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.tcfwb-actions .tcfwb-btn {
  flex: 1 1 130px;
}

.tcfwb-counter {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.tcfwb-check {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.tcfwb-check[data-tone="success"] {
  background: #ecfdf5;
  color: #047857;
}

.tcfwb-check[data-tone="warning"] {
  background: #fff7ed;
  color: #c2410c;
}

.tcfwb-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid #bae6fd;
  border-radius: 13px;
  background: #f0f9ff;
  color: #475569;
  font-size: 10px;
  line-height: 1.55;
}

.tcfwb-note strong {
  color: #075985;
}

.tcfwb-note-ai {
  border-color: #fed7aa;
  background: #fff7ed;
}

.tcfwb-note-ai strong {
  color: #c2410c;
}

.tcfwb-converter,
.tcfwb-translate-grid,
.tcfwb-voice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.tcfwb-translate-grid,
.tcfwb-voice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tcfwb-converter .tcfwb-panel {
  display: flex;
  min-height: min(480px, 60vh);
  flex-direction: column;
}

.tcfwb-converter textarea {
  flex: 1;
  min-height: 280px;
}

.tcfwb-converter-arrow {
  align-self: center;
  color: #94a3b8;
  font-size: 26px;
  font-weight: 300;
}

.tcfwb-translate-grid textarea {
  min-height: 260px;
}

.tcfwb-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  margin: 12px 0;
  padding: 11px;
  border: 1px solid #fed7aa;
  border-radius: 11px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}

.tcfwb-consent input {
  width: 17px;
  min-height: 17px;
  margin-top: 1px;
  accent-color: #ea580c;
}

.tcfwb-voice-control {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.tcfwb-voice-control > p {
  max-width: 420px;
  margin: 8px auto 20px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.tcfwb-voice-control .tcfwb-field {
  width: min(100%, 340px);
  text-align: left;
}

.tcfwb-mic {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  margin-bottom: 18px;
  border: 10px solid #e0f2fe;
  border-radius: 50%;
  background: #0284c7;
  color: white;
  font-size: 20px;
  box-shadow: 0 0 0 1px #bae6fd, 0 14px 28px rgb(2 132 199 / 20%);
}

.tcfwb-mic.is-listening {
  animation: tcfwb-pulse 1.2s ease-in-out infinite;
  background: #dc2626;
  border-color: #fee2e2;
}

@keyframes tcfwb-pulse {
  50% { box-shadow: 0 0 0 14px rgb(239 68 68 / 10%), 0 14px 28px rgb(220 38 38 / 20%); }
}

.tcfwb-recognition-state {
  margin-top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.tcfwb-recognition-state[data-mode="active"] {
  background: #fef2f2;
  color: #dc2626;
}

.tcfwb-interim {
  min-height: 22px;
  padding: 4px 2px;
  color: #0284c7;
  font-size: 10px;
  font-style: italic;
}

.tcfwb-editor-layout,
.tcfwb-code-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.76fr) minmax(440px, 1.24fr);
  align-items: start;
  gap: clamp(16px, 2vw, 26px);
  max-width: 1500px;
  margin: auto;
}

.tcfwb-code-layout {
  grid-template-columns: minmax(320px, 0.8fr) minmax(400px, 1.2fr);
}

.tcfwb-form-panel {
  max-height: calc(100vh - 150px);
  overflow: auto;
}

.tcfwb-preview-wrap {
  min-width: 0;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  background:
    linear-gradient(45deg, #e9eff5 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(45deg, transparent 75%, #e9eff5 75%) 0 0 / 18px 18px,
    #f4f7fa;
  overflow: auto;
}

.tcfwb-print-sheet {
  width: min(100%, 820px);
  min-height: 960px;
  margin: auto;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #e2e8f0;
  background: white;
  color: #0f172a;
  box-shadow: 0 18px 48px rgb(15 23 42 / 12%);
  font-family: Arial, "Noto Sans Devanagari", sans-serif;
}

.tcfwb-print-sheet h1 {
  margin: 0;
  color: #0f172a;
  font-size: 27px;
  line-height: 1.15;
}

.tcfwb-print-sheet h2,
.tcfwb-print-sheet h3,
.tcfwb-print-sheet p {
  margin-top: 0;
}

.tcfwb-print-sheet p {
  white-space: pre-wrap;
}

.tcfwb-doc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 3px solid #0f172a;
}

.tcfwb-doc-header p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 11px;
  white-space: pre-line;
}

.tcfwb-doc-badge {
  display: inline-block;
  margin-bottom: 9px;
  color: #0369a1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.tcfwb-doc-meta {
  display: grid;
  gap: 5px;
  text-align: right;
  font-size: 11px;
}

.tcfwb-doc-meta b {
  font-size: 14px;
}

.tcfwb-print-sheet table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 11px;
}

.tcfwb-print-sheet th {
  padding: 9px 8px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tcfwb-print-sheet td {
  padding: 9px 8px;
  border: 1px solid #cbd5e1;
  vertical-align: top;
}

.tcfwb-empty-cell {
  padding: 30px !important;
  color: #94a3b8;
  text-align: center;
}

.tcfwb-receipt-customer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 11px;
}

.tcfwb-receipt-customer > span {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.tcfwb-total-box {
  width: min(100%, 330px);
  margin: 18px 0 0 auto;
  font-size: 11px;
}

.tcfwb-total-box > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 8px;
}

.tcfwb-total-box .tcfwb-grand-total {
  margin-top: 4px;
  padding: 11px;
  border-radius: 7px;
  background: #0f172a;
  color: white;
  font-size: 15px;
}

.tcfwb-doc-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding-top: 14px;
  border-top: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 10px;
}

.tcfwb-statement .tcfwb-doc-header {
  border-bottom-color: #0369a1;
}

.tcfwb-statement-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 15px;
}

.tcfwb-statement-summary span {
  padding: 8px 10px;
  border-radius: 7px;
  background: #f1f5f9;
  font-size: 9px;
}

.tcfwb-disclaimer {
  margin-top: 28px;
  color: #64748b;
  font-size: 9px;
  text-align: center;
}

.tcfwb-resume {
  --tcfwb-accent: #0f766e;
}

.tcfwb-resume > header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: -52px -52px 35px;
  padding: 42px 52px 34px;
  background: var(--tcfwb-accent);
  color: white;
}

.tcfwb-resume > header h1,
.tcfwb-resume > header h2 {
  color: white;
}

.tcfwb-resume > header h1 {
  font-size: 32px;
}

.tcfwb-resume > header h2 {
  margin: 5px 0 7px;
  font-size: 14px;
  font-weight: 500;
}

.tcfwb-resume > header p {
  margin: 0;
  font-size: 10px;
}

.tcfwb-resume-monogram {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  font-size: 22px;
  font-weight: 900;
}

.tcfwb-resume section > h3 {
  margin: 0 0 11px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--tcfwb-accent);
  color: var(--tcfwb-accent);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tcfwb-resume section > p {
  color: #475569;
  font-size: 11px;
  line-height: 1.7;
}

.tcfwb-resume-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(160px, 0.8fr);
  gap: 32px;
  margin-top: 28px;
}

.tcfwb-resume-columns section {
  margin-bottom: 26px;
}

.tcfwb-resume-columns aside {
  padding: 18px;
  background: #f8fafc;
}

.tcfwb-resume-columns ul {
  margin: 0;
  padding-left: 17px;
  color: #475569;
  font-size: 10px;
  line-height: 1.8;
}

.tcfwb-timeline-item {
  margin-bottom: 16px;
  padding-left: 13px;
  border-left: 2px solid var(--tcfwb-accent, #cbd5e1);
}

.tcfwb-timeline-item b,
.tcfwb-timeline-item span {
  display: block;
}

.tcfwb-timeline-item b {
  font-size: 12px;
}

.tcfwb-timeline-item span {
  margin: 2px 0 5px;
  color: var(--tcfwb-accent, #64748b);
  font-size: 9px;
  font-weight: 700;
}

.tcfwb-timeline-item p,
.tcfwb-empty-copy {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.55;
}

.tcfwb-biodata {
  padding: 55px 65px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #f59e0b, #be123c) border-box;
  border: 10px solid transparent;
}

.tcfwb-biodata > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 2px solid #f59e0b;
}

.tcfwb-biodata > header h1 {
  margin-top: 3px;
  font-family: Georgia, serif;
  font-size: 31px;
}

.tcfwb-biodata > header p {
  margin: 5px 0 0;
  color: #64748b;
}

.tcfwb-bio-photo {
  display: grid;
  width: 100px;
  height: 125px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fff7ed;
  border-radius: 12px;
  background: #fffbeb;
  color: #b45309;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 0 0 1px #fed7aa;
}

.tcfwb-bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tcfwb-biodata section {
  margin-bottom: 25px;
}

.tcfwb-biodata section h2 {
  margin-bottom: 12px;
  color: #9f1239;
  font: 700 15px Georgia, serif;
}

.tcfwb-biodata dl {
  display: grid;
  grid-template-columns: minmax(110px, 0.6fr) minmax(0, 1.4fr);
  margin: 0;
  font-size: 11px;
}

.tcfwb-biodata dt,
.tcfwb-biodata dd {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #fde68a;
}

.tcfwb-biodata dt {
  color: #92400e;
  font-weight: 700;
}

.tcfwb-biodata section p {
  color: #475569;
  font-size: 11px;
  line-height: 1.8;
}

.tcfwb-biodata > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 35px;
  padding: 14px;
  border-radius: 9px;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 10px;
}

.tcfwb-letterhead {
  --tcfwb-accent: #0369a1;
  position: relative;
  display: flex;
  min-height: 1050px;
  flex-direction: column;
}

.tcfwb-letterhead > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  margin: -52px -52px 0;
  padding: 30px 52px 25px;
  border-bottom: 5px solid var(--tcfwb-accent);
  background: #f8fafc;
}

.tcfwb-letterhead > header h1 {
  color: var(--tcfwb-accent);
  font-size: 25px;
}

.tcfwb-letterhead > header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 9px;
}

.tcfwb-letterhead > header aside {
  display: grid;
  gap: 3px;
  color: #475569;
  font-size: 9px;
  text-align: right;
}

.tcfwb-letter-logo {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 14px;
  background: var(--tcfwb-accent);
  color: white;
  font-size: 17px;
  font-weight: 900;
}

.tcfwb-letter-address {
  margin: 0 -52px 35px;
  padding: 8px 52px;
  background: var(--tcfwb-accent);
  color: white;
  font-size: 9px;
  text-align: center;
}

.tcfwb-letterhead main {
  flex: 1;
}

.tcfwb-letter-date {
  margin-bottom: 22px;
  color: #64748b;
  font-size: 10px;
  text-align: right;
}

.tcfwb-letterhead main p {
  color: #334155;
  font-size: 11px;
  line-height: 1.9;
}

.tcfwb-letterhead main h2 {
  margin: 22px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 14px;
}

.tcfwb-letterhead > footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 12px;
  border-top: 2px solid var(--tcfwb-accent);
  color: #64748b;
  font-size: 9px;
}

.tcfwb-envelope-wrap {
  display: grid;
  min-height: 520px;
  place-items: center;
}

.tcfwb-envelope {
  position: relative;
  width: min(100%, 900px);
  min-height: 0;
  padding: 5%;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #fffefa;
}

.tcfwb-envelope-from {
  position: absolute;
  top: 9%;
  left: 8%;
  width: 40%;
}

.tcfwb-envelope-to {
  position: absolute;
  right: 8%;
  bottom: 17%;
  width: 50%;
  padding: 3%;
  border-left: 4px solid #0369a1;
}

.tcfwb-envelope-from span,
.tcfwb-envelope-to span {
  color: #0369a1;
  font-size: clamp(6px, 1vw, 10px);
  font-weight: 900;
  letter-spacing: 0.15em;
}

.tcfwb-envelope-from p,
.tcfwb-envelope-to p {
  margin: 5px 0;
  font-size: clamp(8px, 1.45vw, 14px);
  line-height: 1.55;
}

.tcfwb-envelope-to small {
  color: #64748b;
  font-size: clamp(6px, 1vw, 9px);
}

.tcfwb-envelope-stamp {
  position: absolute;
  top: 8%;
  right: 7%;
  display: grid;
  width: 12%;
  aspect-ratio: 1;
  place-items: center;
  border: 2px dashed #cbd5e1;
  color: #94a3b8;
  font-size: clamp(5px, 0.8vw, 8px);
  font-weight: 800;
}

.tcfwb-code-preview-wrap {
  display: grid;
  min-height: 550px;
  place-items: center;
}

.tcfwb-code-preview {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.tcfwb-canvas-shell {
  width: min(100%, 660px);
  margin: 20px auto;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: white;
}

.tcfwb-canvas-shell canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
  margin: auto;
}

.tcfwb-code-preview > p {
  max-width: 620px;
  overflow-wrap: anywhere;
  color: #475569;
  font-size: 10px;
}

.tcfwb-qr-preview .tcfwb-canvas-shell {
  width: min(100%, 430px);
}

.tcfwb-invoice-parties {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 14px;
}

.tcfwb-invoice-parties > div {
  min-height: 90px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.tcfwb-invoice-parties span {
  display: block;
  margin-bottom: 7px;
  color: #0369a1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.tcfwb-invoice-parties p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 9px;
  line-height: 1.5;
}

.tcfwb-invoice-bottom {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 30px;
  margin-top: 45px;
  color: #64748b;
  font-size: 9px;
}

.tcfwb-invoice-bottom > div:last-child {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 80px;
  border-bottom: 1px solid #94a3b8;
}

.tcfwb-cash-memo {
  width: min(100%, 430px);
  min-height: 660px;
  padding: 30px;
  border-top: 8px solid #0f766e;
}

.tcfwb-cash-memo > header {
  text-align: center;
}

.tcfwb-cash-memo > header > span {
  color: #0f766e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.tcfwb-cash-memo > header h1 {
  margin-top: 7px;
  font-size: 22px;
}

.tcfwb-cash-memo > header p {
  color: #64748b;
  font-size: 9px;
}

.tcfwb-memo-meta,
.tcfwb-memo-payment {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
  margin: 18px 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 9px;
}

.tcfwb-memo-total {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 13px;
  border-radius: 7px;
  background: #0f766e;
  color: white;
  font-size: 15px;
}

.tcfwb-cash-memo > footer {
  margin-top: 50px;
  padding-top: 10px;
  border-top: 1px dashed #94a3b8;
  color: #64748b;
  font-size: 9px;
  text-align: center;
}

.tcfwb-rate-card {
  --tcfwb-accent: #ea580c;
  padding: 0 0 32px;
  overflow: hidden;
}

.tcfwb-rate-card > header {
  padding: 45px 45px 32px;
  background: var(--tcfwb-accent);
  color: white;
  text-align: center;
}

.tcfwb-rate-card > header span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tcfwb-rate-card > header h1 {
  margin: 8px 0;
  color: white;
  font-size: 34px;
}

.tcfwb-rate-card > header p {
  margin: 0;
  font-size: 10px;
}

.tcfwb-rate-list {
  padding: 30px 45px;
}

.tcfwb-rate-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, auto) minmax(70px, auto);
  align-items: baseline;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px dashed #cbd5e1;
}

.tcfwb-rate-list b {
  font-size: 12px;
}

.tcfwb-rate-list span {
  color: #64748b;
  font-size: 9px;
  text-align: right;
}

.tcfwb-rate-list strong {
  color: var(--tcfwb-accent);
  font-size: 14px;
  text-align: right;
}

.tcfwb-rate-card > footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin: 0 45px;
  padding: 14px 17px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 9px;
}

.tcfwb-typing {
  max-width: 1120px;
  margin: auto;
}

.tcfwb-typing-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.tcfwb-typing-toolbar .tcfwb-field {
  margin-bottom: 0;
}

.tcfwb-typing-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 12px;
}

.tcfwb-typing-stats > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #f8fafc;
}

.tcfwb-typing-stats span {
  color: #64748b;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tcfwb-typing-stats b {
  color: #0f172a;
  font-size: 20px;
}

.tcfwb-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.tcfwb-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #0f766e);
  transition: width 100ms linear;
}

.tcfwb-passage {
  margin: 24px 0 15px;
  padding: 22px;
  border: 1px solid #dbe4ef;
  border-radius: 15px;
  background: #f8fafc;
  color: #64748b;
  font-family: ui-monospace, "Noto Sans Devanagari", monospace;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.85;
}

.tcfwb-passage span {
  border-radius: 2px;
}

.tcfwb-passage .is-correct {
  color: #047857;
  background: #d1fae5;
}

.tcfwb-passage .is-wrong {
  color: #b91c1c;
  background: #fee2e2;
  text-decoration: underline;
}

.tcfwb-passage .is-current {
  background: #bae6fd;
  box-shadow: inset 2px 0 #0284c7;
}

.tcfwb-typing textarea {
  min-height: 150px;
  font-family: ui-monospace, "Noto Sans Devanagari", monospace;
  font-size: 15px;
  line-height: 1.7;
}

.tcfwb-typing-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #a7f3d0;
  border-radius: 11px;
  background: #ecfdf5;
  color: #047857;
}

.tcfwb-typing-result strong,
.tcfwb-typing-result span {
  display: block;
}

.tcfwb-typing-result span {
  margin-top: 3px;
  font-size: 11px;
}

.tcfwb-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

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

@media (max-width: 980px) {
  .tcfwb-editor-layout,
  .tcfwb-code-layout {
    grid-template-columns: 1fr;
  }

  .tcfwb-form-panel {
    max-height: none;
  }

  .tcfwb-converter,
  .tcfwb-translate-grid,
  .tcfwb-voice-grid {
    grid-template-columns: 1fr;
  }

  .tcfwb-converter-arrow {
    transform: rotate(90deg);
  }

  .tcfwb-converter .tcfwb-panel {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .tcfwb-dialog {
    inset: 0;
    border: 0;
    border-radius: 0;
  }

  .tcfwb-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 70px;
    padding: 10px 12px;
  }

  .tcfwb-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .tcfwb-heading p,
  .tcfwb-privacy-badge {
    display: none;
  }

  .tcfwb-heading h2 {
    font-size: 17px;
  }

  .tcfwb-content {
    padding: 12px;
  }

  .tcfwb-panel,
  .tcfwb-preview-wrap {
    padding: 15px;
    border-radius: 15px;
  }

  .tcfwb-form-grid {
    grid-template-columns: 1fr;
  }

  .tcfwb-form-grid .tcfwb-field {
    margin-bottom: 12px;
  }

  .tcfwb-print-sheet {
    min-width: 620px;
  }

  .tcfwb-envelope {
    min-width: 520px;
  }

  .tcfwb-cash-memo,
  .tcfwb-code-preview {
    min-width: 360px;
  }

  .tcfwb-preview-wrap {
    justify-content: start;
  }

  .tcfwb-note {
    grid-template-columns: 1fr;
  }

  .tcfwb-typing-toolbar {
    grid-template-columns: 1fr;
  }

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

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