:root {
  --oyq-bg: #0d1117;
  --oyq-card: #151a21;
  --oyq-card-2: #191f27;
  --oyq-text: #e6dfd4;
  --oyq-muted: #9b958d;
  --oyq-gold: #b7925a;
  --oyq-gold-2: #d0aa6a;
  --oyq-border: rgba(183, 146, 90, .22);
  --oyq-danger: #c46d6d;
  --oyq-radius: 16px;
}

.oyq-shell {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--oyq-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.oyq-shell *, .oyq-shell *::before, .oyq-shell *::after { box-sizing: border-box; }

.oyq-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin: 0 0 28px;
}
.oyq-section-head h2 { margin: 4px 0 6px; color: #f1eee8; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 5vw, 52px); font-weight: 500; }
.oyq-section-head p { margin: 0; color: var(--oyq-muted); }
.oyq-kicker { color: var(--oyq-gold-2); letter-spacing: .22em; font-size: 11px; font-weight: 700; }

.oyq-btn {
  appearance: none;
  border: 1px solid var(--oyq-border);
  background: transparent;
  color: var(--oyq-text);
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 650;
  line-height: 1.2;
}
.oyq-btn:hover { border-color: rgba(208, 170, 106, .55); color: #fff; }
.oyq-btn-primary { background: linear-gradient(135deg, #b7925a, #d0aa6a); border-color: transparent; color: #14110d !important; }
.oyq-btn[disabled] { opacity: .6; cursor: wait; }

.oyq-filters {
  display: grid;
  grid-template-columns: 160px 180px 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--oyq-border);
  border-radius: 14px;
  background: rgba(13, 17, 23, .42);
}
.oyq-filters input, .oyq-filters select,
.oyq-form input, .oyq-form textarea, .oyq-form select {
  width: 100%;
  background: #10151b;
  border: 1px solid rgba(255,255,255,.11);
  color: var(--oyq-text);
  border-radius: 10px;
  padding: 12px 13px;
  outline: none;
}
.oyq-filters input:focus, .oyq-filters select:focus,
.oyq-form input:focus, .oyq-form textarea:focus, .oyq-form select:focus { border-color: var(--oyq-gold); box-shadow: 0 0 0 2px rgba(183,146,90,.12); }

.oyq-grid { display: grid; gap: 18px; }
.oyq-card {
  position: relative;
  padding: clamp(20px, 4vw, 34px);
  background: linear-gradient(145deg, rgba(25,31,39,.98), rgba(16,21,27,.98));
  border: 1px solid var(--oyq-border);
  border-radius: var(--oyq-radius);
  box-shadow: 0 18px 45px rgba(0,0,0,.16);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}
.oyq-card:hover { border-color: rgba(183,146,90,.38); }
.oyq-card::before { content: "“"; position: absolute; top: 6px; right: 24px; font: 78px/1 Georgia, serif; color: rgba(183,146,90,.12); pointer-events: none; }
.oyq-card-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--oyq-muted); font-size: 12px; }
.oyq-topics { display: flex; flex-wrap: wrap; gap: 7px; }
.oyq-topics span { color: var(--oyq-gold-2); border: 1px solid var(--oyq-border); padding: 4px 8px; border-radius: 99px; font-size: 11px; }
.oyq-quote-text { margin: 0 0 22px !important; padding: 0 !important; border: 0 !important; color: #f0ebe2; font: 400 clamp(21px, 3vw, 30px)/1.55 Georgia, "Times New Roman", serif; }
.oyq-source { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 12px; }
.oyq-source strong { color: var(--oyq-gold-2); }
.oyq-source em { color: var(--oyq-text); }
.oyq-source span { color: var(--oyq-muted); font-size: 13px; }
.oyq-shared-by { color: var(--oyq-muted); font-size: 12px; margin-bottom: 18px; }
.oyq-shared-by a { color: var(--oyq-muted); text-decoration: underline; text-decoration-color: rgba(183,146,90,.4); }
.oyq-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.oyq-action { appearance: none; border: 0; background: transparent; color: var(--oyq-muted); padding: 8px 9px; border-radius: 8px; font-size: 13px; cursor: pointer; text-decoration: none !important; display: inline-flex; align-items: center; gap: 5px; }
.oyq-action:hover, .oyq-action.is-active { background: rgba(183,146,90,.11); color: var(--oyq-gold-2); }
.oyq-action b { font-weight: 650; }
.oyq-delete:hover { color: #ef8f8f; background: rgba(196,109,109,.09); }

.oyq-submit-shell { max-width: 860px; }
.oyq-form { padding: clamp(20px, 4vw, 34px); border: 1px solid var(--oyq-border); background: linear-gradient(145deg, rgba(25,31,39,.96), rgba(16,21,27,.96)); border-radius: var(--oyq-radius); }
.oyq-form label { display: block; font-weight: 650; color: #eee8df; margin: 0 0 8px; }
.oyq-form label span { color: var(--oyq-gold-2); }
.oyq-form textarea { resize: vertical; min-height: 175px; font: 20px/1.55 Georgia, serif; }
.oyq-charline { text-align: right; color: var(--oyq-muted); font-size: 12px; margin-top: 4px; }
.oyq-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.oyq-guidelines { margin: 20px 0; padding: 14px 16px; border-left: 3px solid var(--oyq-gold); background: rgba(183,146,90,.08); color: var(--oyq-muted); font-size: 13px; line-height: 1.6; }
.oyq-guidelines strong { color: var(--oyq-text); }
.oyq-message { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; }
.oyq-message.is-success { background: rgba(82,154,111,.12); border: 1px solid rgba(82,154,111,.3); color: #bce0c8; }
.oyq-message.is-error { background: rgba(196,109,109,.1); border: 1px solid rgba(196,109,109,.3); color: #efb6b6; }

.oyq-login-box, .oyq-empty { padding: 26px; border: 1px solid var(--oyq-border); border-radius: var(--oyq-radius); background: var(--oyq-card); }
.oyq-login-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.oyq-status-badge { display: inline-block; width: fit-content; margin: 0 0 -8px 12px; padding: 5px 9px; background: #7a5d2e; color: #fff1d1; border-radius: 99px; font-size: 11px; position: relative; z-index: 2; }

.oyq-pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.oyq-pagination a, .oyq-pagination .current { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; padding: 7px 10px; border: 1px solid var(--oyq-border); border-radius: 8px; color: var(--oyq-text); text-decoration: none; }
.oyq-pagination .current { background: rgba(183,146,90,.15); color: var(--oyq-gold-2); }

.oyq-single-page { background: var(--oyq-bg); min-height: 70vh; padding: clamp(42px, 7vw, 90px) 18px; }
.oyq-single-inner { max-width: 900px; margin: 0 auto; }
.oyq-single-back { display: inline-block; color: var(--oyq-muted); margin-bottom: 18px; text-decoration: none; }
.oyq-card-single { padding: clamp(26px, 6vw, 52px); }
.oyq-card-single .oyq-quote-text { font-size: clamp(26px, 4.2vw, 40px); }
.oyq-comments { margin-top: 30px; padding: clamp(18px, 4vw, 32px); border: 1px solid var(--oyq-border); border-radius: var(--oyq-radius); background: var(--oyq-card); color: var(--oyq-text); }
.oyq-comments input, .oyq-comments textarea { background: #0f141a; border: 1px solid rgba(255,255,255,.12); color: var(--oyq-text); border-radius: 8px; }

@media (max-width: 800px) {
  .oyq-section-head { align-items: start; flex-direction: column; }
  .oyq-filters { grid-template-columns: 1fr 1fr; }
  .oyq-filters button { grid-column: 1 / -1; }
  .oyq-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .oyq-filters { grid-template-columns: 1fr; }
  .oyq-card { border-radius: 12px; }
  .oyq-actions { gap: 2px; }
  .oyq-action span:not([aria-hidden="true"]) { display: none; }
}


/* v2 — canonical catalog picker */
.oyq-form-v2{overflow:visible}
.oyq-step-label{display:block;margin:0 0 7px;color:var(--oyq-gold-2);font-size:10px;font-weight:750;letter-spacing:.14em}
.oyq-step-quote{margin-top:26px}
.oyq-book-choice{margin:0 0 22px}
.oyq-book-picker-launch{display:grid;grid-template-columns:42px minmax(0,1fr) 24px;gap:12px;align-items:center;padding:16px;border:1px solid rgba(183,146,90,.28);border-radius:13px;background:#10151b;color:var(--oyq-text);text-decoration:none!important}
.oyq-book-picker-launch>span:first-child{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(183,146,90,.10);color:var(--oyq-gold-2);font-size:24px}
.oyq-book-picker-launch strong{display:block;color:#f1ece4;font-size:17px}.oyq-book-picker-launch small{display:block;margin-top:3px;color:var(--oyq-muted);font-size:11px}.oyq-book-picker-launch>b{color:var(--oyq-muted);font-size:20px}
.oyq-picked-book{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid rgba(183,146,90,.25);border-radius:12px;background:rgba(183,146,90,.06)}
.oyq-picked-cover{width:54px;height:78px;border-radius:6px;overflow:hidden;background:#171d24;display:grid;place-items:center;color:var(--oyq-gold-2);font:700 15px Georgia,serif}.oyq-picked-cover img{width:100%;height:100%;object-fit:cover}
.oyq-picked-copy strong{display:block;color:#f1ebe2;font-size:16px;line-height:1.3}.oyq-picked-copy small{display:block;margin-top:4px;color:var(--oyq-muted);font-size:12px}
.oyq-change-book-link{padding:8px 10px;border:1px solid rgba(183,146,90,.22);border-radius:8px;color:var(--oyq-gold-2);text-decoration:none!important;font-size:11px}
.oyq-recent-choice{margin-top:14px}.oyq-recent-choice>span{display:block;color:var(--oyq-muted);font-size:11px;margin-bottom:7px}.oyq-recent-choice>div{display:flex;gap:7px;overflow:auto;padding-bottom:4px;scrollbar-width:none}.oyq-recent-choice>div::-webkit-scrollbar{display:none}
.oyq-recent-choice a{flex:0 0 min(210px,72vw);padding:9px 10px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:#11171e;text-decoration:none!important}.oyq-recent-choice strong{display:block;color:#e9e3db;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.oyq-recent-choice small{display:block;margin-top:3px;color:var(--oyq-muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oyq-manual-book{margin-top:12px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:#10151b}.oyq-manual-book summary{cursor:pointer;padding:10px 12px;color:var(--oyq-muted);font-size:12px}.oyq-manual-book[open]{padding:0 12px 12px}.oyq-manual-book[open] summary{margin:0 -12px 10px;border-bottom:1px solid rgba(255,255,255,.06)}
.oyq-form-grid-compact{grid-template-columns:minmax(100px,.4fr) minmax(0,1fr)}
.oyq-form label small{color:var(--oyq-muted);font-weight:400}
.oyq-source-rich{display:grid;grid-template-columns:auto minmax(0,1fr);gap:11px;align-items:center}.oyq-source-rich>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.oyq-source-rich a{text-decoration:none!important}.oyq-source-cover{width:46px;height:66px;border-radius:5px;overflow:hidden;background:#171d24;display:block}.oyq-source-cover img{width:100%;height:100%;object-fit:cover}
.oyq-submit-btn{width:100%;min-height:49px}

@media(max-width:600px){
 .oyq-form-v2{padding:16px}
 .oyq-picked-book{grid-template-columns:52px minmax(0,1fr) auto;gap:10px}.oyq-picked-cover{width:50px;height:72px}
 .oyq-form-grid-compact{grid-template-columns:1fr}
 .oyq-step-quote{margin-top:22px}
}
