/* Quick Tune extends the existing SKY paper/terracotta workspace. */
.quick-tune-entry { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:5px; width:100%; margin-top:10px; padding:13px 12px; border:1px solid var(--wb-line); border-radius:9px; background:transparent; color:var(--wb-ink); text-align:left; }
.quick-tune-entry > span:first-child { font-size:13px; font-weight:600; }
.quick-tune-entry > span:last-child { position:absolute; right:13px; top:13px; font-size:17px; color:var(--wb-accent); }
.quick-tune-entry small { font-size:10px; color:var(--wb-muted); }
.quick-tune-entry:hover,.quick-tune-entry[aria-expanded="true"] { background:#e5e1d6; }
.quick-tuning > .conversation-scroll,.quick-tuning > .composer-area,.quick-tuning > .drop-overlay { display:none!important; }
.quick-tune-panel { min-height:0; flex:1; overflow:auto; padding:28px max(24px,calc((100% - 860px)/2)) 54px; }
.quick-tune-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:24px; }
.quick-tune-heading h2 { margin:0 0 10px; font-size:27px; font-weight:550; letter-spacing:-.6px; }
.quick-tune-heading p { margin:0; font-size:12px; line-height:1.8; color:var(--wb-muted); }
.quick-tune-heading .quick-tune-eyebrow { margin-bottom:9px; color:var(--wb-accent); font-size:10px; letter-spacing:.6px; }
.quick-tune-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); list-style:none; padding:0; margin:0 0 24px; gap:0; border-bottom:1px solid var(--wb-line); }
.quick-tune-steps li { position:relative; padding:10px 8px 14px 0; display:flex; gap:9px; align-items:center; font-size:12px; color:var(--wb-muted); }
.quick-tune-steps .quick-step-number { display:grid; place-items:center; width:24px; height:24px; border:1px solid var(--wb-line); border-radius:50%; font-size:11px; flex-shrink:0; }
.quick-tune-steps li[aria-current="step"] { color:var(--wb-ink); font-weight:600; }
.quick-tune-steps li[aria-current="step"]::after { content:""; position:absolute; height:2px; background:var(--wb-accent); bottom:-1px; right:12px; left:0; }
.quick-tune-steps li[aria-current="step"] .quick-step-number { background:var(--wb-accent); border-color:var(--wb-accent); color:white; }
.quick-tune-steps li[data-complete="true"] .quick-step-number { border-color:var(--wb-accent); color:var(--wb-accent); }
.quick-tune-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:20px; }
.quick-tune-toolbar p { flex:1 1 220px; margin:0; font-size:12px; color:var(--wb-muted); }
.quick-tune-card { background:#fffdf8; padding:24px; border:1px solid var(--wb-line); border-radius:12px; margin:16px 0; }
.quick-tune-card h3 { margin:0 0 9px; font-size:19px; font-weight:550; letter-spacing:-.2px; }
.quick-tune-card h4 { font-size:13px; margin:22px 0 9px; font-weight:600; }
.quick-tune-copy { font-size:13px; line-height:1.9; color:var(--wb-muted); margin:0 0 16px; white-space:pre-line; }
.quick-tune-kicker { font-size:11px; color:var(--wb-accent); margin:0 0 10px; }
.quick-tune-selection { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 20px; margin:22px 0; }
.quick-tune-field label { display:block; margin:0 0 8px; font-size:12px; font-weight:550; }
.quick-tune-field select { width:100%; padding:11px 12px; border:1px solid #d7d2c6; border-radius:7px; background:var(--wb-paper); color:var(--wb-ink); font:inherit; font-size:13px; min-height:42px; }
.quick-tune-field p { font-size:11px; line-height:1.6; margin:7px 0 0; color:var(--wb-muted); }
.quick-tune-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:20px; }
.quick-tune-actions .primary-button { background:var(--wb-ink); border-color:var(--wb-ink); }
.quick-tune-actions button { font-size:12px; min-height:40px; }
.quick-tune-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }
.quick-tune-choice { padding:14px; text-align:left; background:var(--wb-paper); border:1px solid var(--wb-line); border-radius:8px; font-size:13px; color:var(--wb-ink); min-height:50px; }
.quick-tune-choice strong { display:block; font-size:13px; font-weight:550; }
.quick-tune-choice span { display:block; color:var(--wb-muted); font-size:11px; line-height:1.7; margin-top:5px; }
.quick-tune-choice[aria-pressed="true"] { border-color:var(--wb-accent); background:#f5eae2; box-shadow:inset 3px 0 var(--wb-accent); }
.quick-tune-summary { display:grid; grid-template-columns:130px minmax(0,1fr); gap:8px 16px; font-size:12px; line-height:1.7; margin:16px 0; }
.quick-tune-summary dt { color:var(--wb-muted); }
.quick-tune-summary dd { margin:0; overflow-wrap:anywhere; }
.quick-tune-note { padding:12px 14px; border-left:3px solid var(--wb-accent); background:#f3eee5; font-size:12px; line-height:1.8; margin:16px 0; }
.quick-tune-error { color:#883f2d; padding:13px 15px; background:#faede6; border:1px solid #e6cabb; border-radius:8px; font-size:12px; line-height:1.8; }
.quick-tune-confirm { display:flex; align-items:flex-start; gap:10px; padding:14px; background:#f3eee5; border-radius:8px; font-size:12px; line-height:1.9; cursor:pointer; }
.quick-tune-confirm input { width:16px; height:16px; accent-color:var(--wb-accent); margin:4px 0 0; flex-shrink:0; }
.quick-tune-table-wrap { overflow-x:auto; margin:17px 0; }
.quick-tune-table { width:100%; border-collapse:collapse; font-size:12px; line-height:1.7; text-align:left; }
.quick-tune-table th,.quick-tune-table td { padding:10px 12px; border-bottom:1px solid var(--wb-line); vertical-align:top; overflow-wrap:anywhere; }
.quick-tune-table th { font-size:11px; color:var(--wb-muted); font-weight:500; white-space:nowrap; }
.quick-tune-table td:first-child { font-family:ui-monospace,monospace; }
.quick-tune-receipts { padding-top:12px; margin-top:24px; border-top:1px solid var(--wb-line); }
.quick-tune-receipts summary { font-size:12px; color:var(--wb-muted); cursor:pointer; }
.quick-tune-receipt { padding:12px 0; border-bottom:1px solid var(--wb-line); font-size:12px; line-height:1.8; }
.quick-tune-receipt strong { font-weight:550; }
.quick-tune-receipt p { margin:4px 0 0; color:var(--wb-muted); overflow-wrap:anywhere; }
.bridge-pairing { padding:15px; margin:0 0 20px; border:1px solid var(--wb-line); border-radius:9px; background:#f4f1e9; }
.bridge-pairing h3 { margin:0 0 8px; font-size:13px; font-weight:600; }
.bridge-pairing > p:first-of-type { font-size:12px; margin:0 0 7px; line-height:1.7; }
.bridge-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:13px; }
.bridge-download { display:inline-block; color:var(--wb-accent); font-size:12px; margin-top:12px; text-underline-offset:3px; }
@media(max-width:700px) {
  .quick-tune-panel { padding:20px 16px 36px; }
  .quick-tune-heading { gap:10px; }
  .quick-tune-heading h2 { font-size:23px; }
  .quick-tune-heading > button { font-size:10px; }
  .quick-tune-steps li { flex-direction:column; align-items:flex-start; gap:7px; font-size:10px; }
  .quick-tune-card { padding:18px 15px; }
  .quick-tune-selection { grid-template-columns:1fr; gap:15px; }
  .quick-tune-summary { grid-template-columns:95px minmax(0,1fr); gap:7px 12px; }
  .quick-tune-table th,.quick-tune-table td { padding:9px 7px; }
}
.quick-tune-digest { overflow-wrap: anywhere; font-family: var(--font-mono, monospace); font-size: 11px; }
.serial-recovery { margin-top:20px; padding-top:16px; border-top:1px solid var(--wb-line); }
.serial-recovery h3 { font-size:14px; margin:0 0 10px; }
.serial-recovery pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; line-height:1.7; }
.serial-recovery .quick-tune-confirm { margin:12px 0; }
.serial-recovery dl { display:grid; grid-template-columns:100px minmax(0,1fr); gap:6px 12px; font-size:12px; line-height:1.7; }
.serial-recovery dd { margin:0; overflow-wrap:anywhere; }
.bridge-approval-code { margin:18px 0; font:600 30px/1.3 ui-monospace,monospace; letter-spacing:.16em; color:var(--wb-accent); overflow-wrap:anywhere; }
.bridge-approval-account { font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.bridge-approval-dialog #bridge-approval-status { font-size:13px; line-height:1.8; }
.bridge-approval-dialog .dialog-actions { flex-wrap:wrap; }
