:root {
  color-scheme: light;
  --paper: #f3f5ef;
  --white: #fff;
  --ink: #13201c;
  --muted: #4d5e53;
  --line: #dce5d9;
  --forest: #172a22;
  --lime: #dbff82;
  --lime-hover: #c9f368;
  --danger: #a43231;
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  line-height: 1.55;
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: .35rem;
  min-height: 2.7rem; padding: .49rem .85rem; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: .58rem; font-weight: 700;
  cursor: pointer; text-decoration: none; text-align: center;
}
button:hover, .button:hover { background: #eef4ea; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #2b7758; outline-offset: 3px; }
input, select, textarea {
  display: block; width: 100%; min-width: 0; padding: .55rem .7rem; border: 1px solid #b2c4b4;
  border-radius: .5rem; background: var(--white); color: var(--ink); min-height: 2.65rem;
}
label { font-weight: 700; font-size: .94rem; }
input[type=checkbox] { accent-color: #286148; width: 1.12rem; height: 1.12rem; min-height: auto; }
.top { background: var(--forest); color: var(--white); }
.top-inner { max-width: 72rem; min-height: 3.8rem; padding: .55rem 1.2rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 900; letter-spacing: .05em; white-space: nowrap; }
.brand span { color: var(--lime); margin-inline-start: .16em; }
.dark-button { background: transparent; color: var(--white); border-color: #789086; }
.dark-button:hover { background: #354e43; }
.primary { background: var(--lime); border-color: var(--lime); color: #142319; }
.primary:hover { background: var(--lime-hover); border-color: var(--lime-hover); }
.text-button { background: transparent; border-color: transparent; }
.danger { color: var(--danger); }
.shell { margin: 0 auto; width: min(100% - 2rem, 70rem); padding-bottom: 3rem; }
.sync-shell { width: min(100% - 2rem, 43rem); padding-top: 2rem; }
.hero { overflow: hidden; position: relative; border-radius: 1.2rem; background: var(--forest);
  color: var(--white); padding: clamp(1.4rem,4vw,2.6rem); }
.hero::before { content: ""; position: absolute; inset: auto auto -5.5rem -5rem; width: 14rem; height: 14rem;
  border: 1px solid #608168; border-radius: 50%; box-shadow: 0 0 0 1.9rem #2b4537, 0 0 0 3.8rem #233a2e;
  pointer-events: none; opacity: .75; }
.hero > * { position: relative; }
.eyebrow { color: var(--lime); font-weight: 700; margin: 0 0 .4rem; }
h1, h2, h3, p { margin-block-start: 0; }
h1 { line-height: 1.05; letter-spacing: -.035em; font-size: clamp(2.15rem,7vw,4.25rem); margin-block-end: .85rem; }
.hero p:last-child { margin: 0; max-width: 22rem; color: #e1eae0; }
.card { border: 1px solid var(--line); border-radius: 1rem; background: var(--white); padding: 1.25rem; }
.sync-card { margin-top: 1rem; }
h2 { font-size: 1.2rem; margin-block-end: .55rem; }
h3 { font-size: 1.05rem; margin-block-end: .45rem; }
.muted { color: var(--muted); }
.status { background: #e7f0e5; color: #254b36; border-radius: .55rem; padding: .58rem .8rem; overflow-wrap: anywhere; }
.status.error { color: #8a2726; background: #fcecea; }
.check-line { display: flex; align-items: center; gap: .55rem; min-height: 2.4rem; }
.actions { display: flex; gap: .45rem .6rem; align-items: center; flex-wrap: wrap; margin-block: .4rem; }
.selection { margin-block: 1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.contact-list { max-height: 19rem; overflow-y: auto; margin: .65rem 0; border: 1px solid var(--line); border-radius: .4rem; }
.contact-list label { padding: .3rem .55rem; border-bottom: 1px solid var(--line); }
.contact-list label:last-child { border-bottom: 0; }
.page-title { padding: 2rem 0 1rem; }
.page-title h1 { font-size: clamp(2.15rem,5vw,3.25rem); margin: 0; }
.login { width: min(100%,25rem); display: grid; gap: .75rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(8.3rem,1fr)); gap: .6rem; }
.metric { border: 1px solid var(--line); border-radius: .75rem; background: #fff; padding: .65rem .85rem; }
.metric strong { display: block; font-size: 1.65rem; line-height: 1.2; }
.metric span { color: var(--muted); font-size: .88rem; }
.admin-card { margin-top: 1rem; }
.panel-heading, .switch-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.panel-heading h2, .switch-card p { margin: 0; }
.items { margin-block-start: .75rem; }
.item { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: .35rem 1rem; padding: .65rem 0; border-block-end: 1px solid var(--line); }
.item:last-child { border-block-end: 0; }
.item p, .item h3 { margin: 0; overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; gap: .35rem; border-block-end: 1px solid var(--line); padding: .5rem 0; }
.tabs button { border-color: transparent; }
.tabs button[aria-pressed=true] { background: #e6f1e1; }
.search-form input { flex: 1 1 13rem; }
.pagination { justify-content: flex-end; }
dialog { border: 1px solid var(--line); border-radius: 1rem; width: min(94vw,42rem); max-height: 90vh;
  padding: 1.15rem; color: var(--ink); box-shadow: 0 1rem 4rem #14231a40; }
dialog::backdrop { background: #111c17a0; }
dialog form { margin-top: .75rem; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: .6rem; }
textarea { resize: vertical; }
a { color: #176145; overflow-wrap: anywhere; }
dl.report { display: grid; grid-template-columns: 1fr auto; gap: .25rem .8rem; margin: .85rem 0; }
.report dt, .report dd { border-bottom: 1px solid var(--line); margin: 0; padding-block: .25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 34rem) {
  .shell { width: calc(100% - 1.25rem); }
  .sync-shell { padding-top: .75rem; }
  .card { padding: .85rem; }
  .hero::before { width: 8rem; height: 8rem; }
}
