:root{--bg: #f6f4ef;--card: #ffffff;--ink: #1d2426;--muted: #6b7478;--line: #e4dfd5;--brand: #0f5257;--brand-ink: #ffffff;--soft: #e9f1f0;--error: #b3261e;--ok: #1f7a4d;--warn: #a8690a}@media(prefers-color-scheme:dark){:root{--bg: #111617;--card: #1a2123;--ink: #eef1f0;--muted: #9aa5a8;--line: #2a3437;--brand: #3fa3a0;--brand-ink: #06201f;--soft: #1f2d2e;--error: #ff8a80;--ok: #7bd3a3;--warn: #f0c070}}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Cairo,system-ui,sans-serif;font-size:16px;line-height:1.6;-webkit-text-size-adjust:100%}h1{font-size:1.4rem;margin:0 0 .25rem}h2{font-size:1.2rem;margin:0}p{margin:.4rem 0}.muted{color:var(--muted);font-size:.9rem}small.muted{font-size:.8rem}.error{color:var(--error);font-weight:600}.note{color:var(--ok);font-weight:600}.center{min-height:100dvh;display:grid;place-items:center;padding:1rem}.shell{max-width:720px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column}.top{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;position:sticky;top:0;background:var(--bg);z-index:2;border-bottom:1px solid var(--line)}.page{flex:1;padding:1rem 1rem 6rem;display:flex;flex-direction:column;gap:.75rem}.tabs{position:fixed;bottom:0;inset-inline:0;display:flex;background:var(--card);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:3}.tabs button{flex:1;padding:.9rem .25rem;border:0;background:none;color:var(--muted);font:inherit;font-weight:600;min-height:56px}.tabs button.on{color:var(--brand);box-shadow:inset 0 3px 0 var(--brand)}.card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:.9rem 1rem}.row{display:flex;align-items:center;gap:.6rem}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.list{display:flex;flex-direction:column;gap:.6rem}button{font:inherit;color:inherit;cursor:pointer}button.primary,button.small{border:1px solid var(--brand);border-radius:10px;padding:.7rem 1rem;font-weight:700;min-height:44px}button.primary{background:var(--brand);color:var(--brand-ink);width:100%}button.small{background:transparent;color:var(--brand);width:auto;padding:.45rem .8rem;white-space:nowrap}button.primary.small{background:var(--brand);color:var(--brand-ink)}button:disabled{opacity:.6}button.link{border:0;background:none;color:var(--brand);font-weight:600;padding:.4rem;min-height:44px}.chips{display:flex;gap:.4rem;overflow-x:auto;padding-bottom:.2rem}.chips button{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:.35rem .8rem;white-space:nowrap;font-size:.9rem;min-height:40px}.chips button.on{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}.angle{text-align:start;width:100%;display:flex;flex-direction:column;gap:.25rem}.line{font-size:.95rem}.meta{color:var(--muted);font-size:.82rem}.badge{font-size:.75rem;font-weight:700;padding:.15rem .55rem;border-radius:999px;background:var(--soft);color:var(--brand);white-space:nowrap}.badge.s-won{color:var(--ok)}.badge.s-lost{color:var(--error)}.badge.s-running{color:var(--warn)}.door{width:min(420px,100%);display:flex;flex-direction:column;gap:.7rem}label{display:flex;flex-direction:column;gap:.25rem;font-weight:600;font-size:.9rem}input,select,textarea{font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:.6rem .7rem;width:100%;min-height:44px}textarea{resize:vertical}.form{display:flex;flex-direction:column;gap:.7rem}.two{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.search{display:flex;gap:.5rem}.voice{display:flex;flex-direction:column;gap:.4rem}.quote{font-size:1rem}.voice select{font-size:.85rem;min-height:40px;padding:.35rem .6rem}.bars{display:flex;flex-direction:column;gap:.3rem;margin-top:.5rem}.bar{display:grid;grid-template-columns:8.5rem 1fr 2.2rem;align-items:center;gap:.5rem;border:0;background:none;padding:.2rem 0;text-align:start;min-height:36px}.bar i{display:block;height:10px;border-radius:6px;background:var(--brand);min-width:4px}.bar b{text-align:end}.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:flex-end;justify-content:center;z-index:10}.sheet{background:var(--card);width:min(720px,100%);max-height:92dvh;overflow-y:auto;border-radius:18px 18px 0 0;padding:1rem 1rem calc(1.2rem + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:.8rem}
