/* Print to Leonardo (Story 3514) -- the "Leonardo" WiFi printer's switch,
   name, address, and the log of what has been printed or shared to it. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #F2F2F4; color: #222; font-family: "Segoe UI", system-ui, sans-serif; }

/* Pinned chrome: only .pl-body scrolls. Both height lines -- 100vh alone lets a
   phone scroll the band away (Story 2296). */
.page-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
#lwIconBand, .ct-header { flex: 0 0 auto; }

.ct-header { background: #3C3C3C; color: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.ct-header h1 { margin: 0; font-size: 14pt; font-weight: 600; flex: 1; }
.ct-header button { color: #fff; background: #4F46E5; border: none; border-radius: 4px;
    padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; }

.pl-body { flex: 1; overflow: auto; padding: 14px 16px 24px; }

.pl-card { background: #fff; border: 1px solid #E2E2E8; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.pl-status-row { display: flex; align-items: center; gap: 10px; }
.pl-dot { width: 12px; height: 12px; border-radius: 50%; background: #9CA3AF; flex: 0 0 auto; }
.pl-dot.on { background: #16A34A; }
.pl-dot.waiting { background: #D97706; }
.pl-status-text { flex: 1; font-size: 15px; font-weight: 600; }
.pl-toggle { border: 1px solid #C7C7D1; background: #fff; border-radius: 6px; padding: 6px 12px;
    font: inherit; font-size: 13px; cursor: pointer; }

.pl-name-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pl-name-row label { font-size: 12px; color: #555; flex: 0 0 auto; }
.pl-name-row input[type="text"] { flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid #C7C7D1;
    border-radius: 6px; font: inherit; font-size: 14px; background: #fff; color: #222; }
.pl-name-row button { border: none; background: #4F46E5; color: #fff; border-radius: 6px;
    padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.pl-name-row .voice-mic-wrap { display: block; flex: 1; min-width: 0; }

.pl-address { margin-top: 10px; font-size: 12px; color: #555; word-break: break-all; }
.pl-address:empty, .pl-problem:empty, .pl-message:empty { display: none; }
.pl-problem { margin-top: 8px; font-size: 13px; color: #B91C1C; }
.pl-message { background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 8px; padding: 10px 12px;
    font-size: 13px; margin-bottom: 12px; }

.pl-section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #666; margin: 18px 2px 8px; }
.pl-section-title span { text-transform: none; letter-spacing: 0; font-weight: 400; }

.pl-jobs { display: flex; flex-direction: column; gap: 8px; }
.pl-job { background: #fff; border: 1px solid #E2E2E8; border-left: 4px solid #16A34A; border-radius: 8px;
    padding: 10px 12px; cursor: pointer; }
.pl-job.failed { border-left-color: #DC2626; cursor: default; }
.pl-job-title { font-weight: 600; font-size: 14px; word-break: break-word; }
.pl-job-meta { font-size: 12px; color: #666; margin-top: 3px; }
.pl-job-error { font-size: 12px; color: #B91C1C; margin-top: 4px; }
.pl-job.flash { box-shadow: 0 0 0 3px #818CF8; }
.pl-empty { color: #777; font-size: 13px; padding: 6px 2px; }

.pl-more { margin: 12px auto 0; display: block; border: 1px solid #C7C7D1; background: #fff;
    border-radius: 6px; padding: 8px 18px; font: inherit; font-size: 13px; cursor: pointer; }
.pl-more[hidden] { display: none; }

/* Story 5757: folds. A folded box keeps its head; a folded job keeps its title line. */
.pl-fold-head { cursor: pointer; }
.pl-caret { display: inline-block; width: 12px; color: #6B7280; font-size: 11px; flex: 0 0 auto; }
.pl-section-title.pl-fold-head { display: flex; align-items: baseline; gap: 6px; }
.pl-folded > .pl-fold-body { display: none; }
.pl-card-caret { background: none; border: none; padding: 0 6px 0 0; margin: 0; cursor: pointer; font: inherit; color: inherit; }
.pl-job.pl-folded .pl-job-meta, .pl-job.pl-folded .pl-job-error { display: none; }
.ct-header button.pl-foldall { background: transparent; border: 1px solid rgba(255,255,255,.35); padding: 6px 10px; }

.pl-share { display: flex; align-items: center; gap: 12px; }
.pl-share[hidden], .pl-share button[hidden] { display: none; }
.pl-share-text { flex: 1; font-size: 13px; color: #444; }
.pl-share button { border: none; background: #4F46E5; color: #fff; border-radius: 6px;
    padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; flex: 0 0 auto; }
