:root{
  /* Dark palette: grey / altrosa / creme */
  --bg: #121214;
  --panel: #17171a;
  --panel-2: #1f1f24;
  --stroke: rgba(245, 238, 227, .14);

  --text: #F5EEE3;     /* creme */
  --muted: rgba(245, 238, 227, .72);

  --rose: #C58AA0;     /* altrosa */
  --rose-2:#E6B8C8;

  --grey: #9CA3AF;
  --shadow: 0 18px 50px rgba(0,0,0,.45);

  --radius: 18px;
  --radius2: 26px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 900px at 18% -10%, rgba(197,138,160,.22), transparent 55%),
    radial-gradient(900px 900px at 110% 0%, rgba(245,238,227,.08), transparent 45%),
    linear-gradient(180deg, #0f0f12, var(--bg));
  color:var(--text);
}

.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(18,18,20,.65);
  border-bottom: 1px solid rgba(245,238,227,.10);
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
}

.brand{display:flex; align-items:center; gap:10px; min-width:0}
.mark{
  width:42px; height:42px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(180deg, rgba(197,138,160,.25), rgba(245,238,227,.10));
  border:1px solid rgba(245,238,227,.14);
}
.brand-text{min-width:0}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-sub{font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.top-actions{display:flex; gap:10px}

.wrap{max-width:980px;margin:0 auto;padding:18px 14px 26px}

.card{
  background: linear-gradient(180deg, rgba(23,23,26,.98), rgba(23,23,26,.90));
  border:1px solid rgba(245,238,227,.10);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.hero{padding:22px 18px 20px; margin-top:12px}
.hero-kicker{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: rgba(245,238,227,.72);
  letter-spacing: 3px;
  font-size: 12px;
  text-transform: uppercase;
}
.hero-title{
  margin:12px 0 10px;
  font-size: clamp(28px, 5vw, 46px);
  line-height:1.05;
  letter-spacing: -0.8px;
}
.accent{color: var(--rose-2)}
.hero-copy{margin:0; color: var(--muted); font-size: 15.5px; max-width: 66ch}

.hero-grid{
  margin-top:16px;
  display:flex; flex-wrap:wrap; gap:10px;
}
.pill{
  padding:9px 12px;
  border-radius: 999px;
  border:1px solid rgba(245,238,227,.12);
  background: rgba(31,31,36,.65);
  color: rgba(245,238,227,.85);
  font-size: 13px;
}

.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}

@media (min-width: 880px){
  .grid{grid-template-columns: 1fr 1fr}
  .hero{padding:28px 26px 24px}
}

.card > *{padding-left:18px;padding-right:18px}
.card .h2{
  margin:18px 0 10px;
  font-size:18px;
  letter-spacing:.2px;
}
.label{
  display:block;
  margin-top:12px;
  margin-bottom:7px;
  color: rgba(245,238,227,.80);
  font-size: 12px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.input, .select, .textarea{
  width:100%;
  border-radius: 14px;
  border:1px solid rgba(245,238,227,.14);
  background: rgba(31,31,36,.70);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
}
.input::placeholder{color: rgba(245,238,227,.45)}
.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(197,138,160,.45);
  box-shadow: 0 0 0 4px rgba(197,138,160,.12);
}
.select{appearance:none}

.row{display:flex; gap:10px; margin-top:14px; padding-bottom:16px}
.two{display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top:12px; padding-bottom:16px}
@media (max-width:420px){
  .two{grid-template-columns:1fr}
}

.btn{
  border:1px solid rgba(245,238,227,.14);
  background: rgba(31,31,36,.70);
  color: rgba(245,238,227,.92);
  padding: 11px 12px;
  border-radius: 14px;
  font-weight: 700;
  cursor:pointer;
  width:100%;
}
.btn:hover{border-color: rgba(245,238,227,.25)}
.btn.primary{
  background: linear-gradient(180deg, rgba(197,138,160,.88), rgba(197,138,160,.62));
  border-color: rgba(197,138,160,.55);
  color:#141417;
}
.btn.primary:hover{filter:brightness(1.02)}
.btn.ghost{
  background: transparent;
}

.hint{
  padding-bottom:18px;
  color: rgba(245,238,227,.70);
  font-size: 13px;
}
.hint.small{font-size:12px;color:rgba(245,238,227,.62)}

.output{margin-top:14px;padding-bottom:18px}
.output-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding-top:6px;
}
.status{
  font-size: 12px;
  color: rgba(245,238,227,.70);
  padding:8px 10px;
  border:1px solid rgba(245,238,227,.12);
  background: rgba(31,31,36,.55);
  border-radius: 999px;
  white-space:nowrap;
}
.textarea{
  min-height: 320px;
  resize: vertical;
  margin: 10px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  line-height: 1.5;
}

.divider{
  height:1px;
  background: rgba(245,238,227,.10);
  margin: 18px 0;
}

.mini{padding-bottom:18px}
.h3{margin:0 0 6px;font-size:15px}
.muted{margin:0 0 12px; color: var(--muted); font-size: 13.5px}

.cards{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width: 700px){
  .cards{grid-template-columns: 1fr 1fr}
}
.bp{
  border-radius: var(--radius);
  border:1px solid rgba(245,238,227,.12);
  background: rgba(31,31,36,.55);
  padding: 12px;
}
.bp-title{font-weight:900; letter-spacing:.2px}
.bp-line{margin-top:6px; color: rgba(245,238,227,.80); font-size: 13px}
.bp-line strong{color: var(--rose-2)}

.foot{
  margin-top:16px;
  padding: 18px 6px 0;
  display:flex; align-items:flex-end; justify-content:space-between; gap:14px;
  color: rgba(245,238,227,.65);
}
.foot-kicker{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 2px;
  font-size: 12px;
}
.foot-copy{margin-top:4px;font-size:13px}
.foot-right{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.link{color: rgba(245,238,227,.85); text-decoration:none; border-bottom:1px solid rgba(245,238,227,.25)}
.link:hover{border-bottom-color: rgba(197,138,160,.7)}
.dot{opacity:.5}

.toast{
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(23,23,26,.92);
  border:1px solid rgba(245,238,227,.12);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: rgba(245,238,227,.92);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  max-width: min(520px, 92vw);
}
.toast.show{opacity: 1}

@media print{
  body{background:#fff;color:#111}
  .topbar,.foot-right,.toast,#btnInstall,#btnShare{display:none !important}
  .card{box-shadow:none;border:1px solid #ddd;background:#fff}
  .textarea{font-family: Menlo, Consolas, monospace}
}
