/* ===== CONSOLIDATED FROM HAJIME_MESSENGER_CHAT_FIX09: /hajime_messenger_chat_fix09.css?v=20260917_1 ===== */
.hjm-chat-optimistic{opacity:.72;transition:opacity .16s ease}
.hjm-chat-send-failed{opacity:1!important;outline:1px solid #f04438;background:#fff4f3!important}
.hjm-chat-file-pending{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #e5e7eb;border-radius:8px;background:#f8fafc;font-size:12px}
.pkg3f5-message-list,.pkg3f7-message-list,.c1129-message-list{scroll-behavior:smooth;overscroll-behavior:contain}

/* ===== CONSOLIDATED FROM HAJIME_GLOBAL_MEDIA_STUDIO_SEARCH_FIX10: /hajime_global_media_studio_search_fix10.css?v=20260917_10 ===== */
/* HAJIME Global Media Studio + Chat Search FIX10 */
:root{--hjm-media-bg:#0b1220;--hjm-media-panel:#111827;--hjm-media-line:#283548;--hjm-media-text:#f8fafc;--hjm-media-muted:#94a3b8;--hjm-media-accent:#2563eb}
/* Chat image thumbnails: never let uploaded media dominate the conversation */
.pkg3f5-message-images,.pkg3f7-message-images,.c1129-message-images,.pkg3-message-images,
.hjm-chat-image-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,116px));gap:6px;max-width:244px;margin:8px 0!important;align-items:stretch}
.pkg3f5-message-images>a,.pkg3f7-message-images>a,.c1129-message-images>a,.pkg3-message-images>a,.hjm-chat-image-grid>a{position:relative;display:block!important;width:116px!important;height:92px!important;overflow:hidden;border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc;cursor:zoom-in;text-decoration:none!important}
.pkg3f5-message-images>a:first-child:nth-last-child(1),.pkg3f7-message-images>a:first-child:nth-last-child(1),.c1129-message-images>a:first-child:nth-last-child(1),.pkg3-message-images>a:first-child:nth-last-child(1),.hjm-chat-image-grid>a:first-child:nth-last-child(1){width:236px!important;height:150px!important;grid-column:1/-1}
.pkg3f5-message-images img,.pkg3f7-message-images img,.c1129-message-images img,.pkg3-message-images img,.hjm-chat-image-grid img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;margin:0!important;border:0!important;border-radius:0!important}
.hjm-media-hidden-thumb{display:none!important}.hjm-media-more::after{content:attr(data-hjm-more);position:absolute;inset:0;display:grid;place-items:center;background:rgba(15,23,42,.62);color:white;font-weight:800;font-size:22px;pointer-events:none}
/* Search inside the active discussion */
.hjm-chat-searchbar{display:flex;align-items:center;gap:7px;padding:7px 8px;margin:0 0 7px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;position:relative;z-index:2}
.hjm-chat-searchbar input{flex:1;min-width:80px;border:0!important;outline:0!important;background:transparent!important;padding:4px 2px!important;font-size:13px!important;box-shadow:none!important}.hjm-chat-searchbar .hjm-search-count{white-space:nowrap;color:#64748b;font-size:12px;min-width:42px;text-align:center}.hjm-chat-searchbar button{width:30px;height:30px;padding:0;border:1px solid #dbe3ef;border-radius:8px;background:#fff;cursor:pointer}.hjm-chat-searchbar button:hover{background:#f1f5f9}
.hjm-chat-search-hit{outline:2px solid #bfdbfe!important;outline-offset:2px;background:#eff6ff!important}.hjm-chat-search-active{outline:3px solid #2563eb!important;outline-offset:2px;background:#dbeafe!important}
/* Full-screen media studio */
.hjm-media-studio{position:fixed;inset:0;z-index:100000;background:rgba(2,6,23,.96);color:var(--hjm-media-text);display:none;grid-template-rows:auto minmax(0,1fr) auto}.hjm-media-studio.open{display:grid}
.hjm-media-head{height:52px;padding:0 16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--hjm-media-line);background:#0f172a}.hjm-media-head strong{font-size:14px}.hjm-media-head .hjm-media-counter{font-size:12px;color:var(--hjm-media-muted)}.hjm-media-head .hjm-media-source{margin-left:auto;max-width:44vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cbd5e1;font-size:12px}.hjm-media-close{width:36px;height:36px;border:1px solid #334155;border-radius:9px;background:#111827;color:#fff;font-size:22px;cursor:pointer}
.hjm-media-main{display:grid;grid-template-columns:minmax(0,1fr) 124px;min-height:0;overflow:hidden}.hjm-media-canvas-zone{position:relative;display:grid;place-items:center;overflow:hidden;padding:16px 56px;background:#050a13}.hjm-media-stage{position:relative;display:inline-block;transform-origin:center center;transition:transform .12s ease}.hjm-media-stage img{display:block;max-width:calc(100vw - 230px);max-height:calc(100vh - 190px);width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-drag:none}.hjm-media-stage canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.hjm-media-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:62px;border:0;border-radius:12px;background:rgba(15,23,42,.72);color:#fff;font-size:34px;cursor:pointer}.hjm-media-nav.prev{left:10px}.hjm-media-nav.next{right:10px}.hjm-media-nav:disabled{opacity:.25;cursor:default}
.hjm-media-thumbs{border-left:1px solid var(--hjm-media-line);background:#0f172a;overflow:auto;padding:9px;display:flex;flex-direction:column;gap:8px}.hjm-media-thumb{position:relative;width:104px;height:78px;border:2px solid transparent;border-radius:9px;overflow:hidden;background:#020617;padding:0;cursor:pointer}.hjm-media-thumb.active{border-color:#60a5fa}.hjm-media-thumb img{width:100%;height:100%;object-fit:cover;display:block}.hjm-media-thumb span{position:absolute;right:4px;bottom:3px;background:rgba(0,0,0,.55);font-size:10px;padding:1px 4px;border-radius:5px;color:#fff}
.hjm-media-bottom{border-top:1px solid var(--hjm-media-line);background:#0f172a;padding:9px 12px;display:grid;gap:8px}.hjm-media-tools,.hjm-media-actions{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.hjm-media-tool,.hjm-media-action{white-space:nowrap;border:1px solid #334155;background:#172033;color:#e5e7eb;border-radius:8px;padding:7px 10px;font-size:12px;cursor:pointer}.hjm-media-tool.active{background:#1d4ed8;border-color:#3b82f6;color:#fff}.hjm-media-tool:hover,.hjm-media-action:hover{background:#24324a}.hjm-media-tool:disabled,.hjm-media-action:disabled{opacity:.4;cursor:default}.hjm-media-color{width:34px;height:32px;padding:2px;border:1px solid #334155;border-radius:8px;background:#172033}.hjm-media-width{height:32px;border:1px solid #334155;border-radius:8px;background:#172033;color:#fff;padding:0 7px}.hjm-media-note{flex:1;min-width:220px;height:34px;border:1px solid #334155!important;border-radius:8px!important;background:#020617!important;color:#fff!important;padding:0 10px!important;outline:none!important}.hjm-media-action.primary{background:#2563eb;border-color:#3b82f6;color:#fff;font-weight:700}.hjm-media-action.download{background:#0f766e;border-color:#14b8a6;color:#fff}.hjm-media-hint{color:#94a3b8;font-size:11px;white-space:nowrap}.hjm-media-error{color:#fda4af;font-size:11px}
@media(max-width:760px){.pkg3f5-message-images,.pkg3f7-message-images,.c1129-message-images,.pkg3-message-images,.hjm-chat-image-grid{grid-template-columns:repeat(2,minmax(0,94px));max-width:198px}.pkg3f5-message-images>a,.pkg3f7-message-images>a,.c1129-message-images>a,.pkg3-message-images>a,.hjm-chat-image-grid>a{width:94px!important;height:78px!important}.pkg3f5-message-images>a:first-child:nth-last-child(1),.pkg3f7-message-images>a:first-child:nth-last-child(1),.c1129-message-images>a:first-child:nth-last-child(1),.pkg3-message-images>a:first-child:nth-last-child(1),.hjm-chat-image-grid>a:first-child:nth-last-child(1){width:194px!important;height:126px!important}.hjm-media-main{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 82px}.hjm-media-thumbs{border-left:0;border-top:1px solid var(--hjm-media-line);flex-direction:row;overflow-x:auto;overflow-y:hidden}.hjm-media-thumb{flex:0 0 86px;width:86px;height:64px}.hjm-media-stage img{max-width:calc(100vw - 24px);max-height:calc(100vh - 285px)}.hjm-media-canvas-zone{padding:8px 36px}.hjm-media-nav{width:32px;height:48px;font-size:28px}.hjm-media-head .hjm-media-source{display:none}.hjm-media-bottom{padding:7px}.hjm-media-note{min-width:160px}}

/* ===== CONSOLIDATED FROM HAJIME_ALBUM_SIDEBAR_NAV_FIX11: /hajime_album_sidebar_nav_fix11.css?v=20260917_11 ===== */
/* HAJIME Album Sidebar Navigation FIX11 */
@media(min-width:761px){
  .hjm-media-main{grid-template-columns:minmax(0,1fr) 156px!important}
  .hjm-album-sidebar{align-self:center;height:min(100%,510px);min-height:310px;border-left:1px solid var(--hjm-media-line,#283548);background:#0f172a;display:grid;grid-template-rows:34px 34px minmax(0,1fr) 34px;overflow:hidden}
  .hjm-album-sidebar-title{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:0 7px;color:#e2e8f0;font-size:11px;border-bottom:1px solid #1e293b;white-space:nowrap}
  .hjm-album-sidebar-title strong{font-size:11px}.hjm-album-range{color:#94a3b8;font-size:10px}
  .hjm-album-page{height:34px;border:0;border-radius:0;background:#172033;color:#e5e7eb;cursor:pointer;font-size:14px;font-weight:800}.hjm-album-page:hover:not(:disabled){background:#25334b}.hjm-album-page:disabled{opacity:.28;cursor:default}
  .hjm-album-thumb-zone{position:relative;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 12px;background:#0f172a}
  .hjm-album-thumb-zone>.hjm-media-thumbs{border-left:0!important;background:#0f172a!important;overflow-y:scroll!important;overflow-x:hidden!important;padding:8px 5px 8px 8px!important;display:flex!important;flex-direction:column!important;gap:8px!important;scrollbar-width:none!important;min-height:0!important;max-height:none!important;height:auto!important}
  .hjm-album-thumb-zone>.hjm-media-thumbs::-webkit-scrollbar{width:0!important;height:0!important}
  .hjm-album-thumb-zone .hjm-media-thumb{width:112px!important;height:78px!important;min-height:78px!important;flex:0 0 78px!important;margin:0!important}
  .hjm-album-scroll-rail{position:relative;width:8px;margin:6px 2px;background:#1e293b;border-radius:999px;cursor:pointer;min-height:40px}
  .hjm-album-scroll-thumb{position:absolute;top:0;left:0;width:8px;min-height:34px;border-radius:999px;background:#64748b;cursor:grab;touch-action:none;transition:background .12s ease}.hjm-album-scroll-thumb:hover{background:#94a3b8}.hjm-album-scroll-thumb:active{cursor:grabbing;background:#cbd5e1}.hjm-album-scroll-rail.inactive{opacity:.22;cursor:default}.hjm-album-scroll-rail.inactive .hjm-album-scroll-thumb{cursor:default}
  .hjm-media-stage img{max-width:calc(100vw - 270px)!important}
}
@media(max-width:760px){
  .hjm-album-sidebar{display:contents}
  .hjm-album-page,.hjm-album-sidebar-title,.hjm-album-scroll-rail{display:none!important}
  .hjm-album-thumb-zone{display:contents}
}

/* ===== CONSOLIDATED FROM HAJIME_ALBUM_VIEWER_FIX11_REPAIR02: /hajime_album_viewer_fix11_repair02.css?v=20260918_0015 ===== */
/* HAJIME Album Viewer FIX11 Repair02 — clip-1 filmstrip layout */
@media(min-width:761px){
  .hjm-media-main{grid-template-columns:minmax(0,1fr) 150px!important;min-height:0!important;overflow:hidden!important}
  .hjm-media-canvas-zone{padding:8px 50px 8px 8px!important;background:#090909!important}
  .hjm-media-stage img{max-width:calc(100vw - 210px)!important;max-height:calc(100vh - 174px)!important}
  .hjm-album-sidebar{position:relative!important;align-self:stretch!important;height:100%!important;min-height:0!important;overflow:visible!important;border-left:1px solid #242424!important;background:#171717!important;display:block!important}
  .hjm-album-sidebar-title{display:none!important}
  .hjm-album-thumb-zone{position:absolute!important;inset:0!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 8px!important;background:#171717!important}
  .hjm-album-thumb-zone>.hjm-media-thumbs{height:100%!important;min-height:0!important;max-height:none!important;border:0!important;background:#171717!important;overflow-y:auto!important;overflow-x:hidden!important;padding:7px 5px 7px 7px!important;display:flex!important;flex-direction:column!important;gap:8px!important;scrollbar-width:none!important;scroll-behavior:smooth!important;overscroll-behavior:contain!important}
  .hjm-album-thumb-zone>.hjm-media-thumbs::-webkit-scrollbar{width:0!important;height:0!important}
  .hjm-album-thumb-zone .hjm-media-thumb{width:126px!important;height:calc((100% - 32px)/5)!important;min-height:72px!important;max-height:112px!important;flex:0 0 calc((100% - 32px)/5)!important;margin:0!important;border-radius:6px!important;border:2px solid transparent!important;background:#0b0b0b!important}
  .hjm-album-thumb-zone .hjm-media-thumb.active{border-color:#fff!important;box-shadow:0 0 0 1px rgba(255,255,255,.32)!important}
  .hjm-album-thumb-zone .hjm-media-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
  .hjm-album-thumb-zone .hjm-media-thumb span{font-size:9px!important;right:3px!important;bottom:3px!important}
  .hjm-album-page{position:absolute!important;left:-43px!important;z-index:12!important;width:36px!important;height:36px!important;padding:0!important;border:0!important;border-radius:999px!important;background:rgba(20,20,20,.86)!important;color:#fff!important;font-size:15px!important;line-height:36px!important;box-shadow:0 2px 10px rgba(0,0,0,.35)!important}
  .hjm-album-page:hover:not(:disabled){background:rgba(50,50,50,.98)!important}
  .hjm-album-page-up{top:calc(50% - 40px)!important}.hjm-album-page-down{top:calc(50% + 4px)!important}.hjm-album-page:disabled{opacity:.28!important}
  .hjm-album-scroll-rail{position:relative!important;width:4px!important;margin:6px 2px!important;background:#292929!important;border-radius:999px!important;cursor:pointer!important;min-height:40px!important}
  .hjm-album-scroll-thumb{left:0!important;width:4px!important;min-height:28px!important;background:#858585!important;border-radius:999px!important}
  .hjm-album-scroll-thumb:hover,.hjm-album-scroll-thumb:active{background:#c0c0c0!important}
  .hjm-media-nav.prev{left:9px!important}.hjm-media-nav.next{right:54px!important}
}
@media(max-width:760px){.hjm-album-page,.hjm-album-scroll-rail,.hjm-album-sidebar-title{display:none!important}}

/* ===== CONSOLIDATED FROM HAJIME_MONEY_CHAT_INTERACTION_FIX13: /hajime_money_chat_interaction_fix13.css?v=20260918_1200 ===== */
/* HAJIME Wedding OS — Money + Chat Interaction FIX13
 * 2026-09-18
 * UI-only consolidation for request money row and internal discussion interactions.
 */

/* Canonical request money row: compact Quantity / DVT / Unit price, wider Total. */
@media (min-width:1181px){
  .fix21-money-grid.fix22-money-grid,
  .fix21-money-grid{
    grid-template-columns:minmax(125px,.62fr) minmax(130px,.68fr) minmax(235px,1.04fr) minmax(420px,2.20fr)!important;
    gap:18px!important;
  }
}
.fix21-money-grid > label,
.fix22-money-grid > label{min-width:0!important}
.fix21-money-grid input,
.fix22-money-grid input{box-sizing:border-box!important;min-width:0!important;width:100%!important}
.fix21-total,
.fix22-total{min-width:0!important;overflow:visible!important}
.fix21-total strong,
.fix22-total strong,
.fix21-total [data-fix21-total],
.fix22-total [data-fix22-total]{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  min-height:58px!important;
  padding:13px 16px!important;
  font-size:20px!important;
  font-weight:400!important;
  line-height:1.3!important;
  letter-spacing:normal!important;
  font-variant-numeric:tabular-nums!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
@media (max-width:1180px) and (min-width:701px){
  .fix21-money-grid.fix22-money-grid,
  .fix21-money-grid{grid-template-columns:1fr 1fr!important}
}
@media (max-width:700px){
  .fix21-money-grid.fix22-money-grid,
  .fix21-money-grid{grid-template-columns:1fr!important}
}

/* Reply quote acts as an in-thread jump target, never a page navigation. */
.pkg3f5-message blockquote,
.pkg3f7-message blockquote,
.c1129-message blockquote{
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.pkg3f5-message blockquote:hover,
.pkg3f7-message blockquote:hover,
.c1129-message blockquote:hover{
  background:#eef5fa!important;
  border-left-color:#315b74!important;
}
.hjm-reply-origin-pulse{
  animation:hjmReplyOriginPulse 1.65s ease-out 1;
}
@keyframes hjmReplyOriginPulse{
  0%{background:#fff1b8;box-shadow:0 0 0 3px rgba(235,176,34,.30)}
  45%{background:#fff8dc;box-shadow:0 0 0 2px rgba(235,176,34,.18)}
  100%{background:transparent;box-shadow:none}
}
.c1129-reply.hjm-fix13-reply{align-items:flex-start}
.c1129-reply.hjm-fix13-reply span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.c1129-action-box [data-hjm-task-id]{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:5px}

/* ===== CONSOLIDATED FROM HAJIME_GLOBAL_SELF_MESSAGE_BUBBLE_FIX14: /hajime_global_self_message_bubble_fix14.css?v=20260918_1900 ===== */
/* HAJIME Wedding OS — Global Self Message Bubble FIX14
 * Scope: current canonical internal discussions.
 * UI only; no polling / no MutationObserver / no DB or backend changes.
 */

:root{
  --hjm-own-chat-bg:#edf6ff;
  --hjm-own-chat-border:#c8deef;
  --hjm-own-chat-accent:#5b89a8;
  --hjm-own-chat-text:#1f4056;
}

/* Planner / proposal discussion */
.pkg3f5-message.hjm-message-own .pkg3f5-message-body,
.pkg3f5-message.hjm-chat-optimistic .pkg3f5-message-body{
  background:var(--hjm-own-chat-bg)!important;
  border-color:var(--hjm-own-chat-border)!important;
  box-shadow:inset 3px 0 0 var(--hjm-own-chat-accent);
}
.pkg3f5-message.hjm-message-own .pkg3f5-avatar,
.pkg3f5-message.hjm-chat-optimistic .pkg3f5-avatar{
  background:#dcecff!important;
  color:var(--hjm-own-chat-text)!important;
}

/* Design inline discussion */
.pkg3f7-message.hjm-message-own,
.pkg3f7-message.hjm-chat-optimistic{
  background:var(--hjm-own-chat-bg)!important;
  border-color:var(--hjm-own-chat-border)!important;
  box-shadow:inset 3px 0 0 var(--hjm-own-chat-accent);
}
.pkg3f7-message.hjm-message-own .pkg3f7-avatar,
.pkg3f7-message.hjm-chat-optimistic .pkg3f7-avatar{
  background:#dcecff!important;
  color:var(--hjm-own-chat-text)!important;
}

/* Canonical Design workspace discussion */
.c1129-message.hjm-message-own,
.c1129-message.hjm-chat-optimistic{
  background:var(--hjm-own-chat-bg)!important;
  border:1px solid var(--hjm-own-chat-border)!important;
  border-radius:11px!important;
  padding:10px 12px!important;
  margin:4px 0 8px!important;
  box-shadow:inset 3px 0 0 var(--hjm-own-chat-accent);
}
.c1129-message.closed.hjm-message-own{
  background:var(--hjm-own-chat-bg)!important;
}

/* Keep quote/history visually subordinate to the owner bubble. */
.hjm-message-own blockquote,
.hjm-chat-optimistic blockquote{
  background:rgba(255,255,255,.68)!important;
}

/* A tiny non-text badge is intentionally avoided: background is the only identity cue. */

