:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --ink: #1b2430;
  --muted: #5d6b7c;
  --line: #d9dee5;
  --accent: #0b5cad;
  --accent-ink: #ffffff;
  --warn-bg: #fff4d6;
  --warn-ink: #6b4b00;
  --err: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1 { font-size: 1.25rem; margin: 0; }
h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
h3 { font-size: .95rem; margin: 1.2rem 0 .4rem; }
.muted { color: var(--muted); }
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .8rem 1.2rem; background: var(--panel); border-bottom: 1px solid var(--line);
}
.who { display: flex; align-items: center; gap: .8rem; }
main { max-width: 1100px; margin: 1.2rem auto; padding: 0 1rem 3rem; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 1rem 1.2rem; margin-bottom: 1rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem 1rem; margin: .6rem 0 1rem; }
.field label, label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
input, select, button {
  font: inherit; color: inherit;
}
input[type=date], input[type=number], input[type=text], input[type=password], select {
  width: 100%; padding: .45rem .55rem; border: 1px solid #aeb7c2; border-radius: 4px; background: #fff;
}
button {
  padding: .45rem .9rem; border: 1px solid #aeb7c2; background: #fff; border-radius: 4px; cursor: pointer;
}
button:hover:not(:disabled) { background: #eef1f5; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover:not(:disabled) { background: #094a8d; }
:focus-visible { outline: 3px solid #7fb1e6; outline-offset: 1px; }
.phases { border: 1px solid var(--line); border-radius: 4px; padding: .6rem .8rem; margin: 0 0 .8rem; }
.phases legend { padding: 0 .4rem; font-size: .85rem; color: var(--muted); }
.phase-tools { display: flex; gap: .5rem; margin-bottom: .5rem; }
.phase-tools button { padding: .2rem .7rem; font-size: .85rem; }
.phase-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; padding: .25rem 0; border-top: 1px dashed var(--line); }
.phase-row:first-child { border-top: 0; }
.dev { min-width: 8.5rem; font-weight: 600; }
.chk { display: inline-flex; align-items: center; gap: .2rem; margin: 0; color: var(--ink); font-size: .9rem; cursor: pointer; }
.sentence { background: #eef4fb; border-left: 4px solid var(--accent); padding: .5rem .8rem; margin: .8rem 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.warn { background: var(--warn-bg); color: var(--warn-ink); padding: .5rem .8rem; border-radius: 4px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: .35rem .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: #f0f3f7; font-weight: 600; }
th button { border: 0; background: transparent; padding: 0; font-weight: 600; cursor: pointer; }
th button:hover { text-decoration: underline; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.none td { color: var(--muted); }
.error { color: var(--err); margin: .6rem 0 0; }
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-card {
  width: min(360px, 92vw); background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; padding: 1.5rem;
}
.login-card form { display: grid; gap: .5rem; margin-top: 1rem; }
.login-card button { margin-top: .6rem; }
@media (max-width: 560px) {
  .top { flex-direction: column; align-items: flex-start; }
}
.sync-stamp {
  margin-left: auto;
  color: var(--muted);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sync-stamp.missing { color: var(--err); }
@media (max-width: 560px) {
  .sync-stamp { flex-basis: 100%; margin-left: 9.3rem; white-space: normal; }
}
