*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;user-select:none}
body{background:#050505;color:#fff;font-family:'Inter',system-ui,sans-serif;display:flex;justify-content:center;min-height:100vh}
.app{width:390px;height:100vh;max-height:844px;background:#050505;position:relative;display:flex;flex-direction:column;overflow:hidden;border-left:1px solid rgba(255,255,255,.06);border-right:1px solid rgba(255,255,255,.06)}

.feed{flex:1;overflow-y:auto;padding:8px 20px 100px 20px;scrollbar-width:none;transition:opacity 200ms ease-out}
.feed::-webkit-scrollbar{display:none}
.feed.dimmed{opacity:0.3;pointer-events:none}

.card{background:#0D0D0D;border-radius:6px;display:flex;overflow:hidden;cursor:pointer;margin-bottom:8px;transition:background 150ms}
.card:active{background:#111}
.card-indicator{width:3px;flex-shrink:0}
.color-skud{background-color:#10B981}.color-complex{background-color:rgba(255,255,255,0.3)}.color-sks{background-color:#A855F7}.color-video{background-color:#14B8A6}.color-ops{background-color:#D97706}.color-soue{background-color:#EF4444}.color-ps{background-color:#F59E0B}
.card-content{flex:1;padding:8px 10px;display:flex;flex-direction:column;gap:6px}
.card-row-top{display:flex;justify-content:space-between;align-items:flex-start}
.card-title{font-size:15px;font-weight:600;line-height:1.3;flex:1;padding-right:8px}
.match-score{font-size:13px;font-weight:600;color:#10B981;background:rgba(16,185,129,0.1);padding:2px 6px;border-radius:4px;flex-shrink:0}
.pills-wrapper{position:relative;height:22px;overflow:hidden;width:fit-content;max-width:100%}
.pills-container{display:flex;gap:4px;flex-wrap:wrap}
.pills-complex{position:absolute;top:0;left:0;display:none}
.system-pill{font-size:12px;font-weight:500;padding:2px 6px;border-radius:4px;width:fit-content;white-space:nowrap;cursor:pointer}
.pill-skud{color:#10B981;background:rgba(16,185,129,0.08)}.pill-video{color:#14B8A6;background:rgba(20,184,166,0.08)}.pill-sks{color:#A855F7;background:rgba(168,85,247,0.08)}.pill-ops{color:#D97706;background:rgba(217,119,6,0.08)}.pill-soue{color:#EF4444;background:rgba(239,68,68,0.08)}.pill-ps{color:#F59E0B;background:rgba(245,158,11,0.08)}.pill-complex{color:rgba(255,255,255,0.6);background:rgba(255,255,255,0.06)}
.pill-active{color:#fff;background:rgba(255,255,255,0.2)}.pill-inactive{color:rgba(255,255,255,0.4);background:rgba(255,255,255,0.06)}
.card-meta{font-size:13px;font-weight:400;color:rgba(255,255,255,0.5);display:flex;align-items:center;gap:4px}
.meta-dot{width:2px;height:2px;background:rgba(255,255,255,0.3);border-radius:50%}
.card-budget{font-size:14px;font-weight:500;color:rgba(255,255,255,0.9);margin-top:-2px}

.bottom-nav{position:absolute;bottom:0;left:0;right:0;height:80px;background:rgba(5,5,5,0.85);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid rgba(255,255,255,.06);display:flex;justify-content:space-around;align-items:flex-start;padding-top:12px;z-index:60}
.nav-item{display:flex;flex-direction:column;align-items:center;gap:4px;color:rgba(255,255,255,0.4);cursor:pointer;font-size:10px;font-weight:500;width:20%;text-align:center}
.nav-item.active{color:#fff}
.nav-center-action{width:20%;display:flex;justify-content:center;margin-top:-24px}
.nav-create-btn{width:52px;height:52px;background:#fff;color:#000;border:none;border-radius:50%;font-size:28px;font-weight:400;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,0.4);transition:transform 150ms ease-out, background 150ms}
.nav-create-btn:active{transform:scale(0.95);background:#e5e5e5}

.form-input{width:100%;height:44px;background:#0D0D0D;border:1px solid rgba(255,255,255,.06);border-radius:6px;padding:0 10px;color:#fff;font-size:15px;outline:none}
.form-input:focus{border-color:rgba(255,255,255,.2)}
.form-input::placeholder{color:rgba(255,255,255,0.2)}
.btn-submit{width:100%;height:48px;background:#fff;color:#000;border:none;border-radius:6px;font-size:15px;font-weight:600;cursor:pointer;transition:background 150ms}
.btn-submit:active{background:#e5e5e5}
.btn-submit.muted{background:rgba(255,255,255,0.15);color:rgba(255,255,255,0.5);cursor:default}

.create-view{opacity:0;pointer-events:none;position:absolute;top:0;left:0;right:0;bottom:80px;overflow-y:auto;padding-bottom:20px;transition:opacity 200ms ease-out;z-index:10}
.create-view.active{opacity:1;pointer-events:auto}

.sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,0.5);z-index:30;opacity:0;pointer-events:none;transition:opacity 200ms ease-out}
.sheet-backdrop.active{opacity:1;pointer-events:auto}
.bottom-sheet{position:absolute;bottom:0;left:0;right:0;background:#0D0D0D;border-radius:6px 6px 0 0;z-index:40;transform:translateY(100%);transition:transform 250ms ease-out;max-height:85vh;display:flex;flex-direction:column;pointer-events:none}
.bottom-sheet.active{transform:translateY(0);pointer-events:auto}
.sheet-handle{width:36px;height:4px;background:rgba(255,255,255,0.2);border-radius:2px;margin:10px auto 0;flex-shrink:0}
.sheet-content{flex:1;overflow-y:auto;padding:8px 20px 140px 20px;scrollbar-width:none}
.sheet-content::-webkit-scrollbar{display:none}
.sheet-gradient-mask{position:absolute;bottom:144px;left:0;right:0;height:50px;background:linear-gradient(to bottom, rgba(13,13,13,0), rgba(13,13,13,1));z-index:50;pointer-events:none;opacity:0;transition:opacity 200ms}
.bottom-sheet.active .sheet-gradient-mask{opacity:1}
.sheet-action-panel{position:absolute;bottom:80px;left:0;right:0;padding:0 20px 16px 20px;background:#0D0D0D;z-index:50;pointer-events:none}
.sheet-action-panel .btn-submit{pointer-events:auto}
.sheet-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}
.sheet-title{font-size:20px;font-weight:600;flex:1;padding-right:12px}
.sheet-match{font-size:24px;font-weight:600;color:#10B981;flex-shrink:0}
.sheet-budget{font-size:16px;font-weight:600;color:rgba(255,255,255,0.5);margin-top:4px;margin-bottom:16px}
.sheet-section-label{font-size:12px;color:rgba(255,255,255,0.4);text-transform:uppercase;margin-bottom:8px}
.sheet-evidence{margin-bottom:12px}
.evidence-row{display:flex;align-items:flex-start;gap:8px;margin-bottom:8px}
.evidence-icon{font-size:16px;margin-top:2px;flex-shrink:0}
.evidence-icon.hit{color:#10B981}
.evidence-icon.miss{color:rgba(255,255,255,0.25)}
.evidence-text{font-size:14px;color:rgba(255,255,255,0.7);line-height:1.4}
.sheet-desc{margin-bottom:12px}
.sheet-desc p{font-size:14px;color:rgba(255,255,255,0.7);line-height:1.5}

.profile-view{display:none;position:absolute;top:0;left:0;right:0;bottom:80px;overflow-y:auto;padding:0 0 20px 0;background:#050505;transition:opacity 200ms ease-out;z-index:5}

.onboarding{position:absolute;inset:0;background:#050505;z-index:70;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px;transition:opacity 200ms ease-out}
.onboarding.hidden{opacity:0;pointer-events:none}
.onboarding-title{font-size:24px;font-weight:600;margin-bottom:8px;text-align:center}
.onboarding-sub{font-size:15px;color:rgba(255,255,255,0.5);margin-bottom:32px;text-align:center}
.onboarding-options{display:flex;flex-direction:column;gap:12px;width:100%;max-width:320px;align-items:center}
.obtn{width:100%;height:56px;background:#0D0D0D;border:1px solid rgba(255,255,255,0.1);border-radius:6px;color:#fff;font-size:16px;font-weight:500;cursor:pointer;transition:background 150ms, border-color 150ms}
.obtn:hover{border-color:rgba(255,255,255,0.2)}
.obtn:active{background:#111}
.obtn-sub{font-size:13px;color:rgba(255,255,255,0.4);margin-bottom:16px;text-align:center}

@keyframes skeleton-pulse { 0% { opacity: 0.4; } 50% { opacity: 0.7; } 100% { opacity: 0.4; } }
.skeleton-card { background: #111; border-radius: 6px; height: 100px; margin-bottom: 8px; display: flex; overflow: hidden; animation: skeleton-pulse 1.5s ease-in-out infinite; }
.skeleton-indicator { width: 3px; background: #1a1a1a; }
.skeleton-content { flex: 1; padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { height: 12px; background: #1a1a1a; border-radius: 4px; width: 80%; }
.skeleton-line-short { height: 10px; background: #1a1a1a; border-radius: 4px; width: 40%; }
.empty-state { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-state-text { font-size: 15px; color: rgba(255,255,255,0.4); line-height: 1.4; }
