
:root{
  --bg:#0b1220;
  --panel:#0f172a;
  --card:#0b1324;
  --line:#1f2a44;
  --text:#e6e8ef;
  --muted:#a5adc2;
  --accent:#5b84ff;
  --danger:#ff5b6a;
  --ok:#2dd4bf;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --r:14px;
  --r2:18px;
  --pad:16px;
  --pad2:22px;
  --fs:14px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  background: radial-gradient(1200px 900px at 20% 0%, rgba(91,132,255,.12), transparent 60%),
              radial-gradient(1000px 700px at 90% 40%, rgba(45,212,191,.10), transparent 60%),
              var(--bg);
  color:var(--text);
}
.hidden{display:none !important}
.screen{display:none; min-height:100%}
.screen.active{display:block}

.topbar{
  position:sticky; top:0; z-index:30;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(31,42,68,.9);
}
.topbar.simple{justify-content:flex-start}
.titleline{font-weight:700; margin-left:10px}

.brand-title{font-weight:800; letter-spacing:.2px}
.brand-sub{color:#fff; font-size:12px; margin-top:1px; line-height:1.2}
.brand-sub-secondary{margin-top:0; opacity:.96}
.nav{display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.icon-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(31,42,68,.9);
  background: rgba(11,19,36,.55);
  color:var(--text);
  cursor:pointer;
}
.icon-btn:hover{border-color:rgba(91,132,255,.65)}
.dot{width:8px;height:8px;border-radius:50%;background:rgba(91,132,255,.9)}

.account-menu{
  position:absolute;
  right:16px;
  top:62px;
  width:220px;
  background: rgba(15,23,42,.98);
  border:1px solid rgba(31,42,68,.95);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:10px;
}
.account-chip{
  border:1px solid rgba(31,42,68,.9);
  border-radius:14px;
  padding:10px;
  background: rgba(11,19,36,.55);
  margin-bottom:10px;
}
.account-name{font-weight:800}
.account-role{color:var(--muted); font-size:12px; margin-top:2px}
.menu-btn{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(31,42,68,.9);
  background: rgba(11,19,36,.45);
  color:var(--text);
  cursor:pointer;
  text-align:left;
  margin-bottom:8px;
}
.menu-btn:hover{border-color:rgba(91,132,255,.65)}
.menu-btn.danger:hover{border-color:rgba(255,91,106,.75)}
.menu-btn.danger{color:#ffd2d6}

.container{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  padding:18px;
  max-width:1200px;
  margin:0 auto;
}
.container.one{grid-template-columns:1fr; max-width:960px}
.col{background: rgba(15,23,42,.55); border:1px solid rgba(31,42,68,.85); border-radius:var(--r2); padding:16px; box-shadow: var(--shadow)}
.col-head{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:10px}
.h{font-weight:800}
.sub{color:var(--muted); font-size:11px; font-weight:700; margin-top:4px; line-height:1.2; letter-spacing:.02em}
.actions{display:flex; gap:8px}
.panel{background: rgba(15,23,42,.55); border:1px solid rgba(31,42,68,.85); border-radius:var(--r2); padding:16px; box-shadow: var(--shadow)}
.search-row{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px}
.search-row .input{min-width:0}
.search-row .search-wide{flex:1 1 calc(50% - 5px)}
.search-row .search-third{flex:1 1 calc(33.333% - 7px)}


.list{display:flex; flex-direction:column; gap:12px}
.card{
  position:relative;
  border:1px solid rgba(31,42,68,.88);
  background: rgba(11,19,36,.55);
  border-radius:16px;
  padding:14px;
  cursor:pointer;
}
.card:hover{border-color:rgba(91,132,255,.65)}
.task-card:hover{border-color:rgba(91,132,255,.65)}
.talent-card:hover{border-color:rgba(255,255,255,.85)}
.task-card.premium,
.talent-card.premium{
  border-color:rgba(192,200,210,.82);
  background:linear-gradient(145deg, rgba(255,255,255,.98) 0%, rgba(239,243,248,.98) 48%, rgba(223,230,238,.98) 100%);
  box-shadow:0 12px 28px rgba(15,23,42,.16), 0 1px 0 rgba(255,255,255,.78) inset, 0 0 0 1px rgba(148,163,184,.14) inset;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease, filter .18s ease;
}
.task-card.premium .display-name,
.task-card.premium .title,
.task-card.premium .meta,
.task-card.premium .tag,
.talent-card.premium .display-name,
.talent-card.premium .title,
.talent-card.premium .meta,
.talent-card.premium .tag{
  color:#111827;
}
.task-card.premium .tag,
.talent-card.premium .tag{
  border-color:rgba(17,24,39,.12);
  background: rgba(17,24,39,.06);
}
.task-card.premium:hover,
.talent-card.premium:hover{
  border-color:rgba(214,221,230,.98);
  box-shadow:0 20px 38px rgba(15,23,42,.22), 0 1px 0 rgba(255,255,255,.88) inset, 0 0 0 1px rgba(203,213,225,.28) inset, 0 0 22px rgba(203,213,225,.22);
  transform:translateY(-4px);
  filter:brightness(1.02);
}
.premium-logo-wrap{
  position:absolute;
  right:14px;
  bottom:14px;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.premium-logo{
  width:48px;
  height:48px;
  object-fit:contain;
  display:block;
}

.premium-upload-row{display:block}
.premium-upload-row .premium-upload-box{margin-top:8px; border:1px solid rgba(148,163,184,.22); background:rgba(255,255,255,.04); border-radius:14px; padding:12px; transition:background .18s ease,border-color .18s ease,opacity .18s ease}
.premium-upload-row .premium-upload-note{font-size:12px; color:#cbd5e1; margin-top:8px; line-height:1.6}
.premium-upload-row.is-disabled .premium-upload-box{background:rgba(255,255,255,.025); border-color:rgba(100,116,139,.22); opacity:.6; filter:saturate(.72)}
.premium-upload-row.is-disabled .premium-upload-note{color:#94a3b8}
.premium-upload-row.is-active .premium-upload-box{background:rgba(255,255,255,.15); border-color:rgba(196,202,211,.82); box-shadow:0 0 0 1px rgba(196,202,211,.2) inset, 0 10px 24px rgba(148,163,184,.12)}
.premium-upload-row.is-active .premium-upload-note{color:#e5edf7}
.premium-upload-row .premium-upload-status{font-size:12px; color:#e5edf7; margin-top:8px; word-break:break-all}
.premium-upload-row input[type="file"]:disabled{cursor:not-allowed; opacity:.75}

/* Read-only cards (detail view): avoid hover affordance to prevent "editable" misunderstanding */
.card.ro{cursor:default}
.card.ro:hover{border-color:rgba(31,42,68,.88); box-shadow:none}
.card.mini{cursor:default}
.title{font-weight:800; font-size:15px; margin-bottom:8px}

.display-name{
  font-weight:800;
  font-size:15px;
  margin-bottom:8px;
}
.verify-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.verify-badge{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
}

.meta{color:var(--muted); font-size:12px}
.meta-pay{color:#fff; font-weight:800}
.meta-pay b{font-weight:800}
.badge{margin-top:10px}
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(31,42,68,.9);
  background: rgba(15,23,42,.35);
  color:var(--text);
  font-size:12px;
}
.pill.busy{
  border-color: rgba(255,91,106,.75);
  background: rgba(255,91,106,.14);
}
.note.badge-busy{color: rgba(255,160,170,.95)}
.tags{display:flex; flex-wrap:wrap; gap:6px; margin-top:10px}
.tag{
  padding:5px 8px;
  border-radius:999px;
  border:1px solid rgba(31,42,68,.85);
  background: rgba(15,23,42,.25);
  color:var(--muted);
  font-size:12px;
}

.state-overlay{
  position:absolute; inset:0;
  border-radius:16px;
  background: rgba(0,0,0,.35);
  display:flex; align-items:center; justify-content:center;
  pointer-events:none;
}
.state-overlay span{
  padding:10px 14px;
  border-radius:999px;
  background: rgba(15,23,42,.9);
  border:1px solid rgba(255,255,255,.15);
  font-weight:800;
}
.state-overlay.closed span{
  border-color: rgba(255,255,255,.15);
}
.state-overlay.busy span{
  border-color: rgba(255,91,106,.45);
  background: rgba(48,10,16,.92);
}

.btn{
  appearance:none;
  border:1px solid rgba(91,132,255,.65);
  background: rgba(91,132,255,.22);
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{background: rgba(91,132,255,.28)}
.btn.ghost{
  border-color: rgba(31,42,68,.9);
  background: rgba(11,19,36,.45);
  font-weight:700;
}
.btn.ghost:hover{border-color:rgba(91,132,255,.55)}
.btn.danger{
  border-color: rgba(255,91,106,.65);
  background: rgba(255,91,106,.16);
}
.btn.small{padding:8px 10px; border-radius:10px; font-size:12px}
.icon-x{
  border:none; background:transparent; color:var(--muted);
  font-size:22px; cursor:pointer;
}
.icon-x:hover{color:var(--text)}

.input,.textarea{
  width:100%;
  border-radius:12px;
  border:1px solid rgba(31,42,68,.9);
  background: rgba(11,19,36,.55);
  color:var(--text);
  padding:10px 12px;
  outline:none;
}
.input:focus,.textarea:focus{border-color:rgba(91,132,255,.7); box-shadow:0 0 0 2px rgba(91,132,255,.14) inset}
.textarea{min-height:140px; resize:vertical}

.row{margin-bottom:12px}
.label{font-size:12px; color:var(--muted); margin-bottom:6px}
.note{font-size:12px;color:var(--muted); margin-top:6px}
.note.note-important{font-size:13px;color:#fff;font-weight:700;line-height:1.6}

.grid2{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.split2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.split3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px}
.due3{display:grid; grid-template-columns:1.2fr .9fr .9fr; gap:10px}

.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px}
.checklist{display:flex; flex-wrap:wrap; gap:10px; margin-top:8px}
.check{display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid rgba(255,255,255,.10); border-radius:12px; background:rgba(0,0,0,.15)}
.check input[type="checkbox"]{width:18px; height:18px}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(31,42,68,.85);
  background: rgba(15,23,42,.25);
  color:var(--text);
  font-size:12px;
}
.chip button{
  width:18px;height:18px;border-radius:50%;
  border:1px solid rgba(31,42,68,.85);
  background: rgba(11,19,36,.45);
  color:var(--muted);
  cursor:pointer;
}
.chip button:hover{color:var(--text); border-color:rgba(255,91,106,.6)}

.modal{
  position:fixed; inset:0; z-index:60;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  background: rgba(0,0,0,.55);
}
.modal-panel{
  width:min(980px, 100%);
  background: rgba(15,23,42,.98);
  border:1px solid rgba(31,42,68,.95);
  border-radius:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
  max-height: calc(100vh - 60px);
  display:flex;
  flex-direction:column;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid rgba(31,42,68,.9);
  gap:12px;
}
.modal-title{font-weight:800; flex:1; text-align:center}
.modal-body{padding:14px; overflow:auto}

.modal-back{white-space:nowrap}
.verify-modal{display:flex; flex-direction:column; gap:14px;}
.verify-modal__lead{font-size:18px; font-weight:800; color:#fff; line-height:1.5;}
.verify-modal__text{font-size:14px; line-height:1.8; color:#dbe5f5;}
.verify-modal__email{padding:12px 14px; border-radius:14px; border:1px solid rgba(255,255,255,.10); background:rgba(255,255,255,.06); color:#c9d5e7; font-size:13px; line-height:1.6;}
.verify-modal__email span{color:#fff; font-weight:800; word-break:break-all;}
.verify-modal__actions{display:flex; flex-wrap:wrap; gap:10px;}
.verify-modal__status{padding:12px 14px; border-radius:14px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.08); color:#fff; font-size:13px; line-height:1.7; white-space:pre-wrap;}

/* Detail body improvements */
.detail-long{
  min-height: 220px;
  max-height: 360px;
  overflow:auto;
}

.selfcheck{
  position:sticky; top:0; z-index:80;
  padding:10px 12px;
  background: rgba(255,91,106,.18);
  border-bottom:1px solid rgba(255,91,106,.35);
  color:#ffe2e5;
  white-space:pre-wrap;
  font-size:12px;
}
.toast{
  position:fixed; left:50%; bottom:22px; transform:translateX(-50%);
  background: rgba(122,128,143,.86);
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  padding:12px 16px;
  box-shadow: var(--shadow);
  font-weight:800;
  color:#fff;
  white-space:pre-wrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index:90;
}

.thread2{
  grid-template-columns: 320px 1fr;
  max-width:1200px;
}
.thread-list{
  background: rgba(15,23,42,.55);
  border:1px solid rgba(31,42,68,.85);
  border-radius:var(--r2);
  padding:10px;
  box-shadow: var(--shadow);
  height: calc(100vh - 92px);
  overflow:auto;
}
.thread-item{
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(31,42,68,.85);
  background: rgba(11,19,36,.45);
  margin-bottom:10px;
  cursor:pointer;
}
.thread-item:hover{border-color:rgba(91,132,255,.55)}
.thread-item.active{border-color:rgba(91,132,255,.85); box-shadow:0 0 0 2px rgba(91,132,255,.12) inset}
.thread-item .t{font-weight:800; margin-bottom:6px}
.thread-item .s{color:var(--muted); font-size:12px}

.thread-pane{
  background: rgba(15,23,42,.55);
  border:1px solid rgba(31,42,68,.85);
  border-radius:var(--r2);
  box-shadow: var(--shadow);
  height: calc(100vh - 92px);
  display:flex; flex-direction:column;
  overflow:hidden;
}
.thread-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:10px 12px;
  border-bottom:1px solid rgba(31,42,68,.9);
}
.thread-head-main{min-width:0; flex:1}
.thread-head-actions{display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.thread-title{font-weight:800; line-height:1.3}
.thread-id{font-size:10px; color:var(--muted); opacity:.7; margin-bottom:4px; display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.thread-title-main{font-weight:800; line-height:1.3}
.vpn-vps-badge{display:inline-flex; align-items:center; padding:1px 6px; border:1px solid rgba(154,164,178,.35); border-radius:999px; font-size:10px; line-height:1.2; color:#9aa4b2; opacity:.9}
.thread-body{padding:14px 12px; overflow:auto; flex:1; display:flex; flex-direction:column; gap:10px}
.thread-send{display:flex; gap:10px; padding:10px 12px; border-top:1px solid rgba(31,42,68,.9)}

.thread-task-inactive-notice{
  border:1px solid rgba(154,164,178,.34);
  background:rgba(11,19,36,.68);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  font-size:12px;
  line-height:1.55;
}

.msg{display:flex; flex-direction:column; align-items:flex-start}
.msg.me{align-items:flex-end}
.msg.system{align-items:flex-start}
.msg-name{font-size:10px; color:var(--muted); opacity:.75; margin:0 6px 2px}
.msg.me .msg-name{text-align:right}

.txt-sub{font-size:12px; line-height:1.5; opacity:.86; margin-top:4px}
.msg.me .txt-sub{text-align:left}
.bubble{
  max-width:min(560px, 92%);
  border-radius:18px;
  border:1px solid rgba(31,42,68,.85);
  background: rgba(11,19,36,.45);
  padding:10px 12px;
}
.msg.me .bubble{border-color:rgba(91,132,255,.55); background: rgba(91,132,255,.12)}
.msg.other .bubble{background:rgba(11,19,36,.65)}
.msg.system .bubble{max-width:420px; background:rgba(11,19,36,.42)}
.txt{white-space:pre-wrap; line-height:1.55}
.ts{font-size:11px; color:var(--muted); margin-top:6px}
.fail-note{margin-top:4px; color:#fca5a5; font-size:12px}

.seg{display:inline-flex; gap:8px}
.seg-btn{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(31,42,68,.9);
  background: rgba(11,19,36,.45);
  color:var(--text);
  cursor:pointer;
  font-weight:800;
}
.seg-btn.active{border-color:rgba(91,132,255,.75); box-shadow:0 0 0 2px rgba(91,132,255,.12) inset}

@media (max-width: 980px){
  .container{grid-template-columns:1fr}
  .thread2{grid-template-columns:1fr}
  .thread-list{height:auto}
  .thread-pane{height:auto; min-height:70vh}
  .grid2{grid-template-columns:1fr}
}


/* verification display */
.verif-wrap{display:block}
.verif-head{font-weight:700;margin-bottom:6px}
.verif-block{display:grid;gap:6px}
.verif-item{display:flex;align-items:flex-start;gap:8px;padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.06);color:var(--text)}
.verif-icon{display:inline-flex;align-items:center;justify-content:center;min-width:18px;line-height:1}
.verif-text{display:block;line-height:1.45}
.verif-anti{background:rgba(255,255,255,.08)}
/* nav unread badge */
.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 5px;border-radius:999px;background:#ff3b30;color:#fff;font-size:11px;line-height:1;margin-left:6px;}
.nav-badge.hidden{display:none;}
.nav-label{display:inline-block;}


/* Stage33: unread badge */
.badge-unread{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 6px;border-radius:999px;background:#d00;color:#fff;font-size:11px;line-height:1;font-weight:700}
.thread-item .rowline{display:flex;align-items:center;gap:8px}
.thread-item .rowline .t{flex:1}


.cap-meta-row{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:6px 0 10px 0;}
.cap-meta{font-size:12px;opacity:.8;}


/* Policy / guardrails */
.policy-box{border:1px solid #e6e6e6;border-radius:12px;padding:12px;margin-top:12px;background:#fff;}
.policy-title{font-weight:700;margin-bottom:8px;}
.policy-box .chk{display:block;margin:6px 0;font-size:14px;}


/* Guardrails: agreements */
.agree-box{
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background: rgba(255,255,255,.03);
}
.agree-title{
  font-weight:700;
  margin-bottom:10px;
}
.agree-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:8px 0;
  font-size:14px;
  line-height:1.4;
}
.agree-item input{ margin-top:2px; }


.report-card .title{margin-top:6px;}
.report-card .meta{margin-top:6px;}
.pill.danger{border-color: rgba(255,80,80,.5); color: rgba(255,130,130,1);}


/* Thread safety note */
.thread-safety{padding:0 12px 14px; font-size:12px; opacity:.9; line-height:1.55;}
.thread-updated{margin-bottom:10px; color:var(--muted)}
.thread-safety-rule{margin-bottom:10px}
.thread-safety-guard{color:var(--text)}


.account-pay-status{opacity:.8;font-size:12px;margin-top:2px;}

.btn[disabled], .btn.is-disabled{
  opacity:.45;
  border-color: rgba(31,42,68,.9) !important;
  background: rgba(11,19,36,.35) !important;
  color: var(--muted) !important;
  cursor:not-allowed !important;
  pointer-events:auto;
}
.btn[disabled]:hover, .btn.is-disabled:hover{
  background: rgba(11,19,36,.35) !important;
}

/* ROLE GUIDE: 押せる案内ボタン */
.btn.role-guide,
.mobile-sticky-cta__btn.role-guide{
  opacity:1 !important;
  filter:none !important;
  border-color: var(--accent) !important;
  background: linear-gradient(180deg, rgba(18,36,72,.98), rgba(9,20,44,.98)) !important;
  color: var(--text) !important;
  cursor:pointer !important;
  pointer-events:auto !important;
}
.btn.role-guide:hover,
.mobile-sticky-cta__btn.role-guide:hover{
  opacity:.92 !important;
  background: linear-gradient(180deg, rgba(24,46,90,.98), rgba(12,25,54,.98)) !important;
}
.btn.role-guide::before,
.btn.role-guide::after,
.mobile-sticky-cta__btn.role-guide::before,
.mobile-sticky-cta__btn.role-guide::after{
  content:none !important;
  display:none !important;
}


.linklike{
  color: var(--text);
  text-decoration: underline;
  word-break: break-all;
}
.linklike:hover{
  color: var(--accent);
}


.public-note{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(255,184,77,.32);
  background:rgba(255,184,77,.08);
  color:#f3d08a;
  border-radius:12px;
  font-size:13px;
  line-height:1.7;
}
.sample-box{
  margin-top:10px;
  border:1px solid rgba(91,132,255,.28);
  border-radius:12px;
  background:rgba(15,23,42,.18);
}
.sample-box summary{
  cursor:pointer;
  list-style:none;
  padding:12px 14px;
  font-weight:700;
  color:var(--accent);
}
.sample-box summary::-webkit-details-marker{display:none;}
.sample-box summary::after{
  content:'＋';
  float:right;
  color:var(--muted);
}
.sample-box[open] summary::after{content:'−';}
.sample-box pre{
  margin:0;
  padding:0 14px 14px;
  white-space:pre-wrap;
  word-break:break-word;
  font-family:inherit;
  line-height:1.7;
  color:var(--text);
  font-size:13px;
}


/* TALENT 投稿/編集 調整 */
#screenT .panel{max-width:1180px; margin:0 auto;}
#screenT .grid2{grid-template-columns:minmax(360px,0.95fr) minmax(440px,1.15fr); gap:22px; align-items:start;}
#screenT #tBio{min-height:200px; line-height:1.55;}
#screenT .public-note{margin-top:8px; padding:12px 14px; line-height:1.6;}
#screenT #tVerBox .checklist{gap:8px;}
#screenT #tVerBox .check{padding:8px 10px;}
#screenT .agree-box{margin-top:8px;}
#screenT .row{margin-bottom:14px;}
@media (max-width: 980px){
  #screenT .grid2{grid-template-columns:1fr; gap:16px;}
  #screenT #tBio{min-height:180px;}
}


/* OFFER list UI */
.offer-panel{max-width:1200px;margin:0 auto;}
.offer-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:10px;}
.offer-selected-wrap{min-width:280px;}
.offer-selected-label{font-size:12px;color:var(--muted);margin-bottom:4px;}
.offer-selected-title{font-weight:800;font-size:18px;line-height:1.4;}
.offer-toolbar-actions{display:flex;gap:10px;flex-wrap:wrap;}
.offer-selected-meta{margin-bottom:14px;}
.offer-list{display:flex;flex-direction:column;gap:14px;}
.offer-item{cursor:pointer;}
.offer-item.active{border-color:rgba(91,132,255,.9); box-shadow:0 0 0 1px rgba(91,132,255,.25) inset; background:rgba(91,132,255,.08);}
.offer-card{width:100%;text-align:left;background:linear-gradient(180deg, rgba(8,24,56,.72), rgba(4,16,40,.86));cursor:pointer;border:1px solid rgba(91,132,255,.18);border-radius:18px;padding:16px 18px;display:block;box-shadow:0 10px 24px rgba(0,0,0,.14);}
.offer-card:hover{border-color:rgba(91,132,255,.48);box-shadow:0 12px 28px rgba(0,0,0,.18);}
.offer-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px;}
.offer-row-title{font-weight:700;font-size:14px;line-height:1.45;margin-bottom:6px;color:#dbe7ff;}
.offer-row-name{font-size:15px;line-height:1.45;margin:0;color:#c6d4f7;}
.offer-row-time{font-size:13px;line-height:1.5;color:var(--muted);}
.offer-pill{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 10px;border-radius:999px;border:1px solid rgba(91,132,255,.35);background:rgba(91,132,255,.12);color:#dce7ff;font-size:12px;font-weight:700;white-space:nowrap;}


.pw-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.pw-wrap .input{
  padding-right:46px;
}
.pw-toggle{
  position:absolute;
  right:10px;
  border:none;
  background:transparent;
  color:#fff;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:28px;
  padding:0 6px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  line-height:1;
}
.pw-toggle:hover{ color:#fff !important; background:rgba(255,255,255,.08); }
.thread-quota{ margin-top:8px; }

.thread-no-inline{font-size:.82em; opacity:.8;}

.admin-kv{display:grid;grid-template-columns:140px 1fr;gap:6px 12px;align-items:start}
.admin-kv .k{color:var(--muted)}
.admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.admin-card .title{margin-bottom:8px}

.price-chip{display:inline-block;padding:4px 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;margin-right:8px;margin-bottom:6px;font-size:.92em;}


.mobile-home-switch{display:none;gap:10px;margin:0 0 14px 0}
.mobile-home-switch .btn{flex:1}

@media (max-width: 768px){
  .mobile-home-switch{display:flex}
  #homeContainer.mobile-tab-task #homeTaskCol{display:block}
  #homeContainer.mobile-tab-task #homeTalentCol{display:none}
  #homeContainer.mobile-tab-talent #homeTaskCol{display:none}
  #homeContainer.mobile-tab-talent #homeTalentCol{display:block}
}


.site-footer{
  max-width:1200px;
  margin:56px auto 24px;
  padding:0 18px 24px;
  text-align:center;
  font-size:11px;
  line-height:1.7;
  color:var(--muted);
}


/* ===== Mobile fixed header stack (home only) ===== */
@media (max-width: 768px){
  #screenA .topbar{
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    padding: 8px 12px 6px;
    background: rgba(15,23,42,.96);
  }
  #screenA .brand{
    width: 100%;
  }
  #screenA .brand-title{
    font-size: 16px;
    line-height: 1.2;
  }
  #screenA .brand-sub{
    font-size: 11px;
    margin-top: 1px;
  }
  #screenA .nav{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 6px;
    flex-wrap: nowrap;
  }
  #screenA .nav .icon-btn{
    min-width: 0;
    width: 100%;
    justify-content: center;
    padding: 9px 6px;
    font-size: 12px;
    gap: 4px;
    border-radius: 12px;
  }
  #screenA .nav .nav-label{
    white-space: nowrap;
  }
  #screenA #homeContainer{
    padding-top: 10px;
  }
  #screenA .mobile-home-switch{
    position: sticky;
    top: var(--mobile-stack-top, 112px);
    z-index: 55;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0 0 2px;
    background: linear-gradient(to bottom, rgba(11,18,32,.99), rgba(11,18,32,.96));
    border-top: 1px solid rgba(59,130,246,.08);
  }
  #screenA .mobile-home-switch .btn{
    padding: 10px 8px;
  }
  #screenA .account-menu{
    top: calc(var(--mobile-stack-top, 112px) + 2px);
    right: 12px;
  }
}


/* keep button text horizontal */
.btn, .icon-btn, .menu-btn, .seg-btn, .pw-toggle{
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 768px){
  .thread-head{
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap:8px;
  }
  .thread-head-main,
  .thread-head-actions,
  .thread-title{
    width:100%;
  }
  .thread-head-actions{
    justify-content:flex-start;
  }
  .thread-head .btn,
  .offer-toolbar-actions .btn,
  .thread-send .btn{
    width:auto;
    min-width:72px;
    white-space:normal;
    line-height:1.2;
    text-align:center;
  }
  .thread-send{
    display:grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items:center;
  }
  .offer-toolbar-actions{
    gap:8px;
  }
  #screenA .nav .icon-btn{
    font-size:11px;
  }
}


.field-count{
  margin-top:6px;
  text-align:right;
  font-size:12px;
  color:var(--muted);
}
.tag-row{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px}
.tag.more{opacity:.8}
.clamp3{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  line-height:1.45;
}
.detail-with-sticky-cta{padding-bottom:86px}
.mobile-sticky-cta{
  display:none;
}
@media (max-width: 767px){
  .mobile-sticky-cta{
    display:block;
    position:sticky;
    bottom:-14px;
    margin:16px -14px -14px;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:rgba(15,23,42,.98);
    border-top:1px solid rgba(31,42,68,.95);
    z-index:5;
  }
  .mobile-sticky-cta__meta{
    font-size:12px;
    color:var(--muted);
    text-align:center;
    margin-bottom:8px;
  }
  .mobile-sticky-cta__btn{
    width:100%;
    min-height:48px;
  }
}


.detail-mobile-back-wrap{display:none;margin-bottom:10px}
@media (max-width:767px){
  .detail-mobile-back-wrap{display:block}
  .detail-mobile-back{width:100%}
  .mobile-sticky-cta__btn.is-disabled{opacity:.72}
}


.label-with-action{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.inline-action{white-space:nowrap}
.reader-view{padding:4px 0}
.reader-view__body{
  line-height:1.9;
  font-size:16px;
  white-space:normal;
  word-break:break-word;
}
@media (max-width:767px){
  .reader-view__body{font-size:17px;line-height:1.95}
}


.reader-modal{padding:0; background:rgba(5,10,20,.82);}
.reader-modal-panel{
  width:100vw;
  max-width:none;
  height:100vh;
  max-height:none;
  border-radius:0;
  border:none;
}
.reader-view--fullscreen{
  min-height:calc(100vh - 72px);
}
.reader-view--fullscreen .reader-view__body{
  width:min(1100px, 100%);
  margin:0 auto;
  font-size:18px;
  line-height:1.9;
  white-space:normal;
}
@media (max-width: 767px){
  .large-reader-only{display:none !important;}
}



/* ===== MOBILE LAYOUT FIX (SAFE) ===== */
@media (max-width:768px){

  #screenA .topbar{
    gap:4px;
    padding:6px 10px 4px;
    align-items:flex-start;
  }

  #screenA .brand{
    width:100%;
  }

  #screenA .brand-title{
    font-size:15px;
    line-height:1.15;
  }

  #screenA .brand-sub{
    font-size:10px;
    line-height:1.1;
    margin-top:0;
  }

  #screenA .nav{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
  }

  #screenA .nav .icon-btn{
    min-width:0;
    width:100%;
    justify-content:center;
    padding:8px 6px;
    font-size:12px;
    gap:4px;
    border-radius:10px;
  }

  #screenA #homeContainer{
    padding-top:4px;
  }

  #screenA .mobile-home-switch{
    position:static;
    top:auto;
    z-index:auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    margin:0 0 8px;
    padding:0;
    background:transparent;
    border-top:0;
  }

  #screenA .mobile-home-switch .btn{
    padding:8px 6px;
    min-height:36px;
    font-size:13px;
  }

  .container{
    gap:10px;
    padding:8px 10px;
  }

  .col,
  .panel{
    padding:10px;
    border-radius:12px;
  }

  .col-head{
    gap:8px;
    margin-bottom:8px;
  }

  .h{
    font-size:14px;
    line-height:1.2;
  }

  .sub{
    font-size:11px;
    font-weight:700;
    margin-top:1px;
    line-height:1.2;
  }

  .actions{
    gap:6px;
  }

  .search-row{
    gap:8px;
    margin-bottom:10px;
  }

  .search-row .input,
  .search-row .search-wide,
  .search-row .search-third{
    flex:1 1 100%;
    min-width:0;
  }

  .btn{
    padding:8px 10px;
    border-radius:10px;
    font-size:13px;
  }

  .btn.small{
    padding:7px 9px;
    font-size:11px;
  }

}

