.matching-interaction-flash{margin:0 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:13px;font-weight:700}.matching-interaction-apply-box{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.matching-interaction-apply-box textarea{width:100%;box-sizing:border-box;min-height:110px;margin:9px 0;border:1px solid var(--line);border-radius:9px;padding:11px;font:inherit}.matching-interaction-apply-actions,.matching-interaction-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.matching-interaction-row-actions form{display:flex;align-items:center;gap:6px;margin:0}.matching-interaction-row-actions select{min-height:38px;border:1px solid var(--line);border-radius:8px;padding:7px 9px;background:#fff}.matching-application-sections{display:grid;gap:18px}.matching-application-section{overflow:hidden}.matching-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.matching-section-head>div{display:flex;align-items:center;gap:10px}.matching-section-head .material-symbols-rounded{font-size:24px}.matching-section-head p{margin:0 0 3px;color:var(--muted);font:800 10px/1 var(--font-num);letter-spacing:.1em}.matching-section-head h2{margin:0;font-size:18px}.matching-application-list{display:grid;gap:9px}.matching-application-card{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff}.matching-application-card-main{min-width:0;flex:1}.matching-application-card-head{display:flex;align-items:center;gap:8px;margin-bottom:7px}.matching-application-card-head time{font-size:11px;color:var(--muted)}.matching-application-card h3{margin:0 0 6px;font-size:16px}.matching-application-card h3 a{color:inherit;text-decoration:none}.matching-application-message{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.7}.matching-application-applicant{font-size:12px}.admin-status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:#f0f1f3;font-size:10px;font-weight:800}.matching-chat-layout{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:610px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.matching-chat-list{border-right:1px solid var(--line);background:#fff;max-height:720px;overflow:auto}.matching-chat-list-item{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}.matching-chat-list-item:hover,.matching-chat-list-item.active{background:#f5f6f8}.matching-chat-avatar{width:44px;height:44px;border-radius:50%;overflow:hidden;background:#eef0f3;display:grid;place-items:center;flex:none}.matching-chat-avatar img{width:100%;height:100%;object-fit:cover}.matching-chat-avatar .material-symbols-rounded{font-size:24px;color:#8a919c}.matching-chat-list-copy{display:grid;min-width:0;gap:2px}.matching-chat-list-copy strong,.matching-chat-list-copy small,.matching-chat-list-copy span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.matching-chat-list-copy strong{font-size:13px}.matching-chat-list-copy small,.matching-chat-list-copy span{font-size:11px;color:var(--muted)}.matching-chat-unread{min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:#e64545;color:#fff;font:800 10px/22px var(--font-num);text-align:center}.matching-chat-thread{min-width:0;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;background:#f4f5f7}.matching-chat-thread-head{grid-row:1}.matching-chat-statusbar{grid-row:2}.matching-transaction-panel{grid-row:3}.matching-chat-messages{grid-row:4}.matching-chat-send{grid-row:5}.matching-chat-thread-head{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);background:#fff}.matching-chat-thread-head strong{display:block;font-size:13px}.matching-chat-thread-head small{display:block;margin-top:2px;color:var(--muted);font-size:11px}.matching-chat-messages{height:500px;overflow:auto;padding:18px 16px;display:grid;align-content:start;gap:10px}.matching-chat-message{display:flex;max-width:82%}.matching-chat-message.other{justify-self:start}.matching-chat-message.mine{justify-self:end}.matching-chat-message-row{display:flex;align-items:flex-end;gap:8px;min-width:0}.matching-chat-message.mine .matching-chat-message-row{flex-direction:row-reverse}.matching-chat-message-avatar{width:32px;height:32px}.matching-chat-bubble-wrap{display:grid;gap:4px;min-width:0}.matching-chat-sender{font-size:10px;color:#59616c}.matching-chat-bubble{padding:9px 11px;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(20,25,30,.08);overflow-wrap:anywhere}.matching-chat-message.mine .matching-chat-bubble{background:#17191e;color:#fff}.matching-chat-body{font-size:13px;line-height:1.65}.matching-chat-bubble-wrap time{font-size:9px;color:#78808a}.matching-chat-message.mine .matching-chat-bubble-wrap time{text-align:right}.matching-chat-attachments{display:grid;gap:6px;margin-top:7px}.matching-chat-attachments a{color:inherit;text-decoration:none}.matching-chat-attachments .is-image img{display:block;max-width:min(280px,100%);max-height:220px;border-radius:8px;object-fit:contain}.matching-chat-attachments .is-file{display:flex;gap:6px;align-items:center;padding:7px;border-radius:7px;background:rgba(255,255,255,.65);font-size:11px}.matching-chat-send{padding:10px 12px;border-top:1px solid var(--line);background:#fff}.matching-chat-send textarea{width:100%;min-height:72px;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;padding:10px;font:inherit;resize:vertical}.matching-chat-send-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}.matching-chat-send-actions small{color:var(--muted);font-size:10px;flex:1}.matching-chat-attach{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;cursor:pointer;font-size:11px;font-weight:700}.matching-chat-attach input{display:none}@media(max-width:820px){.matching-application-card{flex-direction:column}.matching-chat-layout{grid-template-columns:1fr;min-height:0}.matching-chat-list{border-right:0;border-bottom:1px solid var(--line);max-height:240px}.matching-chat-messages{height:430px}.matching-chat-message{max-width:92%}}

/* Current-source application cards + neutral chat: preserve existing visual language. */
.matching-section-head p{font-size:14px!important;letter-spacing:.08em}.matching-section-head .count-inline{font-size:18px!important;font-weight:800}.matching-application-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.matching-application-card{display:flex;flex-direction:column;min-height:180px;height:100%;padding:16px}.matching-application-card .matching-interaction-row-actions{margin-top:auto;width:100%;justify-content:flex-end}.matching-application-card h3{font-size:18px}.matching-application-message,.matching-application-applicant{font-size:13px}
.matching-chat-thread{background:#f4f5f7}.matching-chat-list-copy strong{font-size:14px}.matching-chat-list-copy small,.matching-chat-list-copy span{font-size:12px}.matching-chat-thread-head strong{font-size:15px}.matching-chat-thread-head small{font-size:12px}.matching-chat-sender{font-size:12px}.matching-chat-body{font-size:var(--matching-chat-font-size,16px);line-height:1.65}.matching-chat-message.mine .matching-chat-bubble{background:var(--ink);color:#fff}.matching-chat-message.mine .matching-chat-attachments .is-file{background:rgba(255,255,255,.14)}.matching-chat-bubble-wrap time{font-size:11px}.matching-chat-send textarea{font-size:var(--matching-chat-font-size,16px)}
@media(max-width:820px){.matching-application-list{grid-template-columns:1fr}.matching-application-card{min-height:0}.matching-chat-body{font-size:var(--matching-chat-font-size,16px)}}

/* Job management uses the existing application-card visual language. */
.matching-application-summary{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 14px}.matching-application-summary>span{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:#f7f8fa;color:var(--muted);font-size:12px;font-weight:700}.matching-application-summary strong{color:var(--ink);font-family:var(--font-num);font-size:13px}.matching-application-summary-compact{margin:10px 0 0}.matching-application-applicant-profile{display:flex;align-items:center;gap:10px;margin-top:2px}.matching-application-applicant-profile h3{margin:0 0 3px}.matching-application-applicant-profile p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.matching-application-applicant-profile .matching-chat-avatar{width:46px;height:46px}.matching-application-card .soft-btn,.matching-application-card .member-link-button{text-decoration:none}.matching-application-card .material-symbols-rounded{font-size:18px}
@media(max-width:820px){.page-heading>.matching-interaction-row-actions{margin-top:12px}.matching-application-summary>span{flex:0 1 auto}.matching-application-card .matching-interaction-row-actions{justify-content:flex-start}}

/* Keep mixed existing controls aligned in application/job actions. */
.matching-interaction-apply-actions .member-link-button,.matching-interaction-apply-actions .soft-btn,.matching-interaction-row-actions .member-link-button,.matching-interaction-row-actions .soft-btn,.matching-interaction-row-actions select,.matching-interaction-row-actions button{height:44px;min-height:44px;box-sizing:border-box;margin-top:0!important;margin-bottom:0!important;display:inline-flex;align-items:center;justify-content:center}.matching-interaction-row-actions select{display:block;padding-top:0;padding-bottom:0}.matching-interaction-row-actions form{align-items:center}

/* v3.7 chat bubble correction: configurable own-side color and no padding around image-only messages. */
:root{--matching-own-message-bg:#17191e}
.matching-chat-message.mine .matching-chat-bubble:not(.media-only){background:var(--matching-own-message-bg,#17191e)!important;color:#fff!important}
.matching-chat-message.mine .matching-chat-body{color:#fff!important}
.matching-chat-bubble.media-only{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;width:fit-content;max-width:100%;overflow:visible}
.matching-chat-bubble.media-only .matching-chat-attachments{margin-top:0!important;display:flex;flex-wrap:wrap;gap:6px}
.matching-chat-bubble.media-only .matching-chat-attachments .is-image{display:block;line-height:0;max-width:100%}
.matching-chat-bubble.media-only .matching-chat-attachments .is-image img{display:block;max-width:min(320px,100%);height:auto;max-height:360px;object-fit:cover;background:transparent}

/* v3.8 job management card thumbnail; existing card/action UI is preserved. */
.matching-job-management-card{grid-template-columns:auto minmax(0,1fr) auto;align-items:center}.matching-job-management-media{width:118px;height:84px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#eef0f2;color:#9ba2ac;text-decoration:none}.matching-job-management-media img{width:100%;height:100%;display:block;object-fit:cover}.matching-job-management-media .material-symbols-rounded{font-size:34px}@media(max-width:820px){.matching-job-management-card{grid-template-columns:82px minmax(0,1fr)}.matching-job-management-media{width:82px;height:66px}.matching-job-management-card .matching-interaction-row-actions{grid-column:1/-1}}

/* v3.9.1 chat sizing: bubbles wrap their real content; image-only messages have no phantom bubble space. */
.matching-chat-message-row{width:fit-content;max-width:100%}
.matching-chat-bubble-wrap{width:fit-content;max-width:100%}
.matching-chat-message.mine .matching-chat-bubble-wrap{justify-items:end}
.matching-chat-message.other .matching-chat-bubble-wrap{justify-items:start}
.matching-chat-bubble{width:fit-content;max-width:100%;box-sizing:border-box}
.matching-chat-attachments{width:fit-content;max-width:100%}
.matching-chat-bubble.media-only,.matching-chat-bubble.media-only .matching-chat-attachments{width:fit-content!important;max-width:100%!important}
.matching-chat-message.mine .matching-chat-bubble.media-only{justify-self:end}
.matching-chat-message.other .matching-chat-bubble.media-only{justify-self:start}
.matching-chat-bubble.media-only .matching-chat-attachments .is-image{margin:0!important;padding:0!important}

/* v3.9.2 minimal fix: keep the current sender message row aligned to the right edge of its existing message lane. */
.matching-chat-message.mine .matching-chat-message-row{margin-left:auto}

/* v3.9.3: image-only sent messages align the actual image flex item to the sender edge. */
.matching-chat-message.mine .matching-chat-bubble.media-only .matching-chat-attachments{justify-content:flex-end}
.matching-chat-bubble.media-only .matching-chat-attachments .is-image{width:auto;max-width:min(320px,100%)!important}
/* v3.9.4: keep text + image chat bubbles fitted to the rendered image width. */
.matching-chat-bubble.has-images:not(.media-only){width:min(302px,100%)}
/* v3.9.5: keep message avatars aligned to the sender/bubble row; timestamp sits below and no longer pulls the avatar downward. */
.matching-chat-message-stack{display:grid;gap:4px;width:fit-content;max-width:100%;min-width:0}
.matching-chat-message.mine .matching-chat-message-stack{justify-items:end;margin-left:auto}
.matching-chat-message.other .matching-chat-message-stack{justify-items:start}
.matching-chat-message-stack>time{font-size:11px;color:#78808a}
.matching-chat-message.other .matching-chat-message-stack>time{margin-left:40px}
.matching-chat-message.mine .matching-chat-message-stack>time{justify-self:end;text-align:right}
/* v3.9.6: a hidden avatar fallback must never participate in the grid while the profile image is valid. */
.matching-chat-avatar>[hidden]{display:none!important}

/* v3.9.7 SP message navigation only: keep the existing chat UI, split list/detail by URL state. */
.matching-chat-back{display:none}
@media(max-width:820px){
  .matching-chat-layout.is-sp-list .matching-chat-thread{display:none}
  .matching-chat-layout.is-sp-list .matching-chat-list{max-height:none;overflow:visible;border-bottom:0}
  .matching-chat-layout.is-sp-detail .matching-chat-list{display:none}
  .matching-chat-layout.is-sp-detail .matching-chat-thread{display:grid}
  .matching-chat-back{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;margin:0 0 0 -6px;border:0;border-radius:8px;color:var(--ink);text-decoration:none}
  .matching-chat-back .material-symbols-rounded{font-size:22px;line-height:1}
}

/* v3.9.8 minimal: application status controls/history inside the existing chat thread. */
.matching-chat-statusbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--line);background:#fafbfc}.matching-chat-statusbar .matching-interaction-row-actions{margin-left:auto}.matching-chat-statusbar form{margin:0}.matching-chat-statusbar .soft-btn:disabled{opacity:.48;cursor:default}.matching-chat-system-message{display:grid;justify-items:center;gap:3px;padding:3px 10px;text-align:center;color:var(--muted)}.matching-chat-system-message>span{display:inline-block;padding:6px 10px;border-radius:999px;background:#f0f1f3;font-size:11px;font-weight:700;line-height:1.5}.matching-chat-system-message>time{font-size:10px;color:#8a9099}@media(max-width:820px){.matching-chat-statusbar{align-items:flex-start}.matching-chat-statusbar .matching-interaction-row-actions{width:100%;margin-left:0}.matching-chat-statusbar .matching-interaction-row-actions form{flex:1}.matching-chat-statusbar .soft-btn{width:100%}}


/* v3.10.1: transaction MVP UI audit. Existing colors/buttons are preserved; added transaction text stays readable and collision-safe on PC/SP. */
.matching-transaction-panel{min-width:0;padding:12px 14px;border-bottom:1px solid var(--line);background:#fff;display:grid;gap:10px;overflow-wrap:anywhere}
.matching-transaction-panel .admin-status,.matching-transaction-status-chip{min-height:28px;font-size:13px}
.matching-transaction-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;min-width:0}.matching-transaction-head>div{display:grid;gap:3px;min-width:0}.matching-transaction-head small,.matching-transaction-offer small{color:var(--muted);font:800 13px/1.25 var(--font-num);letter-spacing:.04em}.matching-transaction-head strong{font-size:15px}.matching-transaction-amount{text-align:right;margin-left:auto}.matching-transaction-amount strong,.matching-transaction-offer>div>strong{font:800 20px/1.2 var(--font-num)}
.matching-transaction-meta{display:flex;gap:8px 14px;flex-wrap:wrap;color:var(--muted);font-size:13px;line-height:1.55}.matching-transaction-agreed-note{margin:0;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#f7f8fa;color:var(--muted);font-size:13px;line-height:1.7}.matching-transaction-notice,.matching-transaction-reviewed{padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#f7f8fa;color:var(--muted);font-size:13px;line-height:1.65}.matching-transaction-reviewed strong{color:var(--ink);letter-spacing:.04em}
.matching-transaction-offer{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafbfc;min-width:0}.matching-transaction-offer>div{display:flex;align-items:end;justify-content:space-between;gap:12px;min-width:0}.matching-transaction-offer p{margin:0;color:var(--muted);font-size:13px;line-height:1.7;overflow-wrap:anywhere}.matching-transaction-offer form,.matching-transaction-action{margin:0;display:flex;justify-content:flex-end;min-width:0}
.matching-transaction-offer-form{border:1px solid var(--line);border-radius:10px;background:#fafbfc;overflow:hidden;min-width:0}.matching-transaction-offer-form>summary{cursor:pointer;list-style:none;padding:12px;font-size:13px;line-height:1.5;font-weight:800}.matching-transaction-offer-form>summary::-webkit-details-marker{display:none}.matching-transaction-offer-form>summary:after{content:'＋';float:right;color:var(--muted)}.matching-transaction-offer-form[open]>summary:after{content:'−'}.matching-transaction-offer-form form,.matching-transaction-review{display:grid;gap:10px;padding:0 12px 12px;min-width:0}.matching-transaction-offer-form label,.matching-transaction-review label{display:grid;gap:6px;min-width:0;font-size:13px;line-height:1.5;font-weight:750}.matching-transaction-offer-form textarea,.matching-transaction-review textarea,.matching-transaction-review select,.matching-transaction-money-input{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:13px}.matching-transaction-offer-form textarea,.matching-transaction-review textarea{padding:9px 10px;resize:vertical;line-height:1.6}.matching-transaction-review select{min-height:44px;padding:0 10px}.matching-transaction-money-input{display:flex;align-items:center;overflow:hidden}.matching-transaction-money-input>span{padding-left:10px;color:var(--muted);font-size:13px;font-weight:800}.matching-transaction-money-input input{min-width:0;flex:1;height:44px;border:0;outline:0;padding:0 10px;font:800 15px/1 var(--font-num);background:transparent}.matching-transaction-review{border:1px solid var(--line);border-radius:10px;background:#fafbfc;padding-top:12px}
@media(max-width:820px){.matching-transaction-head{align-items:center}.matching-transaction-amount strong,.matching-transaction-offer>div>strong{font-size:18px}.matching-transaction-offer>div{align-items:flex-start;flex-direction:column}.matching-transaction-offer form,.matching-transaction-action{justify-content:stretch}.matching-transaction-offer .member-link-button,.matching-transaction-action .member-link-button,.matching-transaction-review .member-link-button,.matching-transaction-offer-form .member-link-button{width:100%;min-height:44px}}
@media(max-width:360px){.matching-transaction-amount{width:100%;margin-left:0;text-align:left}}

/* v3.10.1 audit follow-up: touched application/chat states stay legible without changing unrelated site UI. */
.matching-application-card-head{flex-wrap:wrap}
.matching-application-card-head .admin-status,.matching-chat-statusbar .admin-status{min-height:28px;font-size:13px}
.matching-application-card-head time{margin-left:auto;font-size:13px;white-space:nowrap}
.matching-application-applicant-profile p,.matching-application-message{font-size:13px}
.matching-chat-system-message>span{max-width:100%;box-sizing:border-box;font-size:13px;overflow-wrap:anywhere}
.matching-chat-system-message>time{font-size:13px}


/* v3.10.2 transaction revision + 5-step progress: scoped to the existing transaction panel only. */
.matching-transaction-progress{margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid var(--line);overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}.matching-transaction-progress::-webkit-scrollbar{display:none}.matching-transaction-progress-inner{display:flex;align-items:center;min-width:max-content}.matching-transaction-progress-step{display:flex;align-items:center;gap:6px;min-width:112px;color:var(--muted);font-size:13px;line-height:1.4;font-weight:700;white-space:nowrap}.matching-transaction-progress-marker{font-size:18px;flex:none}.matching-transaction-progress-step.is-complete{color:var(--link)}.matching-transaction-progress-step.is-current{color:var(--ink);font-weight:800}.matching-transaction-progress-step.is-current .matching-transaction-progress-marker{color:var(--link)}.matching-transaction-progress-line{width:24px;margin:0 8px;border-top:1px solid var(--line);flex:none}.matching-transaction-progress-line.is-complete{border-color:var(--link)}
.matching-transaction-confirm-actions{display:flex;align-items:flex-start;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}.matching-transaction-revision-form{margin:0;min-width:0}.matching-transaction-revision-form>summary{list-style:none}.matching-transaction-revision-form>summary::-webkit-details-marker{display:none}.matching-transaction-revision-form[open]{flex:1 1 100%;max-width:560px;margin-left:auto}.matching-transaction-revision-form[open]>summary{width:max-content;margin-left:auto}.matching-transaction-revision-form form{display:grid;gap:10px;margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}.matching-transaction-revision-form label{display:grid;gap:6px;font-size:13px;line-height:1.5;font-weight:750}.matching-transaction-revision-form textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:#fff;padding:9px 10px;font:inherit;font-size:13px;line-height:1.6;resize:vertical}.matching-transaction-revision-form form>.soft-btn{justify-self:end}.matching-transaction-confirm-actions>.matching-transaction-action{align-self:flex-start}
@media(max-width:820px){.matching-transaction-progress{margin-left:-2px;margin-right:-2px;padding-left:2px;padding-right:2px}.matching-transaction-progress-step{min-width:116px}.matching-transaction-confirm-actions{display:grid;grid-template-columns:1fr;gap:8px}.matching-transaction-revision-form,.matching-transaction-revision-form[open]{width:100%;max-width:none}.matching-transaction-revision-form>summary,.matching-transaction-revision-form[open]>summary,.matching-transaction-confirm-actions>.matching-transaction-action,.matching-transaction-confirm-actions>.matching-transaction-action .member-link-button,.matching-transaction-revision-form form>.soft-btn{width:100%;margin-left:0}.matching-transaction-revision-form form>.soft-btn{justify-self:stretch}}

/* v3.10.3: chat header links only; typography/layout stays unchanged. */
.matching-chat-thread-link{color:inherit;text-decoration:none}.matching-chat-thread-link:hover,.matching-chat-thread-link:focus-visible{text-decoration:underline;text-underline-offset:2px}
