@font-face {
  font-family: NHZ;
  src: url("/brand/nhz-home-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: NHZ;
  src: url("/brand/nhz-home-bold.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --green: #183d31;
  --ink: #193b30;
  --muted: #586b60;
  --line: #dce5da;
  --canvas: #f5f7f1;
  --lime: #e0ed9c;
  --gold: #87601a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    15px/1.9 NHZ,
    Tahoma,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: var(--green);
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #926b14;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 1000;
  background: #fff;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.topbar {
  height: 94px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100% - 1350px) / 2));
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  border-radius: 50%;
  object-fit: contain;
}
.brand strong {
  display: block;
  font-size: 21px;
}
.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.portal-label {
  border-right: 1px solid var(--line);
  padding-right: 26px;
  font-size: 13px;
  color: var(--muted);
}
.back-home {
  margin-right: auto;
  text-decoration: none;
  font-size: 13px;
}
.global-status {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 12px;
  font-size: 13px;
}
.global-status:not(:empty) {
  padding-top: 12px;
  padding-bottom: 12px;
}
.global-status[data-state="error"],
.form-status[data-state="error"] {
  color: #a12d24;
}
.global-status[data-state="success"],
.form-status[data-state="success"] {
  color: #1e6035;
}
#main {
  outline: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.7;
  margin-bottom: 0;
}
h2 {
  font-size: 22px;
  line-height: 1.8;
  margin-bottom: 14px;
}
h3 {
  font-size: 17px;
}
.eyebrow {
  display: block;
  color: #61744f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1px;
  margin-bottom: 5px;
}
.eyebrow.light {
  color: #e1edac;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 2;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 9px;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}
.primary {
  background: var(--green);
  color: #fff;
}
.secondary {
  background: #fff;
  color: var(--green);
  border-color: #c6d6c4;
}
.lime {
  background: var(--lime);
  color: #203a22;
}
.danger {
  background: #fff5f2;
  color: #962c25;
  border-color: #e7c4bc;
}
.full {
  width: 100%;
}
.text-button {
  border: 0;
  background: none;
  color: #345b3e;
  font-weight: 700;
  font-size: 13px;
  padding: 8px;
}
.icon-button {
  background: #f1f5ed;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 24px;
  color: var(--green);
  flex: none;
}
.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 2;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.notice {
  background: #fff7dc;
  border: 1px solid #e3d09e;
  border-radius: 10px;
  color: #624d18;
  padding: 15px 18px;
  line-height: 2;
  font-size: 13px;
}
form > label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin: 15px 0 6px;
}
input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 11px 13px;
  min-height: 47px;
  border: 1px solid #cddbc9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
