:root {
    --bg:#f4f7fb;
    --card:#ffffff;
    --text:#0f172a;
    --muted:#64748b;
    --primary:#0f172a;
    --accent:#f97316;
    --success:#16a34a;
    --danger:#dc2626;
    --border:#e2e8f0;
    --shadow:0 16px 40px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
html,body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
.app-shell{max-width:520px;margin:0 auto;min-height:100vh;background:linear-gradient(180deg,#fff 0,#f6f8fc 210px);position:relative;padding-bottom:84px}
.topbar{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(226,232,240,.7)}
.brand{display:flex;align-items:center;gap:10px}
.brand-mark{width:38px;height:38px;border-radius:13px;background:var(--primary);color:#fff;display:grid;place-items:center;font-weight:900;font-size:22px;box-shadow:var(--shadow)}
.brand small{display:block;color:var(--muted);font-size:11px;font-weight:500;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.avatar{width:38px;height:38px;border-radius:50%;background:#fff3e8;color:var(--accent);display:grid;place-items:center;font-weight:800;border:1px solid #fed7aa}
.content{padding:16px}
.hero{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;border-radius:28px;padding:24px;box-shadow:var(--shadow);overflow:hidden;position:relative}
.hero:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;background:rgba(249,115,22,.25);right:-55px;top:-45px}
.hero h1{margin:0 0 8px;font-size:29px;line-height:1.05;letter-spacing:-.8px;position:relative;z-index:1}
.hero p{margin:0 0 18px;color:#cbd5e1;position:relative;z-index:1}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.card{background:var(--card);border:1px solid var(--border);border-radius:22px;padding:16px;box-shadow:0 10px 25px rgba(15,23,42,.05)}
.card h2,.card h3{margin:0 0 8px;font-size:18px}
.card p{color:var(--muted);margin:0 0 10px;line-height:1.45}
.stat{display:flex;flex-direction:column;gap:3px}
.stat strong{font-size:25px}
.stat span{font-size:12px;color:var(--muted)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:16px;padding:13px 16px;background:var(--primary);color:#fff;font-weight:800;min-height:48px;cursor:pointer;width:auto}
.btn.full{width:100%}
.btn.accent{background:var(--accent)}
.btn.light{background:#fff;color:var(--primary);border:1px solid var(--border)}
.btn.success{background:var(--success)}
.btn.danger{background:var(--danger)}
.btn.small{min-height:38px;padding:9px 12px;border-radius:12px;font-size:13px}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.form{display:grid;gap:12px}
.field label{display:block;font-size:13px;font-weight:800;margin-bottom:7px;color:#334155}
input,select,textarea{width:100%;border:1px solid var(--border);border-radius:16px;padding:13px 14px;font:inherit;background:#fff;color:var(--text);outline:none}
textarea{min-height:110px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(249,115,22,.12)}
.list{display:grid;gap:12px;margin-top:12px}
.item{background:#fff;border:1px solid var(--border);border-radius:20px;padding:14px;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.item-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:7px}
.item h3{margin:0;font-size:17px}
.meta{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;color:var(--muted);font-size:13px}
.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:800;white-space:nowrap}
.badge.orange{background:#ffedd5;color:#9a3412}
.badge.green{background:#dcfce7;color:#166534}
.badge.gray{background:#f1f5f9;color:#475569}
.alert{padding:12px 14px;border-radius:16px;margin-bottom:12px;font-weight:700}
.alert.success{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}
.alert.error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.auth-card{margin-top:35px;background:#fff;border-radius:28px;padding:20px;border:1px solid var(--border);box-shadow:var(--shadow)}
.logo-big{width:74px;height:74px;border-radius:24px;background:var(--primary);color:#fff;display:grid;place-items:center;font-weight:900;font-size:42px;margin:0 auto 14px}
.center{text-align:center}.muted{color:var(--muted)}.spacer{height:14px}.section-title{font-size:20px;margin:18px 0 10px}
.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:520px;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(4,1fr);padding:7px 10px calc(7px + env(safe-area-inset-bottom));z-index:20}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;border-radius:14px;color:var(--muted);font-size:18px}
.bottom-nav a span{font-size:11px;font-weight:800}.bottom-nav a.active{background:#fff3e8;color:var(--accent)}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:18px;overflow:hidden}.table th,.table td{padding:11px;border-bottom:1px solid var(--border);text-align:left;font-size:13px}.table th{background:#f8fafc;color:#475569}
@media(min-width:700px){body{background:#e2e8f0}.app-shell{border-left:1px solid var(--border);border-right:1px solid var(--border)}}
