*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #0f172a; --card: #1e293b; --text: #f1f5f9; --muted: #94a3b8; --accent: #2dd4bf; --accent-dim: #0f766e; --danger: #f87171; --warning: #fbbf24; --border: #334155; --radius: 8px; --gap: 12px; } body { width: 380px; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.45; overflow-x: hidden; } #app { padding: 16px; } .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; } .brand { display: flex; align-items: center; gap: 10px; } .logo-icon { font-size: 22px; } .brand h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; } .brand p { color: var(--muted); font-size: 12px; margin-top: 2px; } .icon-btn { background: transparent; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); cursor: pointer; padding: 6px 8px; font-size: 14px; } .icon-btn:hover { background: var(--card); } .overview .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; } .overview .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; } .overview .big-number { font-size: 32px; font-weight: 800; margin: 6px 0; color: var(--accent); } .overview .sub { color: var(--muted); font-size: 12px; margin-top: 4px; } .progress-wrap { margin-top: 10px; height: 8px; background: #0f172a; border-radius: 4px; overflow: hidden; } .progress-bar { height: 100%; background: var(--accent); transition: width 0.3s ease; } h2 { font-size: 14px; font-weight: 600; margin: 14px 0 8px; } .tools-section, .add-usage-section, .trend-section { margin-bottom: 14px; } .tools-list { display: flex; flex-direction: column; gap: 8px; } .tool-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; align-items: center; justify-content: space-between; } .tool-left { display: flex; flex-direction: column; gap: 2px; } .tool-name { font-weight: 600; font-size: 13px; } .tool-meta { color: var(--muted); font-size: 11px; } .tool-right { text-align: right; } .tool-spend { font-weight: 700; font-size: 14px; } .tool-budget { font-size: 11px; color: var(--muted); } .tool-actions { display: flex; gap: 6px; margin-top: 6px; } .btn-small { background: transparent; border: 1px solid var(--border); border-radius: 6px; color: var(--text); cursor: pointer; padding: 4px 8px; font-size: 11px; } .btn-small:hover { background: var(--border); } .form { display: flex; flex-direction: column; gap: 8px; } .form.compact { flex-direction: row; flex-wrap: wrap; gap: 6px; } .form.compact input, .form.compact select { flex: 1 1 120px; } .form.compact button { flex: 0 0 auto; } input, select, textarea { background: #0f172a; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 8px 10px; font-size: 13px; outline: none; width: 100%; } input:focus, select:focus { border-color: var(--accent); } .btn-primary { background: var(--accent-dim); color: #fff; border: none; border-radius: var(--radius); padding: 8px 12px; font-size: 13px; cursor: pointer; font-weight: 600; } .btn-primary:hover { background: var(--accent); color: #000; } .btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; cursor: pointer; } .btn-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); border-radius: var(--radius); padding: 8px 12px; font-size: 13px; cursor: pointer; width: 100%; } .trend-list { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; } .trend-row { display: flex; justify-content: space-between; padding: 6px 8px; background: var(--card); border-radius: 6px; font-size: 12px; } .trend-row .day { color: var(--muted); } .trend-row .val { font-weight: 600; } .empty-state { text-align: center; padding: 30px 16px; color: var(--muted); } .empty-icon { font-size: 36px; margin-bottom: 8px; } .empty-state p { font-size: 13px; } .hidden { display: none !important; } .modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 100; } .modal-content { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; width: 340px; } .modal-content h2 { margin-bottom: 12px; } .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; } .danger-zone { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; } .row { display: flex; align-items: center; gap: 8px; margin-top: 4px; } ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }