:root {
  --lime: #b9e769;
  --amber: #ffbd59;
  --coral: #ff8267;
  --sky: #73cfe3;
  --violet: #bca5ff;
  --ink: #f5f5e9;
  --muted: #94a198;
  --panel: #10261e;
  --line: #ffffff17;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: #07130f;
  color: var(--ink);
  font-family: Arial, sans-serif;
}
.app {
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: auto;
  padding-bottom: 95px;
}
.glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}
.glow.a {
  background: var(--lime);
  right: -150px;
  top: -80px;
}
.glow.b {
  background: var(--coral);
  left: -180px;
  bottom: 5%;
}
header {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(#0a1c17 70%, transparent);
}
.logo,
.back {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: var(--lime);
  color: #102016;
  font-size: 29px;
  line-height: 1;
  font-weight: 950;
  display: grid;
  place-items: center;
  padding: 0;
}
.title {
  flex: 1;
}
.title small,
.section-title small {
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.title h1 {
  font-size: 21px;
  margin: 2px 0;
}
.sync {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 9px;
  color: var(--lime);
  font-size: 10px;
}
.sync span {
  display: none;
}
.content {
  padding: 7px 18px 30px;
}
.home {
  display: grid;
  gap: 16px;
}
.hero {
  height: 205px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  border: 1px solid #b9e76929;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #081812eb, transparent);
}
.hero-copy {
  position: absolute;
  left: 21px;
  bottom: 25px;
  width: 55%;
  display: flex;
  flex-direction: column;
}
.hero-copy small {
  color: var(--amber);
  font-size: 9px;
  font-weight: 900;
}
.hero-copy b {
  font-size: 26px;
  margin: 8px 0 4px;
}
.hero-copy p {
  font-size: 12px;
  margin: 0;
}
.mission,
.info,
.data-section {
  padding: 18px;
  border-radius: 23px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: 17px;
  margin: 2px 0;
}
.section-title > b {
  padding: 8px;
  border-radius: 99px;
  background: #b9e76916;
  color: var(--lime);
}
progress {
  width: 100%;
  accent-color: var(--lime);
}
.mission p,
.intro,
.note {
  font-size: 11px;
  color: var(--muted);
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.actions button {
  min-height: 145px;
  border: 0;
  border-radius: 23px;
  padding: 16px;
  color: #102016;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.actions .primary {
  background: var(--lime);
}
.actions .secondary {
  background: var(--amber);
}
.actions button > span {
  font-size: 34px;
  line-height: 1;
  color: #102016;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  margin-bottom: auto;
}
.actions button > b {
  font-size: 18px;
}
.actions button > small {
  font-size: 10px;
}
.history,
.cat-grid,
.data-cards {
  display: grid;
  gap: 9px;
}
.history-row,
.cat {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: #ffffff08;
  padding: 10px;
  border-radius: 17px;
}
.history-row > span,
.cat > span,
.info-head > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
}
.history-row > div,
.cat > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.history-row small,
.cat small {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-row time,
.cat em {
  font-size: 9px;
  color: var(--lime);
}
.empty {
  height: 120px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.empty b {
  margin: 7px;
}
.cat {
  width: 100%;
  grid-template-columns: 52px 1fr auto;
  color: var(--ink);
  text-align: left;
  background: var(--panel);
}
.cat > span {
  width: 52px;
  height: 52px;
}
.cat i {
  font-size: 22px;
}
.coral {
  background: var(--coral);
}
.sky {
  background: var(--sky);
}
.amber {
  background: var(--amber);
}
.green,
.lime {
  background: var(--lime);
}
.violet {
  background: var(--violet);
}
.info-head {
  display: flex;
  gap: 12px;
}
.info-head h2 {
  font-size: 15px;
  margin: 2px 0;
}
.info-head p {
  font-size: 10px;
  color: var(--muted);
}
.rows {
  margin-top: 12px;
}
.rows div,
.data-cards dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.guide-heading {
  font-size: 18px;
}
.data-section h3 {
  color: var(--lime);
  font-size: 14px;
}
.data-cards article {
  background: #ffffff08;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
}
.data-cards strong {
  display: block;
  padding: 11px;
  color: var(--amber);
}
.data-cards dl {
  padding: 0 11px;
  margin: 0;
}
.data-cards dt {
  color: var(--muted);
}
.data-cards dd {
  text-align: right;
  font-weight: 700;
  margin: 0;
}
.compact .data-cards {
  grid-template-columns: 1fr 1fr;
}
nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 730px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 7px;
  background: #0c1d17f2;
  border: 1px solid var(--line);
  border-radius: 23px;
}
nav button {
  border: 0;
  background: transparent;
  color: #77857c;
  border-radius: 16px;
  padding: 7px;
  font-size: 18px;
}
nav button small {
  display: block;
  font-size: 9px;
}
nav button.on {
  background: #b9e76918;
  color: var(--lime);
}
dialog {
  width: calc(100% - 28px);
  max-width: 440px;
  border-radius: 25px;
  background: #10261e;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 22px;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(4px);
}
.dialog-close {
  float: right;
  border: 0;
  background: transparent;
  color: white;
  font-size: 25px;
}
dialog h2 {
  font-size: 18px;
}
form,
form label,
#dynamic-fields {
  display: grid;
  gap: 14px;
}
form label {
  gap: 6px;
  font-size: 10px;
  color: #abb6ae;
}
input,
textarea,
select {
  width: 100%;
  min-height: 45px;
  background: #091b15;
  color: white;
  border: 1px solid #ffffff1e;
  border-radius: 13px;
  padding: 10px;
  font: inherit;
}
select option {
  background: #10261e;
  color: white;
}
.save {
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--lime);
  color: #102016;
  font-weight: 900;
}
.note {
  text-align: center;
  padding: 10px;
}
@media (min-width: 600px) {
  .app {
    padding-left: 22px;
    padding-right: 22px;
  }
  .sync span {
    display: inline;
  }
  .cat-grid,
  .data-cards {
    grid-template-columns: 1fr 1fr;
  }
  .compact .data-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero {
    height: 240px;
  }
}
.guide-group {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  overflow: hidden;
}
.guide-group summary {
  list-style: none;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  cursor: pointer;
}
.guide-group summary::-webkit-details-marker {
  display: none;
}
.guide-group summary > span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #ffffff10;
  font-size: 22px;
}
.guide-group summary > b {
  font-size: 14px;
}
.guide-group summary > i {
  font-style: normal;
  color: var(--lime);
  font-size: 18px;
  transition: 0.2s;
}
.guide-group[open] summary > i {
  transform: rotate(180deg);
}
.guide-body {
  padding: 0 12px 12px;
}
.guide-body > .info,
.guide-body > .data-section {
  background: #091b15;
  margin-bottom: 9px;
}
.insect-guide {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #091b15;
  padding: 14px;
  margin-bottom: 9px;
}
.insect-guide h3 {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 14px;
}
.insect-guide .rows b {
  max-width: 65%;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}
