/* TechMinds Tools — same look as the main site, system fonts only (strict CSP: no external files). */
:root {
  --bg: #fff; --bg-alt: #f5f5f7; --text: #1d1d1f; --text-2: #6e6e73; --text-3: #86868b;
  --brand: #00665e; --brand-hover: #00534c; --border: #d2d2d7; --danger: #b00012;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--text); background: var(--bg-alt);
       -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }

.bar { position: sticky; top: 0; z-index: 10; background: rgba(251, 251, 253, .85);
       backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
       border-bottom: 1px solid rgba(0, 0, 0, .08); }
.bar-inner { max-width: 880px; margin: 0 auto; padding: 0 20px; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.brand img { height: 28px; width: auto; }
.brand span { border-left: 1px solid var(--border); padding-left: 10px; font-size: 15px; }
.who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.who span { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.link { background: none; border: 0; padding: 8px 4px; color: var(--brand); font: inherit; cursor: pointer; }

.page { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 40px 20px 64px; }
.page.narrow { max-width: 460px; padding-top: 72px; }
.hero { margin-bottom: 28px; }
.lede { font-size: 19px; color: var(--text-2); margin: 10px 0 0; max-width: 640px; }
.card { background: var(--bg); border-radius: var(--radius); padding: 32px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card h1 { margin-bottom: 6px; }
@media (max-width: 600px) { .card { padding: 24px 20px; } }
.optional { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 6px; }

.stack { display: grid; gap: 8px; margin-top: 20px; }
.stack label { font-size: 14px; font-weight: 600; margin-top: 8px; }
input[type=email], input[type=password], input[inputmode], select {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--bg-alt);
  border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; min-height: 48px; }
input:focus, select:focus { outline: none; background: var(--bg); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,102,94,.15); }
input.code { font-size: 28px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px; padding: 12px 22px;
       border: 0; border-radius: 980px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-hover); }
.btn.secondary { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.secondary:hover { background: var(--brand); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

.drop { position: relative; border: 2px dashed var(--border); border-radius: 16px; padding: 28px 20px; text-align: center;
        background: var(--bg-alt); transition: border-color .2s, background-color .2s; }
.drop.over { border-color: var(--brand); background: rgba(0,102,94,.06); }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-title { margin: 0; font-weight: 600; }
.drop-files { margin: 6px 0 0; }
.link-like { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.drop input:focus-visible + .drop-title { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 6px; }

.notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; background: rgba(215,0,21,.07); color: var(--danger); font-weight: 500; }
.notice.ok { background: rgba(0,102,94,.08); color: var(--brand); }
.foot { text-align: center; font-size: 12px; color: var(--text-3); padding: 24px 20px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
