html {
  -webkit-text-size-adjust: 100%;
  background: #F5F1E8 !important;
}
body {
  margin: 0;
  background: #F5F1E8 !important;
  color: #1C1B19;
}
body::after { display: none !important; }
.vault-shell {
  background: #FBF8F1;
  min-height: 100vh;
  padding: 14px 14px 0;
  overflow-x: hidden;
}
.vault h1 {
  color: #1C1B19;
  text-shadow: none;
}

.term-page { padding: 14px 14px 0; }
.term {
  max-width: 1080px;
  margin: 0 auto;
  padding: 6px 9px 120px;
}
.vault h1.term-title { text-shadow: none; color: #1C1B19; }
.term-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 33px 0 12px;
}
.term-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6E6A62;
}
a.term-kicker:hover { color: #C8951B; }
.term-title {
  margin: 12px 0 0;
  font-size: clamp(33px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #1C1B19;
}
.term-meta { margin: 9px 0 0; color: #5F5B54; font-size: 17px; line-height: 1.65; }
.term-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.term-btn {
  background: #FBF8F1;
  color: #1C1B19;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14px;
}
.term-btn:hover { background: #FFFFFF; }
.term-btn.is-on {
  background: #F2C14B;
  color: #1C1B19;
}
.term-btn.is-on:hover { background: #FFD469; }
.term-btn.is-quiet {
  background: transparent;
  padding: 9px 3px;
  color: #6E6A62;
}
.term-btn.is-quiet:hover { color: #C8951B; background: transparent; }
.term-list { display: grid; gap: 0; }
.term-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 17px 3px;
  border-bottom: 1px solid #EAE5DA;
}
.term-row.is-open { cursor: pointer; }
.term-row.is-open:hover .term-row-title { color: #C8951B; }
.term-row-body { flex: 1; min-width: 0; }
.term-row-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8C877E;
}
.term-row-title {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1C1B19;
}
.term-row-brief {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #5F5B54;
}
.term-row.is-done .term-row-title,
.term-row.is-done .term-row-brief,
.term-row.is-done .term-row-kicker {
  color: #BCB7AC;
  text-decoration: line-through;
}
.term-check {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 4px 0 0;
  padding: 0;
  border: 1px solid #D8D2C4;
  border-radius: 4px;
  background: transparent;
  color: #1C1B19;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.term-row.is-done .term-check {
  background: #F2C14B;
  border-color: #F2C14B;
}
.term-icons { display: flex; gap: 0; opacity: 0.4; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .term-icons { opacity: 0; }
  .term-row:hover .term-icons,
  .term-row:focus-within .term-icons { opacity: 1; }
}
.term-icon {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #8C877E;
  padding: 0;
  font-size: 18px;
}
.term-icon:hover { color: #1C1B19; }
.term-empty {
  margin: 0;
  padding: 15px 3px 3px;
  color: #8C877E;
  font-size: 15px;
}
.term-preview {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #5F5B54;
}
.term-preview p { margin: 0 0 0.4em; }
.term-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(28, 27, 25, 0.55);
}
.term-dialog {
  width: min(720px, 100%);
  background: #FBF8F1;
  border: 0;
  border-radius: 18px;
  padding: 22px;
  color: #1C1B19;
  color-scheme: light;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
  max-height: calc(100vh - 36px);
  overflow: auto;
}
.term-dialog-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6E6A62;
}
.term-dialog label {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #6E6A62;
}
.term-dialog input,
.term-dialog textarea,
.term-dialog select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #EAE5DA;
  background: #FFFDF9;
  color: #1C1B19;
  outline: none;
  font: inherit;
  font-size: 15px;
  border-radius: 10px;
}
.term-dialog textarea { resize: vertical; min-height: 120px; }
.term-dialog input:focus,
.term-dialog textarea:focus,
.term-dialog select:focus { border-color: #F2C14B; }
.term-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.term-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.term-toolbar {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding: 8px;
  border-bottom: 1px solid #EAE5DA;
  background: #F5F1E8;
}
.term-editor-wrap {
  margin-top: 6px;
  border: 1px solid #EAE5DA;
  border-radius: 10px;
  overflow: hidden;
  background: #FFFDF9;
  padding: 0;
}
.term-editor-body {
  outline: none;
  min-height: 180px;
  padding: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #1C1B19;
}
.term-editor-body:empty::before {
  content: "Escreva o registro…";
  color: #8C877E;
}
.term-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
  background: #1C1B19;
  border-radius: 14px;
  padding: 10px 10px 10px 0;
  color: #FBF8F1;
}
.term-nav a { color: rgba(251, 248, 241, 0.7); }
.term-nav a:hover { color: #F2C14B; }
.term-nav a.is-here { color: #FBF8F1; }
.term-nav a.term-brand { color: #F2C14B; }
.term-brand {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F2C14B;
  padding: 0 clamp(18px, 2.4vw, 34px);
  border-right: 1px solid rgba(251, 248, 241, 0.14);
  align-self: stretch;
  display: flex;
  align-items: center;
}
.term-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
}
.term-out {
  margin-left: auto;
  background: #F2C14B;
  color: #1C1B19;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
}
.term-out:hover { background: #FFD469; color: #1C1B19; }
@media (max-width: 640px) {
  .term-dialog-grid { grid-template-columns: 1fr; }
}
