/* Design tokens + element defaults. ORCA palette (matches orcaai.co.il):
   navy ink, turquoise accent, pink touches. */
:root {
  --bg: #f7f9fb; --card: #fff; --ink: #0b1f33; --muted: #5b6b7b;
  --teal: #0b7f8a; --teal-d: #086a73; --accent: #d6456f; --pink-soft: #fde7ee;
  --line: #e3e9ef; --chip: #e6f3f5; --soft: #f7f9fb; --soft2: #eef2f6;
  --warn: #c8232c; --warn-bg: #ffe9e9; --ok: #0f7040; --ok-bg: #dff5e8;
  --amber: #8a5d00; --amber-bg: #fdf0cd;
  --nav-on: #0b1f33; --nav-hover: #e6f3f5;
  --focus-ring: 0 0 0 3px rgba(14, 154, 167, .14);
  --shadow: 0 1px 2px rgba(11, 31, 51, .04), 0 14px 32px -22px rgba(11, 31, 51, .3);
  --tb: 64px;   /* height of the sticky top bar; set from JS (ui/tabs.js) */
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  background-image:
    radial-gradient(700px 320px at 90% -80px, rgba(14, 154, 167, .12), transparent 70%),
    radial-gradient(520px 300px at 0% 30%, rgba(214, 69, 111, .07), transparent 70%);
  background-repeat: no-repeat;
  font-family: "Heebo", system-ui, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
[hidden], .hidden { display: none !important; }

/* Bidi: Latin/number islands inside Hebrew text */
bdi, .ltr { unicode-bidi: isolate; direction: ltr; }
.u { unicode-bidi: isolate; direction: ltr; color: var(--muted); font-weight: 600; font-size: .86em; margin-inline-start: 3px; }

.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12px; }

/* form controls */
label { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 5px; font-weight: 600; text-align: center; }
input[type=number], input[type=text], select, textarea {
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: var(--focus-ring); }
input[type=number] { direction: ltr; text-align: center; }

/* buttons */
button { font-family: inherit; cursor: pointer; }
.btn, button.btn {
  background: var(--ink); color: #fff; border: 0; border-radius: 10px;
  padding: 10px 20px; font-size: 14.5px; font-weight: 600;
  transition: background .15s, box-shadow .15s, transform .1s; box-shadow: 0 4px 12px rgba(14, 154, 167, .22);
}
.btn:hover { background: var(--teal); box-shadow: 0 6px 16px rgba(14, 154, 167, .3); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--teal-d); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--teal); background: var(--chip); }
.icon-btn { background: transparent; color: var(--muted); border: 0; padding: 3px 8px; font-size: 16px; border-radius: 8px; }
.icon-btn:hover { color: var(--teal-d); background: var(--chip); }

details > summary { cursor: pointer; color: var(--teal-d); font-weight: 800; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; font-size: 12px; }
details[open] > summary::before { content: "▾ "; }
