:root{
  --bg:#0b0f14;
  --card:#111826;
  --card2:#0f1623;
  --text:#e7eef7;
  --muted:#9fb0c3;
  --border:#203044;
  --accent:#44d7c8;
  --good:#33d17a;
  --danger:#ff5c7a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:radial-gradient(1200px 800px at 10% 0%, rgba(68,215,200,.10), transparent 60%),
             radial-gradient(1000px 700px at 90% 20%, rgba(255,92,122,.06), transparent 60%),
             var(--bg);
  color:var(--text);
  font-family:var(--sans);
}
a{color:inherit}
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  background:rgba(11,15,20,.75);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(32,48,68,.5);
}
.brand{display:flex; align-items:center; gap:12px}
.dot{
  width:14px;height:14px;border-radius:50%;
  background:var(--accent);
  box-shadow: 0 0 0 6px rgba(68,215,200,.08);
}
.title{font-weight:800; letter-spacing:.2px}
.subtitle{font-size:12px;color:var(--muted); margin-top:2px}
.nav{display:flex; gap:8px}
.navlink{
  padding:10px 12px;
  border:1px solid rgba(32,48,68,.65);
  border-radius:999px;
  text-decoration:none;
  color:var(--muted);
  transition:transform .08s ease, border-color .2s ease, color .2s ease;
}
.navlink:hover{transform:translateY(-1px); border-color:rgba(68,215,200,.5); color:var(--text)}
.navlink.active{border-color:rgba(68,215,200,.65); color:var(--text); background:rgba(68,215,200,.10)}
.container{max-width:980px; margin:18px auto; padding:0 14px 60px}
.card{
  background:linear-gradient(180deg, rgba(17,24,38,.92), rgba(15,22,35,.92));
  border:1px solid rgba(32,48,68,.75);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
  margin:14px 0;
}
h2{margin:0 0 12px 0; font-size:18px}
h3{margin:14px 0 8px 0; font-size:14px; color:var(--text)}
.label{display:block; color:var(--muted); font-size:12px; margin:10px 0 6px}
.input, .textarea{
  width:100%;
  background:rgba(8,12,18,.65);
  border:1px solid rgba(32,48,68,.9);
  color:var(--text);
  border-radius:12px;
  padding:11px 12px;
  outline:none;
}
.input:focus, .textarea:focus{border-color: rgba(68,215,200,.6); box-shadow: 0 0 0 4px rgba(68,215,200,.10)}
.textarea{resize:vertical}
.row{display:flex; align-items:center; gap:10px; margin-top:12px}
.row.space{justify-content:space-between}
.row.wrap{flex-wrap:wrap}
.muted{color:var(--muted)}
.small{font-size:12px}
.big{font-size:28px; font-weight:900; letter-spacing:.2px}
.pill{
  font-family:var(--mono);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(32,48,68,.85);
  background:rgba(8,12,18,.55);
}
.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media(max-width:780px){ .grid2{grid-template-columns:1fr} }
.btn{
  border:none;
  background:rgba(68,215,200,.18);
  color:var(--text);
  padding:11px 14px;
  border-radius:12px;
  cursor:pointer;
  border:1px solid rgba(68,215,200,.35);
  transition:transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{transform:translateY(-1px); background:rgba(68,215,200,.24); border-color:rgba(68,215,200,.55)}
.btn:disabled{opacity:.55; cursor:not-allowed; transform:none}
.btn.ghost{background:transparent; border-color:rgba(32,48,68,.85); color:var(--muted)}
.btn.ghost:hover{color:var(--text); border-color:rgba(68,215,200,.35); background:rgba(68,215,200,.08)}
.btn.good{background:rgba(51,209,122,.18); border-color:rgba(51,209,122,.35)}
.btn.good:hover{background:rgba(51,209,122,.24); border-color:rgba(51,209,122,.55)}
.btn.danger{background:rgba(255,92,122,.14); border-color:rgba(255,92,122,.35)}
.btn.danger:hover{background:rgba(255,92,122,.20); border-color:rgba(255,92,122,.55)}
.smallBtn{padding:8px 10px; border-radius:10px}
.fileBtn{position:relative; overflow:hidden; display:inline-flex; align-items:center; gap:8px}
.fileBtn input{position:absolute; inset:0; opacity:0; cursor:pointer}
.entries{display:flex; flex-direction:column; gap:10px}
.entry{
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
  padding:12px;
  background:rgba(8,12,18,.45);
  border:1px solid rgba(32,48,68,.75);
  border-radius:14px;
}
.entry .left{flex:1}
.entry .name{font-weight:800}
.entry .meta{margin-top:4px; color:var(--muted); font-size:12px}
.entry .cal{font-family:var(--mono); font-weight:800; margin-left:10px}
.entry .actions{display:flex; gap:8px; align-items:center}
.chip{
  border:1px solid rgba(32,48,68,.85);
  background:rgba(8,12,18,.55);
  color:var(--text);
  border-radius:999px;
  padding:7px 10px;
  cursor:pointer;
  font-family:var(--mono);
}
.chip:hover{border-color:rgba(68,215,200,.35)}
.estimate{margin-top:14px; padding:14px; border-radius:14px; background:rgba(68,215,200,.06); border:1px solid rgba(68,215,200,.18)}
.estimateTop{display:flex; align-items:flex-start; justify-content:space-between; gap:12px}
@media(max-width:780px){ .estimateTop{flex-direction:column} }
.list{margin:0; padding-left:18px; color:var(--muted)}
.previewWrap{
  display:flex; flex-direction:column; align-items:flex-start; gap:8px;
  padding:10px;
  border:1px dashed rgba(32,48,68,.85);
  border-radius:14px;
  background:rgba(8,12,18,.35);
}
.previewWrap img{
  max-width:100%;
  max-height:180px;
  border-radius:12px;
  border:1px solid rgba(32,48,68,.85);
}
.hidden{display:none}
.footer{max-width:980px; margin:0 auto 18px; padding:0 14px}
