@font-face { font-family: Rubik; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-hebrew.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Rubik; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #0F0F12; --panel: #17171c; --panel2: #1f1f26; --line: #2b2b34; --text: #f2f2f5; --muted: #9a9aa8;
  --accent: #FF4D2E; --ok: #3ecf8e; --warn: #f5b942; --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Rubik, system-ui, 'Segoe UI', sans-serif; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-size: 1.5rem; margin: 0; } h2 { font-size: 1.05rem; margin: 0; }
code { background: var(--panel2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); font-size: .9rem; } .empty { padding: 8px 0; margin: 0; } .err { color: var(--accent); }
.sr { position: absolute; opacity: 0; pointer-events: none; }
.boot { padding: 40px; text-align: center; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* shell */
.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .5px; direction: ltr; }
.logo.big { width: 72px; height: 72px; border-radius: 18px; font-size: 28px; margin: 0 auto 12px; }
.who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ghost { background: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; color: var(--text); font-size: .85rem; }
.ghost:hover { border-color: var(--muted); } .ghost.sm { padding: 2px 8px; font-size: .78rem; color: var(--muted); }
.tabs { position: fixed; bottom: 0; inset-inline: 0; z-index: 20; display: flex; background: rgba(23,23,28,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; background: none; border: 0; padding: 14px 4px; color: var(--muted); font-weight: 500; font-size: .95rem; border-top: 3px solid transparent; }
.tabs button.on { color: var(--text); border-top-color: var(--accent); }
main { max-width: 1200px; margin: 0 auto; padding: 8px 16px 110px; }
@media (min-width: 900px) {
  .top { padding-bottom: 0; }
  .tabs { position: static; max-width: 1200px; margin: 8px auto 0; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0 16px; backdrop-filter: none; justify-content: flex-start; }
  .tabs button { flex: 0 0 auto; padding: 12px 22px; border-top: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
  .tabs button.on { border-bottom-color: var(--accent); }
  main { padding-top: 20px; padding-bottom: 60px; }
}

/* buttons: white, hard offset shadow, press-in */
.btn { background: #fff; color: #0F0F12; border: 3px solid #0F0F12; border-radius: 12px; padding: 8px 18px; font-weight: 700; box-shadow: 4px 4px 0 var(--accent); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--accent); }
.btn2 { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-weight: 500; }
.btn2:hover { border-color: var(--muted); }
.btn3 { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: .85rem; }
.btn3.pri { border-color: var(--accent); color: var(--accent); } .btn3.danger { color: #ff7a7a; border-color: #5a2a2a; }
.bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.bar > :first-child { margin-inline-end: auto; }
.chk { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.chk input { accent-color: var(--accent); width: 18px; height: 18px; }

/* cards */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } .hello { grid-column: 1 / -1; } }
.hello p { margin: 2px 0 0; }
.card, .brief { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; border-top: 1px solid var(--line); padding: 10px 0; text-align: start; }
.row:first-of-type { border-top: 0; }
.row-main { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .row-side { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.big-n { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.split { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 6px 0; }
.chip { display: inline-block; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; font-size: .78rem; white-space: nowrap; }
.s-paid, .s-done { border-color: #1f6b4b; color: var(--ok); } .s-waiting_payment, .s-fixes { border-color: #6b531f; color: var(--warn); } .s-cancelled { color: var(--muted); } .s-editing, .s-review, .s-sent { border-color: #7a3524; color: #ff8a70; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ocard { text-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 6px; }
.ocard:hover { border-color: var(--muted); }
.ocard .row-main { justify-content: space-between; } .ofoot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* kanban */
.kanban { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .kanban { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .kanban { grid-template-columns: repeat(4, 1fr); } }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 10px; align-content: start; }
.cnt { margin-inline-start: 8px; color: var(--muted); font-weight: 400; }
.task { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.task.held { border-color: #7a3524; }
.task-t { background: none; border: 0; text-align: start; font-weight: 500; padding: 0; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.claim { font-size: .8rem; color: #ff8a70; }
.tact { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.tact select { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; font-size: .85rem; }

/* log */
.brief { border-color: #7a3524; margin-bottom: 14px; } .brief .log-t { margin: 0 0 8px; }
.comp { display: grid; gap: 8px; margin-bottom: 14px; }
.comp-f { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.log { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.log.pinned { border-color: var(--accent); }
.log-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9rem; margin-bottom: 4px; }
.log-h .cl { color: #ff8a70; } .pin { color: var(--accent); font-size: .78rem; }
.log-t { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.log-w { display: grid; gap: 4px; margin-bottom: 10px; justify-items: end; } .log-w .log { justify-self: stretch; }
.card .log { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0; } .card .log:first-of-type { border-top: 0; }

/* docs */
.docs { display: grid; gap: 14px; } @media (min-width: 900px) { .docs { grid-template-columns: 220px 1fr; align-items: start; } }
.dlist { display: flex; gap: 8px; flex-wrap: wrap; } @media (min-width: 900px) { .dlist { flex-direction: column; flex-wrap: nowrap; } }
.dlist button:not(.ghost) { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; text-align: start; }
.dlist button.on { border-color: var(--accent); }
.dbody .bar h1 { font-size: 1.3rem; }
.md { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow-wrap: anywhere; }
.md h1 { font-size: 1.4rem; } .md h2 { margin-top: 18px; } .md h3 { margin-top: 14px; } .md p { margin: 8px 0; } .md a { color: #ff8a70; }
.md table { border-collapse: collapse; width: 100%; margin: 8px 0; display: block; overflow-x: auto; } .md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: start; }
.md blockquote { margin: 8px 0; padding: 2px 12px; border-inline-start: 3px solid var(--accent); color: var(--muted); }
.edit { display: grid; gap: 12px; } @media (min-width: 900px) { .edit { grid-template-columns: 1fr 1fr; } }
.ed { min-height: 360px; font-family: ui-monospace, Consolas, monospace; font-size: .92rem; }

/* forms + modal */
input, select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; }
textarea { resize: vertical; } input[type=checkbox] { width: auto; }
.form { display: grid; gap: 12px; } .fld { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote { background: var(--panel2); border: 1px dashed var(--accent); border-radius: 10px; padding: 8px 12px; min-height: 40px; }
.wa { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; } .wa-b { display: flex; gap: 8px; flex-wrap: wrap; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: grid; align-items: end; justify-items: center; }
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: 18px 18px 0 0; width: 100%; max-width: 620px; max-height: 92vh; display: flex; flex-direction: column; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 18px; max-height: 88vh; } }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.x { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); }
.sheet-b { padding: 16px; overflow: auto; } .sheet-f { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.secret { background: var(--panel2); border: 1px solid var(--accent); border-radius: 10px; padding: 10px; display: grid; gap: 8px; } .secret code { overflow-wrap: anywhere; user-select: all; }
.toast { position: fixed; bottom: 90px; inset-inline: 0; margin: auto; width: max-content; max-width: 90vw; background: #fff; color: #0F0F12; padding: 10px 18px; border-radius: 12px; font-weight: 600; z-index: 99; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
.login { max-width: 420px; margin: 18vh auto 0; padding: 0 24px; text-align: center; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