.insect-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.add-tupper,
.tupper-card button {
  border: 0;
  border-radius: 14px;
  background: var(--lime);
  color: #102016;
  padding: 12px;
  font-weight: 900;
}
.stock {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  padding: 16px;
}
.stock h2,
.subheading {
  font-size: 15px;
  margin: 0 0 12px;
}
.stock > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.stock > div > div {
  display: flex;
  flex-direction: column;
  padding: 10px 7px;
  border-radius: 14px;
  background: #ffffff08;
}
.stock span {
  font-size: 9px;
  color: var(--muted);
}
.stock span small {
  display: block;
  font-size: 8px;
  margin-top: 3px;
}
.stock b {
  font-size: 20px;
  color: var(--lime);
  margin-top: 5px;
}
.subheading {
  margin: 20px 2px 11px;
}
.tupper-list {
  display: grid;
  gap: 10px;
}
.tupper-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
}
.tupper-card > div {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 11px;
}
.tupper-card > div > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--amber);
  display: grid;
  place-items: center;
}
.tupper-card > div > div {
  display: flex;
  flex-direction: column;
}
.tupper-card small {
  color: var(--muted);
  font-size: 9px;
}
.tupper-card strong {
  font-size: 20px;
  color: var(--lime);
}
.tupper-card button {
  width: 100%;
  padding: 9px;
  font-size: 10px;
}
@media (min-width: 600px) {
  .tupper-list {
    grid-template-columns: 1fr 1fr;
  }
  .insect-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .add-tupper {
    width: auto;
  }
}
.overdue {
  padding: 18px;
  border-radius: 23px;
  background: #35191a;
  border: 1px solid #ff6b6b42;
}
.overdue .section-title small {
  color: #ff8585;
}
.overdue .section-title > b {
  background: #ff6b6b1f;
  color: #ff8989;
}
.overdue progress {
  accent-color: #f05d5e;
}
.due-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}
.due-list span {
  padding: 6px 9px;
  border-radius: 99px;
  background: #ff777713;
  color: #ffb0b0;
  font-size: 9px;
}
.quick-links {
  display: grid;
  gap: 8px;
}
.quick-links button {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  color: var(--ink);
  padding: 11px;
  text-align: left;
}
.quick-links button > span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ffffff0d;
  display: grid;
  place-items: center;
}
.quick-links button > b {
  font-size: 12px;
}
.quick-links button > i {
  font-size: 20px;
  font-style: normal;
  color: var(--lime);
}
.full-history {
  gap: 8px;
}
.history-row.full {
  align-items: start;
}
.history-row.full small {
  white-space: normal;
  line-height: 1.4;
  margin-top: 3px;
}
.alert-grid {
  display: grid;
  gap: 10px;
}
.alert-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
.alert-card.late {
  border-color: #ff6b6b55;
  background: #35191a;
}
.alert-title {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 13px;
}
.alert-title > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #ffffff0d;
  display: grid;
  place-items: center;
}
.alert-title > div {
  display: flex;
  flex-direction: column;
}
.alert-title b {
  font-size: 13px;
}
.alert-title small {
  font-size: 9px;
  color: var(--lime);
  margin-top: 3px;
}
.alert-card.late .alert-title small {
  color: #ff8585;
}
.alert-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}
.alert-card select {
  min-height: 42px;
}
.alert-card p {
  font-size: 9px;
  color: var(--muted);
  margin: 9px 1px 0;
}
.alert-card p b {
  color: var(--ink);
}
@media (min-width: 600px) {
  .quick-links,
  .alert-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.actions .tertiary {
  background: var(--amber);
}
.actions .quaternary {
  background: var(--lime);
}
nav {
  grid-template-columns: repeat(5, 1fr);
}
nav button {
  font-size: 16px;
}
.due-list span.resolved {
  background: #b9e76918;
  color: var(--lime);
}
.due-list span b {
  margin-left: 3px;
}
.disk{position:relative;width:44px;height:44px;border:1px solid var(--line);border-radius:14px;background:#ffffff08;color:#718078;display:grid;place-items:center;padding:0}.disk svg{width:23px;height:23px;fill:currentColor}.disk i{position:absolute;right:5px;bottom:5px;width:8px;height:8px;border-radius:50%;background:#68756d;border:2px solid var(--panel)}.disk.ready{color:var(--amber)}.disk.ready i{background:var(--amber)}.disk.ok{color:var(--lime)}.disk.ok i{background:var(--lime)}.disk.busy{color:var(--sky)}.disk.busy i{background:var(--sky);animation:diskPulse .8s infinite}.disk.error{color:#ff7777}.disk.error i{background:#ff7777}@keyframes diskPulse{50%{opacity:.25}}
.filters{display:flex;gap:7px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:none}.filters::-webkit-scrollbar{display:none}.filters button{flex:none;border:1px solid var(--line);border-radius:99px;background:#ffffff08;color:var(--muted);padding:8px 11px;font-size:9px}.filters button.on{background:var(--lime);border-color:var(--lime);color:#102016;font-weight:900}.daily-history{display:grid;gap:13px}.day-group{border:1px solid var(--line);border-radius:20px;background:var(--panel);overflow:hidden}.day-group>h2{margin:0;padding:12px 14px;background:#ffffff08;color:var(--lime);font-size:11px;text-transform:capitalize}.day-row{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:start;padding:12px 13px;border-top:1px solid var(--line)}.day-row>span{width:42px;height:42px;border-radius:13px;display:grid;place-items:center}.day-row>div{min-width:0}.day-row b{font-size:11px}.day-row p{margin:3px 0 0;color:var(--muted);font-size:10px;line-height:1.45}.day-row em{font-style:normal;color:var(--amber);font-size:9px;font-weight:900}
#file-dialog>p{margin:-4px 0 16px;color:var(--muted);font-size:11px}.file-actions{display:grid;gap:9px}.file-actions button{display:flex;flex-direction:column;gap:3px;border:1px solid var(--line);border-radius:15px;background:#ffffff08;color:var(--ink);padding:13px;text-align:left}.file-actions button:first-child{background:var(--lime);color:#102016;border-color:var(--lime)}.file-actions button b{font-size:12px}.file-actions button small{font-size:9px;opacity:.68;line-height:1.35}
.record-details{margin-top:7px}.record-details summary{color:var(--lime);font-size:9px;cursor:pointer}.record-details section{display:grid;gap:5px;margin-top:7px}.record-details section>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:7px;border-radius:10px;background:#ffffff08}.record-details section span{font-size:9px;color:var(--muted);line-height:1.35}.record-details section button{border:1px solid #ff777744;border-radius:9px;background:#ff777714;color:#ff9a9a;padding:6px 8px;font-size:8px}.stock-alert input{min-height:42px}
