/* Integration Collective — Rate My Work (Nov 15 2026). Built on the ic-areas layout. */
.rmw { max-width: 1200px; }
/* .ica-btn sets display:inline-flex, which beats the [hidden] attribute */
.rmw [hidden], .rmw-dialog [hidden] { display: none !important; }
.rmw-head { display: grid; gap: 16px; align-items: end; }
.rmw-rules { margin: 10px 0 0; font-size: 13px; font-style: italic; color: #64748b; }
.rmw-share { display: grid; gap: 6px; justify-items: start; }
.rmw-share .ica-btn { cursor: pointer; font-size: 15px; }
.rmw-share-note { margin: 0; font-size: 13px; color: #64748b; }
.rmw-share-note a { color: #2563eb; font-weight: 700; }

.rmw-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rmw-tabs[hidden] { display: none; }
.rmw-tabs button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #e2e8f0; background: #fff;
  color: #0f172a; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.rmw-tabs button[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.rmw-tab-lead { margin: -8px 0 0; color: #475569; font-size: 14px; }
/* Moderator review (Nov 16 2026) */
.rmw-tabs .rmw-review-tab { border-color: #c2410c; color: #c2410c; }
.rmw-tabs .rmw-review-tab[aria-pressed="true"] { background: #c2410c; border-color: #c2410c; color: #fff; }
.rmw-notice { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 14px; line-height: 1.5; }
.rmw-review-badge { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 12px; font-weight: 700; }
.rmw-review-bar { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; }
.rmw-review-bar > p:first-child { margin: 0; font-weight: 800; color: #9a3412; }
.rmw-review-bar .ica-btn { cursor: pointer; font-size: 15px; min-height: 44px; }

.rmw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.rmw-card {
  display: flex; flex-direction: column; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.rmw-card:hover, .rmw-card:focus-visible { transform: translateY(-2px); border-color: #2563eb; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1); }
.rmw-one, .rmw-ba { display: block; aspect-ratio: 4 / 3; background: #f1f5f9; }
.rmw-one img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rmw-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.rmw-ba > span { position: relative; overflow: hidden; }
.rmw-ba img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rmw-ba em {
  position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; font-style: normal;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(15, 23, 42, 0.78); color: #fff;
}
.rmw-ba > span:last-child em { background: #15803d; }
.rmw-card-info { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1 1 auto; }
.rmw-tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #2563eb; }
.rmw-tag--before_after { color: #15803d; }
.rmw-tag--horrors { color: #c2410c; }
.rmw-card-title { font-weight: 800; font-size: 1rem; line-height: 1.3; color: #0f172a; }
.rmw-card-credit { font-size: 13px; color: #475569; }
.rmw-card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; font-size: 13px; color: #64748b; }
.rmw-card-reacts { display: flex; gap: 10px; }

.rmw-empty { margin: 0; padding: 40px 20px; text-align: center; border: 1.5px dashed #cbd5e1; border-radius: 14px; background: #fff; color: #475569; }
.rmw-empty[hidden], .rmw-grid[hidden] { display: none; }
.rmw-more { display: flex; justify-content: center; }
.rmw-more .ica-btn { cursor: pointer; }
.rmw-signed-out { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.rmw-signed-out[hidden] { display: none; }
.rmw-signed-out h2 { margin: 0; font-size: 1.2rem; color: #0f172a; }
.rmw-signed-out p { margin: 0 0 8px; color: #475569; }

/* Dialogs: full screen on phones, centred panel from 720px */
.rmw-dialog {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: #fff; color: #0f172a; overflow-y: auto; overscroll-behavior: contain;
}
.rmw-dialog::backdrop { background: rgba(15, 23, 42, 0.6); }
.rmw-dialog-bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: #fff; border-bottom: 1px solid #e2e8f0;
}
.rmw-dialog-bar h2 { margin: 0; font-size: 1.1rem; }
.rmw-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f1f5f9; font-size: 26px; line-height: 1; cursor: pointer; color: #0f172a; }
.rmw-post-body, .rmw-share-form { padding: 16px 16px calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.rmw-post-body h2 { margin: 4px 0 0; font-size: 1.3rem; line-height: 1.25; }
.rmw-credit { margin: 0; font-size: 14px; color: #475569; }
.rmw-caption { margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.rmw-caption[hidden] { display: none; }
.rmw-one-big, .rmw-ba-big { aspect-ratio: auto; background: #0f172a; border-radius: 10px; overflow: hidden; }
.rmw-one-big img { width: 100%; height: auto; max-height: 75vh; object-fit: contain; }
.rmw-ba-big { grid-template-columns: 1fr; }
.rmw-ba-big img { height: auto; max-height: 60vh; object-fit: contain; }

.rmw-reacts { display: flex; flex-wrap: wrap; gap: 8px; }
.rmw-react {
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #e2e8f0; background: #fff;
  font: inherit; font-size: 14px; font-weight: 700; color: #0f172a; cursor: pointer;
}
.rmw-react b { color: #64748b; margin-left: 2px; }
.rmw-react.is-on { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
.rmw-react.is-on b { color: #1d4ed8; }
.rmw-react:disabled { cursor: default; opacity: 0.85; }

.rmw-comments { border-top: 1px solid #e2e8f0; padding-top: 12px; display: grid; gap: 10px; }
.rmw-comments h3 { margin: 0; font-size: 1rem; }
.rmw-comments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rmw-comments li { background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
.rmw-comments li p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.rmw-c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 13px; }
.rmw-c-head span { color: #64748b; }
.rmw-c-head .rmw-link { margin-left: auto; }
.rmw-c-none { color: #64748b; font-size: 14px; }
#rmwCommentForm { display: grid; gap: 8px; }
#rmwCommentForm[hidden] { display: none; }
#rmwCommentForm .rmw-rules { margin: 0; }

.rmw-post-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; }
.rmw-link { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 13px; color: #64748b; text-decoration: underline; cursor: pointer; }
.rmw-link[hidden] { display: none; }
.rmw-link-danger { color: #b91c1c; }

/* Share form */
.rmw-share-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.rmw-share-form legend, .rmw-field > label { padding: 0; margin-bottom: 6px; font-weight: 800; font-size: 15px; }
.rmw-field > label span { font-weight: 500; color: #64748b; }
.rmw-cats { grid-template-columns: 1fr; }
.rmw-cats label { position: relative; display: block; cursor: pointer; }
.rmw-cats input { position: absolute; opacity: 0; }
.rmw-cats label > span {
  display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 13px; color: #475569;
}
.rmw-cats b { font-size: 15px; color: #0f172a; }
.rmw-cats input:checked + span { border-color: #2563eb; background: #eff6ff; }
.rmw-cats input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 2px; }
.rmw-pick-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rmw-drop {
  position: relative; display: grid; place-items: center; min-height: 140px; border: 2px dashed #cbd5e1; border-radius: 12px;
  background: #f8fafc; cursor: pointer; overflow: hidden; text-align: center;
}
.rmw-drop[hidden] { display: none; }
.rmw-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.rmw-drop-label { padding: 16px; font-weight: 700; color: #2563eb; pointer-events: none; }
.rmw-drop img { width: 100%; max-height: 260px; object-fit: contain; pointer-events: none; }
.rmw-drop.has-photo { border-style: solid; border-color: #2563eb; background: #0f172a; }
.rmw-drop.has-photo .rmw-drop-label { display: none; }
.rmw-drop.is-busy::after { content: "Preparing photo…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(248, 250, 252, 0.9); font-weight: 700; color: #475569; }
.rmw-hint { margin: 0; font-size: 13px; color: #64748b; line-height: 1.5; }
.rmw-hint[hidden] { display: none; }
.rmw-horrors-rule { color: #9a3412; }
.rmw-field { display: grid; }
.rmw-share-form input[type="text"], .rmw-share-form textarea, #rmwCommentBody {
  width: 100%; box-sizing: border-box; padding: 12px; border: 1.5px solid #cbd5e1; border-radius: 10px;
  font: inherit; font-size: 16px; color: #0f172a; background: #fff; resize: vertical;
}
.rmw-share-form input[type="text"]:focus, .rmw-share-form textarea:focus, #rmwCommentBody:focus { outline: none; border-color: #2563eb; }
.rmw-toggle { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; cursor: pointer; }
.rmw-toggle input { width: 22px; height: 22px; accent-color: #2563eb; }
.rmw-form-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.rmw-form-row .ica-btn { cursor: pointer; font-size: 15px; }
.rmw-form-row .ica-btn:disabled { opacity: 0.6; cursor: default; }
.rmw-error { margin-right: auto; color: #b91c1c; font-size: 14px; font-weight: 600; }

/* Pixelate tool */
.rmw-slot { display: grid; gap: 6px; align-content: start; }
.rmw-blur-btn {
  justify-self: start; min-height: 44px; padding: 8px 14px; border: 1.5px solid #cbd5e1; border-radius: 10px;
  background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: #0f172a; cursor: pointer;
}
.rmw-blur-btn.is-applied { border-color: #16a34a; color: #166534; background: #f0fdf4; }
.rmw-blur-dlg[open] { display: flex; flex-direction: column; }
.rmw-blur-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.rmw-blur-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; background: #0f172a; border-radius: 12px; overflow: hidden; }
#rmwBlurCanvas {
  display: block; max-width: 100%; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px);
  width: auto; height: auto; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none;
}
.rmw-blur-box { position: absolute; border: 2px solid #facc15; background: rgba(250, 204, 21, 0.25); pointer-events: none; }
.rmw-blur-body .rmw-form-row .rmw-hint { margin-right: auto; }

@media (min-width: 720px) {
  .rmw-head { grid-template-columns: minmax(0, 1fr) auto; }
  .rmw-share { justify-items: end; text-align: right; }
  .rmw-dialog { width: min(760px, 92vw); height: auto; max-height: 92vh; margin: auto; border-radius: 16px; }
  .rmw-dialog-bar { padding-top: 10px; }
  .rmw-blur-dlg { height: 92vh; }
  #rmwBlurCanvas { max-height: calc(92vh - 230px); }
  .rmw-ba-big { grid-template-columns: 1fr 1fr; }
  .rmw-cats { grid-template-columns: repeat(3, 1fr); }
  .rmw-pick-row { grid-template-columns: 1fr 1fr; }
  .rmw-pick-row:has(#rmwSlot2[hidden]) { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ica.rmw { padding: 20px 16px 48px; }
  .rmw-grid { grid-template-columns: 1fr; }
  .rmw-tabs button { flex: 1 1 calc(50% - 8px); }
}

/* Founding Member badge on Rate My Work's light background (2026-11-16). */
.ic-founder, .rmw-c-head .ic-founder { color: #7A5C00; border-color: #C9A227; background: #FFF6D6; }
.rmw-c-head b .ic-founder { font-weight: 800; }
