:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background:#f4f7fb;font-synthesis:none;text-rendering:optimizeLegibility;--ink: #0b1220;--muted: #64748b;--line: #dbe3ec;--panel: rgba(255,255,255,.92);--accent: #c8102e;--accent-soft: #fff1f2}*{box-sizing:border-box}html{background:#f4f7fb;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 50% -120px,rgba(200,16,46,.08),transparent 340px),linear-gradient(180deg,#e8eef5 0,#f8fafc 240px 100%)}button,input,textarea,select{font:inherit}input,select,textarea{font-size:16px}button{-webkit-tap-highlight-color:transparent}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom))}.login-card{width:min(430px,100%);padding:30px;border:1px solid rgba(203,213,225,.85);border-radius:28px;background:#fffffff5;box-shadow:0 24px 70px #0f172a24;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.login-icon{display:grid;place-items:center;width:54px;height:54px;margin-bottom:22px;border-radius:18px;color:#fff;background:linear-gradient(145deg,#111827,#0b1220);box-shadow:inset 0 0 0 1px #ffffff14,0 10px 24px #0f172a29}.login-card h1{margin-bottom:10px}.login-copy{margin-bottom:24px;color:#64748b;line-height:1.5}.login-note{margin:18px 0 0;color:#94a3b8;font-size:.78rem;line-height:1.5;text-align:center}.login-form{display:grid;gap:16px}.login-form label{display:grid;gap:7px;color:#334155;font-size:.86rem;font-weight:750}.login-form input{width:100%;min-height:48px;padding:0 14px;border:1px solid #cbd5e1;border-radius:14px;outline:none;color:#0f172a;background:#fff}.login-form input:focus{border-color:#94a3b8;box-shadow:0 0 0 4px #94a3b824}.form-error{margin:-4px 0 0;color:#b91c1c;font-size:.82rem}.primary-button{min-height:50px;border:0;border-radius:15px;color:#fff;background:linear-gradient(135deg,#111827,#0b1220);font-weight:800;cursor:pointer;box-shadow:0 10px 22px #0f172a1f}.primary-button:disabled{opacity:.65;cursor:wait}.app-shell{width:min(920px,100%);margin:0 auto;padding:calc(20px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom))}.visually-hidden-file{position:fixed;width:1px;height:1px;opacity:0;pointer-events:none}.user-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;padding:0 4px}.user-bar>div{display:flex;flex-direction:column;gap:2px;min-width:0}.user-bar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.92rem}.user-bar span{color:#64748b;font-size:.76rem}.logout-button{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 13px;border:1px solid #dbe3ec;border-radius:13px;color:#334155;background:#ffffffdb;font-weight:700;cursor:pointer;box-shadow:0 5px 16px #0f172a0d}.hero-card{position:relative;overflow:hidden;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:28px;border-radius:30px;color:#fff;background:linear-gradient(145deg,#111827,#0b1220 68%,#111827);box-shadow:0 22px 48px #0f172a33}.hero-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,#ef233c,#a80d25)}.hero-card:after{content:"";position:absolute;width:220px;height:220px;right:-90px;top:-110px;border-radius:999px;background:radial-gradient(circle,#ffffff1a,#fff0 70%);pointer-events:none}.eyebrow{margin:0 0 8px;font-size:.72rem;font-weight:850;letter-spacing:.16em;color:#64748b}.hero-card .eyebrow{color:#aab7c8}h1,h2,p{margin-top:0}h1{margin-bottom:8px;font-size:clamp(2rem,7vw,3.2rem);line-height:1;letter-spacing:-.045em}h2{margin-bottom:0;font-size:1.25rem;letter-spacing:-.025em}.hero-copy{max-width:560px;margin-bottom:0;color:#cbd5e1;line-height:1.5}.app-badge{position:relative;z-index:1;display:grid;place-items:center;min-width:52px;height:52px;border:1px solid rgba(255,255,255,.16);border-radius:17px;background:#ffffff14;box-shadow:inset 0 1px #ffffff0f;font-weight:850}.summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.summary-card{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:7px;min-height:145px;padding:21px;border:1px solid rgba(219,227,236,.95);border-radius:23px;background:#ffffffeb;box-shadow:0 10px 28px #0f172a0e;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.summary-card:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,transparent,rgba(200,16,46,.18),transparent)}.summary-card.primary{border-color:#cbd5e1}.summary-card span{color:#64748b;font-weight:750;font-size:.9rem}.summary-card strong{margin-top:auto;font-size:2rem;letter-spacing:-.045em;color:#0b1220}.summary-card small{color:#94a3b8}.section-block{margin-top:32px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.action-card{display:flex;flex-direction:column;align-items:flex-start;min-height:138px;padding:16px;text-align:left;border:1px solid rgba(219,227,236,.95);border-radius:21px;color:#0b1220;background:#fffffff2;box-shadow:0 8px 22px #0f172a0b}.action-card:disabled{opacity:1;cursor:default}.action-card-active{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}.action-card-active:hover{transform:translateY(-2px);border-color:#b8c4d2;box-shadow:0 13px 30px #0f172a16}.action-card-active:active{transform:translateY(0) scale(.985)}.action-card>span:nth-child(2){margin-top:auto;font-weight:850;letter-spacing:-.01em}.action-card small{margin-top:4px;color:#94a3b8;line-height:1.35}.icon-wrap{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#f8fafc,#eef2f7);box-shadow:inset 0 0 0 1px #cbd5e147}.action-card-active:hover .icon-wrap{background:#fff5f6;box-shadow:inset 0 0 0 1px #c8102e1f}.expense-panel{margin-top:22px;padding:22px;border:1px solid #cbd5e1;border-radius:24px;background:#fffffff5;box-shadow:0 14px 34px #0f172a14}.expense-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.icon-button{display:grid;place-items:center;width:40px;height:40px;border:1px solid #e2e8f0;border-radius:12px;color:#475569;background:#f8fafc;cursor:pointer}.expense-form{display:grid;gap:16px}.expense-form label{display:grid;gap:7px;color:#334155;font-size:.86rem;font-weight:750}.expense-form input,.expense-form select,.expense-form textarea{width:100%;min-height:48px;padding:11px 13px;border:1px solid #cbd5e1;border-radius:13px;outline:none;color:#0f172a;background:#fff}.expense-form textarea{resize:vertical;min-height:88px}.expense-form input:focus,.expense-form select:focus,.expense-form textarea:focus{border-color:#94a3b8;box-shadow:0 0 0 4px #94a3b824}.form-grid{display:grid;gap:14px}.form-grid.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.amount-row{grid-template-columns:1.3fr .7fr 1fr}.conversion-preview{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-radius:13px;color:#475569;background:#f1f5f9;font-size:.9rem}.conversion-preview strong{color:#0f172a;font-size:1rem}.receipt-box{padding:15px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc}.receipt-box-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.receipt-box-header>div{display:flex;flex-direction:column;gap:3px}.receipt-box-header strong{color:#0f172a;font-size:.9rem}.receipt-box-header span{color:#64748b;font-size:.78rem}.receipt-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.receipt-button:disabled{opacity:.6;cursor:wait}.receipt-preview-row{display:grid;grid-template-columns:84px 1fr;gap:13px;align-items:center;margin-top:14px;padding-top:14px;border-top:1px solid #e2e8f0}.receipt-preview-row img{width:84px;height:84px;object-fit:cover;border-radius:12px;background:#e2e8f0}.receipt-preview-row>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}.receipt-preview-row strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem}.receipt-preview-row span{color:#64748b;font-size:.76rem}.text-button{padding:0;border:0;color:#b91c1c;background:transparent;font-size:.76rem;font-weight:750;cursor:pointer}.expense-message{margin:0}.form-success{display:flex;align-items:center;gap:7px;color:#0f766e;font-size:.86rem;font-weight:700}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:4px}.secondary-button{min-height:48px;padding:0 18px;border:1px solid #cbd5e1;border-radius:14px;color:#334155;background:#fff;font-weight:750;cursor:pointer}.save-expense-button{padding:0 20px}.status-list{overflow:hidden;border:1px solid #e2e8f0;border-radius:22px;background:#fffffff0;box-shadow:0 8px 24px #0f172a0a}.status-row{display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #eef2f7;color:#64748b}.status-row:last-child{border-bottom:0}.status-row div{display:flex;flex-direction:column;gap:3px}.status-row strong{color:#0f172a}.status-row span{font-size:.86rem}.status-row b{font-size:.72rem;letter-spacing:.05em;color:#94a3b8}.status-row.done>svg,.status-row.done>b{color:#0f766e}footer{padding:30px 2px 4px;color:#94a3b8;font-size:.78rem;text-align:center}@media(max-width:720px){.app-shell{padding-left:14px;padding-right:14px}.hero-card{padding:24px 22px;border-radius:26px}.summary-grid,.action-grid{grid-template-columns:1fr 1fr}.form-grid.two-columns,.amount-row{grid-template-columns:1fr}.expense-panel{padding:18px;border-radius:20px}.receipt-box-header{align-items:stretch;flex-direction:column}.receipt-button{width:100%}}@media(max-width:430px){.app-shell{padding-left:12px;padding-right:12px}.login-card{padding:24px 18px;border-radius:24px}.user-bar{margin-bottom:14px}.hero-card{padding:23px 20px 24px;border-radius:26px}.hero-card:before{width:4px}.hero-copy{font-size:.96rem}.summary-grid{gap:10px}.summary-card{min-height:126px;padding:16px;border-radius:20px}.summary-card span{font-size:.82rem}.summary-card strong{font-size:1.65rem}.section-block{margin-top:28px}.action-grid{gap:10px}.action-card{min-height:132px;padding:14px;border-radius:20px}.action-card>span:nth-child(2){font-size:.98rem}.action-card small{font-size:.76rem}.icon-wrap{width:40px;height:40px;border-radius:13px}.status-row{padding:14px}.status-row b{font-size:.66rem}.logout-button span{display:none}.form-actions{display:grid;grid-template-columns:1fr 1fr}.secondary-button,.save-expense-button{width:100%}.receipt-preview-row{grid-template-columns:68px 1fr}.receipt-preview-row img{width:68px;height:68px}}html,body,#root,.app-shell,.auth-shell,.user-bar,.hero-card,.summary-grid,.summary-card,.section-block,.section-heading,.action-grid,.action-card,.icon-wrap,.app-badge,.logout-button,.primary-button,.secondary-button,.icon-button,.backup-panel,.archive-panel,.export-panel,.storage-usage-card,.backup-retention-banner{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}input,textarea,select,[contenteditable=true],.receipt-preview-row strong,.archive-detail strong,.archive-main strong,.archive-main span,.archive-date,.archive-amount{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
