/* shell.css — base layout, header, branding */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { background: #fafafa; color: #1a1a1a; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

.qp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  position: sticky; top: 0; z-index: 100;
}
.qp-header__left { display: flex; align-items: center; gap: 12px; }
.qp-logo { width: 32px; height: 32px; border-radius: 6px; }
.qp-brand { font-size: 16px; font-weight: 600; color: #1a1a1a; letter-spacing: -0.2px; }

.qp-pill {
  border: 1px solid #d1d1d1; background: #fff; color: #1a1a1a;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.qp-pill:hover { background: #f5f5f5; border-color: #999; }

.qp-main { min-height: calc(100vh - 64px); padding: 24px 20px 40px; max-width: 720px; margin: 0 auto; }

.qp-loading { display: flex; align-items: center; justify-content: center; padding: 80px 0; }
.qp-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e0e0e0; border-top-color: #1a1a1a;
  border-radius: 50%; animation: qpspin 0.8s linear infinite;
}
@keyframes qpspin { to { transform: rotate(360deg); } }

.qp-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: #1a1a1a; color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 14px; z-index: 1000;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  opacity: 0; transition: opacity 0.2s;
}
.qp-toast.show { opacity: 1; }
.qp-toast--err { background: #c53030; }
.qp-toast--ok { background: #2f855a; }

[dir="rtl"] { direction: rtl; }
[dir="rtl"] .qp-header { flex-direction: row-reverse; }
