
  #hfc-wtc, #hfc-wtc * { box-sizing: border-box; }
  #hfc-wtc {
    --wtc-ink: #1c1b1a;
    --wtc-paper: #eff1ec;
    --wtc-card: #ffffff;
    --wtc-accent: #d7263d;
    --wtc-accent-soft: rgba(215,38,61,0.08);
    --wtc-line: #d8dad4;
    --wtc-muted: #6b6e68;
    --wtc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wtc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    max-width: 560px;
    margin: 2rem auto;
    background: var(--wtc-card);
    border: 1px solid var(--wtc-line);
    border-radius: 14px;
    overflow: hidden;
    font-family: var(--wtc-sans);
    color: var(--wtc-ink);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }

  #hfc-wtc .hfc-wtc__header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--wtc-ink);
    color: #f4f4f2;
    padding: 18px 20px;
  }
  #hfc-wtc .hfc-wtc__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--wtc-accent);
    flex-shrink: 0;
    animation: hfc-pulse 2.2s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    #hfc-wtc .hfc-wtc__dot { animation: none; }
  }
  @keyframes hfc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
  }
  #hfc-wtc .hfc-wtc__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f4f4f2 !important;
  }
  #hfc-wtc .hfc-wtc__tag {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: #c7c7c3 !important;
  }

  #hfc-wtc .hfc-wtc__body { padding: 20px; background: var(--wtc-paper); }

  #hfc-wtc .hfc-wtc__tabs {
    display: flex;
    gap: 4px;
    background: var(--wtc-card);
    border: 1px solid var(--wtc-line);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 18px;
  }
  #hfc-wtc .hfc-wtc__tab {
    flex: 1;
    padding: 9px 10px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-family: var(--wtc-sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--wtc-muted);
    cursor: pointer;
  }
  #hfc-wtc .hfc-wtc__tab.is-active {
    background: var(--wtc-ink);
    color: #fff;
  }
  #hfc-wtc .hfc-wtc__tab:focus-visible,
  #hfc-wtc button:focus-visible,
  #hfc-wtc input:focus-visible,
  #hfc-wtc textarea:focus-visible {
    outline: 2px solid var(--wtc-accent);
    outline-offset: 2px;
  }

  #hfc-wtc .hfc-wtc__label {
    display: block;
    font-size: 0.82rem;
    color: var(--wtc-muted);
    margin-bottom: 6px;
  }

  #hfc-wtc .hfc-wtc__textarea {
    width: 100%;
    font-family: var(--wtc-sans);
    font-size: 0.92rem;
    padding: 12px 14px;
    border: 1px solid var(--wtc-line);
    border-radius: 10px;
    resize: vertical;
    background: var(--wtc-card);
    color: var(--wtc-ink);
  }

  #hfc-wtc .hfc-wtc__countrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
  }
  #hfc-wtc .hfc-wtc__countrow .hfc-wtc__label { margin-bottom: 0; }

  #hfc-wtc .hfc-wtc__number {
    font-family: var(--wtc-mono);
    font-size: 0.95rem;
    padding: 8px 10px;
    border: 1px solid var(--wtc-line);
    border-radius: 8px;
    background: var(--wtc-card);
    color: var(--wtc-ink);
    width: 100px;
  }
  #hfc-wtc .hfc-wtc__number--small { width: 76px; }

  #hfc-wtc .hfc-wtc__paces { border: none; padding: 0; margin: 18px 0 0; }

  #hfc-wtc .hfc-wtc__segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  #hfc-wtc .hfc-wtc__seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    border: 1px solid var(--wtc-line);
    border-radius: 9px;
    background: var(--wtc-card);
    font-family: var(--wtc-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--wtc-ink);
    cursor: pointer;
  }
  #hfc-wtc .hfc-wtc__seg span {
    font-family: var(--wtc-mono);
    font-size: 0.72rem;
    color: var(--wtc-muted);
  }
  #hfc-wtc .hfc-wtc__seg.is-active {
    border-color: var(--wtc-accent);
    background: var(--wtc-accent-soft);
  }
  #hfc-wtc .hfc-wtc__seg.is-active span { color: var(--wtc-accent); }

  #hfc-wtc .hfc-wtc__custom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--wtc-muted);
  }

  #hfc-wtc .hfc-wtc__timeinputs {
    display: flex;
    gap: 16px;
  }

  #hfc-wtc .hfc-wtc__result {
    margin-top: 20px;
    padding: 18px;
    background: var(--wtc-card);
    border: 1px solid var(--wtc-line);
    border-radius: 12px;
  }
  #hfc-wtc .hfc-wtc__resultmain {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
  }
  #hfc-wtc .hfc-wtc__time {
    font-family: var(--wtc-mono);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--wtc-ink);
    line-height: 1;
  }
  #hfc-wtc .hfc-wtc__resultlabel {
    font-size: 0.85rem;
    color: var(--wtc-muted);
  }

  #hfc-wtc .hfc-wtc__breakdown,
  #hfc-wtc .hfc-wtc__breakdown tr,
  #hfc-wtc .hfc-wtc__breakdown td,
  #hfc-wtc .hfc-wtc__breakdown th {
    border: none !important;
    background: transparent !important;
  }
  #hfc-wtc .hfc-wtc__breakdown {
    width: 100%;
    margin-top: 14px;
    border-top: 1px solid var(--wtc-line) !important;
    padding-top: 10px;
    border-collapse: collapse;
  }
  #hfc-wtc .hfc-wtc__breakdown td {
    padding: 4px 0 !important;
    font-size: 0.85rem;
    color: var(--wtc-muted) !important;
  }
  #hfc-wtc .hfc-wtc__breakdown td:first-child { color: var(--wtc-ink) !important; }
  #hfc-wtc .hfc-wtc__breakdown td:last-child {
    text-align: right;
    font-family: var(--wtc-mono);
    color: var(--wtc-ink) !important;
  }

  @media (max-width: 480px) {
    #hfc-wtc .hfc-wtc__time { font-size: 1.9rem; }
    #hfc-wtc .hfc-wtc__segmented { gap: 6px; }
  }
