/* SKGA Portfolio review modal · 5.3.9.58.84
   Presentation-only patch. Native review controls and listeners remain unchanged. */
.sw83-overlay{
  --sw84-bg:#1b1e23;--sw84-fg:#f1f3f6;--sw84-muted:#adb7c4;
  --sw84-line:#39414c;--sw84-field:#15191e;--sw84-toolbar:#242a32;
  --sw84-accent:#89171e;--sw84-focus:#b95660;
  z-index:20000!important;background:rgba(8,11,16,.79)!important;
  padding:clamp(10px,3vw,24px)!important;align-items:center!important;
  overscroll-behavior:contain!important;
}
.sw83-overlay .sw83-dialog{
  width:min(100%,700px)!important;max-height:min(94dvh,960px)!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
  background:var(--sw84-bg)!important;color:var(--sw84-fg)!important;
  border:1px solid var(--sw84-line)!important;border-radius:18px!important;
  box-shadow:0 26px 90px rgba(0,0,0,.46)!important;
}
.sw83-overlay .sw83-header{
  flex:0 0 auto!important;display:flex!important;align-items:flex-start!important;
  padding:23px 26px 20px!important;gap:18px!important;
  background:var(--sw84-bg)!important;border-bottom:1px solid var(--sw84-line)!important;
}
.sw83-overlay .sw83-eyebrow{font-size:10px!important;letter-spacing:.09em!important;font-weight:750!important;color:#dd999e!important;line-height:1.5!important}
.sw83-overlay .sw83-header h2{margin:6px 0 7px!important;font-size:clamp(20px,3vw,24px)!important;font-weight:800!important;line-height:1.22!important;color:var(--sw84-fg)!important}
.sw83-overlay .sw83-header p{margin:0!important;color:var(--sw84-muted)!important;font-size:13px!important;line-height:1.55!important}
.sw83-overlay .sw83-close{
  flex:0 0 38px!important;width:38px!important;height:38px!important;
  display:grid!important;place-items:center!important;padding:0!important;
  border-radius:50%!important;background:#2c323b!important;color:#f6f7f9!important;
  border:1px solid #49525f!important;line-height:1!important;font-size:22px!important;
}
.sw83-overlay .sw83-close:hover{background:#414853!important}
.sw83-overlay .sw83-body{
  flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;
  padding:22px 26px 24px!important;scrollbar-gutter:stable!important;
}
.sw83-overlay .sw-review{display:block!important;position:static!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important;min-width:0!important;box-shadow:none!important;border:0!important;background:transparent!important;color:var(--sw84-fg)!important}
.sw83-overlay .sw-review .portfolio-section-title{display:none!important}
.sw83-overlay .sw-review .sw-review-intro{
  margin:0 0 18px!important;padding:12px 15px!important;
  border:1px solid var(--sw84-line)!important;border-radius:11px!important;
  color:var(--sw84-muted)!important;background:rgba(145,156,172,.055)!important;
  line-height:1.55!important;font-size:12px!important;
}
.sw83-overlay .sw-review label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;margin:0 0 18px!important;color:var(--sw84-fg)!important;font-weight:700!important;font-size:13px!important;line-height:1.45!important;min-width:0!important}
.sw83-overlay .sw-review #swReviewGrade{
  display:block!important;width:100%!important;min-height:46px!important;
  margin:0!important;padding:10px 13px!important;box-sizing:border-box!important;
  background:var(--sw84-field)!important;color:var(--sw84-fg)!important;
  -webkit-text-fill-color:var(--sw84-fg)!important;border:1px solid #525c6a!important;
  border-radius:11px!important;font-size:14px!important;line-height:1.5!important;
}
.sw83-overlay .sw-review #swReviewGrade option{background:#1b2027!important;color:#f1f3f6!important}
.sw83-overlay .sw-review :is(#swReviewGrade,#swReviewComment,[contenteditable="true"]):focus-visible{
  outline:2px solid var(--sw84-focus)!important;outline-offset:2px!important;
}
/* Base textarea (visible when rich editor is not initialized). */
.sw83-overlay .sw-review #swReviewComment{
  display:block;width:100%!important;min-height:180px!important;padding:14px 15px!important;
  box-sizing:border-box!important;resize:vertical!important;
  background:var(--sw84-field)!important;color:var(--sw84-fg)!important;
  -webkit-text-fill-color:var(--sw84-fg)!important;border:1px solid #525c6a!important;
  border-radius:11px!important;line-height:1.6!important;font-size:14px!important;
  caret-color:var(--sw84-fg)!important;
}
.sw83-overlay .sw-review #swReviewComment::placeholder{color:#9aa6b5!important;-webkit-text-fill-color:#9aa6b5!important;opacity:1!important}
/* Rich editor containers and formatting toolbar. The actual editor may wrap/hide the textarea. */
.sw83-overlay .sw-review :is(.v24-rich,.ql-container,.tox-tinymce,.rich-editor,.rich-editor-wrap,.editor-wrapper,.sw-rich-editor){
  max-width:100%!important;min-width:0!important;
  background:var(--sw84-field)!important;color:var(--sw84-fg)!important;
  border:1px solid #525c6a!important;border-radius:11px!important;
  overflow:hidden!important;box-shadow:none!important;
}
.sw83-overlay .sw-review :is(.v24-richbar,.ql-toolbar,.rich-toolbar,.editor-toolbar,.toolbar-rich,.sw-rich-toolbar){
  display:flex;flex-wrap:wrap;align-items:center;gap:3px;
  max-width:100%!important;padding:8px!important;
  background:var(--sw84-toolbar)!important;color:var(--sw84-fg)!important;
  border:0!important;border-bottom:1px solid var(--sw84-line)!important;
  border-radius:10px 10px 0 0!important;
}
.sw83-overlay .sw-review :is(.v24-richedit,.ql-editor,.ProseMirror,[contenteditable="true"]){
  min-height:175px!important;max-width:100%!important;padding:14px!important;
  box-sizing:border-box!important;background:var(--sw84-field)!important;
  color:var(--sw84-fg)!important;-webkit-text-fill-color:var(--sw84-fg)!important;
  caret-color:var(--sw84-fg)!important;line-height:1.6!important;
  border-color:var(--sw84-line)!important;overflow-wrap:anywhere!important;
}
.sw83-overlay .sw-review :is(.v24-richedit,.ql-editor,[contenteditable="true"]):empty::before{color:#9aa6b5!important;-webkit-text-fill-color:#9aa6b5!important}
.sw83-overlay .sw-review :is(.v24-richbar,.rich-toolbar,.editor-toolbar,.toolbar-rich,.sw-rich-toolbar) button{
  width:auto!important;min-width:30px!important;min-height:30px!important;
  padding:5px 7px!important;margin:0!important;background:transparent!important;
  color:var(--sw84-fg)!important;-webkit-text-fill-color:var(--sw84-fg)!important;
  border:1px solid transparent!important;border-radius:7px!important;box-shadow:none!important;
}
.sw83-overlay .sw-review :is(.v24-richbar,.rich-toolbar,.editor-toolbar,.toolbar-rich,.sw-rich-toolbar) button:hover{background:#39424f!important}
.sw83-overlay .sw-review :is(.v24-richbar,.rich-toolbar,.editor-toolbar,.toolbar-rich,.sw-rich-toolbar) select{min-height:32px!important;background:var(--sw84-field)!important;color:var(--sw84-fg)!important;border:1px solid var(--sw84-line)!important;border-radius:7px!important}
/* Action hierarchy. No onclick handler, data-decision or button type is changed. */
.sw83-overlay .sw-review .sw-review-actions{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:9px!important;margin:20px 0 0!important;
}
.sw83-overlay .sw-review .sw-review-actions button{
  width:100%!important;min-width:0!important;min-height:46px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;padding:11px 12px!important;border-radius:10px!important;
  font-size:13px!important;font-weight:750!important;line-height:1.35!important;
  white-space:normal!important;text-align:center!important;cursor:pointer!important;
}
.sw83-overlay .sw-review .sw-review-actions [data-decision="accepted"]{
  grid-column:1/-1!important;background:#89171e!important;border:1px solid #a92c33!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
}
.sw83-overlay .sw-review .sw-review-actions [data-decision="revision"]{
  grid-column:1!important;background:#3b3025!important;border:1px solid #7a6040!important;
  color:#ffe0aa!important;-webkit-text-fill-color:#ffe0aa!important;
}
.sw83-overlay .sw-review .sw-review-actions [data-decision="rejected"]{
  grid-column:2!important;background:#312529!important;border:1px solid #805259!important;
  color:#ffc0c5!important;-webkit-text-fill-color:#ffc0c5!important;
}
.sw83-overlay .sw-review .sw-review-actions button:hover:not(:disabled){filter:brightness(1.1)!important}
.sw83-overlay .sw-review .sw-review-actions button:disabled{opacity:.56!important;cursor:wait!important}
.sw83-overlay .sw-review .sw-review-hint{
  margin:16px 0 0!important;padding:14px 0 0!important;
  border-top:1px solid var(--sw84-line)!important;
  color:var(--sw84-muted)!important;font-size:11px!important;line-height:1.6!important;
}
.sw83-overlay .sw-review .sw-review-error:not([hidden]){margin-top:12px!important;padding:12px!important;background:#352026!important;border:1px solid #994c55!important;color:#ffd0d5!important;border-radius:9px!important}
.sw83-overlay .sw-review .sw-review-error[hidden]{display:none!important}
/* Light-theme parity, limited to this review modal. */
html:not([data-theme="dark"]) .sw83-overlay{
  --sw84-bg:#fff;--sw84-fg:#1f2937;--sw84-muted:#596579;
  --sw84-line:#dce1e8;--sw84-field:#f8fafc;--sw84-toolbar:#eef1f5;
  --sw84-focus:#96272f;background:rgba(20,28,40,.58)!important;
}
html:not([data-theme="dark"]) .sw83-overlay .sw83-close{background:#f2f4f7!important;color:#344054!important;border-color:#d3d9e2!important}
html:not([data-theme="dark"]) .sw83-overlay .sw83-eyebrow{color:#932d33!important}
html:not([data-theme="dark"]) .sw83-overlay .sw-review :is(#swReviewGrade,#swReviewComment,[contenteditable="true"]){color:#1f2937!important;-webkit-text-fill-color:#1f2937!important;border-color:#cbd3de!important}
html:not([data-theme="dark"]) .sw83-overlay .sw-review :is(.v24-richbar,.rich-toolbar,.editor-toolbar,.toolbar-rich,.sw-rich-toolbar) button{color:#273243!important;-webkit-text-fill-color:#273243!important}
html:not([data-theme="dark"]) .sw83-overlay .sw-review [data-decision="revision"]{background:#fff3e5!important;color:#824816!important;-webkit-text-fill-color:#824816!important}
html:not([data-theme="dark"]) .sw83-overlay .sw-review [data-decision="rejected"]{background:#fff2f3!important;color:#9b2832!important;-webkit-text-fill-color:#9b2832!important}
@media(max-width:650px){
  .sw83-overlay{align-items:flex-start!important;padding:8px!important}
  .sw83-overlay .sw83-dialog{max-height:calc(100dvh - 16px)!important;border-radius:14px!important}
  .sw83-overlay .sw83-header{padding:17px 16px!important;gap:10px!important}
  .sw83-overlay .sw83-body{padding:16px!important;scrollbar-gutter:auto!important}
  .sw83-overlay .sw83-header h2{font-size:20px!important}
  .sw83-overlay .sw-review .sw-review-actions{grid-template-columns:minmax(0,1fr)!important}
  .sw83-overlay .sw-review .sw-review-actions [data-decision]{grid-column:1!important}
  .sw83-overlay .sw-review :is(.v24-richedit,.ql-editor,[contenteditable="true"]){min-height:145px!important}
}
