:root {
  --green: #123c35;
  --mint: #eaf3ee;
  --ink: #192e2b;
  --muted: #677a74;
  --line: #dce5df;
  --bg: #f4f6f2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font:
    15px/1.5 system-ui,
    sans-serif;
  color: var(--ink);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 11px 17px;
  min-height: 46px;
}
button:hover {
  background: #edf3ee;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: var(--green);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4%;
  background: white;
  border-bottom: 1px solid var(--line);
}
.brand {
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  letter-spacing: 2px;
}
.brandicon {
  background: var(--green);
  color: white;
  padding: 13px 9px;
  font-size: 16px;
  border-radius: 50%;
  letter-spacing: 0;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
nav {
  background: #f1f4f0;
  padding: 5px;
  border-radius: 13px;
  display: flex;
  gap: 5px;
}
nav button {
  border: 0;
  background: transparent;
  min-width: 150px;
}
nav button.active,
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #24574b;
}
.device {
  font-size: 12px;
  color: var(--muted);
}
.demobar {
  padding: 7px 4%;
  background: #efe9d9;
  color: #685735;
  font-size: 12px;
}
main {
  max-width: 1440px;
  padding: 34px 4% 60px;
  margin: auto;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--muted);
}
h1 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 9px 0;
}
h2 {
  font-size: 24px;
  margin: 6px 0;
}
h3 {
  margin: 0;
  font-size: 19px;
}
p {
  margin: 8px 0 18px;
}
.muted {
  color: var(--muted);
}
.top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.stats {
  display: flex;
  gap: 12px;
  margin: 26px 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 23px;
  flex: 1;
}
.stat strong {
  font-size: 26px;
  margin-right: 10px;
}
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.toolbar .selected {
  border-color: var(--green);
  background: var(--mint);
}
.toolbar input {
  margin-left: auto;
  max-width: 280px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  min-width: 0;
  box-shadow: 0 4px 12px #18382a04;
  transition: transform 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  background: white;
}
.photo {
  height: 185px;
  position: relative;
  background: #e3eae7;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo .badge {
  position: absolute;
  left: 15px;
  bottom: 14px;
  box-shadow: 0 2px 8px #0002;
}
.cardbody {
  padding: 18px;
}
.cardline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.reg {
  color: var(--muted);
  font-size: 12px;
}
.cardnote {
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 13px;
  min-height: 48px;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #edf0ef;
  color: #596861;
}
.red {
  background: #fce8e4;
  color: #a0382b;
}
.green {
  background: #e0f2e7;
  color: #236a45;
}
.gold {
  background: #fff2d9;
  color: #8f6724;
}
.small {
  font-size: 12px;
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 24px;
  margin: 20px 0;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 12px;
  flex-wrap: wrap;
}
.legend b {
  display: inline-block;
  width: 18px;
  height: 8px;
  margin-right: 5px;
  background: #cbd8d0;
}
.legend b.actual {
  background: #32735e;
}
.gantt {
  overflow: auto;
  margin-top: 20px;
}
.timeline {
  min-width: 800px;
}
.ghead,
.grow {
  display: grid;
  grid-template-columns: 185px 1fr 130px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.ghead {
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 10px;
}
.months {
  display: flex;
  justify-content: space-between;
}
.grow {
  min-height: 82px;
}
.gname {
  border: 0;
  text-align: left;
  padding: 8px 0;
  background: none;
  font-weight: 650;
}
.track {
  height: 62px;
  position: relative;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(16.666% - 1px),
    #edf1ec calc(16.666% - 1px),
    #edf1ec 16.666%
  );
}
.bar {
  position: absolute;
  height: 10px;
  top: 16px;
  background: #d1ddd5;
  border-radius: 4px;
}
.bar.actual {
  top: 34px;
  background: #32735e;
}
.bar.late {
  background: #c66b48;
}
.today {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 2px solid #bc714b;
  left: 35%;
  z-index: 1;
}
.gstatus {
  font-size: 12px;
}
.gstatus strong {
  display: block;
}
.info {
  padding: 13px 17px;
  background: var(--mint);
  border-radius: 8px;
  font-size: 13px;
}
.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
footer {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 22px 4%;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
footer span {
  margin-right: auto;
}
footer button {
  font-size: 12px;
  padding: 6px 10px;
  min-height: 36px;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(900px, 96vw);
  max-height: 92vh;
  color: var(--ink);
  box-shadow: 0 20px 80px #10251f40;
}
dialog::backdrop {
  background: #132f2990;
}
.dhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 3;
}
.dbody {
  padding: 24px;
}
.dfoot {
  padding: 18px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.issue {
  border-left: 3px solid #bb5948;
  background: #fff4f1;
  padding: 15px;
  margin: 12px 0;
}
.issue p {
  margin: 4px 0;
}
.row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.row input[type="checkbox"] {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  accent-color: var(--green);
  margin-top: 3px;
}
.row label {
  flex: 1;
}
.row select {
  width: 150px;
}
.row .tasktext {
  flex: 1;
}
.row p {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-line;
}
.row summary {
  cursor: pointer;
  font-weight: 600;
}
input,
textarea,
select {
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  padding: 11px;
  background: white;
  max-width: 100%;
  color: var(--ink);
}
textarea {
  width: 100%;
  min-height: 80px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.fields label {
  display: grid;
  gap: 5px;
  font-size: 13px;
}
.sectiontitle {
  margin: 25px 0 8px;
  font-weight: 750;
}
.signature {
  border: 1px dashed #9caf9f;
  width: 100%;
  height: 150px;
  border-radius: 10px;
  touch-action: none;
  background: #fcfdfb;
}
.links {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  z-index: 10;
  display: none;
}
.progress {
  height: 5px;
  background: #e5ece6;
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: #32735e;
}
.archive {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1400px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .device {
    display: none;
  }
  header {
    padding: 15px 3%;
  }
  main {
    padding: 26px 3%;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
  .stat strong {
    display: block;
  }
  .photo {
    height: 165px;
  }
}
@media (max-width: 580px) {
  header {
    flex-direction: column;
    gap: 12px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 30px;
  }
  .top {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar input {
    margin: 0;
    max-width: 100%;
    width: 100%;
  }
  .stats {
    flex-wrap: wrap;
  }
  .stat {
    min-width: 40%;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .row {
    flex-wrap: wrap;
  }
  .row select {
    width: 100%;
  }
  .dbody {
    padding: 17px;
  }
  .dhead {
    padding: 16px;
  }
  .dfoot {
    flex-wrap: wrap;
  }
  .photo {
    height: 210px;
  }
}
