/* Phone view - one column, big touch targets. Same palette as dashboard.css. */

:root {
  --bg: #0b0f14;
  --panel: #131a22;
  --panel-border: #1f2a35;
  --text: #e6edf3;
  --muted: #8b98a5;
  --green: #3fb950;
  --red: #f85149;
  --amber: #d29922;
  --accent: #58a6ff;
  --purple: #bc8cff;
  --brand-pink: #ff5aff;
  --brand-green: #69ff3e;
  --on-brand: #0a0a0a;
  --font-heading: "fractul-variable", "Fractul", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-border);
}

h1, h2 { font-family: var(--font-heading); }
h1 { margin: 0; font-size: 1.35rem; }
h2 { margin: 22px 0 8px; font-size: 0.85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

main { max-width: 640px; margin: 0 auto; padding: 14px 14px 40px; }
main.narrow { padding-top: 12vh; }

.muted { color: var(--muted); }
.count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: middle;
}
.error { color: var(--red); margin: 0 0 10px; }

/* Form controls: 16px+ text so iOS doesn't zoom in on focus, >=44px tall to tap. */
input[type="text"], input[type="password"] {
  min-height: 46px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  color: var(--text);
  padding: 0 13px;
  font-size: 1rem;
  font-family: inherit;
}
input:focus { outline: none; border-color: var(--brand-pink); }

button {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  padding: 0 16px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}
button.primary { background: var(--brand-green); border-color: transparent; color: var(--on-brand); font-weight: 700; }
button.primary:hover { filter: brightness(1.1); }
button.done { background: rgba(63, 185, 80, 0.16); border-color: var(--green); color: var(--green); font-weight: 600; }
button.ghost { color: var(--muted); min-height: 40px; padding: 0 13px; font-size: 0.9rem; }
button.link { min-height: 40px; background: none; border: none; color: var(--muted); font-size: 0.9rem; }

.stack { display: flex; flex-direction: column; gap: 10px; }
.inline { display: inline-flex; margin: 0; }

.add { display: flex; gap: 8px; margin-bottom: 16px; }
.add button { flex-shrink: 0; }

.tasks, .finished { list-style: none; margin: 0; padding: 0; }

.task {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 10px;
}
.task.p1 { border-color: rgba(63, 185, 80, 0.45); }
.task.p2 { border-color: rgba(210, 153, 34, 0.55); }
.task.p3 { border-color: rgba(248, 81, 73, 0.6); }

.task-head { display: flex; align-items: flex-start; gap: 10px; }
.text { margin: 0; flex: 1; min-width: 0; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }

.prio { display: flex; gap: 4px; padding-top: 5px; flex-shrink: 0; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--muted); }
.dot.p1.on { background: var(--green); border-color: var(--green); }
.dot.p2.on { background: var(--amber); border-color: var(--amber); }
.dot.p3.on { background: var(--red); border-color: var(--red); }

.task-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.task-foot .push { margin-left: auto; }
.claim { display: flex; gap: 6px; flex: 1 1 210px; }
.claim input { min-height: 40px; font-size: 0.95rem; }

.who {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  background: rgba(88, 166, 255, 0.16);
  border-radius: 999px;
  padding: 6px 13px;
}
.repeat { font-size: 0.8rem; color: var(--purple); }

.finished li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.9rem;
}
.finished .text { text-decoration: line-through; color: var(--muted); font-size: 0.9rem; }
.finished .muted { flex-shrink: 0; font-size: 0.8rem; }

.announcements { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.announcement { border-radius: 10px; padding: 11px 13px; font-weight: 600; overflow-wrap: anywhere; }
.announcement.info { background: rgba(88, 166, 255, 0.12); border: 1px solid rgba(88, 166, 255, 0.45); color: var(--accent); }
.announcement.important { background: rgba(210, 153, 34, 0.16); border: 1px solid rgba(210, 153, 34, 0.6); color: var(--amber); }
.announcement-until { display: block; margin-top: 2px; font-size: 0.78rem; font-weight: 400; color: var(--muted); }

/* Makerlab brand: green = actions, pink = focus; flat backgrounds (a faint
   gradient only shows as bands) */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 8px; display: block; flex: none; }
.login-logo { width: 84px; height: 84px; border-radius: 16px; display: block; margin: 0 0 16px; }

/* Slim scrollbar on desktop browsers (phones already use thin overlay bars) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.16);
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--brand-pink); background-clip: content-box; }
