:root { --brand: #0F766E; --brand-d: #0B4F49; --bg: #F5F8F7; --card: #fff; --ink: #14201E; --mute: #5A6B68; --line: #DCE6E3; --warn: #B45309; --bad: #B91C1C; --ok: #15803D; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Tajawal, "Segoe UI", Tahoma, Arial, sans-serif; font-size: 17px; line-height: 1.55; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.net { position: sticky; top: 0; z-index: 50; background: var(--warn); color: #fff; padding: 8px 14px; text-align: center; font-size: 15px; }
.screen { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
.center { justify-content: center; }
h1 { font-size: 28px; margin: 0; } h2 { font-size: 20px; margin: 0; } h3 { font-size: 17px; margin: 0; }
.mute { color: var(--mute); font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
button, .btn { min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
button.sec { background: #fff; color: var(--brand-d); border: 2px solid var(--brand); }
button.bad { background: #fff; color: var(--bad); border: 2px solid var(--bad); }
button.link { background: transparent; color: var(--brand-d); min-height: 44px; text-decoration: underline; }
button:disabled { opacity: .5; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--mute); }
input, select { min-height: 48px; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--brand); }
input[type=file] { padding: 10px 12px; }
.ltr { direction: ltr; text-align: left; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 14px; font-weight: 700; background: #E6F0EE; color: var(--brand-d); }
.chip.warn { background: #FEF3C7; color: var(--warn); } .chip.bad { background: #FEE2E2; color: var(--bad); } .chip.ok { background: #DCFCE7; color: var(--ok); }
.err { background: #FEE2E2; color: var(--bad); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.okb { background: #DCFCE7; color: var(--ok); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.note { background: #E6F0EE; color: var(--brand-d); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.code { font-size: 40px; font-weight: 800; letter-spacing: 6px; text-align: center; direction: ltr; color: var(--brand-d); background: #E6F0EE; border-radius: 14px; padding: 12px; }
.bar { height: 10px; border-radius: 6px; background: #E6F0EE; overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--brand); }
.tabs { position: sticky; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; background: transparent; color: var(--mute); border-radius: 0; min-height: 56px; font-size: 14px; border-top: 3px solid transparent; }
.tabs button.on { color: var(--brand-d); border-top-color: var(--brand); background: #EAF4F2; }
.sheet { position: fixed; inset: 0; background: var(--bg); z-index: 40; overflow-y: auto; }
.sheet .screen { max-width: 480px; margin: 0 auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chips button { min-height: 40px; white-space: nowrap; background: #fff; color: var(--brand-d); border: 2px solid var(--line); }
.chips button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.photo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: #E6F0EE; flex-shrink: 0; }
.stars button { background: transparent; color: #CBD5D1; font-size: 30px; min-height: 44px; padding: 0 4px; } .stars button.on { color: #F59E0B; }
.logo { width: 84px; height: 84px; border-radius: 22px; align-self: center; }
.small { font-size: 14px; }
