:root {
  --navy: #16233b;
  --navy-2: #1f3357;
  --steel: #3b6ea5;
  --steel-light: #e8eef6;
  --bg: #eef3f9;
  --card: #ffffff;
  --line: #dfe5ee;
  --text: #1c2430;
  --muted: #6b7686;
  --green: #0a8f3c;
  --green-bg: #e7f6ec;
  --red: #c2362f;
  --red-bg: #fbeceb;
  --amber: #b9770a;
  --amber-bg: #fbf1e0;
  --violet: #6d4bb5;
  --violet-bg: #f1ecfa;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(22, 35, 59, .08);
  --side: #16233b;
  --head: #16233b;
  --head-2: #1f3357;
  --soft: #fafcff;
  --chip: #eef0f3;
  --line-strong: #b9c7da;
  --learn: #5b3fa8;
  --learn-bg: #f4f1fb;
  --learn-soft: #e9e2f8;
}
/* Dark theme: the navy sidebar stays; surfaces and text flip. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #3a6db0; --navy-2: #4a7cc0; --steel: #7fb0e6; --steel-light: #1d2b40;
    --bg: #0f1724; --card: #172131; --line: #2a3a52; --text: #e4ebf5; --muted: #9aa9bf;
    --green: #3fbf6f; --green-bg: #12301f; --red: #ef6b62; --red-bg: #3a1a1a; --amber: #e5a53a; --amber-bg: #3a2c12;
    --violet: #b29ae8; --violet-bg: #2a2140; --side: #0b1220; --head: #e4ebf5; --head-2: #c9d6ea;
    --soft: #1b2638; --chip: #22304a; --line-strong: #3a4f6e; --shadow: 0 4px 18px rgba(0,0,0,.35);
    --learn: #b9a2f0; --learn-bg: #15121f; --learn-soft: #241d38;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #3a6db0; --navy-2: #4a7cc0; --steel: #7fb0e6; --steel-light: #1d2b40;
  --bg: #0f1724; --card: #172131; --line: #2a3a52; --text: #e4ebf5; --muted: #9aa9bf;
  --green: #3fbf6f; --green-bg: #12301f; --red: #ef6b62; --red-bg: #3a1a1a; --amber: #e5a53a; --amber-bg: #3a2c12;
  --violet: #b29ae8; --violet-bg: #2a2140; --side: #0b1220; --head: #e4ebf5; --head-2: #c9d6ea;
  --soft: #1b2638; --chip: #22304a; --line-strong: #3a4f6e; --shadow: 0 4px 18px rgba(0,0,0,.35);
  --learn: #b9a2f0; --learn-bg: #15121f; --learn-soft: #241d38;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Heebo", "Segoe UI", Arial, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.5;
  font-size: 15px;
}
a { color: var(--steel); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- Layout: side nav + main ---------- */
.layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
  background: var(--side);
  color: #dbe5f3;
  padding: 18px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 10px; }
