
/* Use the existing operations frame for both the form and its detail view. */
#opsInquiryTarget:disabled{background:#f0f3f1;color:#73827a}
#opsInquiryQueue{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:6px;margin:0 0 10px}
#opsInquiryQueue[hidden],#opsInquiryList [hidden]{display:none!important}
#opsInquiryQueue button{min-width:0;min-height:44px;padding:5px;border:1px solid #86ab95;border-radius:8px;background:#edf7ef;color:#214c34;font:inherit;font-weight:700;overflow-wrap:anywhere}
#opsInquiryQueue button[aria-pressed="true"],#opsInquiryList .ops-primary-reply{background:#1e6945;color:#fff;border-color:#1e6945}
#opsInquiryQueue button:disabled{opacity:.65}
#opsInquiryQueueLimit{grid-column:1/-1}
#opsInquiryToolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
#opsInquiryToolbar .ops-actions{margin-left:auto}
#opsInquiryToolbar .ops-actions button{padding-inline:clamp(7px,2vw,13px);white-space:nowrap}
#opsInquiryList .ops-reply>.board-photo-gallery{width:100%;justify-content:flex-end}
#opsInquiryList .ops-reply>.board-photo-gallery>.board-photo-add{display:block;margin-inline-start:auto}
#opsInquiryList .ops-comments{margin-top:10px;padding-top:10px;border-top:1px solid #cbded3}
#opsInquiryList .ops-comments [hidden],#opsInquiryList .ops-comment-status:empty{display:none!important}
#opsInquiryList .ops-comment-list{list-style:none;margin:0;padding:0}
#opsInquiryList .ops-comment-list>li{margin-top:7px;padding:8px 10px;border:1px solid #dbe7e1;border-radius:9px;background:#f6fbf8}
#opsInquiryList .ops-comment-byline{font-weight:750;color:#4b6659;overflow-wrap:anywhere}
#opsInquiryList .ops-comment-body{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:3px}
#opsInquiryList .ops-comments textarea{display:block;width:100%;box-sizing:border-box;min-height:64px;margin:8px 0 6px;padding:8px 9px;border:1px solid #ccd9d2;border-radius:9px;background:#fff;color:#25483b;font:inherit;resize:vertical}
#opsInquiryList .ops-comment-status{margin-top:6px}
#opsInquiryList .ops-comments :is(button,textarea):focus-visible{outline:2px solid #418363;outline-offset:2px}
html[data-oreumup-theme="dark"] body #opsInquiryList :is(.ops-reply,.ops-reply-box,.ops-reply-compose,.ops-comment-list>li){
  background:var(--fu-card,#20332a);color:var(--fu-ink,#fff);border-color:var(--fu-border,#496457)
}
html[data-oreumup-theme="dark"] body #opsInquiryList .ops-reply{border-inline-start-color:var(--fu-green,#76dcac)}
html[data-oreumup-theme="dark"] body #opsInquiryList :is(.ops-reply>strong,.ops-reply-head,.ops-reply-body){color:var(--fu-ink,#fff)}
html[data-oreumup-theme="dark"] body #opsInquiryList :is(.ops-reply-head span,.ops-comment-byline){color:var(--fu-muted,#d8e4db)}
html[data-oreumup-theme="dark"] body #opsInquiryList :is(.ops-reply-compose,.ops-comments) textarea{
  background:var(--fu-select,#1c392a);color:var(--fu-ink,#fff);border-color:var(--fu-border,#496457)
}
html[data-oreumup-theme="dark"] body #opsInquiryList :is(.ops-reply-compose,.ops-comments) textarea::placeholder{color:var(--fu-muted,#d8e4db)}
html[data-oreumup-theme="dark"] body #opsInquiryList .ops-comments{border-color:var(--fu-border,#496457)}
html[data-oreumup-theme="dark"] body #opsInquiryList .ops-badge{
  background:var(--fu-select,#1c392a);color:var(--fu-ink,#fff);box-shadow:inset 0 0 0 1px var(--fu-border,#496457)
}
html[data-oreumup-theme="dark"] body #opsInquiryList .ops-badge.report{background:var(--fu-danger-bg,#412b2d);color:var(--fu-danger,#ffc5be)}
html[data-oreumup-theme="dark"] body #opsInquiryList .ops-badge.done{background:var(--fu-select,#1c392a);color:var(--fu-green,#76dcac)}
html[data-oreumup-theme="dark"] #opsInquiryQueue button{background:#22372c;color:#e2f2e7;border-color:#577763}
html[data-oreumup-theme="dark"] #opsInquiryQueue button[aria-pressed="true"],
html[data-oreumup-theme="dark"] #opsInquiryList .ops-primary-reply{background:#295f44;color:#fff;border-color:#83bc99}
#opsInquiryList>.ops-post:has(.ops-post-title[aria-expanded="false"]) :is(.owner-post-actions,.ops-post-actions>:not([data-ops-reply]),.ops-post-actions:not(:has(>[data-ops-reply]))){display:none!important}
@media(max-width:760px){
  #opsInquiryList>.ops-post:has(.ops-post-title[aria-expanded="false"]) :is(.ops-post-meta,.ops-post-body,.ops-report-target,.ops-reply,.ops-badge.private,.ops-post-mine){display:none!important}
  #opsInquiryList>.ops-post:has(.ops-post-title[aria-expanded="false"]) .ops-post-head{display:grid;gap:6px}
  #opsInquiryList>.ops-post:has(.ops-post-title[aria-expanded="false"]) .ops-badges{justify-content:flex-start}
}
#opsInquiryList dialog.board-ops-detail[open]{
  width:min(720px,calc(100vw - 24px));max-width:min(720px,calc(100vw - 24px));
  height:min(88vh,860px,calc(100vh - 32px));max-height:min(88vh,860px,calc(100vh - 32px))
}
#opsInquiryList dialog.board-ops-detail::backdrop{background:transparent}
@supports(height:100svh){
  #opsInquiryList dialog.board-ops-detail[open]{height:min(88svh,860px,calc(100svh - 32px));max-height:min(88svh,860px,calc(100svh - 32px))}
}
/* Only windows whose existing list actually resizes get reserved geometry. */
@media (min-width:761px){
  #participantModal .participant-card,
  #questionWriteModal .quick-write-card,
  #myTradeModal .my-trade-card,
  #stockUploadModal .inventory-trade-card:has(#inventoryBoardPane:not(.quick-hidden)){
    height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;
    overflow-y:auto!important;overscroll-behavior:contain
  }
}
@media (max-width:760px){
  #questionWriteModal .quick-write-card,
  #myTradeModal .my-trade-card,
  #stockUploadModal .inventory-trade-card:has(#inventoryBoardPane:not(.quick-hidden)){
    height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important;
    overflow-y:auto!important;overscroll-behavior:contain
  }
}
@media (max-width:760px) and (pointer:fine){
  #participantModal .participant-card{height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important;overflow-y:auto!important}
}
#participantList .orumup-visual-loading,#questionBoardList .orumup-visual-loading,
#inventoryBoardList .orumup-visual-loading,#myTradeList .orumup-visual-loading{
  opacity:0;animation:orumup-slow-loading 1ms steps(1,end) 3s forwards
}
@keyframes orumup-slow-loading{to{opacity:1}}
/* Notice operator controls stay invisible until the server confirms operator authority. */
#noticeModal .notice-list-actions{display:flex;align-items:center;gap:7px}
#noticeModal .notice-write-open{
  min-height:36px;padding:7px 12px;border:0;border-radius:10px;
  background:#0b73e7;color:#fff;font:inherit;font-size:calc(10px * var(--oreumup-font-scale,1));font-weight:950
}
#noticeModal .notice-write-open[hidden]{display:none!important}
#noticeModal .notice-compose{margin:9px 0 11px;padding:12px;border:1px solid #dbe5eb;border-radius:13px;background:#f9fbfc}
#noticeModal .notice-compose-grid{display:grid;gap:8px}
#noticeModal .notice-compose label{display:grid;gap:5px;color:#435c70;font-size:calc(9px * var(--oreumup-font-scale,1));font-weight:900}
#noticeModal .notice-compose input[type="text"],
#noticeModal .notice-compose textarea{width:100%;border:1px solid #d5e0e7;border-radius:10px;background:#fff;color:#1d3556;padding:9px 10px;font:inherit;font-size:calc(10.5px * var(--oreumup-font-scale,1));outline:none}
#noticeModal .notice-compose textarea{min-height:118px;resize:vertical;line-height:1.5}
#noticeModal .notice-pin-choice{display:flex!important;grid-template-columns:none!important;align-items:center!important;gap:7px!important}
#noticeModal .notice-pin-choice input{width:18px;height:18px;accent-color:#0b9256}
#noticeModal .notice-compose-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:8px}
#noticeModal .notice-compose-actions button{min-height:36px;padding:7px 12px;border:1px solid #d7e1e7;border-radius:10px;background:#fff;color:#5c6d7e;font:inherit;font-size:calc(9.5px * var(--oreumup-font-scale,1));font-weight:900}
#noticeModal .notice-compose-actions .primary{border-color:#0b9256;background:#0b9256;color:#fff}
#noticeModal .notice-compose-status{min-height:18px;margin-top:6px;color:#667b8c;font-size:calc(8.5px * var(--oreumup-font-scale,1));font-weight:800}
#noticeModal .notice-board-row{position:relative}
#noticeModal .notice-board-row .notice-board-item{width:100%}
#noticeModal .notice-admin-actions{display:flex;gap:5px;position:absolute;right:39px;bottom:8px;z-index:2}
#noticeModal .notice-admin-actions button{min-height:27px;padding:4px 7px;border:1px solid #d9e3e9;border-radius:8px;background:#fff;color:#54697c;font:inherit;font-size:calc(8px * var(--oreumup-font-scale,1));font-weight:900}
#noticeModal .notice-admin-actions .danger{color:#c44949;background:#fff7f7;border-color:#f0d3d3}
@media(max-width:760px){
  #noticeModal .notice-list-head{align-items:center!important}
  #noticeModal .notice-write-open{min-height:38px;padding:7px 11px;font-size:calc(10.5px * var(--oreumup-font-scale,1))}
  #noticeModal .notice-admin-actions{right:34px;bottom:6px}
}

