@font-face{font-family:Cairo;src:url(fonts/cairo-400.ttf);font-weight:400}
@font-face{font-family:Cairo;src:url(fonts/cairo-600.ttf);font-weight:600}
@font-face{font-family:Cairo;src:url(fonts/cairo-700.ttf);font-weight:700}
@font-face{font-family:Cairo;src:url(fonts/cairo-800.ttf);font-weight:800}
@font-face{font-family:Cairo;src:url(fonts/cairo-900.ttf);font-weight:900}
:root{--burg:#96132B;--burg-deep:#6C0B1D;--gold:#D9A63C;--gold-deep:#A87A22;--gold-soft:#F6E9CB;
--ink:#17120F;--ink2:#3D3530;--muted:#8A7F76;--paper:#F7F4EF;--card:#fff;--line:#EAE2D7}
*{font-family:Cairo,sans-serif;box-sizing:border-box;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{margin:0;background:#E7E0D6;font-family:Cairo,sans-serif;color:var(--ink);display:flex;justify-content:center}
.app{width:100%;max-width:430px;height:100%;background:var(--paper);display:flex;flex-direction:column;overflow:hidden;position:relative}
.status{height:26px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;font-size:11px;font-weight:700;flex:none;opacity:.85}
.topbar{display:flex;align-items:center;gap:9px;padding:2px 16px 9px;flex:none}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit}
.brand img{width:36px;height:36px;border-radius:50%;box-shadow:0 3px 10px rgba(23,18,15,.18)}
.brand .nm{font-family:Cairo;font-weight:900;font-size:15px;line-height:1;letter-spacing:.3px}
.brand .sub{font-size:7px;letter-spacing:2.4px;color:var(--gold-deep);font-weight:800;margin-top:4px}
.spacer{flex:1}
.iconbtn{width:34px;height:34px;border-radius:11px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:var(--ink2);position:relative;cursor:pointer}
.iconbtn .dotb{position:absolute;top:7px;left:8px;width:6px;height:6px;border-radius:50%;background:var(--burg);border:1.5px solid #fff}
.chip{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px;border-radius:99px;background:#fff;border:1px solid var(--line);font-size:11px;font-weight:700;color:var(--ink2);cursor:pointer;white-space:nowrap}
.chip.on{background:var(--burg);border-color:var(--burg);color:#fff}
.content{flex:1;padding:0 16px 16px;overflow-y:auto;min-height:0;-webkit-overflow-scrolling:touch}
.content::-webkit-scrollbar{width:0}
.hero{background:linear-gradient(135deg,#9E1730 0%,#6C0B1D 100%);border-radius:20px;padding:13px 16px 14px;color:#fff;position:relative;overflow:hidden;box-shadow:0 10px 22px rgba(108,11,29,.26)}
.hero::after{content:'';position:absolute;inset:0;background:radial-gradient(120% 90% at 100% 0%,rgba(217,166,60,.26),transparent 62%);pointer-events:none}
.hero .lbl{font-size:11.5px;color:#F0D6A6;font-weight:700}
.hero .big{font-family:Cairo;font-weight:900;font-size:29px;line-height:1.25;display:flex;align-items:baseline;gap:6px;margin-top:2px}
.hero .big small{font-size:12px;font-weight:700;color:#F3E3BE;font-family:Cairo}
.hero .row2{display:flex;align-items:center;justify-content:space-between;font-size:10.5px;color:#EBD3C4;font-weight:600;margin-top:9px}
.bar{height:6px;border-radius:99px;background:rgba(255,255,255,.2);margin-top:7px;overflow:hidden}
.bar>i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#D9A63C,#F5D79A)}
.bar.flat{background:#EFE9E0}
.tag{display:inline-flex;align-items:center;gap:4px;background:rgba(217,166,60,.18);color:#F5D79A;border:1px solid rgba(217,166,60,.45);border-radius:99px;padding:2px 8px;font-size:9.5px;font-weight:800}
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:15px;padding:8px 12px}
.kpi .v{font-family:Cairo;font-weight:800;font-size:19px;line-height:1.2}
.kpi .k{font-size:10.5px;color:var(--muted);font-weight:700;margin-top:1px}
.kpi .d{font-size:9.5px;font-weight:800;margin-top:5px;color:var(--gold-deep)}
.kpi .d.bad{color:var(--burg)}
.sec{display:flex;align-items:center;justify-content:space-between;margin:12px 0 8px}
.sec h3{font-family:Cairo;font-size:13.5px;font-weight:700;margin:0}
.sec a{font-size:10.5px;color:var(--burg);font-weight:800;text-decoration:none;cursor:pointer}
.row{background:#fff;border:1px solid var(--line);border-radius:14px;padding:9px 11px;display:flex;align-items:center;gap:10px;margin-bottom:6px;text-decoration:none;color:inherit}
.row.tap{cursor:pointer}
.avatar{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#F6E9CB,#E6CB99);color:#6C0B1D;display:grid;place-items:center;font-weight:800;font-size:14px;font-family:Cairo;flex:none}
.t{font-size:12.5px;font-weight:800;line-height:1.35}
.s{font-size:10px;color:var(--muted);margin-top:1px;font-weight:600}
.pill{font-size:9px;font-weight:800;padding:2.5px 7px;border-radius:99px;white-space:nowrap}
.pill.act{background:var(--gold-soft);color:#8A6112}
.pill.exp{background:#F6E0E4;color:var(--burg)}
.pill.mut{background:#EFEAE2;color:#7A7168}
.btn{height:42px;border-radius:14px;font-family:Cairo;font-weight:800;font-size:12.5px;display:flex;align-items:center;justify-content:center;gap:7px;border:none;width:100%;cursor:pointer}
.btn.primary{background:linear-gradient(135deg,#9E1730,#6C0B1D);color:#fff;box-shadow:0 8px 16px rgba(108,11,29,.24)}
.btn.gold{background:linear-gradient(135deg,#E7B75A,#C4922C);color:#3A2606}
.btn.ghost{background:#fff;border:1.4px solid var(--line);color:var(--ink)}
.btn.sm{height:34px;font-size:11px;border-radius:11px}
.tabs{display:flex;gap:5px;background:#EFE9E0;border-radius:13px;padding:4px}
.tabs span{flex:1;text-align:center;font-size:11px;font-weight:800;padding:7px 0;border-radius:10px;color:#7A7168;cursor:pointer}
.tabs span.on{background:#fff;color:var(--burg);box-shadow:0 2px 6px rgba(0,0,0,.07)}
.navbar{height:64px;background:#fff;border-top:1px solid var(--line);display:flex;padding:5px 4px 3px;flex:none;box-shadow:0 -6px 18px rgba(23,18,15,.05)}
.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:9px;color:#9C9288;font-weight:700;text-decoration:none}
.nav-item .ic{width:32px;height:25px;display:grid;place-items:center;border-radius:9px}
.nav-item.active{color:var(--burg)}
.nav-item.active .ic{background:var(--gold-soft)}
.dot{width:15px;height:15px;border-radius:50%;display:grid;place-items:center;font-size:8px;font-weight:800}
.dot.p{background:var(--gold);color:#3A2606}
.dot.a{background:#F3DDE1;color:var(--burg)}
.dot.e{background:#E9E3DA;color:#7A7168}
.seg{display:flex;gap:3px;background:#F1EBE2;border-radius:9px;padding:2.5px;flex:none}
.seg b{font-size:9px;font-weight:800;padding:4px 7px;border-radius:7px;color:#8A7F76;white-space:nowrap;cursor:pointer}
.seg b.on{background:var(--gold);color:#3A2606}
.seg b.on.a{background:var(--burg);color:#fff}
.seg b.on.e{background:#DCD5CA;color:#4A423B}
.search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:9px 12px;color:var(--muted);font-size:11.5px;font-weight:600}
.search input{border:none;outline:none;font-family:Cairo;font-size:12px;font-weight:700;color:var(--ink);width:100%;background:transparent}
.stat3{display:flex;gap:8px}
.stat3 div{flex:1;background:#fff;border:1px solid var(--line);border-radius:13px;padding:8px 6px;text-align:center}
.stat3 b{display:block;font-family:Cairo;font-size:17px;font-weight:700}
.stat3 span{font-size:9.5px;color:var(--muted);font-weight:700}
.hair{height:1px;background:var(--line);margin:8px 0}
.footnote{font-size:9.5px;color:var(--muted);text-align:center;font-weight:600}
.empty{background:#fff;border:1px dashed var(--line);border-radius:14px;padding:22px 14px;text-align:center;color:var(--muted);font-size:11.5px;font-weight:700}
.savestate{font-size:9px;font-weight:800;color:var(--gold-deep);display:flex;align-items:center;gap:4px}
.savestate.err{color:var(--burg)}
.banner{background:#F6E0E4;color:#6C0B1D;border:1px solid #E9C2C9;border-radius:12px;padding:9px 12px;font-size:11px;font-weight:800;margin-bottom:8px;display:flex;gap:8px;align-items:center}
.field{margin-bottom:10px}
.field label{display:block;font-size:10.5px;font-weight:800;color:var(--muted);margin-bottom:4px}
.input,select.input,textarea.input{width:100%;height:40px;border:1.4px solid var(--line);border-radius:12px;background:#fff;font-family:Cairo;font-size:12.5px;font-weight:700;color:var(--ink);padding:0 11px;outline:none}
.input:focus{border-color:var(--gold)}
textarea.input{height:auto;padding:9px 11px;resize:none}
.sheet-bd{position:fixed;inset:0;background:rgba(23,18,15,.45);display:flex;align-items:flex-end;justify-content:center;z-index:50}
.sheet{width:100%;max-width:430px;background:var(--paper);border-radius:22px 22px 0 0;padding:14px 16px 18px;max-height:86vh;overflow-y:auto}
.sheet h3{font-family:Cairo;font-size:15px;margin:0 0 12px}
.sheet .grab{width:38px;height:4px;border-radius:9px;background:#DCD5CA;margin:0 auto 10px}
.toast{position:fixed;bottom:78px;left:50%;transform:translateX(-50%);background:#17120F;color:#fff;font-size:11.5px;font-weight:800;padding:9px 16px;border-radius:99px;z-index:60;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.fab{position:absolute;bottom:78px;left:16px;width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#9E1730,#6C0B1D);color:#fff;border:none;display:grid;place-items:center;box-shadow:0 10px 22px rgba(108,11,29,.35);cursor:pointer;z-index:20}
.kv{display:flex;justify-content:space-between;align-items:center;font-size:11.5px;font-weight:700;padding:5px 0}
.kv span{color:var(--muted);font-weight:700}
.kv b{font-weight:800}

button,input,select,textarea,option,a,b,span,small{font-family:Cairo,sans-serif}
input,select,textarea{font-size:16px}
.input,select.input,textarea.input{font-size:16px}
.pill.st-green{background:#DDF3E5;color:#127A40}
.pill.st-yellow{background:#FFF1C2;color:#8A6100}
.pill.st-red{background:#FBDADA;color:#B3201F}

.ico{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#FBEFD2,#E2C080);color:#6C0B1D;display:grid;place-items:center;flex:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 1px 3px rgba(108,11,29,.18)}
.awtile{display:flex;flex-direction:column;align-items:center;gap:4px;width:92px;text-align:center;cursor:pointer}
.awtile .ico{width:48px;height:48px;border-radius:15px}
.awtile b{font-size:11px;font-weight:800;line-height:1.3}
.awtile span{font-size:9px;color:var(--muted);font-weight:600}
.picks{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pick{border:1.4px solid var(--line);border-radius:14px;background:#fff;padding:10px 4px 8px;display:flex;flex-direction:column;align-items:center;gap:5px;color:#6C0B1D;cursor:pointer}
.pick span{font-size:11px;font-weight:700;color:var(--ink2)}
.pick.on{border-color:var(--gold);background:linear-gradient(145deg,#FDF6E4,#F3DFB0);box-shadow:0 0 0 2px rgba(217,166,60,.35)}
.rate{display:flex;gap:7px}
.rate b{flex:1;height:40px;border-radius:12px;border:1.4px solid var(--line);background:#fff;display:grid;place-items:center;font-size:14px;font-weight:800;color:var(--muted);cursor:pointer}
.rate b.on{background:linear-gradient(145deg,#E7C46E,#C99A2E);border-color:#B98B24;color:#4A2A00}
.dots{display:inline-flex;gap:4px;direction:ltr}
.dots i{width:9px;height:9px;border-radius:50%;background:#E8DFD2;display:block}
.dots i.on{background:linear-gradient(145deg,#E7C46E,#C99A2E)}
.pill.st-gold{background:var(--gold-soft);color:#8A6112}
textarea.input{font-family:Cairo,sans-serif;resize:none}
.empty.big{padding:22px 16px}
.empty .et{font-family:Cairo;font-weight:800;font-size:14px;color:var(--ink)}
.empty .es{font-size:11.5px;color:var(--muted);font-weight:700;margin-top:4px;line-height:1.7}
.setup{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:12px;box-shadow:0 6px 16px rgba(23,18,15,.05)}
.setup .sh{display:flex;align-items:center;margin-bottom:8px}
.setup .sh>div:first-child{flex:1}
.setup .st1{font-family:Cairo;font-weight:900;font-size:17px}
.setup .st2{font-size:11px;color:var(--muted);font-weight:700;margin-top:2px}
.setup .stn{font-family:Cairo;font-weight:900;font-size:13px;color:#8A6112;background:#F6E9CB;border-radius:20px;padding:4px 10px}
.stp{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line)}
.stp .stc{width:28px;height:28px;border-radius:50%;background:#F1EBE2;color:#3D3530;display:grid;place-items:center;font-family:Cairo;font-weight:800;font-size:12px;flex:none}
.stp.done .stc{background:#DDF3E5;color:#127A40}
.stp.done .t{color:var(--muted);text-decoration:line-through}

.avatar.ph{background-size:cover;background-position:center;background-repeat:no-repeat;color:transparent}
.photorow{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.cropbox{display:flex;justify-content:center;margin:4px 0}
.cropbox canvas{width:260px;height:260px;border-radius:16px;touch-action:none;background:#17120F;cursor:grab}
