:root{
  --bg: #0f0f12;
  --card: rgba(23, 23, 29, 0.90);
  --borda: #2a2a35;
  --texto: #eee;

  --btn-bg: #222236;
  --btn-borda: #3b3b52;
  --box-bg: #101016;
}

*{ box-sizing: border-box; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--texto);
}

.wrap{
  max-width: 760px;
  margin: 40px auto;
  padding: 0 16px;
}

.card{
  background: var(--card);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 18px;
}

.hero{ margin-bottom: 16px; }

.hero-topo{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

h1{
  margin: 0 0 6px;
  font-size: 20px;
}

h2{
  margin: 0 0 8px;
  font-size: 16px;
}

.muted{
  opacity: .8;
  margin: 0;
}

.mini{
  font-size: 12px;
  opacity: .75;
}

.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

button, a.btn{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--btn-borda);
  background: var(--btn-bg);
  color: var(--texto);
  cursor: pointer;
}

button.sec, a.btn.sec{
  background: #17172a;
}

button:disabled{
  opacity: .6;
  cursor: not-allowed;
}

hr{
  border: none;
  border-top: 1px solid var(--borda);
  margin: 16px 0;
}

blockquote.destaque{
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--btn-borda);
  background: var(--box-bg);
}

a.btn{ text-decoration: none; display: inline-block; }

.lista{ display: flex; flex-direction: column; gap: 10px; }

.item{
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--borda);
  background: var(--box-bg);
}

.linha{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ident{ display: flex; gap: 10px; align-items: center; }

.ico{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--btn-borda);
  background: rgba(0,0,0,.25);
}

.titulo{ font-weight: 700; }

.chips{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

a.btn.btn-chip, button.btn-chip{
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.1;
}

.chip{
  font-size: 12px;
  padding: 2px 7px;
  line-height: 1.1;
  border-radius: 999px;
  border: 1px solid var(--btn-borda);
  background: rgba(0,0,0,.18);
  opacity: .9;
}

.chip.ok{ opacity: 1; }

code{
  background: rgba(0,0,0,.22);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--borda);
}

label{
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  opacity: .85;
}

input[type="text"], textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--borda);
  background: rgba(0,0,0,.22);
  color: var(--texto);
  outline: none;
}

textarea{
  min-height: 120px;
  resize: vertical;
}

.form-linha{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-linha .col{
  flex: 1 1 240px;
}

.linha-upload{
  display: flex;
  gap: 10px;
  align-items: center;
}

button.btn-ico{
  width: 44px;
  padding: 10px 0;
  line-height: 1;
  text-align: center;
  flex: 0 0 auto;
}

.linha-upload input[type="text"]{
  flex: 1 1 auto;
  min-width: 240px;
}

.msg{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--btn-borda);
  background: var(--box-bg);
}

.msg.ok{
  border-color: #2b7;
}

.msg.erro{
  border-color: #b33;
}