/* v1.45.0 — Request to buy, Requests & opportunities (app/opportunities.js) */
.rtb-btn, [data-rtb].rtb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1.5px solid #173c35; border-radius: 999px; background: #fff; color: #173c35; font: 600 14px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.rtb-btn:hover { background: #def19e; }
.rtb-btn:focus-visible { outline: 3px solid #def19e; outline-offset: 2px; }
.rtb-btn small { font-weight: 500; opacity: .75; }

.opp-dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 18px; background: #f7f8f2; color: #173c35; box-shadow: 0 30px 80px rgba(10, 30, 22, .35); }
.opp-dialog::backdrop { background: rgba(16, 41, 31, .55); }
.opp-form { position: relative; display: grid; gap: 12px; padding: 24px; font: 15px/1.45 "DM Sans", system-ui, sans-serif; }
.opp-form h2 { margin: 0; font: 600 26px/1.15 "Cormorant Garamond", Cormorant, Georgia, serif; }
.opp-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3f6b4f; }
.opp-sub, .opp-fine { margin: 0; color: #4f5d55; font-size: 14px; }
.opp-fine { font-size: 13px; }
.opp-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; color: #173c35; cursor: pointer; }
.opp-x:hover { background: #e9eddf; }
.opp-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.opp-form input:not([type=radio]):not([type=checkbox]), .opp-form textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #c9d1bf; border-radius: 10px; background: #fff; color: #173c35; font: inherit; font-weight: 400; box-sizing: border-box; }
.opp-form input:focus, .opp-form textarea:focus { outline: 2px solid #244b38; outline-offset: 1px; }
.opp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.opp-qty { display: inline-grid; grid-template-columns: 40px 64px 40px; border: 1px solid #c9d1bf; border-radius: 10px; overflow: hidden; background: #fff; width: max-content; }
.opp-qty button { border: 0; background: #eef1e6; font-size: 18px; color: #173c35; cursor: pointer; }
.opp-form .opp-qty input { border: 0 !important; border-radius: 0 !important; text-align: center; -moz-appearance: textfield; }
.opp-ful { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; border: 0; }
.opp-ful legend { width: 100%; padding: 0 0 4px; font-size: 13px; font-weight: 600; }
.opp-ful label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; }
.opp-form .opp-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.opp-err { margin: 0; padding: 8px 12px; border-radius: 8px; background: #fdecea; color: #8a1c12; font-size: 14px; }
.opp-ok { margin: 0; padding: 12px 14px; border-radius: 12px; background: #def19e; color: #173c35; }
.opp-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.opp-cancel, .opp-send { min-height: 44px; padding: 0 20px; border-radius: 999px; font: 600 15px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; }
.opp-cancel { border: 1px solid #c9d1bf; background: #fff; color: #173c35; }
.opp-send { border: 0; background: #173c35; color: #fff; }
.opp-send:disabled { opacity: .6; cursor: wait; }
@media (max-width: 520px) { .opp-row { grid-template-columns: 1fr; } .opp-form { padding: 20px 16px; } }

/* Studio */
.opp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.opp-head h2 { margin: 0 0 4px; }
.opp-tabs, .opp-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.opp-tabs button, .opp-filters button { min-height: 36px; padding: 0 14px; border: 1px solid #dce1d3; border-radius: 999px; background: #fff; color: #173c35; font: 600 13px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; }
.opp-tabs button[aria-selected=true], .opp-filters button[aria-pressed=true] { background: #173c35; border-color: #173c35; color: #fff; }
.opp-filters { margin: 4px 0 16px; }
.opp-lsel { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.opp-lsel select { min-height: 36px; border: 1px solid #dce1d3; border-radius: 10px; padding: 0 10px; }
.opp-sec { margin: 0 0 22px; }
.opp-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 17px; }
.opp-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #def19e; font-size: 12px; }
.opp-card { display: grid; gap: 8px; margin: 0 0 10px; padding: 16px; border: 1px solid #dce1d3; border-radius: 14px; background: #fff; }
.opp-card.appt { border-left: 4px solid #244b38; }
.opp-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.opp-card header small { display: block; margin-top: 3px; color: #5d6b62; font-size: 13px; }
.opp-val { margin-left: 4px; font-weight: 700; color: #244b38; }
.opp-warn { color: #9a4b00; font-weight: 600; }
.opp-st { flex: none; padding: 4px 10px; border-radius: 999px; background: #eef1e6; font-size: 12px; font-weight: 700; white-space: nowrap; }
.opp-st.st-new { background: #def19e; }
.opp-st.st-sold { background: #173c35; color: #fff; }
.opp-st.st-unavailable, .opp-st.st-closed { background: #ececec; color: #555; }
.opp-who, .opp-notes { margin: 0; font-size: 14px; }
.opp-who a { color: #173c35; }
.opp-notes { padding: 8px 12px; border-radius: 10px; background: #f7f8f2; font-style: normal; }
.opp-reply { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.opp-reply textarea, .opp-propose input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #dce1d3; border-radius: 10px; font: inherit; box-sizing: border-box; }
.opp-acts2 { display: flex; flex-wrap: wrap; gap: 8px; }
.opp-propose { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #f7f8f2; }
.opp-propose label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.opp-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #def19e; color: #173c35; text-decoration: none; font-size: 14px; }
.opp-banner span { margin-left: auto; font-weight: 700; }
@media (max-width: 640px) { .opp-reply { grid-template-columns: 1fr; } }
.opp-qty input { -moz-appearance: textfield; appearance: textfield; text-align: center; }
.opp-qty input::-webkit-outer-spin-button, .opp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