input[readonly] {
  background: #f0f4ed;
  color: #50644e;
}
input::placeholder,
textarea::placeholder {
  color: #697b6c;
  font-size: 13px;
}
form > .button {
  margin-top: 18px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-left: 65px;
}
.show-pass {
  position: absolute;
  left: 4px;
  top: 5px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #eff4e8;
  color: #3b583e;
  font-size: 11px;
  padding: 0 10px;
}
.auth-layout {
  max-width: 1180px;
  margin: 40px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
}
.auth-story {
  background: var(--green);
  border-radius: 22px 0 0 22px;
  color: #fff;
  padding: 42px;
  overflow: hidden;
  position: relative;
}
.auth-story h1 {
  font-size: 39px;
  line-height: 1.75;
  margin: 10px 0 16px;
}
.auth-story > p {
  color: #d8e5d4;
  font-size: 14px;
  max-width: 420px;
}
.auth-story ul {
  list-style: none;
  padding: 0;
  font-size: 13px;
  color: #e6eddf;
  margin: 18px 0 0;
}
.auth-story li {
  margin: 10px 0;
}
.auth-story li:before {
  /* v351 (G-H): a drawn tick; the brand font has no check-mark glyph */
  content: "";
  display: inline-block;
  width: 5px;
  height: 10px;
  border: solid var(--lime);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-left: 12px;
  vertical-align: 2px;
}
.auth-box {
  background: #fff;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 0 22px 22px 0;
  padding: 42px 48px;
  align-content: center;
}
.auth-box h2 {
  font-size: 27px;
  margin-bottom: 8px;
}
.auth-box .muted {
  font-size: 13px;
}
.account-help {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
  font-size: 13px;
}
.account-help summary {
  cursor: pointer;
  color: #31573b;
  font-weight: 700;
}
.account-help p {
  color: var(--muted);
  margin: 12px 0;
}
.staff-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.farm-art {
  height: 155px;
  position: relative;
  overflow: hidden;
  margin: 26px 0 18px;
  border-radius: 16px;
  background: #254d38;
  border: 1px solid #54704b;
}
.farm-art .sun {
  position: absolute;
  background: #dce99b;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  left: 42px;
  top: 22px;
}
.farm-lines {
  position: absolute;
  inset: 65px -50px -40px;
  background: repeating-linear-gradient(
    125deg,
    transparent 0,
    transparent 20px,
    #a2ba6d 21px,
    #a2ba6d 22px,
    transparent 23px,
    transparent 42px
  );
  transform: perspective(170px) rotateX(30deg);
}
.farm-home {
  position: absolute;
  right: 42px;
  top: 14px;
  color: #f6f0cb;
  font-size: 72px;
  line-height: 1;
}
.farm-art > span {
  position: absolute;
  bottom: 10px;
  right: 16px;
  font-size: 10px;
  background: #183d31df;
  padding: 2px 8px;
  border-radius: 4px;
  color: #eff2de;
}
.workspace {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 30px;
  max-width: 1350px;
  margin: 26px auto 48px;
  padding: 0 24px;
  align-items: start;
}
.sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 14px;
  position: sticky;
  top: 20px;
}
.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e9efd9;
  border: 1px solid #d3dfc1;
  border-radius: 50%;
  width: 62px;
  height: 62px;
  color: #385a2d;
  font-size: 27px;
  margin-bottom: 10px;
}
.identity strong {
  font-size: 15px;
}
.identity bdi {
  font-size: 12px;
  color: var(--muted);
}
.verified {
  color: #426039;
  font-size: 10px;
  background: #f0f5e9;
  border-radius: 5px;
  padding: 2px 7px;
}
/* v351 (G-H): a drawn tick instead of the check-mark glyph the brand font does not have */
.verified::before,
.tick::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: 1px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
  margin: 22px 0;
}
.sidebar nav button {
  border: 0;
  background: none;
  color: #546859;
  text-align: right;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 13px;
}
.sidebar nav button span {
  font-size: 20px;
  display: inline-block;
  width: 29px;
}
.sidebar nav button[aria-current] {
  background: #183d31;
  color: #fff;
  font-weight: 700;
}
.sidebar-bottom {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 20px 10px 0;
  font-size: 11px;
}
.sidebar-bottom a {
  text-decoration: none;
  color: #52664f;
}
.sidebar-bottom button {
  border: 0;
  color: #8f4136;
  background: none;
  text-align: right;
  padding: 0;
  font-size: 12px;
}
.workspace-main {
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 4px 0 24px;
}
.today {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.welcome-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 20px;
  background: var(--green);
  border-radius: 17px;
  color: #fff;
  padding: 30px 36px;
  position: relative;
  overflow: hidden;
}
.welcome-card:after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid #80995566;
  left: -60px;
  bottom: -200px;
  border-radius: 50%;
  box-shadow:
    0 0 0 27px #ffffff05,
    0 0 0 55px #ffffff05,
    0 0 0 85px #ffffff05;
}
.welcome-card h2 {
  font-size: 30px;
  margin: 8px 0 14px;
  line-height: 1.8;
}
.welcome-card p {
  font-size: 13px;
  color: #e0e8d7;
  max-width: 420px;
}
.welcome-card .button {
  position: relative;
  z-index: 1;
}
.hero-mark {
  text-align: center;
  font-size: 76px;
  line-height: 1.8;
}
.hero-mark span {
  display: block;
  font-size: 12px;
  color: #d6e2bd;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 30px;
}
.stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.stats span {
  display: block;
  font-size: 12px;
  color: #52694c;
}
.stats strong {
  display: block;
  font-size: 30px;
  line-height: 1.9;
}
.stats small {
  font-size: 10px;
  color: #697968;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
}
.section-heading h2 {
  font-size: 19px;
  margin: 0;
}
.section-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.action-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
  text-decoration: none;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.action-card:hover {
  transform: translateY(-3px);
  border-color: #a6bc8b;
}
.action-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #eef3dd;
  border-radius: 10px;
  color: #506a34;
  font-size: 27px;
  margin-bottom: 16px;
}
.action-card h3 {
  font-size: 15px;
  margin-bottom: 7px;
}
.action-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 2.1;
  min-height: 47px;
}
.action-card b {
  font-size: 11px;
  color: #45613a;
}
.request-list {
  display: grid;
  gap: 12px;
}
.request-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 19px 21px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.request-card .request-copy {
  flex: 1;
  min-width: 0;
}
.request-card h3 {
  font-size: 14px;
  margin: 2px 0 5px;
  overflow-wrap: anywhere;
}
.request-card .request-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
}
.request-card .action-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  flex: none;
}
.request-card .request-tail {
  display: grid;
  gap: 8px;
  justify-items: end;
  flex: none;
}
.request-card button {
  border: 0;
  background: none;
  color: #406338;
  font: inherit;
  font-size: 12px;
  padding: 4px;
}
.badge {
  display: inline-block;
  background: #eef2e6;
  color: #536241;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge[data-status="done"],
.badge[data-status="closed"],
.badge[data-status="resolved"],
.badge[data-status="active"] {
  background: #e8f2e6;
  color: #356030;
}
.badge[data-status="cancelled"],
.badge[data-status="suspended"] {
  background: #f9eae5;
  color: #913d31;
}
.unread {
  font-size: 10px;
  font-weight: 700;
  color: #86591b;
}
/* v351 (G-H): a drawn dot instead of the round-bullet glyph the brand font does not have */
.unread::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 4px;
  vertical-align: 1px;
}
/* v349: «وضعیت تازه» — the case status moved since the farmer last opened it. */
.unread.status-fresh {
  color: #2f6b3a;
}
.empty {
  border: 1px dashed #c8d6bd;
  border-radius: 12px;
  background: #f9fbf5;
  text-align: center;
  padding: 36px 20px;
  color: #5c7050;
  font-size: 13px;
}
.empty strong {
  display: block;
  font-size: 16px;
  color: #294d35;
  margin-bottom: 8px;
}
.tip {
  border: 1px solid #d9dfbf;
  background: #f0f3e4;
  border-radius: 10px;
  padding: 17px 21px;
  margin: 24px 0;
  font-size: 13px;
}
.tip p {
  font-size: 12px;
  color: #586a47;
  margin: 5px 0 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filters button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #526749;
  padding: 7px 17px;
  font-size: 12px;
}
.filters button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.search-label {
  font-size: 12px;
  display: block;
  margin-bottom: 6px;
}
#requestSearch {
  max-width: 400px;
  margin-bottom: 20px;
}
.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 26px;
  margin-bottom: 22px;
}
.panel-card form {
  max-width: 600px;
}
.panel-card h2 {
  font-size: 20px;
}
.panel-card h3 {
  margin-top: 25px;
}
.panel-card .muted {
  font-size: 13px;
}
.staff-workspace {
  max-width: 1200px;
  padding: 20px 24px;
  margin: 0 auto 40px;
}
.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.checkbox {
  display: flex;
  align-items: start;
  gap: 9px;
  font-size: 12px;
  line-height: 2;
}
.checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: none;
  margin-top: 4px;
  accent-color: var(--green);
}
.staff-workspace .request-card {
  background: #fbfcf7;
}
#inviteResult {
  margin-top: 20px;
  background: #f0f6e7;
  border: 1px solid #d3dfc3;
  border-radius: 10px;
  padding: 15px;
}
#inviteLink {
  font: 11px/2 monospace;
  overflow: auto;
}
dialog {
  border: 1px solid #d9e3d2;
  border-radius: 16px;
  padding: 28px;
  width: min(780px, calc(100% - 30px));
  max-height: 90vh;
  color: var(--ink);
  background: #fbfcf8;
  font-family: NHZ, Tahoma, sans-serif;
}
dialog::backdrop {
  background: #10271e99;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 22px;
  margin: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0;
}
.detail-grid > div {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.detail-grid dt {
  font-size: 11px;
  color: var(--muted);
}
.detail-grid dd {
  margin: 4px 0 0;
  font-size: 14px;
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 17px;
  font-size: 14px;
  line-height: 2.2;
}
.conversation {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.conversation h3 {
  margin-bottom: 8px;
}
.messages {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
}
.message {
  background: #eef3e7;
  border: 1px solid #d5dfcb;
  border-radius: 9px;
  padding: 14px 16px;
  max-width: 95%;
}
.message[data-author="staff"] {
  background: #fff;
  border-color: #d0dbcd;
  margin-right: auto;
}
.message strong {
  display: block;
  font-size: 11px;
}
.message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  margin: 5px 0;
}
.message small {
  font-size: 10px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.footer {
  max-width: 1350px;
  margin: 20px auto 0;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #61725a;
}
.footer a {
  color: #50674a;
}
.footer span:last-child {
  font-size: 10px;
}
.request-list .small {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
  }
  .welcome-card {
    padding: 24px;
  }
  .action-grid {
    gap: 10px;
  }
  .action-card {
    padding: 16px;
  }
  .auth-story {
    padding: 30px;
  }
  .auth-box {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 32px;
  }
  .today {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 80px;
    padding: 0 18px;
    gap: 12px;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .portal-label {
    display: none;
  }
  .back-home {
    font-size: 11px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    margin: 20px auto;
    padding: 0 16px;
    max-width: 550px;
  }
  .auth-story {
    border-radius: 16px 16px 0 0;
    padding: 25px 25px 20px;
  }
  .auth-story h1 {
    font-size: 28px;
  }
  .auth-story > p {
    font-size: 12px;
    margin-bottom: 0;
  }
  .auth-story .farm-art,
  .auth-story ul {
    display: none;
  }
  .auth-box {
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    padding: 28px 25px;
  }
  .auth-box h2 {
    font-size: 24px;
  }
  .workspace {
    display: block;
    padding: 0 16px;
    margin-top: 15px;
  }
  .sidebar {
    position: static;
    padding: 12px;
    margin-bottom: 22px;
    border-radius: 12px;
  }
  .identity {
    padding: 0;
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 10px;
    text-align: right;
    justify-items: start;
    border: 0;
  }
  .identity .avatar {
    grid-row: 1/3;
    width: 42px;
    height: 42px;
    font-size: 20px;
    margin: 0;
  }
  .identity strong {
    font-size: 13px;
  }
  .identity bdi {
    font-size: 11px;
  }
  .identity .verified {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    margin: 12px 0 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }
  .sidebar nav button {
    text-align: center;
    padding: 7px 2px;
    font-size: 10px;
    line-height: 1.8;
  }
  .sidebar nav button span {
    display: block;
    width: auto;
    font-size: 19px;
    line-height: 1.4;
  }
  .sidebar-bottom {
    display: flex;
    justify-content: space-between;
    border: 0;
    padding: 10px 3px 0;
    margin-top: 7px;
  }
  .sidebar-bottom a {
    font-size: 10px;
  }
  .sidebar-bottom a:nth-child(2) {
    display: none;
  }
  .sidebar-bottom button {
    font-size: 10px;
  }
  .page-heading {
    margin-bottom: 17px;
    align-items: start;
  }
  h1 {
    font-size: 25px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .welcome-card {
    grid-template-columns: 1fr 0.5fr;
    padding: 24px;
    gap: 10px;
  }
  .welcome-card h2 {
    font-size: 25px;
  }
  .welcome-card p {
    font-size: 12px;
  }
  .hero-mark {
    font-size: 48px;
  }
  .hero-mark span {
    font-size: 9px;
  }
  .stats {
    gap: 8px;
    margin: 14px 0 24px;
  }
  .stats > div {
    padding: 12px 10px;
  }
  .stats span {
    font-size: 10px;
  }
  .stats strong {
    font-size: 25px;
  }
  .stats small {
    font-size: 9px;
  }
  .section-heading h2 {
    font-size: 17px;
  }
  .action-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .action-card {
    position: relative;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 0 15px;
    padding: 18px;
  }
  .action-card .action-icon {
    grid-row: 1/4;
    margin: 0;
  }
  .action-card h3 {
    font-size: 14px;
    margin-bottom: 3px;
  }
  .action-card p {
    min-height: 0;
    margin: 0 0 6px;
  }
  .action-card b {
    font-size: 11px;
  }
  .request-card {
    padding: 15px 12px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .request-card .action-icon {
    width: 35px;
    height: 35px;
    font-size: 21px;
  }
  .request-card .request-copy {
    min-width: 150px;
  }
  .request-card h3 {
    font-size: 13px;
  }
  .request-tail {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e8ecdf;
    padding-top: 8px;
  }
  .request-card .request-meta {
    font-size: 9px;
    gap: 7px;
  }
  .tip {
    padding: 15px;
  }
  .tip p {
    font-size: 11px;
  }
  .panel-card {
    padding: 20px;
  }
  .staff-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .staff-workspace {
    padding: 15px 16px;
  }
  .staff-workspace .page-heading {
    flex-wrap: wrap;
  }
  .filters {
    gap: 6px;
  }
  .filters button {
    padding: 6px 12px;
    font-size: 11px;
  }
  .detail-grid {
    gap: 10px;
  }
  .detail-grid dd {
    font-size: 12px;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  dialog {
    padding: 20px;
  }
  .dialog-actions .button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .footer {
    padding: 20px 16px;
    font-size: 10px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  body {
    background: white;
  }
  .topbar,
  .sidebar,
  .footer,
  .global-status,
  .dialog-actions,
  .conversation form,
  #cancelHelp,
  #cancelStatus {
    display: none !important;
  }
  body:has(dialog[open]) main {
    display: none;
  }
  dialog[open] {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    border: 0;
    background: white;
    overflow: visible;
  }
  .messages {
    max-height: none;
    overflow: visible;
  }
  .workspace {
    display: block;
  }
  .welcome-card,
  .action-grid,
  .tip {
    display: none;
  }
}

.hero-mark svg {
  display: block;
  width: 180px;
  max-width: 100%;
  height: 180px;
  margin: auto;
}
.nhz-test-banner {
  background: #fff0b3;
  color: #513f05;
  text-align: center;
  padding: 8px;
  font:
    12px/2 Tahoma,
    sans-serif;
}
#loadMoreRequests {
  margin-top: 20px;
}
@media (max-width: 760px) {
  .hero-mark svg {
    width: 100px;
    height: 120px;
  }
}

/* v318 — original NHZ service-first application shell; no third-party artwork. */
.app-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex: none;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
body[data-portal-mode="customer"] {
  --canvas: #f7f9f5;
  --line: #e0e8dd;
}
body[data-portal-mode="customer"] .workspace {
  max-width: 1420px;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  margin-top: 30px;
}
body[data-portal-mode="customer"] .workspace-main {
  min-width: 0;
}
body[data-portal-mode="customer"] .sidebar {
  border-radius: 22px;
  padding: 24px 14px;
  top: 20px;
}
body[data-portal-mode="customer"] .sidebar nav {
  gap: 7px;
}
body[data-portal-mode="customer"] .sidebar nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 51px;
  border-radius: 12px;
}
body[data-portal-mode="customer"] .sidebar nav button > span {
  display: flex;
  width: 24px;
  font-size: inherit;
}
body[data-portal-mode="customer"] .sidebar nav button[aria-current] {
  box-shadow: 0 5px 12px #173e3215;
}
body[data-portal-mode="customer"] .app-heading {
  margin-bottom: 14px;
}
body[data-portal-mode="customer"] .app-heading h1 {
  font-size: 27px;
}
.app-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 14px;
}
.location-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #53694e;
  min-width: 0;
  padding: 5px 0;
  font-size: 12px;
  text-align: right;
}
.location-button #activityLocation {
  max-width: 420px;
  overflow-wrap: anywhere;
}
.location-button .app-icon {
  width: 18px;
  height: 18px;
}
.message-shortcut {
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  min-width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--green);
}
.unread-count {
  background: #deeb9b;
  color: #193b30;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}
.message-shortcut .unread-count {
  position: absolute;
  top: -5px;
  left: -5px;
}
.service-search-launch {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 19px;
  width: 100%;
  background: #fff;
  border: 1px solid #e0e7dc;
  border-radius: 14px;
  color: #516849;
  text-align: right;
  box-shadow: 0 3px 12px #173e3203;
  font-size: 14px;
  margin-bottom: 22px;
}
.service-search-launch .app-icon {
  color: #577447;
  width: 22px;
  height: 22px;
}
.service-search-launch small {
  margin-right: auto;
  color: #677a5e;
  font-size: 11px;
}
.app-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 18px;
  border-radius: 22px;
  background: #183f32;
  color: #fff;
  padding: 28px 32px;
  margin-bottom: 32px;
  min-height: 245px;
}
.app-hero:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid #ffffff0b;
  border-radius: 50%;
  left: -130px;
  bottom: -190px;
  pointer-events: none;
}
.app-hero h2 {
  font-size: 31px;
  line-height: 1.65;
  letter-spacing: -0.5px;
  margin: 8px 0 10px;
}
.app-hero p {
  font-size: 12px;
  line-height: 2;
  color: #e1e9da;
  margin-bottom: 17px;
}
.app-hero .eyebrow {
  font-size: 11px;
  color: #dce69c;
}
.app-hero .button {
  font-size: 12px;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 10px;
  justify-content: space-between;
  gap: 25px;
}
.app-hero-art {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.app-hero-art svg {
  display: block;
  width: 100%;
  max-width: 310px;
}
.app-hero-art > span {
  font-size: 9px;
  color: #dce5cb;
  margin-top: 3px;
}
.section-heading > div h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.8;
}
.section-heading > div > .eyebrow {
  font-weight: 400;
  font-size: 11px;
  margin-bottom: 3px;
  color: #6b7a63;
}
.app-service-section {
  margin-bottom: 32px;
}
.service-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
  background: white;
  border: 1px solid #e2e8dd;
  border-radius: 17px;
  padding: 23px 12px 17px;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
  min-width: 0;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: #8aa979;
  box-shadow: 0 9px 25px #183d310a;
}
.service-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  background: #eef3de;
  color: #486a2e;
  border-radius: 21px;
  margin-bottom: 14px;
  position: relative;
}
.service-art .app-icon {
  width: 35px;
  height: 35px;
  filter: drop-shadow(0 3px 0 #d4e1ba);
}
.service-card[data-service="tool"] .service-art {
  background: #f9efdf;
  color: #85632e;
}
.service-card[data-service="harvest"] .service-art {
  background: #f4f2d8;
  color: #80722f;
}
.service-card[data-service="consult"] .service-art {
  background: #e7f1ec;
  color: #386953;
}
.service-card[data-service="book"] .service-art {
  background: #eeeefa;
  color: #5f5f8d;
}
.service-card[data-service="search"] .service-art {
  background: #e8f0f7;
  color: #4b6983;
}
.service-card[data-service="leaf"] .service-art {
  background: #e7f1d9;
  color: #48732e;
}
.service-card strong {
  font-size: 14px;
  line-height: 1.8;
}
.service-card small {
  color: #67765f;
  font-size: 11px;
  line-height: 1.9;
  margin-top: 7px;
}
.service-cta {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #426737;
}
.service-compact {
  padding: 18px 10px;
  background: #fff;
}
.service-compact .service-art {
  width: 57px;
  height: 57px;
  border-radius: 18px;
  margin-bottom: 9px;
}
.service-compact .service-art .app-icon {
  width: 30px;
  height: 30px;
}
.service-compact strong {
  font-size: 12px;
}
.app-stats {
  gap: 15px;
  margin: 0 0 32px;
}
.app-stats > button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 10px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  text-align: right;
  color: var(--ink);
}
.app-stats > button > [data-icon] {
  display: none;
}
.app-stats > button > span:not([data-icon]) {
  grid-column: 1;
  font-size: 11px;
  color: #62735a;
}
.app-stats > button > strong {
  grid-column: 2;
  grid-row: 1/3;
  font-size: 28px;
  line-height: 1.6;
  margin: 0;
}
.app-stats > button > small {
  grid-column: 1;
  font-size: 10px;
  color: #62735a;
}
.app-stats > button:hover {
  border-color: #8aa979;
}
body[data-portal-mode="customer"] .request-card {
  border-radius: 15px;
  box-shadow: none;
}
body[data-portal-mode="customer"] .request-card .action-icon {
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-portal-mode="customer"] .request-card .action-icon .app-icon {
  width: 25px;
  height: 25px;
}
.care-banner {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid #dce6cf;
  border-radius: 18px;
  background: #edf3e4;
  padding: 25px;
  margin: 28px 0;
}
.care-banner .care-icon {
  display: flex;
  background: #dee9cd;
  color: #53743a;
  border-radius: 18px;
  width: 65px;
  height: 65px;
}
.care-banner .care-icon .app-icon {
  width: 32px;
  height: 32px;
}
.care-banner > div {
  flex: 1;
  min-width: 0;
}
.care-banner h2 {
  font-size: 18px;
  margin-bottom: 3px;
}
.care-banner p {
  font-size: 11px;
  color: #5d6e51;
  margin: 0;
}
.care-banner .button {
  font-size: 11px;
  flex: none;
  padding: 10px 15px;
}
.section-intro {
  font-size: 13px;
  color: #596e50;
  line-height: 2.1;
  max-width: 680px;
  margin-bottom: 22px;
}
.catalog-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #cddbc9;
  border-radius: 12px;
  padding-right: 14px;
  max-width: 620px;
  margin-bottom: 18px;
}
.catalog-search > input {
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 13px;
  min-height: 49px;
}
.catalog-search > [data-icon] {
  color: #59724d;
}
.service-filters {
  margin: 0 0 15px;
}
#serviceResultCount {
  margin-bottom: 19px;
}
.honest-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border: 1px solid #e0e7d4;
  border-radius: 13px;
  margin-top: 27px;
  background: #f1f5e8;
  color: #536845;
}
.honest-note p {
  font-size: 12px;
  margin: 0;
  line-height: 2;
}
.request-stage-tabs {
  display: flex;
  gap: 6px;
  background: #edf1e6;
  border-radius: 12px;
  padding: 5px;
  max-width: 480px;
  margin: 0 0 20px;
}
.request-stage-tabs button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #5d7052;
  font-size: 12px;
  padding: 8px 10px;
}
.request-stage-tabs button[aria-pressed="true"] {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 6px #183d310a;
  font-weight: 700;
}
.inbox-list {
  display: grid;
  gap: 13px;
}
.inbox-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.inbox-card[data-unread="true"] {
  border-color: #92ac73;
  background: #fbfdf6;
}
.inbox-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: #edf3df;
  color: #53733a;
  flex: none;
}
.inbox-copy {
  flex: 1;
  min-width: 0;
}
.inbox-copy > small {
  font-size: 10px;
  color: #657759;
  overflow-wrap: anywhere;
}
.inbox-copy h2 {
  font-size: 15px;
  line-height: 1.9;
  margin: 4px 0 6px;
  overflow-wrap: anywhere;
}
.inbox-preview {
  font-size: 12px;
  color: #53664c;
  margin-bottom: 0;
  line-height: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.inbox-tail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  flex: none;
  font-size: 10px;
  color: #63765b;
}
.inbox-tail .text-button {
  font-size: 11px;
  padding: 0;
}
.inbox-empty > .app-icon {
  color: #729055;
  margin: 0 auto 18px;
  width: 40px;
  height: 40px;
}
.inbox-footnote {
  margin-top: 24px;
}
.account-links {
  display: grid;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  padding-bottom: 20px;
  gap: 5px;
}
.account-links > button,
.account-links > a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 8px;
  min-height: 50px;
  background: transparent;
  border: 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}
