*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f4f7fb;color:#172033}a{text-decoration:none;color:#2563eb}.landing{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top,#dbeafe,#f8fafc 55%)}.hero{max-width:980px;padding:45px 24px;text-align:center}.brand-mark{font-size:52px}.hero h1{font-size:48px;margin:8px 0}.hero p{font-size:20px;color:#64748b}.feature-grid,.tool-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:32px 0}.feature-grid div,.tool{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:22px;box-shadow:0 8px 30px #0f172a0a}.feature-grid b,.feature-grid small{display:block}.feature-grid small,.tool small{color:#64748b;margin-top:8px}.btn{display:inline-block;border:0;border-radius:12px;padding:12px 18px;cursor:pointer;background:#e2e8f0;color:#172033}.btn.primary{background:#2563eb;color:#fff}.auth{min-height:100vh;display:grid;place-items:center;background:#eef5ff}.auth-card{width:min(430px,92vw);background:white;padding:34px;border-radius:22px;box-shadow:0 20px 60px #0f172a18}.auth-card h1{margin:5px 0 8px}.auth-card form{display:grid;gap:8px;margin-top:22px}.auth-card input,.poster-input,textarea,select{font:inherit;border:1px solid #cbd5e1;border-radius:12px;padding:12px}.auth-card input{margin-bottom:8px}.alert{background:#fee2e2;color:#991b1b;border-radius:10px;padding:12px;margin:12px 0}.muted{color:#64748b}.app{min-height:100vh}.topbar{height:68px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;padding:0 4%;position:sticky;top:0;z-index:5}.logo{font-size:18px}.top-actions{display:flex;gap:16px;align-items:center}.credit{background:#eff6ff;color:#1d4ed8;padding:8px 12px;border-radius:999px}.dashboard{max-width:1180px;margin:auto;padding:32px 20px}.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.welcome h1{margin-bottom:6px}.plan{background:#fff;border:1px solid #e2e8f0;padding:12px 16px;border-radius:14px}.tool-grid{grid-template-columns:repeat(3,1fr);margin:0 0 28px}.tool{text-align:left;border:0;cursor:pointer;display:grid;gap:7px}.tool span{font-size:28px}.chat-card,.poster-card,.admin-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;overflow:hidden;margin-bottom:24px}.poster-card{display:none;padding-bottom:20px}.chat-head{display:flex;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #e2e8f0}.chat-head button{border:0;background:none;cursor:pointer}.messages{height:480px;overflow:auto;padding:20px;background:#f8fafc}.msg{max-width:82%;padding:13px 16px;border-radius:16px;margin-bottom:12px;white-space:pre-wrap;line-height:1.55}.msg.ai{background:#fff;border:1px solid #e2e8f0}.msg.user{background:#2563eb;color:#fff;margin-left:auto}.composer{display:flex;gap:10px;padding:14px;border-top:1px solid #e2e8f0}.composer textarea{flex:1;min-height:60px;resize:vertical}.composer button{width:58px;border:0;border-radius:14px;background:#2563eb;color:white;font-size:24px;cursor:pointer}.poster-input{display:block;width:calc(100% - 36px);margin:18px;min-height:130px}.poster-options{display:flex;gap:10px;padding:0 18px}.poster-image{display:block;max-width:600px;width:90%;margin:20px auto;border-radius:16px;box-shadow:0 10px 40px #0002}.loading{text-align:center;padding:30px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0 28px}.stat-grid div{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:20px}.stat-grid b,.stat-grid small{display:block}.stat-grid b{font-size:30px}.stat-grid small{color:#64748b;margin-top:5px}.admin-card{padding:20px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:11px;border-bottom:1px solid #e2e8f0;white-space:nowrap}th{background:#f8fafc}@media(max-width:800px){.feature-grid,.tool-grid{grid-template-columns:1fr 1fr}.stat-grid{grid-template-columns:1fr 1fr}.welcome{display:block}.plan{margin-top:14px;display:inline-block}.topbar{padding:0 15px}.top-actions{gap:8px}.logo{font-size:14px}}@media(max-width:520px){.feature-grid,.tool-grid{grid-template-columns:1fr}.hero h1{font-size:36px}.messages{height:420px}.msg{max-width:92%}}
