*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html{-webkit-text-size-adjust:100%}body{background:#0e0f13;color:#e8e9ed;font-family:system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.45}.app{min-height:100vh}.topbar{position:sticky;top:0;z-index:30;display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #23252e;background:#0e0f13;gap:12px;flex-wrap:wrap}.logo{font-size:19px;font-weight:700;color:#10b981;cursor:pointer;letter-spacing:.5px}.topbar .logo{flex:1}.user{font-size:13px;color:#9a9cab;white-space:nowrap;display:flex;align-items:center;gap:6px}main{padding:16px 16px 40px;max-width:720px;margin:0 auto}@media (min-width: 640px){.topbar{padding:14px 22px}.logo{font-size:22px}main{padding:24px 24px 48px}}h1{font-size:21px;line-height:1.25;font-weight:700;word-break:break-word}h2{font-size:17px;line-height:1.3;font-weight:700;margin:22px 0 10px}h2:first-child{margin-top:0}@media (min-width: 640px){h1{font-size:25px}h2{font-size:19px}}.center{display:flex;flex-direction:column;align-items:center;padding-top:clamp(24px,10vh,96px);gap:18px}.card{display:flex;flex-direction:column;gap:12px;background:#171821;border:1px solid #23252e;border-radius:12px;padding:18px;width:100%}.login-card{max-width:380px}@media (min-width: 640px){.card{padding:24px}}form{display:flex;flex-direction:column;gap:10px}label{display:block;font-size:13px;color:#9a9cab}input,select,textarea{background:#0e0f13;border:1px solid #2c2e3a;border-radius:8px;color:#e8e9ed;font-size:16px;padding:12px 13px;font-family:inherit;width:100%}input:focus,select:focus,textarea:focus{outline:none;border-color:#10b981}button{background:#10b981;border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:15px;font-weight:600;padding:12px 16px;min-height:44px}button:disabled{opacity:.5;cursor:default}button.link{background:none;color:#10b981;font-weight:500;font-size:13px;padding:10px 8px;min-height:auto}button.link.danger{color:#ff6b6b;background:none}.hint{color:#9a9cab;font-size:13px}.hint a{color:#10b981}.error{color:#ff6b6b;font-size:14px}.badge{display:inline-block;border-radius:999px;font-size:11px;font-weight:600;padding:2px 9px;background:#10b98126;color:#10b981}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:flex-end;justify-content:center;z-index:50}@media (min-width: 640px){.modal-overlay{align-items:center}}.modal{background:#171821;border:1px solid #23252e;border-radius:16px 16px 0 0;padding:18px;width:100%;max-width:480px;max-height:85vh;overflow-y:auto;display:flex;flex-direction:column;gap:12px}@media (min-width: 640px){.modal{border-radius:16px}}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h2{margin:0}label.checkbox{display:flex;align-items:center;gap:8px}label.checkbox input{width:auto}.page-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 12px;margin:2px 0 16px}.page-head h1,.page-head h2{margin:0;flex:1 1 auto;min-width:0}.head-actions{display:flex;gap:8px;flex-wrap:wrap}a.button{background:#10b981;border-radius:8px;color:#fff;font-size:14px;font-weight:600;padding:10px 14px;min-height:44px;display:inline-flex;align-items:center;text-decoration:none}a.button.secondary,button.secondary{background:#171821;border:1px solid #2c2e3a;color:#e8e9ed}button.cta{display:block;width:100%;font-size:17px;padding:14px;margin:6px 0 18px}button.danger{background:#b03030}.back-link{display:inline-block;color:#9a9cab;text-decoration:none;font-size:14px;margin-bottom:10px;padding:4px 0}.back-link:hover{color:#10b981}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:12px;margin-bottom:20px}.card-link{text-decoration:none;color:inherit;display:block}.card-link:hover,.card-link:active{border-color:#10b981}.card-title{font-size:16px;font-weight:600;margin-bottom:4px;word-break:break-word}.card-meta{display:flex;gap:10px;align-items:center;margin-top:10px;color:#9aa0ae;font-size:13px}.ptype-icon{margin-right:4px}.stat-big{font-size:clamp(24px,7vw,30px);font-weight:700;margin:6px 0 2px}.stat-unit{font-size:15px;font-weight:400;color:#9aa0ae}.stat-cost{font-size:18px;font-weight:600;margin-top:8px;color:#10b981}.warning{color:#e2b93b;font-size:13px;margin-top:6px}.delta{font-weight:400;font-size:13px;color:#9aa0ae}.delta.warning{color:#e2b93b}.list{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;background:#171821;border:1px solid #2c2e3a;border-radius:10px;padding:12px 14px;color:inherit;text-decoration:none}a.row:hover,a.row:active{border-color:#10b981}.row-icon{font-size:20px;flex-shrink:0}.row-main{flex:1 1 160px;display:flex;flex-direction:column;gap:2px;min-width:0}.row-title{font-weight:600;word-break:break-word}.row .hint{font-size:13px}.row-actions{display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0}.thumb{width:44px;height:44px;object-fit:cover;border-radius:8px;cursor:pointer}.photo-preview,.photo-full{width:100%;max-height:60vh;object-fit:contain;background:#0e0f13;border-radius:10px;margin:10px 0}.chart-scroll{overflow-x:auto;margin-top:14px;direction:rtl;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#2c2e3a transparent}.chart-scroll::-webkit-scrollbar{height:6px}.chart-scroll::-webkit-scrollbar-thumb{background:#2c2e3a;border-radius:3px}.chart{display:block;direction:ltr}.chart-baseline{stroke:#23252e;stroke-width:1}.bar-actual{fill:#10b981}.bar-projected{fill:#2c6b57}.bar-value{fill:#9aa0ae;font-size:12px}.bar-label{fill:#6b7080;font-size:12px}.bar-label-current{fill:#10b981;font-weight:700}.chart-legend{display:flex;gap:16px;margin-top:6px;font-size:12px;color:#9aa0ae}.chart-legend span{display:inline-flex;align-items:center;gap:6px}.legend-swatch{display:inline-block;width:10px;height:10px;border-radius:3px}.legend-actual{background:#10b981}.legend-projected{background:#2c6b57}.empty{text-align:center;color:#9aa0ae;padding:36px 16px;border:1px dashed #2c2e3a;border-radius:12px;margin-bottom:20px}.empty-icon{font-size:40px;margin-bottom:8px}