.account-links > button > span:last-child,
.account-links > a > span:last-child {
  margin-right: auto;
}
.request-journey {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 19px;
  gap: 10px;
  justify-content: space-between;
  position: relative;
}
.request-journey:before {
  content: "";
  position: absolute;
  top: 17px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: #dce5d3;
}
.request-journey li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
  position: relative;
  text-align: center;
  color: #627459;
}
.request-journey li > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2e7;
  border: 2px solid #d8e1ce;
  font-size: 12px;
}
.request-journey li > strong {
  font-size: 11px;
  font-weight: 400;
}
.request-journey li[data-step="current"] {
  color: #234b2c;
}
.request-journey li[data-step="current"] > span {
  background: #183f32;
  color: white;
  border-color: #183f32;
}
.request-journey li[data-step="current"] > strong {
  font-weight: 700;
}
.request-journey li[data-step="past"] > span {
  background: #e0ecba;
  border-color: #c7d8a3;
  color: #3a5c2e;
}
.request-next-step {
  display: flex;
  gap: 11px;
  padding: 14px;
  background: #edf4e5;
  border: 1px solid #dae6cb;
  border-radius: 10px;
  color: #385630;
}
.request-next-step p {
  margin: 0;
  font-size: 12px;
  line-height: 2;
}
.journey-caption {
  font-size: 10px;
  color: #627459;
  margin: 8px 0 20px;
}
.mobile-app-nav {
  display: none;
}
@media (max-width: 1100px) and (min-width: 761px) {
  body[data-portal-mode="customer"] .workspace {
    grid-template-columns: 195px minmax(0, 1fr);
    gap: 22px;
  }
  .app-hero {
    padding: 24px;
    grid-template-columns: 1.3fr 1fr;
  }
  .app-hero h2 {
    font-size: 27px;
  }
  .service-grid {
    gap: 10px;
  }
  .service-compact {
    padding: 16px 6px;
  }
  .service-compact strong {
    font-size: 11px;
  }
  .care-banner .care-icon {
    display: none;
  }
  .care-banner {
    padding: 20px;
    flex-wrap: wrap;
  }
  .care-banner h2 {
    font-size: 16px;
  }
  .app-stats > button {
    padding: 15px 12px;
  }
  .app-stats > button > small {
    font-size: 9px;
  }
  .app-stats > button > strong {
    font-size: 23px;
  }
}
@media (max-width: 760px) {
  body[data-portal-mode="customer"].customer-authenticated {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }
  body[data-portal-mode="customer"] .workspace {
    display: block;
    padding: 0 17px;
    margin: 20px auto 28px;
    max-width: 620px;
  }
  body[data-portal-mode="customer"] .sidebar {
    display: none;
  }
  body[data-portal-mode="customer"] .topbar {
    height: 73px;
  }
  body[data-portal-mode="customer"] .brand strong {
    font-size: 17px;
  }
  body[data-portal-mode="customer"] .back-home {
    font-size: 10px;
  }
  body[data-portal-mode="customer"] .app-heading {
    margin-bottom: 9px;
    display: flex;
  }
  body[data-portal-mode="customer"] .app-heading h1 {
    font-size: 21px;
    line-height: 1.9;
  }
  body[data-portal-mode="customer"] .app-heading .eyebrow {
    font-size: 10px;
    font-weight: 400;
  }
  .app-context {
    margin-bottom: 14px;
    gap: 10px;
  }
  .location-button {
    font-size: 10px;
    max-width: calc(100% - 55px);
  }
  .location-button #activityLocation {
    max-width: 250px;
  }
  .message-shortcut {
    min-width: 39px;
    height: 39px;
    border-radius: 12px;
  }
  .message-shortcut .app-icon {
    width: 21px;
    height: 21px;
  }
  .service-search-launch {
    padding: 13px 14px;
    border-radius: 13px;
    font-size: 12px;
    margin-bottom: 16px;
    min-height: 51px;
    gap: 11px;
  }
  .service-search-launch small {
    display: none;
  }
  .app-hero {
    padding: 23px 20px;
    gap: 0;
    grid-template-columns: 1.3fr 0.9fr;
    border-radius: 18px;
    min-height: 218px;
    margin-bottom: 25px;
  }
  .app-hero h2 {
    font-size: 24px;
    letter-spacing: -0.4px;
    line-height: 1.75;
    margin: 6px 0 8px;
  }
  .app-hero p {
    font-size: 10px;
    line-height: 2.1;
    margin-bottom: 13px;
    max-width: 235px;
  }
  .app-hero p br {
    display: none;
  }
  .app-hero .eyebrow {
    font-size: 9px;
  }
  .app-hero .button {
    font-size: 10px;
    min-height: 36px;
    padding: 7px 12px;
    gap: 14px;
  }
  .app-hero-art {
    margin-left: -18px;
    margin-right: -20px;
    align-self: center;
  }
  .app-hero-art svg {
    width: 140px;
    max-width: 100%;
  }
  .app-hero-art > span {
    font-size: 7px;
    text-align: center;
    max-width: 100px;
    line-height: 1.9;
    margin-top: 8px;
  }
  .section-heading > div h2 {
    font-size: 18px;
  }
  .section-heading > div > .eyebrow {
    font-size: 10px;
  }
  .section-heading > .text-button {
    font-size: 10px;
    padding: 6px 0;
  }
  .app-service-section {
    margin-bottom: 24px;
  }
  .service-grid {
    gap: 11px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .service-compact {
    background: transparent;
    border: 0;
    padding: 3px 0 7px;
    border-radius: 10px;
  }
  .service-compact .service-art {
    width: 55px;
    height: 55px;
    border-radius: 17px;
    margin-bottom: 9px;
  }
  .service-compact .service-art .app-icon {
    width: 29px;
    height: 29px;
  }
  .service-compact strong {
    font-size: 10px;
    line-height: 1.8;
    white-space: normal;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .catalog-grid .service-card {
    padding: 20px 10px 16px;
  }
  .catalog-grid .service-card strong {
    font-size: 12px;
  }
  .catalog-grid .service-card small {
    font-size: 10px;
  }
  .catalog-grid .service-art {
    width: 59px;
    height: 59px;
    border-radius: 18px;
  }
  .service-cta {
    font-size: 10px;
    margin-top: 12px;
  }
  .app-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 27px;
  }
  .app-stats > button {
    padding: 13px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    border-radius: 13px;
  }
  .app-stats > button > span:not([data-icon]) {
    font-size: 9px;
    order: 2;
  }
  .app-stats > button > strong {
    font-size: 25px;
    order: 1;
    line-height: 1.5;
  }
  .app-stats > button > small {
    display: none;
  }
  .care-banner {
    padding: 18px;
    gap: 10px;
    flex-wrap: wrap;
    margin: 23px 0;
  }
  .care-banner .care-icon {
    display: none;
  }
  .care-banner > div {
    flex-basis: 100%;
  }
  .care-banner h2 {
    font-size: 15px;
  }
  .care-banner p {
    font-size: 10px;
  }
  .care-banner .button {
    font-size: 10px;
    min-height: 38px;
    padding: 7px 12px;
  }
  .section-intro {
    font-size: 11px;
  }
  .catalog-search {
    border-radius: 12px;
  }
  .service-filters {
    gap: 6px;
  }
  .service-filters button {
    font-size: 10px;
    padding: 7px 11px;
  }
  .honest-note {
    padding: 15px;
    gap: 10px;
  }
  .honest-note p {
    font-size: 10px;
  }
  .honest-note .app-icon {
    width: 20px;
    height: 20px;
  }
  .request-stage-tabs {
    gap: 3px;
    padding: 4px;
  }
  .request-stage-tabs button {
    font-size: 10px;
    padding: 8px 5px;
    min-height: 39px;
  }
  .inbox-card {
    padding: 17px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .inbox-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .inbox-mark .app-icon {
    width: 21px;
    height: 21px;
  }
  .inbox-copy {
    min-width: 180px;
    flex-basis: calc(100% - 48px);
  }
  .inbox-copy h2 {
    font-size: 13px;
  }
  .inbox-copy > small {
    font-size: 9px;
  }
  .inbox-preview {
    font-size: 11px;
  }
  .inbox-tail {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }
  .inbox-tail .text-button {
    font-size: 10px;
  }
  .inbox-footnote {
    font-size: 10px;
  }
  .account-links > button,
  .account-links > a {
    font-size: 12px;
    padding: 12px 0;
  }
  .account-links .app-icon {
    width: 22px;
    height: 22px;
  }
  .mobile-app-nav:not([hidden]) {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: #fffffff5;
    backdrop-filter: blur(16px);
    border-top: 1px solid #dce4d5;
    box-shadow: 0 -5px 25px #183d3107;
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom, 0px));
    min-height: 72px;
  }
  .mobile-app-nav > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    color: #62735a;
    min-width: 0;
    flex: 1;
    padding: 2px 1px;
    font-size: 10px;
    position: relative;
    min-height: 51px;
    border-radius: 12px;
    line-height: 1.6;
  }
  .mobile-app-nav > button > .app-icon,
  .mobile-app-nav > button > [data-icon] {
    height: 24px;
  }
  .mobile-app-nav > button .app-icon {
    width: 23px;
    height: 23px;
  }
  .mobile-app-nav > button[aria-current] {
    color: #183d31;
    font-weight: 700;
    background: #f0f5e6;
  }
  .mobile-message-icon {
    position: relative;
    display: inline-flex;
  }
  .mobile-message-icon .unread-count {
    position: absolute;
    left: -10px;
    top: -6px;
    min-width: 16px;
    height: 16px;
    font-size: 8px;
    padding: 0 4px;
  }
  .request-journey li > strong {
    font-size: 10px;
  }
  .request-next-step p {
    font-size: 11px;
  }
  body[data-portal-mode="customer"] .footer {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none;
  }
  .service-card:hover {
    transform: none;
  }
}
@media print {
  .mobile-app-nav,
  .request-next-step,
  .journey-caption {
    display: none !important;
  }
}
/* Programmatic reading focus is retained without drawing a button-like box around headings. */
[data-panel] h1[tabindex="-1"]:focus {
  outline: none;
}