/* ===== Footer ===== */
.site-footer{
  margin-top:20px;
  padding:16px 12px 24px;
  border-top:1px solid rgba(31,42,68,.85);
  text-align:center;
}
.footer-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:8px;
}
.footer-links a{
  color:var(--muted);
  text-decoration:none;
  font-size:12px;
}
.footer-links a:hover{
  color:var(--text);
}
.footer-text{
  font-size:11px;
  color:#9aa4b2 !important;
  line-height:1.5;
}
.footer-contact{
  display:inline-block;
  margin-top:2px;
  font-size:11px;
  line-height:1.5;
  color:#9aa4b2 !important;
  text-decoration:none;
}
.footer-contact:hover{
  color:#c7d0db !important;
}

.footer-copyright{
  margin-top:10px;
  font-size:12px;
  color:#c7d0db !important;
  line-height:1.6;
}


/* ===== build_20260319_02 mobile header + agreement readability ===== */
@media (max-width:768px){
  #screenA .topbar{
    gap:4px;
    padding:6px 10px 4px;
  }

  #screenA #homeContainer{
    padding-top:2px;
  }

  #screenA .mobile-home-switch{
    position:sticky;
    top:var(--mobile-stack-top, 72px);
    z-index:55;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    margin:0 0 8px;
    padding:0 0 2px;
    background:linear-gradient(to bottom, rgba(11,18,32,.99), rgba(11,18,32,.96));
    border-top:1px solid rgba(59,130,246,.08);
  }

  #screenA .mobile-home-switch .btn{
    min-height:40px;
    padding:8px 6px;
    font-size:13px;
  }
}

