/* Taccuino online: pulsante in alto e finestre di accesso */
header.bar { flex-wrap: wrap; row-gap: 8px; }
.tq-home { font: 700 12px var(--mono, monospace); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.tq-badge {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 7px 12px; border: 2px solid var(--ink, #211743); border-radius: 10px;
  background: var(--cream, #fff); box-shadow: 3px 3px 0 var(--ink, #211743);
  font: 700 12px/1.25 var(--mono, monospace); text-align: left; max-width: 100%;
}
.tq-badge-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.tq-badge-status { font-weight: 400; font-size: 11px; }
.tq-badge[data-status="ok"] .tq-badge-status { color: #1d7a45; }
.tq-badge[data-status="offline"] .tq-badge-status,
.tq-badge[data-status="error"] .tq-badge-status,
.tq-badge[data-status="bad"] .tq-badge-status { color: #b23c17; }
.tq-badge[data-status="local"] { background: var(--pink, #f5cadd); }

.tq-dialog {
  width: min(760px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto;
  border: 2px solid var(--ink, #211743); border-radius: 18px; padding: clamp(18px, 4vw, 32px);
  background: var(--paper, #f6f1fa); color: var(--ink, #211743); box-shadow: 10px 11px 0 var(--ink, #211743);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}
.tq-dialog::backdrop { background: rgba(33, 23, 67, .55); }
.tq-dialog h2 { font-size: clamp(30px, 6vw, 46px); letter-spacing: -.03em; line-height: 1; margin: 4px 0 12px; }
.tq-dialog h3 { font-size: 22px; margin: 0; }
.tq-eyebrow { font: 700 12px var(--mono, monospace); letter-spacing: .06em; margin: 0; }
.tq-lead { font-size: 17px; margin: 0 0 18px; max-width: 560px; }
.tq-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.tq-card { display: grid; gap: 10px; align-content: start; background: var(--cream, #fff); border: 2px solid var(--ink, #211743); border-radius: 12px; padding: 18px; }
.tq-card:first-child { background: var(--lavender, #c9bdf2); }
.tq-card label { font-weight: 650; }
.tq-card input[type="text"] { font: inherit; font-size: 18px; padding: 11px 12px; border: 2px solid var(--ink, #211743); border-radius: 8px; background: #fff; width: 100%; box-sizing: border-box; }
.tq-code-input { font-family: var(--mono, monospace) !important; letter-spacing: .2em; text-transform: uppercase; }
.tq-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400 !important; font-size: 14px; line-height: 1.35; }
.tq-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink, #211743); }
.tq-dialog button { font: inherit; font-weight: 800; padding: 11px 16px; border-radius: 9px; border: 2px solid var(--ink, #211743); background: var(--cream, #fff); color: var(--ink, #211743); cursor: pointer; }
.tq-dialog button.tq-primary { background: var(--ink, #211743); color: #fff; }
.tq-dialog button:disabled { opacity: .6; cursor: wait; }
.tq-dialog button.tq-link { border: 0; background: none; padding: 14px 0 0; font-weight: 650; text-decoration: underline; }
.tq-msg { color: #b23c17; font-weight: 650; margin: 0; min-height: 1em; }
.tq-msg:empty { display: none; }
.tq-bigcode { font: 700 clamp(40px, 11vw, 64px)/1 var(--mono, monospace); letter-spacing: .18em; background: var(--cream, #fff); border: 2px dashed var(--ink, #211743); border-radius: 12px; padding: 16px; text-align: center; margin: 0 0 18px; user-select: all; }
.tq-state { margin: 0 0 14px; font: 700 13px var(--mono, monospace); }
.tq-row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .tq-grid { grid-template-columns: 1fr; } }