/* v321: customer-owned farm records; no map or location permission required. */
.farms-panel{margin-top:24px}.farm-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0}.farms-list{display:grid;gap:14px}.farm-card{padding:18px;border:1px solid var(--line,#dce5dd);border-radius:18px;overflow-wrap:anywhere}.farm-card h3{margin:0 0 10px}.farm-archive-filter{display:flex;align-items:center;gap:8px}.farm-archive-filter input{width:20px;height:20px}.farm-card .button{white-space:normal}#farmForm{max-width:640px}#farmAddressHint{width:100%;font:inherit;box-sizing:border-box}.farm-actions .button{min-height:44px}

/* v322 immutable customer estimates */
.estimate-box{margin-top:20px}.estimate-card{padding:18px 0;border-top:1px solid #d4dfd6;overflow-wrap:anywhere}.estimate-line{padding:12px;margin:10px 0;background:#f3f7f0;border-radius:10px}.estimate-total{font-weight:800;font-size:1.15rem}.estimate-confirm{display:flex;gap:10px;align-items:flex-start;line-height:2}.estimate-confirm input{width:22px;height:22px;flex:none;margin-top:6px}.estimate-card h4{font-size:1rem}

/* NHZ-31 G-A: link from the account to the case workspace. */
.workspace-cases-link:not([hidden]) {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #b9d7a8;
  border-radius: 14px;
  background: #f1f8ec;
  color: #24502c;
  text-decoration: none;
}
.workspace-cases-link span {
  font-size: 0.92em;
  color: #3d5a40;
}
/* v332: season reminder (moved here from the retired /app-farmer page). */
.season-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid #d9e6b6;
  background: #f7fbe7;
  border-radius: 18px;
  padding: 16px 20px;
  margin: -14px 0 28px;
}
.season-card h2 {
  font-size: 18px;
  margin: 2px 0;
}
.season-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.season-card .button {
  white-space: nowrap;
}
.detail-cases-link {
  display: block;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef5e3;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

/* NHZ-34: «هیرکان زمین» marketplace, SMS sign-in */
.otp-code { letter-spacing: 0.4em; font-size: 1.35rem; text-align: center; }
#otpCodeStep .text-button { margin-inline-end: 1rem; }
.market-kind { margin-block: 0.75rem; }
.market-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, 14rem); gap: 0.6rem; margin-block-end: 0.75rem; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.9rem; }
.market-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: start; font: inherit; color: inherit; cursor: pointer; }
.market-card:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.market-card img, .market-card .market-photo-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--canvas); }
.market-card .market-photo-empty { display: grid; place-items: center; color: var(--muted); }
.market-card .market-photo-empty .app-icon { width: 2.6rem; height: 2.6rem; }
.market-card-body { display: grid; gap: 0.3rem; padding: 0.7rem 0.9rem 0.9rem; }
.market-card-body h3 { margin: 0; font-size: 1rem; }
.market-price { font-weight: 700; color: var(--green); }
.market-meta { font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.photo-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 0.5rem; }
.photo-strip figure { margin: 0; position: relative; }
.photo-strip img { width: 6.5rem; height: 5rem; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-strip button { position: absolute; inset-block-start: 0.2rem; inset-inline-end: 0.2rem; min-width: 1.7rem; min-height: 1.7rem; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; }
.listing-gallery { display: flex; gap: 0.5rem; overflow-x: auto; margin-block-end: 0.75rem; }
.listing-gallery img { height: 12rem; max-width: 85%; object-fit: cover; border-radius: 12px; }
.role-list { display: grid; gap: 0.5rem; margin-block: 0.75rem; }
.role-item { border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.8rem; display: grid; gap: 0.2rem; }
.market-contact { padding: 0.6rem 0.8rem; border-radius: 12px; background: #eef5e4; }
.market-contact a { font-weight: 700; }
.market-staff .request-card, .market-row { align-items: start; }
.market-row { border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.9rem; display: grid; gap: 0.35rem; }
.market-row .farm-actions { margin: 0; }
.market-row textarea, .market-row input { width: 100%; }
@media (max-width: 640px) {
  .market-search { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.6rem; }
}
#listingDialog .detail-list, #orderDialog .detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; margin: 0 0 0.9rem; }
#listingDialog .detail-list dt, #orderDialog .detail-list dt { color: var(--muted); }
#listingDialog .detail-list dd, #orderDialog .detail-list dd { margin: 0; font-weight: 600; }
.pre-line { white-space: pre-line; }
/* v338: sign out from «حساب من» (the phone has no sidebar) */
.account-links > .account-logout {
  color: #8a2a1f;
}
/* v338: password sign-in sits first, between the title and the SMS code form */
#loginPanel > #passwordLogin {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 18px 0 20px;
}

/* v346 (NHZ-46): reason dialog for account actions (replaces window.prompt). */
.reason-dialog {
  width: min(560px, calc(100% - 30px));
}
.reason-dialog form {
  display: grid;
  gap: 6px;
}
.reason-dialog .reason-intro {
  margin: 0 0 8px;
  line-height: 2;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
}
.reason-dialog textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
}
.reason-dialog textarea[aria-invalid="true"] {
  border-color: #b3261e;
  outline-color: #b3261e;
}
.reason-dialog .reason-count {
  font-size: 12px;
  color: var(--muted);
}
.reason-dialog .reason-count[data-ok="yes"] {
  color: #2f6b3a;
}
.reason-dialog .reason-count[data-ok="yes"]::after {
  /* v351 (G-H): drawn tick after «… نویسه» */
  content: "";
  display: inline-block;
  width: 3px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
  margin-right: 6px;
  vertical-align: 1px;
}
.reason-dialog .dialog-actions {
  margin-top: 8px;
}
/* v353 (NHZ-53, G-H): the hero house and the location arrow are SVG icons, not font characters */
.farm-home .app-icon {
  width: 72px;
  height: 72px;
}
.location-button .location-chevron .app-icon {
  width: 14px;
  height: 14px;
}
