/* AWM 2.0 — светлая тема + Material Icons */
:root {
  --lime: #9eff00;
  --lime-hot: #b8ff00;
  --lime-dim: #7acc00;
  --lime-soft: #e8ffb8;
  --lime-bar: #c8f070;
  --bg-page: #ffffff;
  --bg-soft: #f4f7ef;
  --hdr: #343a40;
  --surface: #ffffff;
  --card: #f9fff0;
  --card-border: #d4edbc;
  --text: #111111;
  --muted: #6b7280;
  --border: #d1d5db;
  --field-border: #555555;
  --warn: #e65100;
  --radius: 12px;
  --phone-w: 390px;
  --phone-h: 844px;
  --font: "Segoe UI", system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg-soft);
  color: var(--text);
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promo {
  width: 100%;
  max-width: 900px;
  padding: 12px 20px;
  text-align: center;
  flex-shrink: 0;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}
.promo .brand {
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  color: var(--lime-dim);
  letter-spacing: -1px;
}
.promo .brand span {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  margin-left: 6px;
}
.promo p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.promo a { color: var(--lime-dim); font-weight: 600; }

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-height: 0;
  background: var(--bg-soft);
}

.phone {
  width: var(--phone-w);
  height: var(--phone-h);
  max-height: calc(100vh - 80px);
  background: var(--surface);
  border-radius: 24px;
  border: 2px solid #ccc;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.status-bar {
  height: 28px;
  background: var(--hdr);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 11px;
  color: #ccc;
  flex-shrink: 0;
}
.status-bar .sb-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.status-bar .material-symbols-outlined { font-size: 14px; color: var(--lime); }

.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--surface);
  animation: in .2s ease;
}
.screen.on { display: flex; }

@keyframes in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hdr {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--hdr);
  flex-shrink: 0;
}
.logo {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  color: var(--lime);
}
.logo-ver {
  font-size: 9px;
  font-weight: 800;
  background: var(--lime);
  color: #111;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: super;
  font-style: normal;
}
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill {
  background: rgba(158,255,0,.15);
  border: 1px solid var(--lime-dim);
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: var(--lime);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn .material-symbols-outlined { font-size: 22px; }
.icon-btn:active { opacity: .7; }

.body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 8px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.dash-greet { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.dash-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.stat {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--card-border);
}
.stat b { font-size: 20px; color: var(--lime-dim); display: block; }
.stat span { font-size: 10px; color: var(--muted); }
.stat b.warn { color: var(--warn); }

.section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 10px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.quick {
  background: var(--surface);
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px 10px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-family: inherit;
}
.quick:active { border-color: var(--lime); background: var(--card); }
.quick .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lime-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--lime-dim);
}
.quick .ico .material-symbols-outlined { font-size: 22px; }
.quick b { display: block; font-size: 13px; }
.quick small { font-size: 10px; color: var(--muted); }
.quick--hero {
  grid-column: 1 / -1;
  border-color: var(--lime);
  background: linear-gradient(135deg, var(--card) 0%, var(--surface) 100%);
}
.quick--hero .ico { background: var(--lime); color: #111; }

.task-fav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
}
.chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 2px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
}
.chip--on { background: var(--lime); color: #111; border-color: var(--lime); }

.task-list { list-style: none; }
.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--card-border);
  cursor: pointer;
}
.task-item:active { border-color: var(--lime); }
.task-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime-dim);
  flex-shrink: 0;
}
.task-ico .material-symbols-outlined { font-size: 18px; }
.task-item small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }

.bar-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--lime-bar);
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 14px;
  color: var(--text);
}
.bar-title .material-symbols-outlined { font-size: 20px; color: var(--lime-dim); }

.mode-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.mode-tabs button {
  flex: 1;
  padding: 10px 6px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.mode-tabs button.on {
  background: var(--lime);
  color: #111;
  border-color: var(--lime);
}

.field {
  background: var(--surface);
  border: 2px solid var(--field-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  text-align: center;
  position: relative;
}
.field::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 2px;
  background: #00c9a0;
  pointer-events: none;
}
.field label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.field input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  outline: none;
  font-family: inherit;
  padding-bottom: 8px;
}
.field-row { display: flex; gap: 8px; }
.field-row .field { flex: 1; }

.scan-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  margin: 4px 0 14px;
  animation: scan 2s ease infinite;
}
@keyframes scan {
  0%, 100% { opacity: .4; transform: scaleX(.5); }
  50% { opacity: 1; transform: scaleX(1); }
}

.preview-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.preview-box strong { color: var(--lime-dim); }

.chk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 14px;
  cursor: pointer;
}
.chk input { accent-color: var(--lime-dim); width: 18px; height: 18px; }

.btn-main {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--lime);
  color: #111;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 0 var(--lime-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-main:active { transform: translateY(2px); box-shadow: none; }
.btn-main .material-symbols-outlined { font-size: 20px; }

.btn-sec {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 2px solid var(--lime-dim);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ge-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  border: 1px solid var(--card-border);
  margin-bottom: 12px;
}
.ge-card .num { font-size: 18px; font-weight: 800; color: var(--lime-dim); }
.ge-progress {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
}
.ge-progress i {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: 4px;
  transition: width .3s;
}
.btn-ge {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-ge--idle { background: #bdbdbd; color: #fff; }
.btn-ge--ready { background: var(--lime); color: #111; }

.nav {
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 6px 4px 10px;
  flex-shrink: 0;
}
.nav button {
  flex: 1;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nav button .material-symbols-outlined { font-size: 24px; }
.nav button.on { color: var(--lime-dim); background: var(--card); }

.toast {
  position: absolute;
  bottom: 72px;
  left: 16px;
  right: 16px;
  background: var(--hdr);
  border: 2px solid var(--lime);
  color: var(--lime);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: .25s;
  z-index: 50;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

.fab-tasks {
  position: absolute;
  right: 16px;
  bottom: 78px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lime);
  color: #111;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
}
.fab-tasks.show { display: flex; }
.fab-tasks .material-symbols-outlined { font-size: 24px; }

.hidden-scan {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.login-sub { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.login-hint { font-size: 10px; color: var(--muted); margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 4px; }
