/* File Transfer Time Calculator — content styles.
   Prefix: --ft-  /  .ft-

   Reference point: a plain, technical, single-purpose layout — the
   whole tool is two paired size/unit rows and one hero duration
   figure, since the entire value proposition is "stop mixing up bits
   and bytes," not a feature-rich dashboard. First `files-media`-cluster
   tool built this loop.

   THIS FILE STYLES THE CONTENT AREA ONLY. Chrome is owned by chrome.css. */

:root {
  --ft-surface: #ffffff;
  --ft-panel:   #f4f5f6;
  --ft-line:    #dde0e3;
  --ft-text:    #171a1c;
  --ft-muted:   #5c6368;
  --ft-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

.ft-wrap {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Input panel ─────────────────────────────────────────────────────────── */

.ft-panel {
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--ft-line);
  border-radius: 2px;
  background: var(--ft-surface);
}

.ft-row {
  display: grid;
  grid-template-columns: 1fr 8rem;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ft-row:last-of-type {
  margin-bottom: 1.25rem;
}

.ft-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ft-muted);
}

.ft-field input,
.ft-field select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ft-text);
  background: var(--ft-panel);
  border: 1px solid var(--ft-line);
  border-radius: 2px;
}

.ft-field input {
  font-family: var(--ft-mono);
  font-size: 1rem;
}

.ft-field input:focus-visible,
.ft-field select:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: -1px;
}

/* ── Primary action button ──────────────────────────────────────────────── */

.ft-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--tf-accent-ink);
  background: var(--tf-accent);
  border: 1px solid var(--tf-accent);
  border-radius: 2px;
  cursor: pointer;
}

.ft-btn:hover  { background: var(--tf-accent-hover);  border-color: var(--tf-accent-hover); }
.ft-btn:active { background: var(--tf-accent-active); border-color: var(--tf-accent-active); }

.ft-btn:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: 2px;
}

/* ── Hero result ─────────────────────────────────────────────────────────── */

.ft-hero {
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid var(--ft-line);
  border-radius: 2px;
  background: var(--ft-surface);
}

.ft-hero-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ft-muted);
}

.ft-hero-value {
  margin: 0;
  font-family: var(--ft-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--tf-accent);
}

.ft-hero-sub {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--ft-muted);
}

.ft-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ft-muted);
}

.ft-note strong {
  color: var(--ft-text);
}

/* ── Ad slots ───────────────────────────────────────────────────────────── */

.ft-ad {
  min-height: 280px;
  margin: 2rem auto 0;
  max-width: 30rem;
  padding-inline: 1.5rem;
  overflow: hidden;
}

@media (max-width: 26rem) {
  .ft-wrap,
  .ft-ad { padding-inline: 1rem; }
  .ft-panel { padding: 1.25rem; }
  .ft-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --ft-surface: var(--tf-surface);
  --ft-panel: var(--tf-surface);
  --ft-line: var(--tf-rule);
  --ft-text: var(--tf-ink);
  --ft-muted: var(--tf-ink-soft);
}
