/* שאל את העסק (Avivi Ask): the Studio+ app look (studio.css), in a calm teal.
   15.11.2026, the design line (docs/תוכנית-קו-עיצובי.md): the main thing on top, one explanation, uniform rows,
   square tabs with a hairline between them that wrap to a second line (never scroll sideways), our line icons
   (/icons.js: TOOL_ICONS + NAV_ICONS), clear empty states, 44px targets on a phone. Every button and field stayed. */
:root{--navy:#115e59;--acc:#0f766e;--t-bg:#f0fdfa;--t-line:#99f6e4;--t-ink:#134e4a;--ok:#15803d;--ok-bg:#f0fdf4;--bad:#b91c1c;--rad:14px}
main{max-width:920px}
.ab-ic{display:inline-grid;place-items:center;flex:none}.ab-ic svg{width:100%;height:100%;display:block}
/* a leading emoji in our own texts becomes a line icon (public/icons.js draws .ei) */
.ei{display:inline-grid;place-items:center;width:1.15em;height:1.15em;vertical-align:-.2em;margin-inline-end:4px;flex:none}.ei svg{width:100%;height:100%}.ei.emo{width:auto;height:auto}

/* the top bar: logo tile + name, the month's usage, back to the app */
.sbar{flex-wrap:wrap;row-gap:6px}
.sbar .logo{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);min-height:44px}
.sbar .logo .ico{width:38px;height:38px;border-radius:11px;background:var(--navy);color:#fff;padding:8px;font-size:0}
.sbar .logo b{font-size:18px}
.sbar .left{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-inline-start:auto}
.sbar .left .ghost{display:inline-flex;align-items:center}
.pill:empty{display:none}

/* tabs: square, a hairline between them, the active one filled, they wrap (owner's standing rule) */
.tabs{display:flex;flex-wrap:wrap;gap:0;margin:4px 0 16px;padding:0 1px 1px 0}
.tabs button{flex:1 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);margin:0 0 -1px -1px;background:#fff;border-radius:0;padding:10px 16px;min-height:46px;font:600 15px/1.2 inherit;color:var(--mute);cursor:pointer;white-space:nowrap}
.tabs button .ab-ic{width:18px;height:18px}
.tabs button:hover{background:var(--t-bg);color:var(--t-ink)}
.tabs button[aria-selected=true]{background:var(--navy);border-color:var(--navy);color:#fff;position:relative;z-index:1}
.tabs button:focus-visible{outline:3px solid #4f46e5;outline-offset:2px;z-index:2}
.tabs .cnt-b{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:12px;font-weight:700;display:inline-grid;place-items:center}
.tabs .cnt-b[hidden]{display:none}
.tabs .cnt-b.red{background:#fee2e2;color:var(--bad)}
.tabs button[aria-selected=true] .cnt-b{background:rgba(255,255,255,.22);color:#fff}

/* cards and headings */
.card{border-radius:var(--rad);padding:20px}
.card h2{font-size:20px;margin:0 0 4px}
.card>p.mute:first-of-type{margin-top:0}
.hd{display:flex;align-items:flex-start;justify-content:space-between;gap:8px 12px;flex-wrap:wrap}
.hd>div{flex:1 1 260px;min-width:0}

/* the question */
.qbox{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.qbox textarea{flex:1 1 260px;min-height:64px;font:inherit;padding:10px 12px;border:1.5px solid #cbd5e1;border-radius:12px;resize:vertical}
.qbox textarea:focus{outline:none;border-color:var(--acc);box-shadow:0 0 0 3px rgba(15,118,110,.18)}
.ex{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.ex button{background:var(--t-bg);border:1px solid var(--t-line);color:var(--t-ink);border-radius:999px;padding:6px 12px;min-height:40px;font:inherit;font-size:14px;cursor:pointer}
.ex button:hover{background:#ccfbf1}
.opt{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin-top:12px}
.opt .chip{margin:0}.opt .chip span{min-height:40px;display:inline-flex;align-items:center}
.opt .mute{margin:0;font-size:14px}
.awai-send{background:var(--navy)!important}

/* the answer and its sources */
.ans{background:var(--t-bg);border:1px solid var(--t-line);border-radius:12px;padding:14px 16px;margin-top:14px;white-space:pre-wrap;line-height:1.75;color:#0f172a}
.ans sup a{color:var(--acc);font-weight:700;text-decoration:none}
#out h3{font-size:16px;margin:18px 0 8px;color:var(--ink)}
.where{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.where>span:first-child{color:var(--mute);font-size:14px}
.cnt{display:flex;flex-wrap:wrap;gap:6px}.cnt span{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:3px 10px;font-size:13px;color:#334155}
.where .mute{margin:0}

/* uniform rows (sources, inquiries, earlier questions, the sources tab): one shape everywhere */
.src{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.src li{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff;display:flex;align-items:flex-start;gap:12px}
.src li>.bd{flex:1 1 0;min-width:0}
.src li b{display:block;color:var(--ink)}.src small{color:var(--mute);display:block;font-size:13px;margin-top:1px}
.src p{margin:6px 0 0;font-size:14px;color:#334155;overflow-wrap:anywhere}
.src li>.act{flex:none;display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-self:center}
.src .n{flex:none;display:inline-grid;place-items:center;width:28px;height:28px;background:var(--navy);color:#fff;border-radius:999px;font-size:13px;font-weight:700}
.src .av{flex:none;width:40px;height:40px;border-radius:50%;background:var(--t-bg);color:var(--t-ink);border:1px solid var(--t-line);display:grid;place-items:center;font-weight:700;font-size:16px}
.src .ghost,.src .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.src .btn{font-size:15px;padding:8px 16px}
.list-wrap{margin-top:12px}

/* inquiries → tasks */
.lrow select{font:inherit;padding:6px 8px;border-radius:10px;border:1px solid #cbd5e1;max-width:100%;min-width:150px;background:#fff}
.lrow .msg{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.done{color:var(--ok);font-weight:600;background:var(--ok-bg);border:1px solid #bbf7d0;border-radius:999px;padding:6px 12px;font-size:14px}
.donefold{margin-top:12px}
.donefold>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:600;color:var(--mute)}
.donefold>summary::-webkit-details-marker{display:none}
.donefold>summary::after{content:"▾";font-size:12px}.donefold[open]>summary::after{content:"▴"}
.donefold>.src{margin-top:8px}
.donefold li{background:#fafafa}

/* earlier questions */
.hrow .ans{margin-top:8px;font-size:15px}
.hrow .refs{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.hrow .refs a{font-size:13px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:4px 10px;color:var(--t-ink);text-decoration:none}
.ghost.warnb{border-color:#fca5a5;color:var(--bad)}

/* the sources tab (14.11.2026, switch askbizSources) */
.srcsw{display:inline-flex;align-items:center;gap:10px;cursor:pointer;min-height:44px}.srcsw b{display:inline}.srcsw input{width:20px;height:20px;margin:0;flex:none;accent-color:var(--navy)}
.src li.srcrow{align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px}
.bar{height:8px;border-radius:99px;background:#e5e7eb;overflow:hidden;margin-top:6px}.bar>div{height:100%}

/* empty states: an icon, one line, centered */
.empty{text-align:center;padding:34px 20px;color:var(--mute)}
.empty .ab-ic{width:44px;height:44px;margin:0 auto 10px;color:#94a3b8}
.empty p{margin:0;font-size:16px}

/* admin only: the two "open to customers" switches, out of the top bar, closed by default */
.adm{margin-top:18px;border:1px dashed #cbd5e1;border-radius:var(--rad);background:#fff}
.adm>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 16px;font-weight:600;color:var(--mute)}
.adm>summary::-webkit-details-marker{display:none}
.adm>summary .ab-ic{width:18px;height:18px}
.adm>summary::after{content:"▾";margin-inline-start:auto;font-size:12px}.adm[open]>summary::after{content:"▴"}
.adm>div{display:grid;gap:4px;padding:0 16px 12px}
.adm label{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.adm input{width:20px;height:20px;margin:0;accent-color:var(--navy)}

@media (max-width:560px){
  .card{padding:16px}
  .tabs button{flex:1 1 45%;padding:10px 10px;font-size:14px}
  .src li{flex-wrap:wrap}
  .src li>.act{flex:1 1 100%;justify-content:stretch;align-self:auto}
  .lrow .act select{flex:1 1 140px;min-height:44px}
  .lrow .act .btn{flex:1 1 120px}
  .sbar .logo b{font-size:16px}
}