/* Information·Question rows in My Trade use the exact same two-line skeleton as stock rows. */
#myTradeModal .my-trade-item.question .my-trade-facts{color:#536b91!important}

#myTradeModal .my-trade-private-price{color:#a7b0b9!important;font-weight:750!important}
#oreumupInventorySyncModal{padding:8px!important}
#oreumupInventorySyncModal.show .oreumup-inv-card{
  box-sizing:border-box!important;
  width:min(1100px,calc(100vw - 16px))!important;
  height:calc(100dvh - 16px)!important;
  max-height:calc(100dvh - 16px)!important;
  overflow:auto!important
}

/* Home hub: use the PC app window instead of a short scrolling card. */
#homeHubModal{padding:8px!important}
#homeHubModal .home-hub-card{
  box-sizing:border-box!important;
  width:min(760px,calc(100vw - 16px))!important;
  height:min(700px,calc(100dvh - 16px))!important;
  max-height:calc(100dvh - 16px)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important
}
#homeHubModal .home-hub-grid{
  flex:1 1 auto!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-content:center!important;
  gap:9px!important;
  padding:10px 14px 8px!important;
  overflow:auto!important
}
#homeHubModal .home-hub-btn{
  min-height:84px!important;
  padding:10px 12px!important;
  grid-template-columns:32px minmax(0,1fr)!important;
  column-gap:8px!important;
  row-gap:2px!important
}
#homeHubModal .home-hub-btn .hub-ico{font-size:24px!important}
#homeHubModal .home-hub-btn strong{font-size:calc(14.5px * var(--oreumup-font-scale,1))!important}
#homeHubModal .home-hub-btn small{
  min-width:0!important;
  font-size:calc(9.4px * var(--oreumup-font-scale,1))!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important
}
#homeHubModal .home-hub-note{margin:0 14px 12px!important;padding:8px 10px!important;font-size:calc(9.5px * var(--oreumup-font-scale,1))!important}
@media(max-width:560px){
  #homeHubModal .home-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:8px!important}
  #homeHubModal .home-hub-btn{min-height:76px!important;padding:8px!important;grid-template-columns:27px minmax(0,1fr)!important;column-gap:6px!important;border-radius:14px!important}
  #homeHubModal .home-hub-btn .hub-ico{font-size:21px!important}
  #homeHubModal .home-hub-btn strong{font-size:calc(12.8px * var(--oreumup-font-scale,1))!important}
  #homeHubModal .home-hub-btn small{font-size:calc(8.4px * var(--oreumup-font-scale,1))!important}
  #homeHubModal .home-hub-note{margin:0 8px 8px!important;padding:7px 8px!important;font-size:calc(8.5px * var(--oreumup-font-scale,1))!important}
}
