/* Konferencje · narzędzie #04 · narrow layout flow */

.kf-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.kf-crumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.kf-crumb a {
  color: var(--muted);
  text-decoration: none;
}
.kf-crumb .current {
  color: var(--ink);
  font-weight: 500;
}

.kf-hero {
  margin-bottom: 32px;
}
.kf-hero .h-page {
  margin-bottom: 8px;
}
.kf-hero .lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 600px;
}

.kf-stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.kf-step {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: transparent;
  transition: all 0.18s ease;
}
.kf-step.is-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.kf-step.is-done {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.kf-step-label {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--display);
}

/* Form K1 */
.kf-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.kf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kf-field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.kf-field__hint {
  font-size: 12px;
  color: var(--muted);
}
.kf-field input[type="text"],
.kf-field input[type="url"],
.kf-form textarea,
.kf-composer textarea {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.kf-field input:focus,
.kf-composer textarea:focus {
  border-color: var(--accent);
}
.kf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .kf-row {
    grid-template-columns: 1fr;
  }
}
.kf-fieldset {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kf-fieldset legend {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 6px;
}
.kf-radio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.kf-radio input {
  margin-top: 3px;
}
.kf-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 8px;
}

/* Dialog */
.kf-context {
  background: #f7f5ee;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.kf-context strong {
  color: var(--ink);
}

.kf-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  min-height: 120px;
}
.kf-msg {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.55;
  max-width: 92%;
}
.kf-msg--ai {
  background: #fff;
  border: 1px solid var(--rule);
  align-self: flex-start;
}
.kf-msg--user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
}
.kf-msg--user strong {
  color: #fff;
}
.kf-msg p:first-child {
  margin-top: 0;
}
.kf-msg p:last-child {
  margin-bottom: 0;
}
.kf-msg--loading {
  background: #f7f5ee;
  border: 1px dashed var(--rule);
  align-self: flex-start;
  color: var(--muted);
  font-style: italic;
}

.kf-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kf-composer textarea {
  resize: vertical;
  min-height: 80px;
}
.kf-composer button {
  align-self: flex-start;
}

/* Report */
.kf-report {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px 32px;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.kf-report h1 {
  font-family: var(--display);
  font-size: 28px;
  margin: 0 0 24px;
  line-height: 1.2;
}
.kf-report h2 {
  font-family: var(--display);
  font-size: 18px;
  margin: 28px 0 10px;
  letter-spacing: -0.005em;
}
.kf-report ul {
  padding-left: 20px;
}
.kf-report .verdict {
  font-weight: 600;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 14px;
}
.kf-report .verdict--green {
  background: rgba(74, 138, 74, 0.12);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.kf-report .verdict--yellow {
  background: rgba(184, 146, 32, 0.12);
  color: #8a6c10;
  border: 1px solid #b89220;
}
.kf-report .verdict--red {
  background: rgba(160, 64, 48, 0.12);
  color: #a04030;
  border: 1px solid #a04030;
}

/* Toast */
.kf-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 100;
}
.kf-toast.is-error {
  background: #a04030;
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form textarea (organization etc.) */
.kf-form textarea {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
  resize: vertical;
  min-height: 72px;
}
.kf-form textarea:focus {
  border-color: var(--accent);
}

/* Actions w K6 raportu: grid 4 buttonów, wrap na mobile */
.kf-actions--report {
  flex-wrap: wrap;
  gap: 10px;
}
.kf-actions--report .btn {
  white-space: nowrap;
}

/* Custom modal restart (#10) */
.kf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.kf-modal[hidden] { display: none; }
.kf-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
}
.kf-modal__panel {
  position: relative;
  background: #fffdf8;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px 30px 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.kf-modal__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.kf-modal__body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 22px;
}
.kf-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Print stylesheet: czyste PDF z raportem K6 (#8a) */
@media print {
  .nav, .footer-map, .kf-crumb, .kf-stepper, .kf-step-label,
  .kf-actions, .kf-toast, .kf-modal, .kf-context {
    display: none !important;
  }
  body { background: #fff !important; color: #000 !important; }
  .kf-shell { max-width: none; padding: 0; }
  .kf-report {
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 12pt;
    line-height: 1.5;
  }
  .kf-report h1 { font-size: 22pt; margin-bottom: 14pt; }
  .kf-report h2 { font-size: 14pt; margin-top: 18pt; }
  .kf-report .verdict {
    border: 1pt solid currentColor;
    background: transparent !important;
    color: #000 !important;
    page-break-after: avoid;
  }
  .kf-report ul, .kf-report ol { page-break-inside: avoid; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  a[href^="mailto:"]::after, a[href^="#"]::after { content: ""; }
}