.brand img { height: 40px; background: #fff; border-radius: 8px; padding: 3px; }
.brand b { display: block; font-size: 15px; color: #fff; }
.brand small { color: #9fb3cf; font-size: 12px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  color: #dbe5f3; text-decoration: none; font-weight: 600; font-size: 14.5px;
}
.nav-link:hover { background: rgba(255,255,255,.08); }
.nav-link.active { background: #fff; color: var(--navy); }
.nav-link .ico { width: 22px; text-align: center; }
.nav-sep { margin: 12px 8px 4px; font-size: 11.5px; letter-spacing: .5px; color: #8ea3c2; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.admin-badge { display: inline-block; background: var(--amber); color: #fff; border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 700; }

.main { padding: 22px 30px 60px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { font-size: 23px; color: var(--head); }
.page-head .sub { color: var(--muted); font-size: 14px; }

/* ---------- Cards, grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.card h2 { font-size: 17px; color: var(--head); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card h3 { font-size: 15px; color: var(--head-2); margin: 12px 0 6px; }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 1100px) { .grid.c3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  .main { padding: 16px; }
}

.cust-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px;
  cursor: pointer; text-decoration: none; color: inherit; display: block;
  border-top: 5px solid var(--c, var(--steel)); transition: transform .12s, box-shadow .12s;
}
.cust-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cust-card b { font-size: 17px; color: var(--head); display: block; }
.cust-card .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 800; color: var(--head); }
.stat .l { color: var(--muted); font-size: 13px; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1.5px solid var(--line); color: var(--head);
  padding: 7px 14px; border-radius: 9px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 14px;
}
.btn:hover { border-color: var(--steel); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.danger { color: var(--red); }
.btn.small { padding: 3px 9px; font-size: 13px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

label.f { display: block; font-size: 13px; font-weight: 600; color: var(--head-2); margin-bottom: 10px; }
label.f > input, label.f > select, label.f > textarea { display: block; width: 100%; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=password], input[type=search], input[type=url], select, textarea {
  border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--card); font-weight: 400;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(59,110,165,.15); }
textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
.ltr { direction: ltr; text-align: left; }
input.ltr { text-align: left; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 9px 16px; border: none; background: none; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab.active { color: var(--head); border-bottom-color: var(--navy); }
.tab .cnt { background: var(--steel-light); color: var(--steel); border-radius: 10px; padding: 0 7px; font-size: 12px; margin-right: 4px; }

/* ---------- Tables ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: right; background: var(--steel-light); color: var(--head); padding: 8px 10px; font-weight: 700; white-space: nowrap; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:hover td { background: var(--soft); }
table.t input, table.t select { width: 100%; padding: 4px 7px; }
.tbl-wrap { overflow-x: auto; }

/* ---------- Pills / badges ---------- */
.pill { display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill.to { background: var(--navy); color: #fff; }
.pill.cc { background: var(--steel-light); color: var(--steel); }
.pill.none { background: var(--chip); color: var(--muted); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.violet { background: var(--violet-bg); color: var(--violet); }
.pill.gray { background: var(--chip); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 26px; border: 2px dashed var(--line); border-radius: 12px; background: var(--soft); }

/* ---------- Report structure (sections) ---------- */
.sec-list { list-style: none; counter-reset: sec; }
.sec-item {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; margin-bottom: 8px;
}
.sec-item .num { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.sec-item.optional .num { background: var(--muted); }
.sec-item b { color: var(--head); font-size: 15.5px; }
.sec-item .desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.sec-item .note { background: var(--amber-bg); border-right: 4px solid var(--amber); padding: 6px 10px; border-radius: 6px; margin-top: 6px; font-size: 13.5px; white-space: pre-wrap; }
.sec-item .actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.sec-item.done { background: var(--green-bg); border-color: var(--green); }
.sec-item.done .num { background: var(--green); }

.chip-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 20px; padding: 5px 12px; cursor: pointer; background: var(--card); font-weight: 600; font-size: 14px; }
.chip-pick label.on { border-color: var(--navy); background: var(--steel-light); }

/* ---------- Knowledge / notes ---------- */
.kn { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--card); border-right: 5px solid var(--steel); }
.kn.requirement { border-right-color: var(--red); }
.kn.tip { border-right-color: var(--green); }
.kn.procedure { border-right-color: var(--violet); }
.kn.mistake { border-right-color: var(--amber); }
.kn .kh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kn .kb { white-space: pre-wrap; margin-top: 6px; }

/* ---------- Training ---------- */
.lesson-body { line-height: 1.75; }
.lesson-body h3 { margin-top: 16px; }
.lesson-body ul, .lesson-body ol { padding-right: 22px; margin: 6px 0; }
.lesson-body li { margin: 3px 0; }
.lesson-body .example { background: var(--steel-light); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.lesson-body code, .ltr-inline { direction: ltr; unicode-bidi: embed; font-family: Consolas, monospace; background: var(--chip); padding: 0 4px; border-radius: 4px; }
.quiz-q { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: var(--card); }
.quiz-q .opt { display: block; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; margin: 6px 0; cursor: pointer; }
.quiz-q .opt.right { border-color: var(--green); background: var(--green-bg); }
.quiz-q .opt.wrong { border-color: var(--red); background: var(--red-bg); }
.quiz-q .exp { margin-top: 8px; font-size: 14px; color: var(--head-2); background: var(--steel-light); padding: 8px 10px; border-radius: 8px; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(15, 25, 45, .45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--card); border-radius: 14px; width: min(720px, 100%); max-height: 92vh; overflow: auto; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { width: min(1100px, 100%); }
.modal h2 { color: var(--head); margin-bottom: 14px; font-size: 19px; }

/* ---------- Toast ---------- */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 10px; font-weight: 600; z-index: 99; display: none; box-shadow: var(--shadow); }
#toast.err { background: var(--red); }

/* ---------- Dropzone ---------- */
.drop { border: 2px dashed var(--line-strong); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); background: var(--soft); cursor: pointer; font-size: 14px; }
.drop.over { border-color: var(--steel); background: var(--steel-light); }

.progress { height: 10px; background: var(--chip); border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--green); }

.mail-preview { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.mail-preview .hdr { display: grid; grid-template-columns: 70px 1fr; gap: 4px 8px; margin-bottom: 10px; }
.mail-preview .hdr span:nth-child(odd) { color: var(--muted); font-weight: 600; }
.mail-preview pre { white-space: pre-wrap; font-family: inherit; }

@media print {
  .side, .no-print, .btn { display: none !important; }
  .layout { display: block; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ---------- Mode switch (daily work / training) ---------- */
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(255,255,255,.07); padding: 5px; border-radius: 12px; margin-bottom: 12px; }
.mode-switch a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; border-radius: 9px; color: #c9d6ea; text-decoration: none; font-size: 20px; }
.mode-switch a span { font-size: 13px; font-weight: 700; }
.mode-switch a.on { background: #fff; color: #16233b; }
.mode-switch a:focus-visible, .nav-link:focus-visible, .btn:focus-visible, .person:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }

/* ---------- Home: customer picker ---------- */
.hero-pick { text-align: center; padding: 26px 10px 18px; }
.hero-pick h1 { font-size: 30px; color: var(--head); text-wrap: balance; }
.hero-pick .sub { color: var(--muted); margin: 6px 0 16px; }
.hero-pick input { width: min(520px, 100%); font-size: 18px; padding: 12px 16px; border-radius: 12px; }
.add-card { border-style: dashed; color: var(--muted); font-weight: 700; font-size: 16px; text-align: center; min-height: 90px; font-family: inherit; }
.handover-banner { display: block; margin-top: 16px; text-decoration: none; color: var(--text); background: var(--amber-bg); border-color: var(--amber); }

/* ---------- Customer page ---------- */
.summary-card { border-right: 5px solid var(--amber); white-space: pre-wrap; }
.jump { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; flex-wrap: wrap; background: var(--bg); padding: 8px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.jump a { padding: 5px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--head); font-size: 13.5px; font-weight: 600; }
.jump a:hover { border-color: var(--steel); }
.jump .cnt { background: var(--amber); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 11px; }
.cust-sec { scroll-margin-top: 56px; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.person { text-align: right; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font-family: inherit; min-width: 0; }
.person:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.person.to { border: 2px solid var(--navy); background: var(--steel-light); }
.person.cc { border-color: var(--steel); }
.person.none { opacity: .85; }
.person b { font-size: 15.5px; color: var(--head); }
.person .pill { align-self: flex-start; }
.person .email { overflow-wrap: anywhere; color: var(--muted); background: none; padding: 0; }
.person .miss { margin-top: 4px; font-size: 12px; color: var(--amber); font-weight: 600; }
.person.add { align-items: center; justify-content: center; border-style: dashed; color: var(--muted); font-size: 28px; min-height: 110px; }
.person.add span { font-size: 14px; font-weight: 700; }

.invite-card { border-top: 4px solid var(--green); }
.howto { background: var(--amber-bg); border-radius: 10px; padding: 8px 12px; margin: 6px 0 4px; }
.howto summary { cursor: pointer; font-weight: 600; }
.howto div { white-space: pre-wrap; margin-top: 6px; font-size: 14px; }
.step { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; color: var(--head); flex-wrap: wrap; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.person-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-family: inherit; text-align: right; color: var(--text); }
.person-chip small { color: var(--muted); font-size: 11.5px; }
.person-chip i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.person-chip.to { background: var(--navy); border-color: var(--navy); color: #fff; }
.person-chip.to small, .person-chip.to i { color: #dbe5f3; }
.person-chip.cc { background: var(--steel-light); border-color: var(--steel); }
.person-chip.cc i { color: var(--steel); }
.person-chip.none { opacity: .55; text-decoration: line-through; }

.cubes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cube { display: flex; flex-direction: column; gap: 4px; background: var(--soft); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.cube:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,143,60,.15); }
.cube span { font-size: 12.5px; font-weight: 700; color: var(--head-2); }
.cube input { width: 100%; border: none; background: transparent; padding: 3px 0; font-size: 15px; box-shadow: none !important; }
.cube.wide { grid-column: span 2; }
.cube.fixed { background: var(--chip); }
.cube.fixed span::after { content: " · קבוע"; font-weight: 400; color: var(--muted); }
.part-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--card); }
.part-card > .row { margin-bottom: 8px; }
.send-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.btn.big { font-size: 17px; padding: 11px 26px; }
@media (max-width: 520px) { .cube.wide { grid-column: span 1; } }

/* ---------- Training ---------- */
.tiles .tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: var(--text); }
.tiles .tile:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.tile b { font-size: 17px; color: var(--head); }
.tile-ico { font-size: 30px; }
.hero-pick.learn h1 { color: var(--violet); }
.inst-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 16px 12px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: var(--text); }
.inst-card:hover { border-color: var(--steel); box-shadow: var(--shadow); }
.inst-card img { width: 100%; height: 130px; object-fit: contain; border-radius: 8px; background: #fff; }
.inst-card b { color: var(--head); }
.inst-ico { font-size: 40px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.gallery figcaption { font-size: 12.5px; color: var(--muted); }
.card.warn { border-right: 5px solid var(--amber); }
.ex-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.vernier { width: 100%; min-width: 640px; height: auto; display: block; }
.vernier .v-main { fill: var(--soft); stroke: var(--line-strong); }
.vernier .v-vern { fill: var(--steel-light); stroke: var(--steel); }
.vernier .v-ticks line { stroke: var(--text); stroke-width: 1.2; }
.vernier text { fill: var(--text); font-size: 12px; font-family: Arial, sans-serif; }
.vernier .v-unit { fill: var(--muted); font-size: 10px; }
.cube.auto span::after { content: " · אוטומטי"; font-weight: 400; color: var(--muted); }
.cube.auto input::placeholder { color: var(--muted); }

/* ---------- Three areas: start screen / daily work / training ---------- */
.learn-top { display: none; }
.area-title { color: #fff; font-weight: 800; font-size: 15px; padding: 2px 8px 10px; }
.side-links { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.side-alt { color: #c9d6ea; text-decoration: none; padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.side-alt:hover { background: rgba(255,255,255,.08); }

body.is-start .side, body.is-learn .side { display: none; }
body.is-start .layout, body.is-learn .layout { grid-template-columns: 1fr; }
body.is-learn { background: var(--learn-bg); }
body.is-learn .learn-top { display: block; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--learn); color: #fff; box-shadow: var(--shadow); }
body.is-learn .main { max-width: 1200px; margin: 0 auto; width: 100%; }
.learn-bar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; flex-wrap: wrap; }
.learn-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.learn-brand img { height: 38px; background: #fff; border-radius: 8px; padding: 3px; }
.learn-brand b { display: block; font-size: 18px; }
.learn-brand small { opacity: .8; font-size: 12px; }
.learn-out { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.4); }
.learn-out:hover { background: rgba(255,255,255,.15); }
.learn-nav { display: flex; gap: 2px; padding: 0 18px; overflow-x: auto; }
.learn-nav a { color: #eae3fb; text-decoration: none; padding: 10px 16px; font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent; white-space: nowrap; }
.learn-nav a.active { color: #fff; border-bottom-color: #fff; }
body.is-learn .card { border-color: var(--learn-soft); }
body.is-learn .card h2 { color: var(--learn); }

/* start screen */
.start { min-height: calc(100vh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding-block: 30px; }
.start-brand { display: flex; align-items: center; gap: 14px; }
.start-brand img { height: 64px; background: #fff; border-radius: 12px; padding: 5px; box-shadow: var(--shadow); }
.start-brand h1 { font-size: 30px; color: var(--head); text-wrap: balance; }
.start-brand p { color: var(--muted); }
.start-cubes { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 26px; width: 100%; justify-content: center; }
.start-cube { display: flex; flex-direction: column; gap: 10px; padding: 34px 28px; border-radius: 22px; text-decoration: none; color: #fff; min-height: 260px; box-shadow: 0 14px 40px rgba(22,35,59,.22); transition: transform .15s; }
.start-cube:hover, .start-cube:focus-visible { transform: translateY(-4px); }
.start-cube .big { font-size: 54px; line-height: 1; }
.start-cube b { font-size: 28px; }
.start-cube span { font-size: 15px; opacity: .92; line-height: 1.7; }
.start-cube.work { background: linear-gradient(160deg, #1f3357, #16233b); }
.start-cube.learn { background: linear-gradient(160deg, #6d4bc0, #4b2f94); }
.start-cube .go { margin-top: auto; font-weight: 800; }
@media (max-width: 720px) { .start-cubes { grid-template-columns: 1fr; } .start-cube { min-height: 180px; } }
@media (prefers-reduced-motion: reduce) { .start-cube { transition: none; } }

/* instrument images */
.inst-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .inst-hero { grid-template-columns: 1fr; } }
.inst-fig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.inst-fig img { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.inst-fig figcaption { font-size: 13px; color: #444; margin-top: 6px; }
.inst-fig .credit { display: block; font-size: 11px; color: #777; margin-top: 2px; direction: ltr; text-align: left; }
.inst-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; margin-top: 14px; }
.inst-thumbs .inst-fig img { max-height: 300px; }
.inst-summary { font-size: 16px; line-height: 1.8; }
.inst-summary .use-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.inst-card img { background: #fff; }

/* ---------- Customer card (Geva's sketch) ---------- */
.profile-card { border-top: 4px solid var(--navy); }
.pc-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.pc-row.top { align-items: flex-start; }
.pc-label { width: 150px; flex: none; font-weight: 800; color: var(--head); font-size: 16px; }
.pc-row > :not(.pc-label) { flex: 1; min-width: 0; }
.pc-big { font-size: 20px; font-weight: 700; padding: 8px 12px; max-width: 420px; }
.pc-sub { max-width: 360px; }
.cc-cube { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc-cube.main { border: 2px solid var(--navy); max-width: 520px; background: var(--steel-light); }
.cc-cube > input { font-size: 15px; width: 100%; }
.cc-sub { display: flex; gap: 6px; align-items: center; }
.cc-sub input { flex: 1; min-width: 0; font-size: 13px; padding: 4px 8px; }
.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; max-width: 760px; }
@media (max-width: 720px) { .cc-grid { grid-template-columns: 1fr; } .pc-label { width: 100%; } }
.method-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.method-pick label { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 600; background: var(--card); }
.method-pick label.on { border-color: var(--navy); background: var(--steel-light); }
.portal-box { margin-top: 10px; border: 1.5px dashed var(--steel); border-radius: 10px; padding: 10px 14px; background: var(--soft); }
.portal-box summary { cursor: pointer; font-weight: 700; color: var(--head); }

/* ---------- Report order (number · document · notes · example) ---------- */
.default-banner { background: var(--amber-bg); border-right: 4px solid var(--amber); border-radius: 8px; padding: 10px 14px; margin: 8px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rep-head, .rep-row { display: grid; grid-template-columns: 54px minmax(160px, 240px) minmax(0, 1fr) 96px; gap: 12px; align-items: start; }
.rep-head { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 0 6px 4px; }
.rep-row { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.rep-row.optional .rep-name { border-style: dashed; }
.rep-num { width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid var(--navy); text-align: center; font-size: 20px; font-weight: 800; color: var(--head); padding: 0; background: var(--card); -moz-appearance: textfield; }
.rep-num::-webkit-inner-spin-button { opacity: 1; }
.rep-name { width: 100%; font-weight: 700; font-size: 15px; border: 2px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }
.rep-tools { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; margin-top: 4px; align-items: center; }
.linkbtn { background: none; border: none; cursor: pointer; font: inherit; color: var(--steel); padding: 0; }
.linkbtn.danger { color: var(--red); }
.rep-note { width: 100%; min-height: 66px; border-radius: 10px; }
.rep-thumb { border: none; background: none; padding: 0; cursor: pointer; }
.thumb { width: 90px; min-height: 64px; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.thumb canvas, .thumb img { width: 100%; display: block; }
.empty-thumb { color: var(--muted); font-size: 20px; text-align: center; background: var(--soft); border-style: dashed; height: 100px; }
.empty-thumb small { font-size: 11px; }
.big-thumb { width: 100%; max-width: 360px; margin: 0 auto; }
.add-row { border-style: dashed; font-size: 15px; }
@media (max-width: 760px) {
  .rep-head { display: none; }
  .rep-row { grid-template-columns: 54px minmax(0, 1fr); }
  .rep-note { grid-column: 1 / -1; }
  .rep-thumb { grid-column: 1 / -1; }
}

/* ---------- Example reports grid ---------- */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.ex-card { display: flex; flex-direction: column; gap: 6px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; background: var(--card); min-width: 0; text-align: right; font-family: inherit; color: var(--text); }
.ex-card .thumb { width: 100%; min-height: 180px; }
.ex-add { align-items: center; justify-content: center; border-style: dashed; cursor: pointer; font-size: 34px; color: var(--muted); min-height: 240px; text-align: center; }
.ex-add span { font-size: 15px; font-weight: 700; }
.ex-add small { font-size: 12px; }

/* ---------- Compact report rows (Geva: less space between rows, smaller pictures) ---------- */
.rep-head, .rep-row { grid-template-columns: 46px minmax(150px, 230px) minmax(0, 1fr) 54px; gap: 10px; }
.rep-row { padding: 5px 4px; align-items: center; }
.rep-num { width: 40px; height: 40px; font-size: 17px; }
.rep-name { padding: 6px 10px; font-size: 14.5px; }
.rep-tools { margin-top: 2px; gap: 8px; font-size: 12px; }
.rep-note { min-height: 38px; height: 46px; padding: 5px 8px; font-size: 13.5px; }
.rep-row .thumb { width: 50px; min-height: 0; max-height: 66px; }
.rep-row .empty-thumb { height: 58px; font-size: 15px; }
.rep-thumb:hover .thumb { outline: 2px solid var(--steel); }

/* ---------- Full-file viewer ---------- */
.viewer-back { position: fixed; inset: 0; background: rgba(8, 14, 26, .82); z-index: 80; display: flex; justify-content: center; padding: 14px; }
.viewer { background: var(--card); border-radius: 12px; width: min(1080px, 100%); display: flex; flex-direction: column; overflow: hidden; }
.viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.viewer-bar b { color: var(--head); }
.viewer-body { flex: 1; overflow: auto; background: #525659; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.viewer-page { position: relative; background: #fff; min-height: 200px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.viewer-page canvas { display: block; max-width: 100%; height: auto; }
.vp-num { position: absolute; top: 6px; left: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 1px 8px; border-radius: 10px; }
.viewer-img { max-width: 100%; height: auto; background: #fff; }
.internal-cc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.ex-none { grid-column: 1 / -1; background: var(--amber-bg); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.rep-num { -moz-appearance: textfield; appearance: textfield; }
.rep-num::-webkit-inner-spin-button, .rep-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; opacity: 0; }
.rep-tools { flex-wrap: nowrap; white-space: nowrap; }
.viewer-page { flex: none; }
.hero-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 240px; font-size: 15px; }
.hero-drop .hd-ico { font-size: 42px; }
.hero-drop b { color: var(--head); font-size: 17px; }
.drop:focus-visible { outline: 3px solid var(--steel); }
.inst-fig { position: relative; }
.fig-rm { position: absolute; top: 8px; left: 8px; border: none; background: rgba(255,255,255,.9); border-radius: 8px; padding: 3px 7px; cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.inst-fig:hover .fig-rm, .fig-rm:focus-visible { opacity: 1; }
@media (hover: none) { .fig-rm { opacity: 1; } }

/* Red "edit customer details" box at the top of the customer page */
.edit-red { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px; border: 2.5px solid var(--red); border-radius: 12px; background: var(--red-bg); color: var(--red); font: inherit; font-weight: 800; font-size: 15.5px; cursor: pointer; text-align: right; }
.edit-red small { font-weight: 600; font-size: 11.5px; opacity: .85; }
.edit-red:hover { background: var(--red); color: #fff; }
.edit-red:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.cust-editor .modal { width: min(1100px, 100%); }
.cust-editor .profile-card { box-shadow: none; }

/* Invitation notes next to the main email */
.to-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.to-wrap .cc-grid { grid-template-columns: 1fr; }
.note-box { display: flex; flex-direction: column; gap: 4px; background: var(--amber-bg); border: 1.5px solid var(--amber); border-radius: 10px; padding: 8px 10px; font-weight: 700; color: var(--head); }
.note-box textarea { min-height: 96px; width: 100%; background: var(--card); }
.note-box small { font-weight: 400; color: var(--muted); font-size: 12px; }
.invite-note { background: var(--amber-bg); border-right: 5px solid var(--amber); border-radius: 8px; padding: 10px 14px; margin: 8px 0; font-size: 15px; white-space: pre-wrap; }
@media (max-width: 720px) { .to-wrap { grid-template-columns: 1fr; } }

/* "Back to customer choice" box in the customer page's section bar */
.jump { align-items: center; }
.jump a.back-home { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 800; padding: 7px 16px; border-radius: 10px; }
.jump a.back-home:hover { background: var(--navy-2); }
.jump a.back-home .home-ico { font-size: 17px; }
.home-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 800; padding: 9px 18px; border-radius: 10px; box-shadow: var(--shadow); }
.home-btn:hover { background: var(--navy-2); }
.home-btn .home-ico { font-size: 18px; }
.attach-line { margin: 12px 0 4px; font-size: 14px; color: var(--muted); } .attach-line b { color: var(--head); }

/* Clear "add part" and "save" buttons on the invitation form */
.btn.add-part { background: #dff0ff; border: 2.5px solid #1e88e5; color: #0d47a1; font-weight: 800; font-size: 15px; padding: 9px 18px; }
.btn.add-part:hover { background: #c7e4ff; }
.btn.save-big { background: #fff; border: 2.5px solid var(--navy); color: var(--head); font-weight: 800; font-size: 16px; padding: 10px 22px; }
.btn.save-big:hover { background: var(--steel-light); }
#savedAt { font-weight: 600; }
:root[data-theme="dark"] .btn.add-part { background: #12324f; color: #bfe0ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.add-part { background: #12324f; color: #bfe0ff; } }

/* Invitation: steps 1-2 framed, compact recipient chips */
.dashed-box { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 4px 14px 14px; margin: 12px 0 6px; }
.chips-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.person-chip { padding: 4px 12px; border-radius: 10px; }
.person-chip b { font-size: 13.5px; }
.person-chip i { font-size: 11px; }
.mini-chip { font: inherit; font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 14px; cursor: pointer; border: 1.5px solid var(--steel); background: var(--steel-light); color: var(--head); }
.mini-chip.off { opacity: .5; text-decoration: line-through; background: var(--card); border-color: var(--line); }
.chip-plus { font: inherit; font-size: 15px; font-weight: 800; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #1e88e5; background: #dff0ff; color: #0d47a1; cursor: pointer; display: inline-grid; place-items: center; }
.chip-plus:hover { background: #c7e4ff; }
.extra-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.extra-row input { flex: 1; min-width: 220px; max-width: 420px; }
.open-inv { font-size: 13px; font-weight: 600; color: var(--muted); }
.open-inv.has { color: #fff; background: var(--amber); padding: 2px 10px; border-radius: 12px; font-weight: 800; }

/* Parts on one compact row (lower boxes); V-mark columns are narrow check boxes */
.cubes.one-row { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.cubes.one-row .cube { padding: 4px 7px; gap: 1px; border-radius: 8px; }
.cubes.one-row .cube span { font-size: 11.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cubes.one-row .cube input[type=text] { padding: 2px 0; font-size: 14px; }
.cubes.one-row .cube.check { align-items: center; justify-content: space-between; min-width: 0; }
.cubes.one-row .cube.check input { width: 20px; height: 20px; margin: 3px 0; accent-color: var(--green); cursor: pointer; }
.part-card { padding: 8px 10px; }
.part-card > .row { margin-bottom: 4px; }

/* Closing invitations */
.btn.v-btn { background: var(--green-bg); border-color: var(--green); color: var(--green); font-weight: 800; }
.btn.v-btn:hover { background: var(--green); color: #fff; }
.checked-btn { font: inherit; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--green); background: var(--green-bg); color: var(--green); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.checked-btn span { background: var(--green); color: #fff; border-radius: 10px; padding: 0 8px; font-size: 12.5px; }
.checked-btn:hover { background: var(--green); color: #fff; }
.cubes.one-row .cube span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* "To" recipient: soft light blue instead of dark navy; shows the e-mail address */
.person-chip.to { background: #e6f1fc; border-color: #7fb3e6; color: #12406e; }
.person-chip.to small, .person-chip.to i { color: #3f6f9e; }
.person-chip b[dir] { unicode-bidi: plaintext; }

.summary-card { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.summary-card .sum-text { flex: 1; min-width: 200px; white-space: pre-wrap; }
.summary-card .sum-edit { flex: none; }
.summary-card textarea { flex-basis: 100%; }
.summary-card .row.end { flex-basis: 100%; }

/* customer page: edit (right) ... home + back arrow (left), same size as the edit box */
.cust-actions { flex: 1 1 100%; align-items: stretch; }
.home-big { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 16px; border: 2.5px solid var(--navy); border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: 15.5px; text-decoration: none; }
.home-big small { font-weight: 600; font-size: 11.5px; opacity: .8; }
.home-big .home-ico { font-size: 17px; }
.home-big:hover { background: var(--navy-2); color: #fff; }
.back-arrow { width: 58px; border: 2.5px solid var(--navy); border-radius: 12px; background: var(--card); color: var(--navy); font-size: 26px; font-weight: 800; cursor: pointer; transform: scaleX(-1); }
.back-arrow:hover { background: var(--steel-light); }

.rcpt-box { margin-top: 10px; }
.rcpt-box[open] summary { margin-bottom: 2px; }

/* step headings outside the dashed frame line up with the one inside it (2px border + 14px padding) */
.dashed-box ~ .step { padding-inline-start: 16px; }

.back-arrow.sm { width: 48px; height: 40px; font-size: 22px; border-width: 2px; border-radius: 10px; }
.is-learn .back-arrow { border-color: #5e3aa6; color: #5e3aa6; }

/* new wide Ofek / iMG logo (transparent PNG on a white pill) */
.brand img { height: 50px; padding: 4px 6px; }
.learn-brand img { height: 46px; padding: 4px 6px; }
.start-brand img { height: 84px; padding: 6px 10px; }

/* Per-item closing + search on the invitations page */
.search-bar { margin: 0 0 12px; }
.search-bar input { width: 100%; font-size: 16px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); }
.search-bar input:focus { border-color: var(--green); outline: none; }
table.part-status th.ck, table.part-status td.ck { text-align: center; width: 92px; }
table.part-status td.ck input { width: 22px; height: 22px; accent-color: var(--green); cursor: pointer; }
table.t tr.ok-row td, table.t tr.ok-row:hover td { background: var(--green-bg) !important; }
table.t tr.ok-row td:first-child { box-shadow: inset -4px 0 0 var(--green); }

/* "📍 איפה בשרטוט?" - lesson lines linked to highlighted spots on a real drawing */
.dwg-btn { font: inherit; font-size: 12.5px; font-weight: 700; margin-inline-start: 6px; padding: 2px 10px; border-radius: 14px; border: 1.5px solid #e53935; background: #fff4c2; color: #b71c1c; cursor: pointer; white-space: nowrap; vertical-align: middle; }
.dwg-btn:hover { background: #ffe066; }
.dwg-modal { width: min(1400px, 96vw); }
.dwg-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.dwg-chip { font: inherit; font-size: 13px; border: 1.5px solid #f0a030; background: #fff; color: #7a4a00; border-radius: 16px; padding: 3px 10px; cursor: pointer; }
.dwg-chip b { background: #f0a030; color: #fff; border-radius: 50%; padding: 0 6px; margin-inline-end: 4px; }
.dwg-chip:hover { background: #fff4e0; }
.dwg-chip.on { background: #e8f0fd; border-color: #1e63d6; color: #0d3d8f; font-weight: 700; }
.dwg-chip.on b { background: #1e63d6; }
.dwg-stage { height: min(70vh, 760px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; direction: ltr; }
.dwg-wrap { position: relative; display: inline-block; }
.dwg-wrap canvas { display: block; }
.dwg-over { position: absolute; inset: 0; }
.dwg-mk { cursor: pointer; }

/* editable text boxes in the invite page */
.edit-block { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-top: 6px; }
.edit-block .eb-text { flex: 1; min-width: 200px; white-space: pre-wrap; }
.edit-block .eb-edit { flex: none; }
.edit-block textarea, .edit-block .row.end { flex-basis: 100%; width: 100%; }

/* lesson pictures and tables */
.lesson-gallery { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 14px; }
.lesson-fig { margin: 0; flex: 1 1 220px; max-width: 360px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.lesson-fig img { width: 100%; height: 190px; object-fit: contain; background: #fff; border-radius: 6px; cursor: zoom-in; display: block; }
.lesson-fig figcaption { font-size: 13.5px; margin-top: 6px; text-align: center; font-weight: 600; }
.lesson-fig figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 2px; }
.lesson-tbl { margin: 8px 0 14px; }
.lesson-tbl th { background: var(--steel-light); }
.lesson-tbl td, .lesson-tbl th { vertical-align: top; }

/* ---- coatings catalog: brochure-style pages ---- */
.coat-group { margin: 22px 0 10px; color: var(--head); font-size: 19px; border-bottom: 3px solid #1d4f91; display: inline-block; padding-bottom: 3px; }
.coat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.coat-card { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.coat-card:hover { transform: translateY(-2px); border-color: #1d4f91; }
.coat-card b { display: block; font-size: 16px; }
.coat-card .en { display: block; direction: ltr; text-align: right; font-size: 12.5px; color: #1d4f91; font-weight: 700; letter-spacing: .3px; }
.coat-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.coat-orb { width: 230px; height: 230px; border-radius: 50%; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 40%, #1f3f6e 0%, #0d2341 70%); border: 6px solid #0a1a31; box-shadow: 0 0 0 10px rgba(29,79,145,.18), 0 10px 26px rgba(0,0,0,.25); color: #fff; }
.coat-orb span { font-size: 86px; line-height: 1; }
.coat-orb b { font-size: 21px; letter-spacing: 1px; color: #b8c7dc; direction: ltr; text-align: center; padding: 0 16px; }
.coat-orb.sm { width: 58px; height: 58px; border-width: 3px; box-shadow: 0 0 0 4px rgba(29,79,145,.15); }
.coat-orb.sm span { font-size: 26px; }
.coat-page { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px;
  background-image: radial-gradient(circle at 0 0, #1d4f91 0, #1d4f91 120px, transparent 121px), radial-gradient(circle at 0 100%, #1d4f91 0, #1d4f91 90px, transparent 91px); }
.coat-title { background: #1d4f91; color: #fff; font-size: 26px; font-weight: 800; padding: 12px 24px; border-radius: 0 0 0 30px; margin-inline-start: 22%; }
.coat-title span { font-size: 19px; font-weight: 700; color: #cfe0f7; direction: ltr; unicode-bidi: isolate; }
.coat-body { display: flex; gap: 28px; padding: 22px 24px 26px; align-items: flex-start; }
.coat-main { flex: 1; min-width: 0; }
.coat-side { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; order: 2; padding-top: 10px; }
.coat-std { background: #eaf1fb; border: 1.5px solid #1d4f91; border-radius: 12px; padding: 6px 14px; text-align: center; max-width: 240px; }
.coat-std small { display: block; color: var(--muted); }
.coat-std b { color: #0d2341; }
.coat-sec { display: flex; gap: 12px; margin-bottom: 14px; }
.coat-check { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #1d3f7a; color: #1d3f7a; display: grid; place-items: center; font-weight: 900; font-size: 18px; background: #fff; }
.coat-sec h3 { margin: 4px 0 4px; font-size: 17px; color: var(--head); }
.coat-sec p { margin: 0 0 4px; line-height: 1.6; }
.coat-ul { margin: 0; padding: 0; list-style: none; }
.coat-ul li { padding-inline-start: 22px; position: relative; margin: 3px 0; line-height: 1.5; }
.coat-ul li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: #1d4f91; font-weight: 900; }
.coat-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.coat-dims { font-weight: 800; color: #0d2341; font-size: 16px; }
.coat-spec { background: #0d2341; color: #e8f0ff; font-family: Consolas, monospace; font-size: 13.5px; border-radius: 8px; padding: 8px 12px; text-align: left; white-space: pre-wrap; }
.coat-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.coat-slot { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.coat-slot-h { font-weight: 800; color: var(--head); }
.coat-ph { margin: 0; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.coat-ph img { width: 100%; max-height: 300px; object-fit: contain; display: block; cursor: zoom-in; }
.coat-ph figcaption { text-align: center; font-size: 13px; margin-top: 4px; }
.coat-ph figcaption small { display: block; color: var(--muted); font-size: 11px; }
.coat-drop { padding: 14px; text-align: center; font-weight: 700; }
.coat-drop small { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 860px) {
  .coat-body { flex-direction: column; align-items: stretch; }
  .coat-side { order: 0; }
  .coat-orb { width: 160px; height: 160px; } .coat-orb span { font-size: 60px; } .coat-orb b { font-size: 16px; }
  .coat-title { margin-inline-start: 0; border-radius: 0; font-size: 21px; }
  .coat-two, .coat-ba { grid-template-columns: 1fr; }
}