.agree-box,
.agree-title,
.agree-item{
  color:#c7ced8;
}

.agree-item a{
  color:#d7deea;
  text-decoration:none;
  font-weight:600;
}

.agree-item a:hover{
  color:#ffffff;
  text-decoration:underline;
}

.agree-item input:disabled + a,
.agree-item input:disabled + a + span{
  opacity:1;
}

.check-hint{
  margin-left:6px;
  font-size:12px;
  color:#94a3b8;
}

.footer-build{
  display:none;
}


.admin-summary{
  margin:8px 0 12px;
  padding:0 4px;
  font-size:13px;
  color:#e6edf3;
  letter-spacing:.2px;
}

.ver-other-input{width:120px; max-width:120px; height:28px; padding:4px 8px; font-size:12px; margin-left:6px;}
.ver-other-inline{display:inline-flex; align-items:center; gap:6px;}
.chip{display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid rgba(148,163,184,.35); border-radius:999px; background:rgba(15,23,42,.55); font-size:12px;}
.chip button{border:0; background:transparent; color:#cbd5e1; cursor:pointer; padding:0; line-height:1;}


.external-modal{position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center;}
.external-modal__backdrop{position:absolute; inset:0; background:rgba(2,6,23,.66);}
.external-modal__panel{position:relative; z-index:1; min-width:280px; max-width:calc(100vw - 32px); padding:18px; border-radius:16px; border:1px solid rgba(255,255,255,.12); background:rgba(15,23,42,.98); box-shadow:0 18px 60px rgba(0,0,0,.45); text-align:center;}
.external-modal__title{font-size:14px; font-weight:800; color:#fff; line-height:1.5;}
.external-modal__actions{display:flex; justify-content:center; gap:10px; margin-top:14px;}


.reader-view__actions{display:flex;justify-content:flex-end;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.reader-view__actions .btn{min-width:88px}

.reader-view__actions--center{justify-content:center}
.reader-view__copy-wrap{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.reader-copy-btn{min-width:88px;padding-inline:18px;border-radius:10px;box-shadow:0 8px 24px rgba(2,6,23,.24)}
.reader-view__copy-note{font-size:12px;line-height:1.5;color:#9aa4b2}


.intro-splash{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at center, rgba(16,40,48,.96) 0%, rgba(7,20,31,.985) 72%, rgba(6,16,26,.995) 100%);opacity:1;visibility:visible;transition:opacity .28s ease, visibility .28s ease;pointer-events:auto;}
.intro-splash.hidden{opacity:0;visibility:hidden;pointer-events:none;}
.intro-splash-inner{display:flex;align-items:center;justify-content:center;padding:24px;}
.intro-splash-logo{display:block;width:min(54vw, 320px);max-width:320px;min-width:180px;height:auto;filter:drop-shadow(0 10px 26px rgba(0,0,0,.22));transform:scale(.97);opacity:.98;animation:introSplashPulse .9s ease forwards;}
@keyframes introSplashPulse{0%{opacity:0;transform:scale(.94)}35%{opacity:1;transform:scale(1)}100%{opacity:1;transform:scale(1)}}
@media (max-width: 640px){.intro-splash-logo{width:min(70vw, 320px);min-width:160px;}}


.thread-payment-modal{position:fixed;inset:0;z-index:10020;display:flex;align-items:center;justify-content:center;padding:18px;}
.thread-payment-modal__backdrop{position:absolute;inset:0;background:rgba(2,6,23,.72);backdrop-filter:blur(3px);}
.thread-payment-modal__panel{position:relative;z-index:1;width:min(440px, calc(100vw - 32px));padding:22px 20px 18px;border-radius:22px;border:1px solid rgba(226,232,240,.16);background:linear-gradient(180deg, rgba(15,23,42,.98), rgba(11,18,32,.98));box-shadow:0 24px 80px rgba(0,0,0,.52);color:#e5edf8;text-align:left;}
.thread-payment-modal__eyebrow{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:rgba(59,130,246,.14);border:1px solid rgba(96,165,250,.26);font-size:12px;font-weight:800;color:#bfdbfe;letter-spacing:.03em;}
.thread-payment-modal__title{margin:12px 0 10px;font-size:18px;line-height:1.45;font-weight:900;color:#fff;}
.thread-payment-modal__price{margin:2px 0 12px;font-size:34px;line-height:1;font-weight:900;color:#fff;letter-spacing:.02em;}
.thread-payment-modal__body{margin:0;font-size:13px;line-height:1.75;color:#cbd5e1;}
.thread-payment-modal__note{margin-top:12px;padding:10px 12px;border-radius:14px;background:rgba(15,23,42,.72);border:1px solid rgba(148,163,184,.16);font-size:12px;line-height:1.65;color:#9fb0c4;}
.thread-payment-modal__actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;}
.thread-payment-modal__cancel,.thread-payment-modal__pay{min-width:104px;}
.thread-payment-modal__pay[disabled]{opacity:.78;cursor:wait;}
.thread-payment-modal__spinner{display:inline-block;width:13px;height:13px;margin-right:7px;border-radius:999px;border:2px solid rgba(255,255,255,.34);border-top-color:#fff;vertical-align:-2px;animation:threadPaymentSpin .72s linear infinite;}
.thread-payment-modal.is-connecting .thread-payment-modal__backdrop{background:rgba(2,6,23,.82);}
.thread-payment-connecting-modal__panel{text-align:center;max-width:360px;}
.thread-payment-connecting-modal__spinner{width:34px;height:34px;margin:0 auto 14px;border-radius:999px;border:3px solid rgba(255,255,255,.28);border-top-color:#fff;animation:threadPaymentSpin .72s linear infinite;}
@keyframes threadPaymentSpin{to{transform:rotate(360deg)}}
@media (max-width:640px){.thread-payment-modal{align-items:flex-end;padding:12px}.thread-payment-modal__panel{width:100%;border-radius:22px 22px 18px 18px}.thread-payment-modal__actions{flex-direction:column-reverse}.thread-payment-modal__cancel,.thread-payment-modal__pay{width:100%;}}


/* Mobile direct COPY action for detail text. PC keeps the large reader flow. */
.mobile-copy-action{display:none}
@media (max-width: 767px){
  .mobile-copy-action{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:8px;
  }
  .mobile-copy-btn{
    min-width:72px;
  }
  .mobile-copy-note{
    font-size:12px;
    color:#9aa4b2;
    line-height:1.5;
  }
}

/* SNS share: quiet external contact route for TASK / TALENT detail URLs */
.social-share{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(148,163,184,.22);
}
.social-share--compact{
  margin-top:12px;
  padding-top:10px;
}
.social-share__label{
  color:#9aa4b2;
  font-size:12px;
  line-height:1.5;
  margin-bottom:8px;
}
.social-share__buttons{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.social-share__btn{
  min-height:30px;
  padding:6px 10px;
  font-size:12px;
}
@media (max-width: 640px){
  .social-share__buttons{gap:6px;}
  .social-share__btn{padding:6px 9px;}
}

.detail-action-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
  align-items:center;
}
.social-share-inline__btn{
  padding:8px 12px;
  font-size:13px;
}
.detail-action-spacer{
  width:44px;
  flex:0 0 44px;
}
.social-share-inline__btn,
.social-share__btn{
  border-radius:10px;
  font-weight:800;
}
.social-share-inline__btn--x,
.social-share__btn--x{
  background:#000;
  border-color:#000;
  color:#fff;
}
.social-share-inline__btn--linkedin,
.social-share__btn--linkedin{
  background:#fff;
  border-color:#0a66c2;
  color:#0a66c2;
}
.social-share-inline__btn--facebook,
.social-share__btn--facebook{
  background:#1877f2;
  border-color:#1877f2;
  color:#fff;
}
.social-share-inline__btn--line,
.social-share__btn--line{
  background:#06c755;
  border-color:#06c755;
  color:#fff;
}
.social-share-inline__btn--x:hover,
.social-share__btn--x:hover,
.social-share-inline__btn--facebook:hover,
.social-share__btn--facebook:hover,
.social-share-inline__btn--line:hover,
.social-share__btn--line:hover{
  color:#fff;
  filter:brightness(.96);
}
.social-share-inline__btn--linkedin:hover,
.social-share__btn--linkedin:hover{
  background:#f8fbff;
  color:#0a66c2;
}
@media (max-width:640px){
  .detail-action-row{gap:8px;}
  .detail-action-spacer{width:100%;flex:0 0 100%;height:0;}
  .social-share-inline__btn{padding:7px 10px;font-size:12px;}
}

/* PC only: premium card hover clone layer (layout-safe) */
@media (hover:hover) and (pointer:fine) and (min-width: 769px){
  .premium-hover-clone{
    position:fixed;
    z-index:2147483000;
    pointer-events:none;
    transform:scale(1.1);
    transform-origin:center center;
    border-color:rgba(226,232,240,.98)!important;
    box-shadow:0 28px 64px rgba(15,23,42,.34), 0 0 28px rgba(255,255,255,.22), 0 1px 0 rgba(255,255,255,.92) inset!important;
    filter:brightness(1.03);
    opacity:1;
    transition:opacity .12s ease, transform .12s ease;
  }
  .premium-hover-clone.is-leaving{
    opacity:0;
    transform:scale(1.04);
  }
}


@media (hover:none), (pointer:coarse), (max-width:768px){
  .premium-hover-clone{
    display:none!important;
    opacity:0!important;
    pointer-events:none!important;
  }
}

/* MATCH AI COPY picker */
.match-ai-picker{display:flex;flex-direction:column;gap:12px}
.match-ai-picker__list{display:flex;flex-direction:column;gap:10px}
.match-ai-picker__item{width:100%;text-align:left;border:1px solid rgba(148,163,184,.28);background:rgba(15,23,42,.72);color:#e5e7eb;border-radius:14px;padding:12px 14px;cursor:pointer;transition:border-color .16s ease, transform .16s ease, background .16s ease}
.match-ai-picker__item:hover{border-color:rgba(226,232,240,.72);background:rgba(30,41,59,.88);transform:translateY(-1px)}
.match-ai-picker__item b{display:block;font-size:14px;line-height:1.45;margin-bottom:5px}
.match-ai-picker__item span{display:block;font-size:12px;line-height:1.55;color:#aeb8c6}

/* build_20260513_10_test: mobile detail must fit viewport, not inherit PC reader/modal width */
@media (max-width: 767px){
  .modal{
    padding:0;
    align-items:stretch;
    justify-content:flex-start;
  }
  .modal-panel{
    width:100vw;
    max-width:100vw;
    height:100dvh;
    max-height:100dvh;
    border-radius:0;
    border-left:0;
    border-right:0;
  }
  .modal-head{
    padding:10px 12px;
    gap:8px;
  }
  .modal-title{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-align:left;
  }
  .modal-body{
    padding:12px;
    overflow-x:hidden;
  }
  .grid2,
  .grid2 > *,
  .row,
  .card,
  .card.mini,
  .detail-long,
  .txt{
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  .card,
  .card.mini,
  .detail-long,
  .txt,
  .linklike,
  .external-hp-link{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .detail-long{
    min-height:160px;
    max-height:none;
  }
  .mobile-copy-action{
    display:flex;
    flex-wrap:wrap;
    align-items:stretch;
    gap:8px;
    width:100%;
  }
  .mobile-copy-btn{
    flex:1 1 140px;
    min-width:0;
    justify-content:center;
  }
  .mobile-copy-note{
    flex:1 1 100%;
  }
  .detail-action-row{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}

/* build_20260516_08_test: usage modal for first-time and logged-in users */
.usage-modal{display:flex;flex-direction:column;gap:18px;color:#dbe5f5;line-height:1.75;}
.usage-lead{padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);font-size:14px;color:#fff;}
.usage-section{padding:14px 16px;border-radius:16px;background:rgba(15,23,42,.55);border:1px solid rgba(255,255,255,.10);}
.usage-title{font-size:15px;font-weight:900;color:#fff;margin-bottom:8px;}
.usage-steps{margin:0;padding-left:22px;font-size:14px;}
.usage-steps li{margin:4px 0;}
.usage-note{font-size:13px;color:#c9d5e7;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09);}
@media(max-width: 760px){
  .usage-modal{gap:14px;}
  .usage-lead,.usage-section,.usage-note{padding:12px 13px;border-radius:14px;}
  .usage-steps{padding-left:20px;}
}

/* build_20260516_08_test: usage writing guide buttons and modal readability */
.usage-write-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:4px 12px;
  margin-left:8px;
  border-radius:999px;
  border:1px solid rgba(116,150,255,.55);
  background:rgba(37,65,143,.46);
  color:#f7fbff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
  cursor:pointer;
  vertical-align:middle;
  box-shadow:0 0 0 1px rgba(255,255,255,.04) inset;
}
.usage-write-btn:hover{
  background:rgba(65,96,190,.68);
  border-color:rgba(151,180,255,.78);
}
.writing-guide-modal{gap:12px;}
.usage-guide-text{
  max-height:62vh;
  overflow:auto;
  font-size:14px;
  line-height:1.82;
  color:#e4ecfb;
  background:rgba(8,15,31,.64);
}
@media(max-width:760px){
  .usage-write-btn{
    margin-left:6px;
    padding:3px 10px;
    min-height:26px;
    font-size:12px;
  }
  .usage-guide-text{
    max-height:66vh;
    font-size:13px;
    line-height:1.78;
  }
}

/* build_20260516_08_test: compact payment timing notes in usage flow */
.usage-pay-inline{display:inline-flex;align-items:center;margin-left:8px;font-size:12px;font-weight:800;color:#cfe0ff;white-space:nowrap;}
.usage-pay-note{margin-top:4px;font-size:12px;line-height:1.55;color:#cfe0ff;}
@media(max-width:760px){
  .usage-pay-inline{display:inline;margin-left:6px;white-space:normal;}
  .usage-pay-note{font-size:12px;}
}

.thread-partner-card{
  margin-top:10px;
  padding:10px;
  border:1px solid rgba(148,163,184,.28);
  border-radius:12px;
  background:rgba(15,23,42,.35);
}
.thread-partner-card__label{
  font-size:12px;
  color:#9aa4b2;
  margin-bottom:4px;
}
.thread-partner-card__text{
  font-size:14px;
  font-weight:700;
  color:#e5e7eb;
  line-height:1.5;
}
.thread-partner-card__sub{
  margin-top:4px;
  font-size:12px;
  color:#cbd5e1;
  line-height:1.6;
}
.thread-partner-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.brand-sub{
  font-size:11px;
  opacity:.7;
  margin-top:2px;
  letter-spacing:.08em;
}
.col-head .sub small{
  display:block;
  font-size:11px;
  opacity:.7;
  margin-top:2px;
}
