/* Akkid — shared styles. Layout: single narrow column for forms, wide grid for the dashboard. */
:root {
  --ink: #10302b;          /* deep courier green */
  --ink-2: #3d5a55;
  --paper: #f4f7f6;
  --card: #ffffff;
  --line: #d9e3e0;
  --tape: #e3a21a;         /* parcel-tape amber, the one accent */
  --tape-ink: #2a1c00;
  /* semantic colors are dark enough for AA (4.5:1) as text on white and on their pill backgrounds */
  --ok: #17703d;
  --warn: #8a5a12;
  --bad: #a8301f;
  --info: #2f6f8f;
  --display: "Readex Pro", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --radius: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); line-height: 1.3; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--info); }
.wrap { max-width: 560px; margin: 0 auto; padding-block: 24px 48px; display: grid; gap: 20px; }
.wrap.wide { max-width: 1100px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: var(--tape);
  display: grid; place-items: center; font-size: 1.1rem;
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.muted { color: var(--ink-2); font-size: .92rem; }
label { display: grid; gap: 6px; font-weight: 500; }
label .hint { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tape) 60%, transparent); outline-offset: 1px;
}
textarea { min-height: 80px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
/* the whole label is tappable; min-height keeps the target at 44px */
.check { min-height: 44px; cursor: pointer; }
.check input { width: 24px; height: 24px; margin-top: 4px; flex: none; accent-color: var(--ink); }
/* 44px minimum tap targets (CLAUDE.md §8) */
select { min-height: 44px; }
summary { padding-block: 9px; }
.btn {
  font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 12px 18px; cursor: pointer;
  background: var(--ink); color: #fff; text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; min-height: 44px;
}
.btn.tape { background: var(--tape); color: var(--tape-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.wa { background: var(--ok); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: .88rem; }
.btn[disabled] { opacity: .6; cursor: wait; }
.err { color: var(--bad); font-weight: 500; }
.okmsg { color: var(--ok); font-weight: 500; }
.code {
  font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; font-size: 1.6rem;
  background: var(--paper); border: 2px dashed var(--tape); border-radius: 8px; padding: 8px 16px; text-align: center; direction: ltr;
}
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.risk-new { background: #e7eef2; color: var(--info); }
.risk-low { background: #e3f3ea; color: var(--ok); }
.risk-medium { background: #fbf0dc; color: var(--warn); }
.risk-high { background: #f8e1de; color: var(--bad); }
.risk-locked { background: #ececec; color: #555; }
.st-new { background: #e7eef2; color: var(--info); }
.st-confirmed { background: #e3f3ea; color: var(--ok); }
.st-shipped { background: #efe9f8; color: #6b4fa0; }
.st-delivered { background: #d6efe0; color: #145c33; }
.st-refused { background: #f8e1de; color: var(--bad); }
.st-cancelled { background: #ececec; color: #555; }
.ltr { direction: ltr; unicode-bidi: embed; }
.num { font-variant-numeric: tabular-nums; }
footer.site { text-align: center; color: var(--ink-2); font-size: .85rem; padding-block: 24px; }
