/* ===== 査定案件・評価・業者選択 ===== */
.side-cta {
  margin: 0 14px 6px; height: 42px; border-radius: 10px; border: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #5b7cff, #2f54eb); color: #fff; font-weight: 700; font-size: 13.5px;
  box-shadow: 0 6px 16px rgba(47, 84, 235, .35), inset 0 1px 0 rgba(255,255,255,.18); transition: filter .15s, transform .05s;
}
.side-cta:hover { filter: brightness(1.08); }
.side-cta:active { transform: translateY(1px); }
.side-user-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 4px; margin: -4px; border-radius: 8px; text-align: left; color: inherit; }
.side-user-btn:hover { background: rgba(255,255,255,.06); }
.side-user .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: hsl(var(--h) var(--chip-s) var(--chip-l)); color: hsl(var(--h) 60% var(--chip-tl));
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.neutral { background: var(--surface-2); color: var(--text-3); }

.stars { display: inline-flex; align-items: center; gap: 1px; color: #f5a524; white-space: nowrap; }
.stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars .icon.off { color: var(--border-strong); }
.stars b { margin-left: 3px; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.stars small { margin-left: 2px; font-size: 11px; color: var(--text-3); }
.star-ic { color: #f5a524; display: inline-flex; vertical-align: -2px; margin-right: 2px; }
.star-ic .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }

.perf { display: grid; gap: 2px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.perf .icon { width: 12px; height: 12px; vertical-align: -1px; color: #d97706; }
.perf .stars .icon { color: #f5a524; width: 14px; height: 14px; }
.perf-line { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.perf-line .icon { width: 13px; height: 13px; vertical-align: -2px; color: #d97706; }
.perf-line .stars .icon { color: #f5a524; }

.rank { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; font-size: 11.5px; font-weight: 800; background: var(--surface-2); color: var(--text-3); font-variant-numeric: tabular-nums; }
.rank.r1 { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #7c2d12; box-shadow: 0 2px 6px rgba(245, 158, 11, .35); }
.rank.r2 { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #1e293b; }
.rank.r3 { background: linear-gradient(135deg, #fed7aa, #c2703d); color: #fff; }
.rank-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin: -6px 0 12px; }
.rank-hint .icon { color: var(--primary-text); }

.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.price small { font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 1px; }
.price.top { color: var(--success); }
.price .icon { width: 14px; height: 14px; color: #d97706; }
.stat b small { font-size: 12px; font-weight: 600; color: var(--text-3); margin-left: 2px; }

.stat.link { text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.stat.link:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.segmented.text button { width: auto; padding: 0 12px; font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.seg-count { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.progress-wrap { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.progress { width: 90px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #34d399, #10b981); }

.folder-logo { background: hsl(32 90% var(--chip-l)); color: hsl(32 80% var(--chip-tl)); }
.folder-logo .icon { width: 18px; height: 18px; }
.folder-logo.big { width: 52px; height: 52px; border-radius: 14px; }
.folder-logo.big .icon { width: 24px; height: 24px; }

.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 4px 0; margin-bottom: 14px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.back:hover { color: var(--primary-text); }
.p-head { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.p-head-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.p-title { margin: 0 0 8px; font-size: 22px; line-height: 1.4; }
.p-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--text-2); }
.p-meta span { display: inline-flex; align-items: center; gap: 5px; }
.p-meta .icon { color: var(--text-3); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.card-sec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-sec .table { min-width: 640px; }
.card-sec:has(.table) { overflow-x: auto; }
.card-sec-head { padding: 13px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; }
.card-sec-head > span { display: inline-flex; align-items: center; gap: 6px; }
.card-sec-body { padding: 14px 18px; max-height: 560px; overflow-y: auto; }

.timeline { display: grid; }
.tl-item { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 6px 0 12px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: -6px; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin: 6px 5px; box-shadow: 0 0 0 4px var(--primary-soft); }
.tl-item:not(:first-child) .tl-dot { background: var(--border-strong); box-shadow: 0 0 0 4px var(--surface-2); }
.tl-text { font-size: 13px; line-height: 1.55; }
.tl-meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mini-stats > div { padding: 12px 8px; text-align: center; border-right: 1px solid var(--border); }
.mini-stats > div:last-child { border-right: none; }
.mini-stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.mini-stats span { font-size: 11.5px; color: var(--text-3); }
.hist-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: none; border-bottom: 1px solid var(--border); background: none; text-align: left; color: inherit; transition: background .12s; }
.hist-row:last-child { border-bottom: none; }
.hist-row:hover { background: var(--surface-hover); }
.hist-row .body { flex: 1; min-width: 0; }
.hist-row .v { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-row .k { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.hist-right .stars .icon { width: 11px; height: 11px; }

.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.step b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; border: 1px solid var(--border); }
.step.on { color: var(--text); }
.step.on b { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.step.done { color: var(--success); }
.step.done b { background: var(--success-soft); color: var(--success); border-color: transparent; }
.steps .line { width: 40px; height: 2px; background: var(--border); border-radius: 2px; }

.picker-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cat-toggle.sm { height: 32px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
.cat-toggle.sm .check { width: 14px; height: 14px; }
.picker-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.picker-tools .search { flex: 1; }
.picker-tools .search input { box-shadow: none; }
.picker-list { max-height: min(46vh, 420px); overflow-y: auto; }
.pick-row { cursor: pointer; transition: background .12s; }
.pick-row:hover { background: var(--surface-hover); }
.pick-row.on { background: var(--primary-soft); }
.pick-row .grow b { display: flex; align-items: center; gap: 8px; }
.pstats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.pstats .icon { width: 12px; height: 12px; vertical-align: -1px; color: #d97706; }
.pstats .stars .icon { color: #f5a524; }
.no-mail { font-size: 10.5px; font-weight: 700; color: var(--warning); background: var(--warning-soft); padding: 1px 7px; border-radius: 99px; }

.seg-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg-btns button {
  height: 42px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all .15s;
}
.seg-btns button:hover { border-color: hsl(var(--h) 60% 55%); }
.seg-btns button.on { border-color: hsl(var(--h) 60% 50%); background: hsl(var(--h) var(--chip-s) var(--chip-l)); color: hsl(var(--h) 60% var(--chip-tl)); box-shadow: 0 0 0 3px hsl(var(--h) 70% 50% / .12); }
.seg-btns button.neutral.on { border-color: var(--text-3); background: var(--surface-2); color: var(--text); box-shadow: none; }
.unit-input { position: relative; }
.unit-input .input { padding-right: 48px; font-variant-numeric: tabular-nums; font-weight: 600; }
.unit-input em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12.5px; color: var(--text-3); }
.rate { display: flex; align-items: center; gap: 2px; }
.rate button { border: none; background: none; padding: 3px; color: var(--border-strong); transition: transform .1s, color .1s; }
.rate button:hover { transform: scale(1.12); }
.rate button.on { color: #f5a524; }
.rate .icon { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.rate-label { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }

/* 回答フォーム */
.grid-2 > .col { display: grid; gap: 16px; min-width: 0; align-content: start; }
.web-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--primary-text); background: var(--primary-soft); padding: 1px 7px; border-radius: 99px; vertical-align: middle; }
.web-tag .icon { width: 11px; height: 11px; }
.url-box { display: flex; gap: 4px; align-items: center; }
.url-box .input { height: 36px; font-size: 12px; color: var(--text-2); background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.form-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.form-meta a.btn:hover { text-decoration: none; }
.card-sec.unmatched { border-color: color-mix(in srgb, var(--warning) 45%, var(--border)); }
.card-sec.unmatched .card-sec-head { background: var(--warning-soft); color: var(--warning); }
.um-row { display: flex; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.um-row:last-child { border-bottom: none; }
.um-row .grow { flex: 1; min-width: 220px; }
.um-row .grow > b { display: block; }
.um-row .grow > span { font-size: 12px; color: var(--text-3); }
.um-val { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; }
.um-actions { display: flex; gap: 6px; align-items: center; }
.um-actions .select { height: 32px; width: 200px; font-size: 13px; }

/* Outlook 用メールファイルの案内 */
.eml-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; line-height: 1.7; }
.files-card .card-sec-body { overflow-x: hidden; }

/* 招待コード */
.invite-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--primary-soft); }
.invite-box span { font-size: 12.5px; font-weight: 700; color: var(--primary-text); }
.invite-box b { font-size: 26px; letter-spacing: .18em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }

/* 物件資料 */
.files-card { transition: box-shadow .15s, border-color .15s; }
.files-card.over { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.drop-hint { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 18px 10px; border: 1.5px dashed var(--border-strong); border-radius: 10px; color: var(--text-3); }
.drop-hint b { color: var(--text-2); font-size: 13px; }
.drop-hint span { font-size: 11.5px; }
.files-card.over .drop-hint { border-color: var(--primary); background: var(--primary-soft); }
.usage { margin-top: 12px; display: grid; gap: 4px; font-size: 11px; color: var(--text-3); }
.usage .progress { height: 4px; }
.progress.warn i { background: linear-gradient(90deg, #fbbf24, #f97316); }
.pick-files { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-2); font-size: 13px; cursor: pointer; transition: all .15s; }
.pick-files:hover, .pick-files.over { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); }
.chosen-files { display: flex; flex-wrap: wrap; gap: 6px; }
.chosen-files:empty { display: none; }
.chosen { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 8px; background: var(--surface-2); font-size: 12.5px; max-width: 100%; }
.chosen small { color: var(--text-3); }
.chosen button { border: none; background: none; padding: 2px; color: var(--text-3); display: grid; }
.chosen button:hover { color: var(--danger); }

@media (max-width: 1280px) {
  .table td, .table th { padding-left: 11px; padding-right: 11px; }
  .table td.td-co { min-width: 200px; }
}
@media (max-width: 1180px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .stats.four { grid-template-columns: 1fr 1fr; }
  .p-head { padding: 18px; }
  .p-title { font-size: 18px; }
  .hide-sm { display: none !important; }
  .seg-btns { grid-template-columns: 1fr 1fr; }
}
