
:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#0f172a;background:#f7fafc}
*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#f6fbff,#f8fafc);min-height:100vh}.hidden{display:none!important}
.screen{max-width:820px;margin:auto;min-height:100vh;padding:18px}.login-screen{display:grid;place-items:center}
.login-card{width:min(100%,440px);background:#fff;border:1px solid #e2e8f0;border-radius:28px;padding:32px;box-shadow:0 20px 60px rgba(15,23,42,.08);text-align:center}
.app-icon{width:92px;height:92px;border-radius:24px}h1{margin:16px 0 4px}input,button,textarea{font:inherit}
input,textarea{width:100%;border:1px solid #dbe3ec;border-radius:14px;padding:14px 16px;background:#fff;font-size:16px}
button{border:0;border-radius:14px;padding:13px 16px;font-weight:800;cursor:pointer}.primary{background:linear-gradient(135deg,#0ea5a4,#059669);color:#fff}.primary.big{width:100%;min-height:62px;font-size:20px}
.ghost{background:#fff;border:1px solid #dbe3ec;color:#334155}.danger{color:#9a3412}.muted{color:#64748b}.center{text-align:center}.message{min-height:24px;color:#b91c1c}
.app-header{background:#fff;border-bottom:1px solid #e2e8f0;padding:18px;border-radius:0 0 22px 22px;display:flex;gap:16px;justify-content:space-between;align-items:flex-start}.company{display:grid;gap:4px}.company span{color:#64748b}.header-actions{display:flex;gap:8px}.notif-button{position:relative}.badge{position:absolute;right:-6px;top:-6px;background:#dc2626;color:#fff;border:2px solid #fff;min-width:22px;height:22px;border-radius:999px;padding:0 5px;display:grid;place-items:center;font-size:11px}
.motivation,.today-card,.history-card,.stats{margin-top:16px}.motivation{background:#fffaf0;border:1px solid #fed7aa;border-radius:24px;padding:18px;display:grid;grid-template-columns:54px 1fr;gap:12px;align-items:center}.star{font-size:46px;color:#f59e0b}.progress-track{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:12px 0 8px}.progress-track>div{height:100%;width:0;background:linear-gradient(90deg,#f59e0b,#10b981)}
.today-card,.history-card{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:22px}.today-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.today-top h2{font-size:32px;margin:6px 0 18px}.today-top>span{background:#eff6ff;color:#2563eb;border-radius:999px;padding:8px 12px}
.option{display:flex;gap:12px;align-items:center;font-size:18px;padding:14px 0;border-top:1px solid #f1f5f9}.option input{width:24px;height:24px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stats>div{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:16px}.stats small{display:block;color:#64748b}.stats b{font-size:30px}
.history-row{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:12px;padding:14px 0;border-top:1px solid #e2e8f0}.history-row:first-child{border-top:0}.pill{background:#dcfce7;color:#166534;border-radius:999px;padding:8px 10px;font-weight:800;white-space:nowrap}.pill.pending{background:#fef3c7;color:#92400e}.pill.gray{background:#f1f5f9;color:#475569}
dialog{width:min(92vw,540px);border:0;border-radius:26px;padding:24px;box-shadow:0 30px 80px rgba(15,23,42,.25)}dialog::backdrop{background:rgba(15,23,42,.48)}.close{position:absolute;right:12px;top:12px;background:#f1f5f9;width:42px;height:42px;border-radius:50%}.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:#0f172a;color:#fff;border-radius:14px;padding:12px 16px;z-index:20;max-width:min(90vw,520px)}
@media(max-width:680px){.screen{padding:0 14px 24px}.app-header{margin:0 -14px;display:block}.header-actions{margin-top:14px;display:grid;grid-template-columns:1fr 1fr}.motivation{grid-template-columns:44px 1fr;padding:15px}.star{font-size:38px}.today-card,.history-card{padding:18px}.today-top h2{font-size:28px}.stats{gap:8px}.stats>div{padding:13px}.stats b{font-size:27px}.history-row{grid-template-columns:55px minmax(0,1fr) auto;gap:8px}}
