/* Demonstração DISC · formulário simples, sem chrome de aplicativo */

:root {
  --ink: #2a2e33;
  --mute: #5c636c;
  --line: #d8d5cf;
  --paper: #fff;
  --page: #f3f1ec;
  --head: #2f3d4d;
  --link: #35587a;
  --ok: #2d6a3f;
  --bad: #9b2c2c;
  --soft: #eef1f4;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.45 Arial, Helvetica, sans-serif;
}

a { color: var(--link); }
a:visited { color: #4a3f72; }

.top {
  background: var(--head);
  color: #fff;
  padding: 14px 20px;
}
.top-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  opacity: .75;
  margin-top: 2px;
}
.steps {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: .92;
}
.steps a { color: #d7e4f2; text-decoration: none; }
.steps a:hover { text-decoration: underline; }
.steps .here {
  color: #fff;
  font-weight: 700;
}

.wrap {
  max-width: 860px;
  margin: 24px auto 48px;
  padding: 0 16px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 24px 28px;
}

h1 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--head);
}
h2 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--head);
}
.lead {
  margin: 0 0 18px;
  color: var(--mute);
  font-size: 15px;
}

label.row {
  display: block;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}
label.row span {
  display: block;
  font-weight: 400;
  color: var(--mute);
  font-size: 13px;
  margin-top: 2px;
}
label.row input,
label.row select,
textarea {
  display: block;
  margin-top: 5px;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  font: 16px Arial, Helvetica, sans-serif;
  border: 1px solid #b9c0c8;
  background: #fff;
  padding: 8px 10px;
}
textarea { max-width: 100%; min-height: 140px; }

input[type="submit"],
input[type="button"],
button {
  font: 15px Arial, Helvetica, sans-serif;
  background: var(--head);
  color: #fff;
  border: 0;
  padding: 9px 16px;
  cursor: pointer;
}
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover { background: #3d4f62; }
input[type="submit"]:disabled,
input[type="button"]:disabled,
button:disabled { background: #9aa3ad; cursor: default; }
input[type="button"].ghost {
  background: #fff;
  color: var(--head);
  border: 1px solid var(--line);
}

.status { font-size: 13px; color: var(--mute); }
.status.ok { color: var(--ok); }
.status.err { color: var(--bad); }

.err {
  display: none;
  color: var(--bad);
  background: #f8eaea;
  border: 1px solid #e3c4c4;
  padding: 8px 10px;
  margin: 12px 0;
  font-size: 14px;
}
.err.on { display: block; }

.hint {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--mute);
  margin: 0 0 16px;
}

table.form {
  width: 100%;
  border-collapse: collapse;
}
table.form td {
  padding: 6px 0;
  vertical-align: top;
}
table.form td.l {
  width: 160px;
  font-weight: 700;
  padding-right: 12px;
}

table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid var(--line);
}
table.grid th,
table.grid td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}
table.grid th {
  background: #e9edf1;
  color: var(--head);
  font-size: 13px;
  font-weight: 700;
}
table.grid td.c { text-align: center; width: 64px; }
table.grid td.n {
  text-align: center;
  width: 42px;
  font-weight: 700;
  background: #f3f5f7;
  vertical-align: top;
}
table.grid tr.alt td { background: #fafbfc; }
table.grid tr.alt td.n { background: #eef1f4; }
table.grid.bad td.n,
tr.bad td { background: #f8eaea !important; }
table.grid td.num {
  text-align: right;
  width: 96px;
  white-space: nowrap;
}

.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }
.sec-note {
  margin: 0 0 10px;
  color: var(--mute);
  font-size: 14px;
}
section.block { margin: 0; }
section.block[hidden] { display: none; }

.actions a:first-child { margin-left: 0; }

pre.dump {
  background: #f6f7f8;
  color: var(--ink);
  font: 14px/1.5 Consolas, "Courier New", monospace;
  padding: 12px 14px;
  border: 1px solid var(--line);
  white-space: pre-wrap;
  margin: 0 0 12px;
}

.actions { margin: 16px 0 0; }
.actions a { margin-left: 10px; }

.meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--mute);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.foot {
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 0 16px;
  font-size: 13px;
  color: var(--mute);
}

@media (max-width: 700px) {
  .panel { padding: 16px; }
  table.form td.l { display: block; width: auto; padding-bottom: 0; }
  table.grid { font-size: 14px; }
  table.grid td.c { width: 48px; }
}

@media print {
  body { background: #fff; }
  .top, .meta, .no-print { display: none !important; }
  .wrap { max-width: none; margin: 0; padding: 0; }
  .panel { border: 0; padding: 0; }
}
