/* frontend/style.css */
:root {
  --bg: #1a1a1a;
  --fg: #f0f0f0;
  --accent: #e54040;
  --accent-stop: #444;
  --muted: #999;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: -apple-system, "Hiragino Sans", sans-serif;
  height: 100%;
}
body {
  display: flex; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
}
section {
  width: 100%; max-width: 420px; text-align: center;
}
h1 { font-size: 28px; margin-bottom: 8px; }
h2 { font-size: 22px; margin-bottom: 8px; }
#timer {
  font-size: 64px; font-variant-numeric: tabular-nums;
  margin: 32px 0; letter-spacing: 2px;
}
.big-btn {
  display: block; width: 100%;
  padding: 28px; margin: 16px 0;
  font-size: 24px; font-weight: bold;
  border: none; border-radius: 20px;
  background: var(--accent); color: #fff;
  cursor: pointer;
}
.big-btn.stop { background: var(--accent-stop); }
.big-btn:disabled { opacity: 0.5; }
.status { font-size: 16px; min-height: 1.4em; }
.warn { color: var(--muted); font-size: 14px; margin-top: 24px; }
.result { font-size: 18px; margin-top: 16px; }
label { display: block; text-align: left; margin: 24px 0 6px; color: var(--muted); }
input[type="text"] {
  width: 100%; padding: 14px; font-size: 18px;
  border: 1px solid #444; border-radius: 12px;
  background: #2a2a2a; color: var(--fg);
}
.hint { color: var(--muted); font-size: 13px; margin-top: 24px; }
.folder-display { display: inline-block; max-width: 80%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.link-btn {
  background: none; border: none; color: var(--muted);
  text-decoration: underline; font-size: 13px; cursor: pointer; padding: 0 4px;
}
