:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #22342f;
  background: #f5f7f6;
  font-size: 16px;
  font-synthesis: none;
  --green: #204f41;
  --line: #e4eae6;
  --muted: #77817c;
  --lime: #d9edaa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #92af69;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #7a9a83;
  outline-offset: 1px;
}
a {
  color: var(--green);
}
button {
  border: 0;
  background: none;
  color: inherit;
}
svg.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 1.85rem;
  letter-spacing: -1.1px;
  font-weight: 650;
}
h2 {
  font-size: 1.05rem;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 0.95rem;
}
small {
  font-size: 0.8rem;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 650;
}
.loading {
  padding: 5rem;
  color: var(--green);
}
.shell {
  display: grid;
  grid-template-columns: 234px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 234px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 31px 18px 18px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px 32px;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand b {
  font-size: 1.22rem;
  letter-spacing: -0.8px;
}
.brand small {
  display: block;
  margin-top: 3px;
  font-size: 0.69rem;
  letter-spacing: 1px;
}
.plant-select {
  margin: 0 6px 29px;
  background: #f5f7f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.plant-select .plant-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.nav-label {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: #8c9690;
  padding: 0 14px;
  margin: 6px 0 10px;
  font-weight: 650;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  font-size: 0.87rem;
  text-decoration: none;
  color: #6c7771;
  border-radius: 7px;
  white-space: nowrap;
}
.nav a:hover {
  background: #f5f7f5;
}
.nav a.active {
  background: #eaf0e8;
  color: #204f41;
  font-weight: 650;
}
.nav a .nav-count {
  margin-left: auto;
  background: #dbe7d4;
  font-size: 0.72rem;
  border-radius: 5px;
  padding: 2px 6px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
}
.plant-info {
  background: #f6f8f5;
  border: 1px solid #e8ede5;
  border-radius: 9px;
  margin: 20px 6px 16px;
  padding: 15px 12px;
  font-size: 0.78rem;
  line-height: 1.7;
}
.plant-info b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #365341;
  font-size: 0.78rem;
}
.plant-info p {
  color: #8b948e;
  font-size: 0.72rem;
}
.sidebar-footer {
  font-size: 0.67rem;
  color: #99a19c;
  padding: 5px 14px;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 79px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 37px;
  gap: 15px;
}
.breadcrumb {
  font-size: 0.8rem;
  color: #919a94;
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb b {
  font-weight: 500;
  color: #485a50;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.status-online {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #748077;
}
.status-online::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5c8f70;
}
.status-online.offline::before {
  background: #e29c31;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
}
.icon-btn:hover {
  background: #f1f4f0;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e8e3d5;
  color: #665e49;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 650;
}
.profile-name {
  font-size: 0.78rem;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-name small {
  display: block;
  font-size: 0.67rem;
  margin-top: 4px;
}
.content {
  padding: 33px 37px 35px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-heading p {
  color: #7c8780;
  font-size: 0.86rem;
  margin-top: 9px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 550;
  border: 1px solid #dce3dd;
  background: #fff;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  background: #f2f5f1;
}
.btn.primary {
  background: #204f41;
  border-color: #204f41;
  color: white;
  box-shadow: 0 2px 3px #203e3010;
}
.btn.primary:hover {
  background: #153d32;
}
.btn.small {
  padding: 6px 10px;
  min-height: 31px;
  font-size: 0.74rem;
}
.btn.danger {
  color: #af473d;
}
.welcome {
  position: relative;
  overflow: hidden;
  background: #1e493c;
  color: white;
  border-radius: 11px;
  padding: 26px 29px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
  min-height: 153px;
}
.welcome .eyebrow {
  font-size: 0.65rem;
  color: #b5c8b2;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
}
.welcome h2 {
  font-size: 1.45rem;
  font-weight: 550;
  letter-spacing: -0.6px;
  line-height: 1.4;
}
.welcome p {
  font-size: 0.8rem;
  color: #bbcfc1;
  line-height: 1.7;
  margin-top: 9px;
  max-width: 580px;
}
.welcome .btn {
  background: #d9edaa;
  border-color: #d9edaa;
  color: #28422e;
  margin-top: 17px;
  font-size: 0.76rem;
}
.welcome-art {
  width: 220px;
  height: 130px;
  flex-shrink: 0;
  opacity: 0.8;
}
.welcome-art svg {
  width: 100%;
  height: 100%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 20px;
}
.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6c7970;
  font-size: 0.78rem;
  gap: 10px;
}
.stat-icon {
  background: #f3f6f1;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  color: #6e876e;
}
.stat-icon.orange {
  background: #fcf1e3;
  color: #bd9552;
}
.stat-icon.red {
  background: #fbefea;
  color: #bd7d6b;
}
.stat-number {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -1.3px;
  line-height: 1.4;
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.stat-number span {
  font-size: 0.9rem;
  color: #8d978f;
  letter-spacing: 0;
  font-weight: 400;
}
.stat-note {
  margin-top: 8px;
  font-size: 0.7rem;
  color: #87918a;
  display: flex;
  gap: 6px;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 550;
  white-space: nowrap;
  line-height: 1.3;
  background: #edf3e9;
  color: #5c7b4b;
}
.tag.amber {
  background: #fcf3e4;
  color: #ae823d;
}
.tag.red {
  background: #fbeee9;
  color: #b16453;
}
.tag.blue {
  background: #edf1fb;
  color: #6b7eb0;
}
.tag.gray {
  background: #f0f2f1;
  color: #77837b;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(290px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 22px 17px;
  gap: 15px;
}
.panel-head p {
  font-size: 0.74rem;
  color: #929b95;
  margin-top: 6px;
  line-height: 1.5;
}
.panel-head .text-link {
  font-size: 0.74rem;
  color: #51705c;
  white-space: nowrap;
}
.tabs {
  display: flex;
  gap: 21px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tabs button {
  font-size: 0.76rem;
  color: #8b958e;
  padding: 10px 0 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  border-color: #376347;
  color: #30523c;
  font-weight: 600;
}
.tabs .count {
  margin-left: 6px;
  border-radius: 4px;
  padding: 2px 5px;
  background: #f0f3ee;
  font-size: 0.66rem;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.78rem;
  white-space: nowrap;
}
th {
  background: #fafbf9;
  color: #8b958e;
  font-weight: 450;
  font-size: 0.67rem;
  letter-spacing: 0.4px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #edf0ec;
  color: #67776c;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcfa;
}
td strong {
  font-weight: 550;
  color: #354b3d;
  font-size: 0.78rem;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 0.68rem;
  color: #929b95;
}
.asset-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.asset-symbol {
  width: 32px;
  height: 32px;
  border: 1px solid #e5eae2;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #8a9e89;
  background: #f8faf6;
}
.asset-symbol .icon {
  width: 17px;
  height: 17px;
}
.table-footer {
  padding: 13px 21px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  color: #8b968e;
  display: flex;
  justify-content: space-between;
}
.readiness {
  padding: 0 22px 20px;
}
.readiness-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 22px;
  gap: 16px;
}
.ring {
  width: 114px;
  height: 114px;
  position: relative;
  flex-shrink: 0;
}
.ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1.65rem;
  font-weight: 550;
  letter-spacing: -1px;
}
.ring-value small {
  font-size: 0.62rem;
  letter-spacing: 0;
  margin-top: 4px;
}
.legend {
  display: grid;
  gap: 15px;
  width: 100%;
  font-size: 0.73rem;
  color: #8b968e;
}
.legend div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend b {
  margin-left: auto;
  color: #53664f;
  font-size: 0.85rem;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #507852;
  display: inline-block;
  flex-shrink: 0;
}
.dot.orange {
  background: #dcac65;
}
.dot.gray {
  background: #d9e2d3;
}
.readiness-note {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.72rem;
  color: #98a08f;
  line-height: 1.65;
}
.readiness-note b {
  color: #6e8066;
  font-weight: 550;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}
.insight {
  padding: 0 22px 22px;
}
.alert-row {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0e9;
  align-items: flex-start;
}
.alert-row:last-child {
  border: 0;
}
.alert-row .icon {
  color: #ab8a55;
  width: 17px;
  margin-top: 3px;
}
.alert-row b {
  font-size: 0.76rem;
  font-weight: 550;
  color: #55654f;
}
.alert-row p {
  font-size: 0.71rem;
  color: #949e91;
  line-height: 1.65;
  margin-top: 4px;
}
.bar-chart {
  padding: 7px 22px 23px;
  display: grid;
  gap: 15px;
}
.bar-row {
  display: grid;
  grid-template-columns: 66px 1fr 25px;
  gap: 10px;
  align-items: center;
  font-size: 0.71rem;
  color: #8c9687;
}
.bar-track {
  height: 9px;
  background: #f0f3ed;
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: #829d73;
  border-radius: 3px;
  width: 0;
}
.bar-row:nth-child(2) .bar-fill {
  background: #acc19b;
}
.bar-row:nth-child(3) .bar-fill {
  background: #cfddbe;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  font-size: 0.77rem;
  line-height: 1.6;
  background: #f5f3e9;
  border: 1px solid #eae4ca;
  border-radius: 8px;
  color: #8b7b46;
  margin: 0 0 21px;
}
.notice .icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.toolbar .search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 400px;
}
.search .icon {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 17px;
  color: #96a091;
}
.search input {
  padding-left: 38px;
  width: 100%;
}
input,
select,
textarea {
  border: 1px solid #dfe5dc;
  border-radius: 6px;
  background: #fff;
  min-height: 40px;
  padding: 9px 11px;
  color: #4c604a;
  font-size: 0.84rem;
  max-width: 100%;
}
select {
  appearance: none;
  padding-right: 33px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23778b76' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
textarea {
  resize: vertical;
  min-height: 85px;
  line-height: 1.6;
}
label {
  display: grid;
  gap: 7px;
  font-size: 0.77rem;
  color: #708069;
}
label.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
  padding: 8px 0;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  accent-color: #315b3f;
  flex-shrink: 0;
  margin: 1px 0 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.equipment-card {
  padding: 21px;
}
.equipment-card .equipment-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.equipment-card h3 {
  font-size: 0.97rem;
  margin-bottom: 6px;
}
.equipment-card .equipment-detail {
  font-size: 0.77rem;
  color: #909b89;
  line-height: 1.8;
  margin: 15px 0;
}
.equipment-card .equipment-detail b {
  color: #5e7156;
  font-weight: 500;
}
.equipment-card .equipment-bottom {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-panel {
  padding: 24px;
}
.form-panel h2 {
  margin-bottom: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.empty {
  text-align: center;
  padding: 45px 25px;
  color: #8c9788;
  font-size: 0.85rem;
  line-height: 1.8;
}
.empty .icon {
  width: 32px;
  height: 32px;
  color: #a8b69f;
  margin-bottom: 13px;
}
.empty b {
  display: block;
  color: #4b6547;
  font-weight: 550;
  font-size: 1rem;
  margin-bottom: 6px;
}
.list-info {
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.7;
}
.list-info b {
  font-weight: 550;
  color: #546d4d;
}
.list-info p {
  color: #899782;
  margin-top: 5px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  font-size: 0.67rem;
  color: #9ba393;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-brand {
  background: #1e493c;
  padding: 65px 10%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.login-brand .brand {
  padding: 0;
  position: absolute;
  top: 45px;
  left: 10%;
}
.login-brand .brand small {
  color: #bdd2b5;
}
.login-brand h1 {
  font-size: 3.1rem;
  max-width: 520px;
  letter-spacing: -2px;
  line-height: 1.2;
  margin-top: 30px;
}
.login-brand p {
  line-height: 1.9;
  color: #bed0b6;
  max-width: 410px;
  margin-top: 24px;
  font-size: 0.95rem;
}
.login-brand .welcome-art {
  width: 100%;
  height: 210px;
  max-width: 440px;
  margin-top: 30px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form form {
  width: 100%;
  max-width: 365px;
}
.login-form h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  letter-spacing: -0.9px;
}
.login-form p {
  font-size: 0.87rem;
  color: #88967f;
  line-height: 1.8;
  margin-bottom: 27px;
}
.login-form label {
  margin-bottom: 19px;
}
.login-form .btn {
  width: 100%;
  margin-top: 5px;
}
.login-foot {
  margin-top: 25px;
  font-size: 0.73rem;
  color: #9ca694;
  line-height: 1.8;
}
.error-text {
  color: #b15142;
  font-size: 0.8rem;
  line-height: 1.7;
  margin-top: 14px;
}
dialog {
  width: min(730px, calc(100vw - 32px));
  max-height: 90vh;
  border: 1px solid #dfe5db;
  border-radius: 13px;
  padding: 0;
  box-shadow: 0 30px 100px #17321c30;
  color: #334b30;
}
dialog::backdrop {
  background: #10261970;
  backdrop-filter: blur(3px);
}
.modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.modal-header h2 {
  font-size: 1.1rem;
}
.modal-body {
  padding: 24px 25px;
}
.modal-body .section-label {
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  color: #90a084;
  text-transform: uppercase;
  margin: 25px 0 10px;
}
.modal-body .section-label:first-child {
  margin-top: 0;
}
.task-context {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.task-context p {
  font-size: 0.82rem;
  color: #87977c;
  line-height: 1.8;
  margin-top: 8px;
}
.task-context .tag {
  margin-right: 5px;
}
.checklist {
  padding: 12px 16px;
  background: #f7f9f4;
  border: 1px solid #e6ecdf;
  border-radius: 7px;
  margin-bottom: 18px;
}
.safety-label {
  color: #9c793e;
  font-size: 0.78rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.attachments img,
.attachments video {
  width: 150px;
  max-height: 140px;
  object-fit: cover;
  border-radius: 6px;
}
.record {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: #89977d;
  line-height: 1.8;
  white-space: pre-wrap;
}
.record b {
  color: #516649;
  font-weight: 550;
}
.history {
  font-size: 0.73rem;
  color: #94a087;
  line-height: 1.9;
}
.material-row,
.person-row {
  display: grid;
  grid-template-columns: 1fr 100px 30px;
  gap: 8px;
  margin-bottom: 9px;
}
.add-row {
  color: #5e8050;
  font-size: 0.75rem;
  margin: 6px 0 14px;
}
.data-box {
  background: #f6f8f2;
  padding: 16px;
  border-radius: 7px;
  font-size: 0.78rem;
  line-height: 1.8;
  color: #718365;
}
.data-box b {
  color: #4a6640;
}
.results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.result {
  background: #f3f6ed;
  padding: 17px;
  border-radius: 8px;
  font-size: 0.74rem;
  color: #8b997c;
}
.result b {
  display: block;
  color: #3c5c32;
  font-size: 1.5rem;
  margin-top: 7px;
  font-weight: 550;
}
.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pending-item {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}
.pending-item p {
  line-height: 1.7;
  color: #919d86;
  margin: 8px 0;
}
.mobile-menu {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #234b36;
  color: #fff;
  box-shadow: 0 8px 30px #172f2030;
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 0.82rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
  line-height: 1.6;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #934f3c;
}
.mobile-overlay {
  display: none;
}
.review-summary {
  font-size: 0.82rem;
  line-height: 1.8;
  color: #788c6c;
}
.progress-mini {
  font-size: 0.75rem;
  color: #829276;
}
.read-only-label {
  font-size: 0.74rem;
  color: #94a187;
}
.wide-table td:nth-child(2) {
  white-space: normal;
  min-width: 260px;
}
.budget-over {
  color: #b15142;
  font-weight: 600;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 40px;
  }
  .welcome {
    min-height: 177px;
  }
  .stat {
    padding: 23px;
  }
  .panel-head {
    padding-top: 24px;
  }
  .bottom-grid .panel {
    min-height: 240px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 208px;
    padding-left: 11px;
    padding-right: 11px;
  }
  .shell {
    grid-template-columns: 208px 1fr;
  }
  .content {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bottom-grid > .panel:last-child {
    grid-column: 1/-1;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .stat-header {
    font-size: 0.72rem;
  }
  .profile-name {
    display: none;
  }
  .top-actions {
    gap: 12px;
  }
  td {
    padding: 16px 15px;
  }
  th {
    padding: 13px 15px;
  }
  .welcome-art {
    width: 180px;
  }
  .readiness-top {
    flex-direction: column;
  }
  .legend {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .legend div:last-child {
    grid-column: 1/-1;
  }
  .readiness-note {
    font-size: 0.7rem;
  }
  .heading-actions .btn {
    font-size: 0.73rem;
  }
}
@media (max-width: 950px) {
  .grid-main {
    grid-template-columns: 1fr;
  }
  .readiness-top {
    flex-direction: row;
  }
  .readiness-panel .readiness {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .readiness-top {
    min-width: 280px;
  }
  .readiness-note {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 0 0 0 22px;
  }
  .legend {
    grid-template-columns: 1fr;
  }
  .legend div:last-child {
    grid-column: auto;
  }
  .stat-header .stat-icon {
    display: none;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .welcome-art {
    width: 150px;
  }
  .heading-actions .date-btn {
    display: none;
  }
  .login-brand h1 {
    font-size: 2.4rem;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 234px;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .shell.menu-open .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #17352170;
    z-index: 15;
  }
  .workspace {
    width: 100%;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 64px;
    padding: 0 17px;
  }
  .breadcrumb {
    font-size: 0.73rem;
    gap: 7px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions .status-online {
    display: none;
  }
  .profile {
    border: 0;
    padding-left: 7px;
  }
  .content {
    padding: 24px 17px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 1.6rem;
  }
  .page-heading p {
    font-size: 0.77rem;
    line-height: 1.6;
    max-width: 260px;
  }
  .heading-actions {
    flex-direction: column;
    gap: 7px;
  }
  .heading-actions .btn {
    font-size: 0.7rem;
    padding: 8px 10px;
    min-height: 34px;
  }
  .heading-actions .btn .icon {
    width: 15px;
  }
  .welcome {
    padding: 23px;
    min-height: 170px;
    align-items: flex-end;
  }
  .welcome h2 {
    font-size: 1.2rem;
    max-width: 230px;
  }
  .welcome p {
    font-size: 0.74rem;
    max-width: 280px;
  }
  .welcome-art {
    position: absolute;
    right: -35px;
    bottom: 0;
    width: 160px;
    opacity: 0.2;
  }
  .welcome .welcome-copy {
    position: relative;
    z-index: 1;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .stat-header .stat-icon {
    display: grid;
    width: 27px;
    height: 27px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .stat-note {
    font-size: 0.65rem;
    line-height: 1.6;
    min-height: 21px;
  }
  .grid-main,
  .bottom-grid {
    gap: 17px;
    margin-bottom: 17px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .bottom-grid > .panel:last-child {
    grid-column: auto;
  }
  .panel-head {
    padding: 19px 17px 15px;
  }
  .panel-head h2 {
    font-size: 0.95rem;
  }
  .tabs {
    padding: 0 17px;
    gap: 18px;
  }
  .table-footer {
    padding: 13px 17px;
  }
  .readiness-panel .readiness {
    display: block;
  }
  .readiness-top {
    justify-content: flex-start;
    gap: 35px;
  }
  .readiness-note {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 15px 0 0;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .page-footer {
    line-height: 1.7;
    flex-direction: column;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .search {
    max-width: none;
    flex-basis: 100%;
  }
  .toolbar select {
    font-size: 0.78rem;
    flex: 1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .form-panel {
    padding: 20px;
  }
  .login {
    display: block;
  }
  .login-brand {
    padding: 95px 27px 32px;
    min-height: 280px;
  }
  .login-brand .brand {
    top: 25px;
    left: 27px;
  }
  .login-brand h1 {
    font-size: 1.9rem;
    max-width: 340px;
    letter-spacing: -1px;
    margin-top: 10px;
  }
  .login-brand p {
    font-size: 0.8rem;
    margin-top: 15px;
    max-width: 330px;
  }
  .login-brand .welcome-art {
    display: none;
  }
  .login-form {
    padding: 35px 27px;
  }
  .login-form h2 {
    font-size: 1.5rem;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-header {
    padding: 19px 20px;
  }
  .material-row,
  .person-row {
    grid-template-columns: 1fr 75px 25px;
  }
  .notice {
    font-size: 0.73rem;
  }
  .report-actions .btn {
    font-size: 0.72rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.space-top {
  margin-top: 22px;
}
.help {
  font-size: 0.8rem;
  line-height: 1.8;
  margin: 0 0 22px;
}
.queue-json {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.75rem;
  line-height: 1.8;
  padding: 15px;
  background: #f6f8f2;
  border-radius: 7px;
  max-height: 330px;
  overflow: auto;
}
.login-foot .icon {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin-right: 4px;
}
.plant-select small {
  display: block;
  font-size: 0.64rem;
  font-weight: 400;
  color: #89958c;
  margin-top: 5px;
}
.brand {
  text-decoration: none;
  color: inherit;
}
.full {
  grid-column: 1/-1;
}
.sidebar {
  overflow-y: auto;
}
.sidebar > .brand,
.sidebar > .plant-select,
.sidebar > .nav-label,
.sidebar > nav,
.sidebar-bottom {
  flex-shrink: 0;
}
.tag {
  font-size: 0.875rem;
}
table {
  font-size: 0.875rem;
}
td strong {
  font-size: 0.875rem;
}
th {
  font-size: 0.75rem;
}
.btn {
  font-size: 0.875rem;
}
label {
  font-size: 0.875rem;
}
.nav a {
  font-size: 0.875rem;
}
.stat-header {
  font-size: 0.875rem;
}
.tabs button {
  font-size: 0.875rem;
}
.task-context p,
.review-summary,
.data-box {
  font-size: 0.875rem;
}
.legend {
  font-size: 0.875rem;
}
.panel-head p {
  font-size: 0.8rem;
}
.page-heading p {
  font-size: 0.875rem;
}
.btn.small {
  font-size: 0.8rem;
}
@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    min-width: 0;
  }
  .stat-note .tag {
    white-space: normal;
  }
  .stat-header {
    font-size: 0.8rem;
  }
  .stat-note {
    flex-wrap: wrap;
  }
  .stat-header .stat-icon {
    flex-shrink: 0;
  }
  .stat-number span {
    font-size: 0.8rem;
  }
}
