:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: #0b1210;
  color: #dcece5;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  -webkit-tap-highlight-color: transparent;
}
a { color: #4ecba0; }
b { color: #eefaf3; }

#app { max-width: 860px; margin: 0 auto; padding: 0 14px 40px; }

.topbar {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 20px 2px 10px;
}
.brand { font-weight: 700; font-size: 20px; color: #bdf2dc; letter-spacing: 0.01em; }
.brand-sub { font-size: 12px; color: #6f9c8c; }

.screen.hidden { display: none; }

.intro-card, .progress-card, .summary-card, .filter-card {
  background: linear-gradient(180deg, rgba(78,203,160,0.08), rgba(11,18,16,0.4));
  border: 1px solid rgba(78,203,160,0.18);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.intro-card p { font-size: 14px; line-height: 1.65; color: #cfe6dc; margin: 0 0 12px; }
.intro-card p.fine { font-size: 12px; color: #6f9c8c; }

.lbl {
  display: block; font-size: 11px; color: #6f9c8c;
  text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 6px;
}
.row { display: flex; gap: 8px; }
input[type="text"] {
  flex: 1; font-family: inherit; font-size: 14px;
  padding: 10px 11px; border: 1px solid rgba(78,203,160,0.28);
  border-radius: 8px; background: #101a17; color: #eefaf3;
}
input[type="text"]:focus { outline: 2px solid #4ecba0; outline-offset: 1px; }
select {
  font-family: inherit; font-size: 13px; padding: 9px 10px;
  border: 1px solid rgba(78,203,160,0.28); border-radius: 8px;
  background: #101a17; color: #eefaf3;
}
button {
  font-family: inherit; font-size: 14px; padding: 10px 16px;
  border: 1px solid #4ecba0; background: #4ecba0; color: #06231a;
  border-radius: 8px; cursor: pointer; font-weight: 700;
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:disabled { opacity: 0.45; cursor: default; }
button.ghost {
  background: transparent; color: #dcece5; border-color: rgba(78,203,160,0.32);
  font-weight: 400;
}
button.ghost:hover:not(:disabled) { border-color: #4ecba0; }
button.small { padding: 6px 10px; font-size: 12px; }

.msg { min-height: 16px; font-size: 12px; margin: 10px 0 0; color: #6f9c8c; }
.msg.err { color: #e0895a; }

.progress-card .status { font-size: 14px; color: #eefaf3; margin-bottom: 10px; }
.progress-card .substat { font-size: 12px; color: #6f9c8c; margin-top: 8px; }
.meter { height: 6px; border-radius: 3px; background: rgba(78,203,160,0.14); overflow: hidden; }
.meter i { display: block; height: 100%; background: #4ecba0; transition: width 0.35s ease; }

.summary-card .sumhead { font-size: 15px; font-weight: 700; color: #bdf2dc; margin-bottom: 6px; }
.summary-card .sumbody { font-size: 13px; line-height: 1.6; color: #cfe6dc; }
.summary-card .actions { margin-top: 12px; }
.summary-card a.sharebtn { text-decoration: none; display: inline-block; }

.filter-card { padding: 14px 16px 16px; }
.filter-card select { flex: none; }
.filter-card .fine { font-size: 12px; color: #6f9c8c; margin: 10px 0 0; }

.table-wrap { overflow-x: auto; border: 1px solid rgba(78,203,160,0.16); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: #6f9c8c; padding: 10px 12px; border-bottom: 1px solid rgba(78,203,160,0.2);
  background: rgba(78,203,160,0.06);
}
tbody td { padding: 10px 12px; border-bottom: 1px solid rgba(78,203,160,0.09); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(78,203,160,0.05); }

td.col-account { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.av {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background-color: #1c332c; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
a.who { text-decoration: none; color: inherit; }
a.who:hover b { text-decoration: underline; }
a.who .handle { color: #6f9c8c; margin-left: 3px; }

td.col-date { white-space: nowrap; color: #cfe6dc; }
td.col-app { color: #9fd6c2; white-space: nowrap; }
td.col-type { white-space: nowrap; }

.tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
  color: #4ecba0; border: 1px solid rgba(78,203,160,0.35); border-radius: 4px;
  padding: 2px 6px;
}
.tag.est { color: #9a8468; border-color: rgba(154,132,104,0.4); margin-left: 4px; text-transform: none; letter-spacing: 0; }

.feedmore { text-align: center; padding: 18px 0 6px; }
.startover { text-align: center; padding: 6px 0 0; }

footer {
  margin-top: 2.5rem; color: #5f8b7c; font-size: 12px;
  border-top: 1px solid rgba(78,203,160,0.14); padding-top: 1rem; line-height: 1.6;
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tbody tr { border-bottom: 1px solid rgba(78,203,160,0.14); padding: 10px 0; }
  tbody td { border-bottom: none; padding: 4px 12px; }
  td.col-date::before { content: "date: "; color: #6f9c8c; }
  td.col-app::before { content: "app: "; color: #6f9c8c; }
  td.col-type::before { content: "type: "; color: #6f9c8c; }
}
