#tcc-app {
  --tcc-navy:#073c4b;
  --tcc-teal:#078589;
  --tcc-border:#dce8eb;
  --tcc-muted:#607883;
  font-family:inherit;
  color:var(--tcc-navy);
  max-width:1180px;
  margin:0 auto;
  line-height:1.6;
}

#tcc-app * {box-sizing:border-box}

#tcc-app .tcc-header {
  background:linear-gradient(135deg,#073c4b,#078589);
  border-radius:20px;
  padding:42px 32px;
  color:#fff;
  margin-bottom:24px;
}

#tcc-app .tcc-header span {
  font-size:12px;
  font-weight:800;
  letter-spacing:1.7px;
  color:#c6f4ef;
}

#tcc-app .tcc-header h2 {
  font-size:clamp(27px,3vw,39px);
  line-height:1.2;
  color:#fff;
  margin:12px 0;
  font-weight:800;
}

#tcc-app .tcc-header p {
  color:#e0f3f4;
  margin:0;
  max-width:740px;
}

#tcc-app .tcc-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  align-items:start;
}

#tcc-app .tcc-panel {
  background:#fff;
  border:1px solid var(--tcc-border);
  border-radius:18px;
  padding:26px;
  box-shadow:0 8px 30px rgba(7,60,75,.045);
  min-width:0;
}

#tcc-app .tcc-panel h3 {
  margin:0 0 23px;
  font-size:22px;
  font-weight:800;
  color:var(--tcc-navy);
}

#tcc-app .tcc-field {
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

#tcc-app .tcc-field label {
  font-size:14px;
  font-weight:700;
  color:var(--tcc-navy);
}

#tcc-app input,
#tcc-app select {
  width:100%;
  min-width:0;
  height:49px;
  border:1px solid #ccdce0;
  border-radius:10px;
  padding:0 13px;
  font:inherit;
  font-size:15px;
  font-weight:400;
  color:var(--tcc-navy);
  background:#fff;
  outline:none;
}

#tcc-app input:focus,
#tcc-app select:focus {
  border-color:var(--tcc-teal);
  box-shadow:0 0 0 3px rgba(7,133,137,.12);
}

#tcc-app input::placeholder {
  color:#94a3b8;
  font-weight:400;
  opacity:1;
}

#tcc-app .tcc-currency-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr);
  align-items:end;
  gap:10px;
  margin-top:20px;
}

#tcc-app .tcc-swap {
  height:49px;
  width:46px;
  background:#e9f7f6;
  color:var(--tcc-teal);
  border:1px solid #bde1df;
  border-radius:11px;
  font-size:26px;
  cursor:pointer;
  font-weight:700;
}

#tcc-app .tcc-swap:hover {
  background:#d4eeec;
}

#tcc-app .tcc-actions {
  display:flex;
  gap:12px;
  margin-top:26px;
  flex-wrap:wrap;
}

#tcc-app .tcc-primary,
#tcc-app .tcc-reset,
#tcc-app .tcc-result-actions button {
  border:0;
  border-radius:10px;
  padding:13px 19px;
  font:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}

#tcc-app .tcc-primary {
  flex:1;
  background:var(--tcc-teal);
  color:#fff;
}

#tcc-app .tcc-primary:hover {
  background:#066d70;
}

#tcc-app .tcc-reset {
  background:#eef3f5;
  color:var(--tcc-navy);
}

#tcc-app .tcc-hint,
#tcc-app .tcc-disclaimer {
  font-size:12px;
  line-height:1.8;
  color:var(--tcc-muted);
  margin:18px 0 0;
}

#tcc-app .tcc-result-hero {
  padding:25px 18px;
  border-radius:14px;
  text-align:center;
  background:linear-gradient(135deg,#073c4b,#078589);
  color:#fff;
  overflow-wrap:anywhere;
}

#tcc-app .tcc-result-hero span {
  font-size:11px;
  letter-spacing:1.5px;
  font-weight:800;
  color:#d0f5f2;
}

#tcc-app .tcc-result-hero h3 {
  color:#fff;
  font-size:clamp(27px,3vw,38px);
  margin:10px 0 5px;
  line-height:1.3;
}

#tcc-app .tcc-result-hero p {
  color:#e2f4f4;
  margin:0;
  font-size:14px;
}

#tcc-app .tcc-stats {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:18px;
}

#tcc-app .tcc-stat {
  border:1px solid var(--tcc-border);
  border-radius:11px;
  padding:15px;
  background:#f8fbfb;
  min-width:0;
}

#tcc-app .tcc-stat span {
  display:block;
  font-size:12px;
  color:var(--tcc-muted);
  margin-bottom:6px;
}

#tcc-app .tcc-stat strong {
  display:block;
  font-size:14px;
  color:var(--tcc-navy);
  overflow-wrap:anywhere;
}

#tcc-app .tcc-status {
  font-size:13px;
  color:var(--tcc-muted);
  background:#f4f8f9;
  border-radius:10px;
  padding:13px 15px;
  margin-top:18px;
}

#tcc-app .tcc-status.tcc-error {
  background:#fff1f1;
  color:#a12b2b;
}

#tcc-app .tcc-result-actions {
  display:flex;
  gap:10px;
  margin-top:17px;
  flex-wrap:wrap;
}

#tcc-app .tcc-result-actions button {
  flex:1;
  background:#e8f5f4;
  color:var(--tcc-navy);
  border:1px solid #cce5e3;
}

#tcc-app .tcc-result-actions button:disabled {
  opacity:.45;
  cursor:not-allowed;
}

#tcc-app .tcc-info {
  background:#f7fbfb;
  border:1px solid var(--tcc-border);
  border-radius:18px;
  padding:30px;
  margin-top:25px;
}

#tcc-app .tcc-info h3 {
  font-size:21px;
  color:var(--tcc-navy);
  margin:22px 0 10px;
}

#tcc-app .tcc-info h3:first-child {
  margin-top:0;
}

#tcc-app .tcc-info p {
  color:#435d67;
  line-height:1.85;
}

#tcc-app .tcc-info details {
  border-bottom:1px solid #dce8eb;
  padding:14px 0;
}

#tcc-app .tcc-info summary {
  font-weight:700;
  cursor:pointer;
  color:var(--tcc-navy);
}

@media(max-width:850px) {
  #tcc-app .tcc-layout {
    grid-template-columns:1fr;
  }
}

@media(max-width:480px) {
  #tcc-app .tcc-header {
    padding:30px 20px;
  }
  #tcc-app .tcc-panel {
    padding:19px;
  }
  #tcc-app .tcc-currency-grid {
    grid-template-columns:1fr 42px 1fr;
    gap:6px;
  }
  #tcc-app .tcc-currency-grid select {
    font-size:12px;
    padding:0 5px;
  }
  #tcc-app .tcc-swap {
    width:42px;
  }
  #tcc-app .tcc-stats {
    gap:8px;
  }
  #tcc-app .tcc-stat {
    padding:12px;
  }
  #tcc-app .tcc-info {
    padding:20px;
  }
}

@media print {
  #tcc-app .tcc-header,
  #tcc-app form,
  #tcc-app .tcc-result-actions,
  #tcc-app .tcc-info {
    display:none!important;
  }
  #tcc-app .tcc-layout {
    display:block;
  }
  #tcc-app .tcc-panel {
    box-shadow:none;
  }
}
