/* profile.css — /by/:ig 對開頁。依賴 tokens.css + chrome.css。
   #31 已清除：不再有私有 :root，全用共用 token。*/

html { background: var(--paper); }
.profile {
  --canvas-max: 880px; --kq-header-h: 56px; --kq-footer-h: 48px;
  /* 區塊間距系統：以全網 --gutter 為基準倍率（隨斷點的 --gutter 自動放大）。
     主區塊縱向 gap 一律 --blk-gap，彼此等距；區塊內／次級間距用 --sub-gap。
     左右邊距仍由 .spread 的 --margin 負責（見 §14.1 8px 基線）。 */
  --blk-gap: calc(var(--gutter) * 2.5);   /* 主區塊縱向間距 40(m)/50/70/80/90 */
  --sub-gap: calc(var(--gutter) * 1.5);   /* 次級／區塊內間距 24(m)/30/42/48/54 */
}
@media (min-width:561px)  { .profile { --k-4:34px; --lh-4:48px; } }
@media (min-width:1024px) { .profile { --canvas-max:1180px; --margin:clamp(20px,3.2vw,40px); --gutter:20px; --k-4:42px; --lh-4:56px; } }
@media (min-width:1280px) { .profile { --canvas-max:1320px; --margin:clamp(40px,4vw,56px);  --gutter:28px; --k-4:50px; --lh-4:64px; } }
@media (min-width:1600px) { .profile { --canvas-max:1440px; --margin:clamp(56px,4.5vw,72px);--gutter:32px; --k-4:58px; --lh-4:72px; } }
@media (min-width:1920px) { .profile { --canvas-max:1560px; --margin:72px; --gutter:36px; --k-4:64px; --lh-4:80px; } }

/* wordmark 單色（整顆 ink，無染 Q） */
.profile .logo { color: var(--ink); }

/* 語言切換（masthead 右側）*/
.profile .lang-tabs { display: flex; align-items: center; gap: 10px; }
.profile .lang-tab {
  font-family: var(--mono); font-size: var(--t--1); font-weight: 700;
  letter-spacing: .06em; line-height: 1;
  background: none; border: none; color: var(--ink-3);
  cursor: pointer; padding: 4px 2px; transition: color .25s, text-shadow .25s;
  border-radius: var(--r-xs);
}
.profile .lang-tab:hover { color: var(--ink-2); }
.profile .lang-tab.active {
  background: var(--signal); color: var(--paper);
  border-radius: var(--r-xs); padding: 4px 9px; text-shadow: none;
}

/* 外觀按鈕（框內比例塊，對齊主頁）*/
.profile .app-btn {
  width: 40px; height: 28px; padding: 4px; cursor: pointer; display: flex;
  background: var(--paper-2); border: 1px solid var(--ink-3); border-radius: var(--r-xs);
  transition: border-color .2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.profile .app-btn:hover { border-color: var(--signal); }
.profile .app-btn .blk { display: flex; flex: 1; overflow: hidden; border-radius: 1px; }
.profile .app-btn .a { background: var(--sw-d); flex: 0 0 64%; transition: flex-basis .3s; }
.profile .app-btn .b { background: var(--sw-l); flex: 1; transition: flex-basis .3s; }
:root[data-appearance="light"] .profile .app-btn .a { flex: 0 0 36%; }

/* ── 對開頁 ── */
.profile .spread {
  display: grid; grid-template-columns: 1fr; column-gap: var(--gutter);
  max-width: var(--canvas-max); margin: 0 auto; padding: 0 var(--margin);
  position: relative; align-items: start;
}
.profile .page-L, .profile .page-R { grid-column: 1 / -1; padding: var(--blk-gap) 0; }
.profile .page-L { border-bottom: 1px solid var(--seam); }
@media (min-width: 1024px) {
  .profile .spread { grid-template-columns: repeat(12, 1fr); }
  .profile .spread::before { content:""; position:absolute; top:0; bottom:0; left:50%; width:1px; background:var(--seam); transform:translateX(-.5px); }
  .profile .page-L { grid-column: 1 / 7; padding: 48px var(--gutter) 24px 0; border-bottom: none; position: sticky; top: var(--kq-header-h); align-self: start; }
  .profile .page-R { grid-column: 7 / 13; padding: 48px 0 64px var(--gutter); }
  /* folio 下緣＝鞋卡距中間溝線的實際距離＝1.5×gutter（col-gap 半格 0.5g + 頁內距 g），
     用 --sub-gap，讓鞋卡與上緣溝線、中間溝線等距 */
  .profile .page-L .folio, .profile .page-R .folio { padding-bottom: 12px; margin-bottom: var(--sub-gap); }
  .profile .statstrip { margin-top: 12px; }
  #p-rotation { overflow-y: visible; }
  /* mode-stripe 脫離 flex 流，釘在 header 底部 */
  .profile .kq-header .mode-stripe { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; }
  /* 固定外殼 */
  .profile .kq-header, .profile .kq-footer {
    position: fixed; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--canvas-max);
    box-sizing: border-box; background: var(--paper); z-index: 10;
  }
  .profile .kq-header { top: 0; }
  .profile .kq-footer { bottom: 0; }
  .profile .kq-content { padding-block: var(--kq-header-h) var(--kq-footer-h); min-height: 100dvh; }
}
@media (max-width: 1023px) {
  .profile .kq-header, .profile .kq-footer { position: static; left: auto; transform: none; max-width: none; }
  .profile .kq-footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* folio */
.profile .folio {
  font-family: var(--mono); font-size: var(--t--1); letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3);
  padding-bottom: var(--sub-gap); margin-bottom: var(--blk-gap); border-bottom: 1px solid var(--seam);
}
.profile .page-L .folio { color: var(--teal-ink); }
.profile .page-R .folio { color: var(--signal); }

/* 左頁：THE RUNNER */
.profile .handle { font-family: var(--logo); font-weight: 900; font-size: var(--k-4); line-height: var(--lh-4); color: var(--ink); letter-spacing: -.02em; word-break: break-word; }
.profile .statstrip { display: flex; flex-wrap: wrap; border-top: 1px solid var(--paper-2); margin-top: var(--blk-gap); padding-top: var(--sub-gap); margin-bottom: 0; }
.profile .page-L .sec-label { font-family: var(--mono); font-size: var(--t--2); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 28px; margin-bottom: 8px; }
.profile .stat { flex: 1 1 auto; min-width: 96px; border-left: 1px solid var(--paper-2); padding: 0 0 6px 16px; margin-left: -1px; }
.profile .stat:first-child { border-left: none; padding-left: 0; }
.profile .stat-n { display: block; font-family: var(--logo); font-weight: 700; font-size: var(--k-2); color: var(--ink); line-height: 1; }
.profile .stat-n .u { font-family: var(--mono); font-size: var(--t--1); color: var(--ink-3); margin-left: 3px; }
.profile .stat-l { display: block; font-family: var(--mono); font-size: var(--t--2); color: var(--ink-3); letter-spacing: .08em; margin-top: 9px; text-transform: uppercase; }
.profile .brands { margin-top: var(--blk-gap); }
/* 鞋架容器（常駐標題隱藏）：非空時補主區塊間距，讓 brands→鞋架 與其他區塊等距 */
.profile #p-rotation:not(:empty) { margin-top: var(--blk-gap); }
.profile .brands-h { font-family: var(--mono); font-size: var(--t--2); color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.profile .brand-row { display: flex; flex-wrap: wrap; gap: 8px; }
.profile .brand-chip { font-family: var(--mono); font-size: var(--t--1); color: var(--teal-ink); border: 1px solid var(--teal-2); border-radius: 3px; padding: 4px 10px; letter-spacing: .02em; }

/* 右頁：THE RECORD */
.profile #p-seclabel { display: none; }
.profile .sec-label { font-family: var(--mono); font-size: var(--t--2); color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.profile .sec-label .num { color: var(--signal); }
/* review card — 設計規格：KILOQ-design-spec-v3.md §14.3 + §14.10 */
.profile .review { padding: 20px; background: var(--teal); border-radius: var(--r-sm); margin-bottom: 12px; }
.profile .review-head { display: flex; align-items: flex-start; margin-bottom: 8px; }
.profile .review-np { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.profile .review-shoe { font-family: var(--mono); font-weight: 700; font-size: var(--t--2); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); }
.profile .review-model { display: inline-block; margin-top: 3px; font-family: var(--serif); font-weight: 900; font-size: var(--k-2); line-height: 32px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.profile .review-model:hover { border-color: var(--signal); }
.profile .review-meta-body { margin-bottom: 8px; }
.profile .review-meta { display: flex; flex-direction: column; gap: 3px; font-family: var(--mono); font-size: var(--t--2); letter-spacing: .06em; }
.profile .review-meta-item { color: var(--teal-ink); }
.profile .review-chev { color: var(--teal-ink); transition: transform .25s, color .2s; }
.profile .review.expanded .review-chev { transform: rotate(180deg); }
.profile .review.collapsed .review-body > *:first-child { display: none; }
.profile .review.collapsed .review-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.profile .review.collapsed .review-meta-actions,
.profile .review.collapsed .review-edit-ta,
.profile .review.collapsed .review-edit-actions { display: none; }
.profile .review-body { font-family: var(--sans); font-size: var(--u-0); line-height: var(--lh-u); color: var(--ink); text-wrap: pretty; max-width: 42ch; }
.profile .review-body p { margin-bottom: 8px; }
.profile .review-body p:last-child { margin-bottom: 0; }
.profile .review-toggle {
  display: flex; align-items: center; justify-content: center;
  width: calc(100% + 40px); margin: 12px -20px -20px;
  padding: 10px 0;
  background: none; border: none; border-top: 1px solid var(--paper-2);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  color: var(--teal-ink); cursor: pointer;
  transition: background .2s, color .2s;
}
.profile .review-toggle:hover { background: var(--paper-2); color: var(--ink); }
@media (min-width: 1024px) {
  .profile .review-meta-body { display: flex; gap: 24px; align-items: flex-start; }
  .profile .review-meta { flex: 0 0 88px; }
  .profile .review-body-wrap { flex: 1; min-width: 0; }
}

/* 狀態訊息 */
.profile .state-msg { font-family: var(--mono); font-size: var(--t--1); color: var(--ink-3); padding: 8px 0; }

/* ── identity row ── */
.profile .identity-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile .id-chip {
  font-family: var(--mono); font-size: var(--t--2); font-weight: 700; letter-spacing: .06em;
  padding: 4px 10px; border: 1px solid var(--paper-2); color: var(--ink-3);
  border-radius: var(--r-xs);
}
.profile .id-chip.linked { border-color: var(--teal-border); color: var(--teal-ink); }
.profile .id-chip-link { text-decoration: none; cursor: pointer; }
.profile .id-chip-link:hover { opacity: .8; }
.profile .id-chip.pending { color: var(--ink-3); }
.profile .id-connect-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: var(--t--2); color: var(--signal);
  text-decoration: underline; padding: 0; margin-left: 4px;
}
.profile .id-login-btn {
  font-family: var(--mono); font-size: var(--t--2); font-weight: 700; letter-spacing: .06em;
  background: none; border: 1px solid var(--paper-2); color: var(--ink-3);
  padding: 4px 10px; cursor: pointer; transition: border-color .15s, color .15s;
  border-radius: var(--r-xs);
}
.profile .id-login-btn:hover { border-color: var(--signal); color: var(--signal); }
.profile .id-logout-btn {
  font-family: var(--mono); font-size: var(--t--2); font-weight: 700; letter-spacing: .06em;
  background: none; border: 1px solid var(--paper-2); color: var(--ink-3);
  padding: 4px 12px; cursor: pointer; transition: border-color .15s, color .15s;
  border-radius: var(--r-xs); margin-left: auto;
}
.profile .id-logout-btn:hover { border-color: var(--signal); color: var(--signal); }
/* ── inline-edit page-specific 覆寫（共用基礎見 chrome.css .kq-*）── */
/* 名稱 row：rowClass='handle' → row 繼承 .handle 字體，input 再 font:inherit 吃到 */
.profile .kq-edit-row.handle { word-break: break-word; }
.profile .kq-edit-row.handle .kq-inline-input { width: 100%; }

/* IG chip 輸入框：inputClass='kq-chip-edit' → 覆寫為 teal chip 字色/寬度 */
.profile .kq-chip-edit {
  font-family: var(--mono); font-size: var(--t--2); font-weight: 700; letter-spacing: .06em;
  color: var(--teal-ink); border-bottom-color: var(--teal-border); width: 140px;
}

/* ── 認領 strip（現在是左欄 inline）── */
.profile .claim-strip {
  margin-top: 14px; padding: 14px 0; border-top: 1px solid var(--paper-2);
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.profile .claim-q {
  font-family: var(--mono); font-size: var(--t--1); color: var(--ink-3); letter-spacing: .04em;
}
.profile .claim-action {
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: var(--t--1); color: var(--signal);
  text-decoration: underline; padding: 0;
}
.profile .claim-input { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.profile .claim-label {
  font-family: var(--mono); font-size: var(--t--1); color: var(--ink-2); letter-spacing: .03em;
}
.profile .claim-row { display: flex; gap: 8px; align-items: center; }
.profile .claim-field {
  flex: 1; min-width: 0; background: var(--paper-2); border: none;
  border-bottom: 1px solid var(--paper-3); color: var(--ink);
  font-family: var(--mono); font-size: var(--t--1); padding: 8px 10px;
  border-radius: 4px 4px 0 0; outline: none; transition: border-color .2s;
}
.profile .claim-field:focus { border-bottom-color: var(--signal); }
/* .kq-submit 已在 chrome.css 定義 */
.profile .claim-ok {
  font-family: var(--mono); font-size: var(--t--1); color: var(--teal-ink); letter-spacing: .04em;
}

/* footer：排版基底/橫線改由 chrome.css 全站 .kq-footer 提供（space-between）。
   此處只保留流內置中的寬度來源（手機；桌機另有固定外殼上方 @media）。 */
.profile .kq-footer { max-width: var(--canvas-max); margin: 0 auto; }

/* ── 空狀態 CTA（review-gated user page）── */
.profile .empty-cta { padding: 24px 0; }
.profile .empty-msg {
  font-family: var(--sans); font-size: var(--t-0); color: var(--ink-3); margin: 0 0 12px;
}
.profile .empty-cta-link {
  font-family: var(--mono); font-size: var(--t--1); letter-spacing: .08em;
  color: var(--signal); text-decoration: none;
}
.profile .empty-cta-link:hover { text-decoration: underline; }

/* ── card-signal（鞋卡上的 signal 編輯，同 shoe page 貢獻風格）── */
.profile .card-signal { margin-top: 12px; border-top: 1px solid var(--paper-2); padding-top: 10px; }
.profile .card-signal-row { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.profile .card-sig-btn {
  font-family: var(--sans); font-size: var(--t--2); font-weight: 700; color: var(--ink-2);
  background: none; border: 1px solid var(--paper-2);
  padding: 3px 8px; cursor: pointer; border-radius: var(--r-xs);
  -webkit-tap-highlight-color: transparent; transition: border-color .15s, color .15s;
}
.profile .card-sig-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.profile .card-sig-btn.selected { border-color: var(--signal); color: var(--signal); }

/* ── Rotation 區段 ── */
.profile .rot-row {
  padding: 14px 0; border-bottom: 1px solid var(--paper-2);
}
.profile .rot-top-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.profile .rot-role-chips { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.profile .rot-role-chip {
  font-family: var(--sans); font-size: var(--t--2); font-weight: 700; letter-spacing: .06em;
  padding: 2px 8px; border: 1px solid var(--signal); color: var(--signal); border-radius: var(--r-xs);
}
.profile .rot-shoe-name {
  font-family: var(--serif); font-size: var(--u-0); line-height: var(--lh-u); font-weight: 900;
  color: var(--ink); text-decoration: none; display: block; margin-bottom: 8px;
}
.profile .rot-shoe-name:hover { color: var(--signal); }
.profile .rot-go-log { margin-top: 6px; }
.profile .rot-go-log a {
  font-family: var(--mono); font-size: var(--t--2); letter-spacing: .08em;
  color: var(--ink-3); text-decoration: none;
}
.profile .rot-go-log a:hover { color: var(--signal); }
/* ── 自評 rating（個人卡，取代 go-to）── */
.profile .rot-rating { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.profile .rot-rating-editable { cursor: pointer; }
.profile .rot-rating-word { font-family: var(--serif); font-size: var(--t--1); color: var(--ink); }
.profile .rot-rating-tap {
  font-family: var(--mono); font-size: var(--t--2); letter-spacing: .08em;
  background: none; border: 1px solid var(--ink-3); border-radius: var(--r-xs);
  color: var(--ink-3); padding: 5px 10px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.profile .rot-rating-tap:hover { border-color: var(--signal); color: var(--signal); }
.profile .rot-edit { margin-top: 8px; }
.profile .rot-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }

/* chip 三態：未選=暖灰描邊 / selected 次要=signal 描邊 / primary=signal 填滿 */
.profile .rot-chip {
  font-family: var(--sans); font-size: var(--t--1); font-weight: 700; color: var(--ink-2);
  background: none; border: 1px solid var(--paper-2);
  padding: 3px 10px; cursor: pointer; border-radius: var(--r-xs);
  -webkit-tap-highlight-color: transparent; transition: border-color .15s, color .15s, background .15s;
}
.profile .rot-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.profile .rot-chip.selected { border-color: var(--signal); color: var(--signal); }
.profile .rot-chip.primary { background: var(--signal); border-color: var(--signal); color: var(--paper); }
.profile .rot-chips.readonly .rot-chip { cursor: default; }
.profile .rot-actions { display: flex; gap: 8px; margin-top: 8px; }
.profile .rot-btn {
  font-family: var(--mono); font-size: var(--t--2); font-weight: 700; letter-spacing: .06em;
  background: none; border: 1px solid var(--paper-2); color: var(--ink-2);
  padding: 4px 12px; cursor: pointer; transition: border-color .15s, color .15s;
  border-radius: var(--r-xs);
}
.profile .rot-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.profile .rot-btn:disabled { opacity: .4; cursor: default; }
.profile .rot-btn-del { color: var(--ink-3); }
.profile .rot-btn-del:hover { border-color: var(--signal); color: var(--signal); }
.profile .rot-btn-cancel { color: var(--ink-3); }
.profile .rot-add-form { padding: 12px 0; }
.profile .rot-add-btn {
  font-family: var(--mono); font-size: var(--t--1); font-weight: 700; letter-spacing: .08em;
  background: none; border: 1px solid var(--paper-2); color: var(--ink-3);
  padding: 4px 12px; cursor: pointer; transition: border-color .15s, color .15s;
  border-radius: var(--r-xs);
}
.profile .rot-add-btn:hover { border-color: var(--signal); color: var(--signal); }
.profile .rot-search-wrap { margin-top: 8px; position: relative; }
.profile .rot-search {
  width: 100%; font-family: var(--sans); font-size: var(--t-0); color: var(--ink);
  background: var(--paper); border: 1px solid var(--paper-2); padding: 6px 10px;
  box-sizing: border-box; outline: none;
}
.profile .rot-search:focus { border-color: var(--ink-3); }
.profile .rot-results { position: absolute; left: 0; right: 0; background: var(--paper); border: 1px solid var(--paper-2); border-top: none; z-index: 10; }
.profile .rot-result-item {
  font-family: var(--sans); font-size: var(--t-0); color: var(--ink);
  padding: 8px 10px; cursor: pointer;
}
.profile .rot-result-item:hover { background: var(--paper-2); }
.profile .rot-new-editor { padding: 12px 0; border-bottom: 1px solid var(--paper-2); margin-bottom: 8px; }

/* ── 鞋櫃目錄表（cabinet card；見 public/js/cards/cabinet-card.js）──────────────
   視覺比照 shoe 主頁 .ctable（shoe-index.css）：鞋款 serif | 評分 | 紀錄 teal | 最近 | 新增。*/
.profile .cab-table { width: 100%; border-collapse: collapse; }
.profile .cab-table thead th {
  font-family: var(--mono); font-size: var(--t--2); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--seam);
  padding: 8px 8px 8px 0; text-align: left; user-select: none; white-space: nowrap;
}
.profile .cab-table thead th[data-sort] { cursor: pointer; }
.profile .cab-table thead th[data-sort]:hover { color: var(--ink); }
.profile .cab-table thead th.sort-active { color: var(--teal-ink); }
.profile .cab-table thead th.sort-active::after { content: ' ↓'; }
.profile .cab-table thead th.sort-active.sort-asc::after { content: ' ↑'; }
.profile .cab-table thead .col-count { text-align: right; padding-right: 12px; }

.profile .cab-row { border-bottom: 1px solid var(--seam); cursor: pointer; transition: background .15s; }
.profile .cab-row:hover { background: var(--paper-2); }
.profile .cab-row.selected { box-shadow: inset 2px 0 0 var(--signal); }
.profile .cab-row td { padding: 10px 8px 10px 0; color: var(--ink); vertical-align: middle; }
.profile .cab-row .col-name { font-family: var(--serif); font-weight: 900; font-size: var(--u-0); }
.profile .cab-row.selected .col-name { color: var(--signal); }
.profile .cab-row .col-count { color: var(--teal-ink); font-family: var(--mono); font-weight: 700; font-size: var(--t--1); text-align: right; padding-right: 12px; white-space: nowrap; }
.profile .cab-row .col-date { color: var(--ink-3); font-family: var(--mono); font-size: var(--t--2); white-space: nowrap; }
.profile .cab-row .col-rate { width: 1%; white-space: nowrap; padding-right: 14px; }
.profile .cab-row .col-add  { width: 1%; text-align: right; }
/* 縮小評分：compact 格、去多餘間距 */
.profile .cab-table .kq-rate--picker { gap: 0; }
.profile .cab-table .kq-rate--picker .kq-rate-row { gap: 0; }
.profile .cab-table .kq-rate--compact .kq-rate-cells { max-width: 104px; gap: 3px; }
.profile .cab-table .kq-rate--compact .kq-rate-cell { height: 16px; min-width: 16px; }
/* 小型新增紀錄鈕：實心＝未記／橘框＝已記 */
.profile .cab-addbtn { width: 28px; height: 28px; border: none; border-radius: var(--r-0); background: var(--signal); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: opacity .15s, background .15s; }
.profile .cab-addbtn:hover { opacity: .85; }
.profile .cab-addbtn svg { width: 15px; height: 15px; }
.profile .cab-addbtn--outline { background: transparent; border: 1.5px solid var(--signal); color: var(--signal); }
.profile .cab-addbtn--outline:hover { background: transparent; opacity: .6; }
/* 顯示全部 / 收合 */
.profile .cab-toggle {
  display: block; width: 100%; text-align: left;
  font-family: var(--mono); font-size: var(--t--2); letter-spacing: .08em;
  color: var(--ink-3); background: none; border: none;
  padding: 12px 0; cursor: pointer; transition: color .15s;
}
.profile .cab-toggle:hover { color: var(--teal-ink); }
/* 顯示全部時可捲（桌機限高 ~10 列 + sticky 表頭；手機自然流，由頁面捲動）*/
@media (min-width: 1024px) {
  .profile .cab-scroll { max-height: 530px; overflow-y: auto; }
  .profile .cab-table thead th { position: sticky; top: 0; background: var(--paper); z-index: 1; }
}

/* ── 紀錄濾選列（左點右濾）──────────────────────────────────────────────────── */
.profile .rec-filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.profile .rec-reset { font-family: var(--mono); font-size: var(--t--2); letter-spacing: .08em; color: var(--ink-3); background: none; border: none; cursor: pointer; padding: 0; }
.profile .rec-reset:hover { color: var(--signal); }
.profile .rec-filter-title { font-family: var(--sans); font-weight: 700; font-size: var(--u-0); color: var(--ink); }

/* ── 左欄行動 chips ── */
.profile .review-meta-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.profile .review-meta-chip {
  display: inline-block; width: fit-content;
  font-family: var(--mono); font-size: var(--t--2); font-weight: 700; letter-spacing: .06em;
  background: none; border: 1px solid var(--ink-3); color: var(--ink-2);
  padding: 3px 8px; cursor: pointer; border-radius: var(--r-xs);
  -webkit-tap-highlight-color: transparent; transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.profile .review-meta-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.profile .review-meta-chip:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── 鞋評編輯 ── */
.profile .review-edit-btn {
  display: inline-block;
  font-family: var(--mono); font-size: var(--t--2); font-weight: 700; letter-spacing: .08em;
  background: none; border: 1px solid var(--paper-2); color: var(--ink-3);
  padding: 3px 10px; cursor: pointer; border-radius: var(--r-xs);
  -webkit-tap-highlight-color: transparent; transition: border-color .15s, color .15s;
}
.profile .review-edit-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.profile .review-edit-ta {
  width: 100%; min-height: 260px; margin-top: 0; box-sizing: border-box;
  font-family: var(--sans); font-size: var(--t-0); color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--paper-3);
  padding: 10px 12px; resize: vertical; outline: none; line-height: 1.65;
}
.profile .review-edit-ta:focus { border-color: var(--ink-3); }
.profile .review-edit-actions { display: flex; gap: 6px; margin-top: 8px; }
.profile .review-edit-save {
  font-family: var(--mono); font-size: var(--t--2); font-weight: 700; letter-spacing: .08em;
  background: none; border: 1px solid var(--signal); color: var(--signal);
  padding: 3px 12px; cursor: pointer; transition: background .15s, color .15s;
  border-radius: var(--r-xs);
}
.profile .review-edit-save:hover { background: var(--signal); color: var(--paper); }
.profile .review-edit-save:disabled { opacity: .45; cursor: default; }
.profile .review-edit-cancel {
  font-family: var(--mono); font-size: var(--t--2); font-weight: 700; letter-spacing: .08em;
  background: none; border: 1px solid var(--paper-2); color: var(--ink-3);
  padding: 3px 10px; cursor: pointer; border-radius: var(--r-xs);
}
.profile .review-edit-field {
  width: 100%; box-sizing: border-box;
  font-family: var(--sans); font-size: var(--t-0); color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--paper-3);
  padding: 7px 12px; outline: none;
}
.profile .review-edit-field:focus { border-color: var(--ink-3); }
.profile .review-edit-fields { display: flex; gap: 8px; margin-bottom: 8px; }
.profile .review-edit-fields .review-edit-field { flex: 1; }
.profile .review-edit-delete {
  font-family: var(--mono); font-size: var(--t--2); font-weight: 700; letter-spacing: .08em;
  background: none; border: none; color: var(--ink-3);
  padding: 3px 0; cursor: pointer; margin-left: auto;
  opacity: .6; transition: opacity .15s, color .15s;
}
.profile .review-edit-delete:hover { opacity: 1; color: var(--signal); }
.profile .review-translated { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--paper-2); color: var(--ink-2); }

.profile .rot-sig-section { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--paper-2); }
.profile .rot-sig-row { margin-bottom: 4px; }
/* signal section on review cards */
.profile .card-signal-section {
  margin-top: 10px; margin-bottom: 10px;
}
.profile .card-sig-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.profile .card-sig-err {
  font-family: var(--sans); font-size: var(--t--2); font-weight: 700;
  color: var(--signal); margin-top: 4px;
}
.profile .card-rot-row { margin-top: 2px; }
/* card-sig-btn inherits from .rot-chip via reuse; define standalone for review cards */
.profile .card-sig-btn {
  font-family: var(--sans); font-size: var(--t--2); font-weight: 700; color: var(--ink-2);
  background: none; border: 1px solid var(--paper-2);
  padding: 3px 8px; cursor: pointer; border-radius: var(--r-xs);
  -webkit-tap-highlight-color: transparent; transition: border-color .15s, color .15s;
}
.profile .card-sig-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.profile .card-sig-btn.selected { border-color: var(--signal); color: var(--signal); }
.profile .card-sig-btn:disabled { opacity: .4; cursor: default; }
.profile .card-sig-btn.readonly { cursor: default; pointer-events: none; }

/* 日期就地編輯 input（inline-edit.js page-specific 覆寫） */
.profile .kq-date-edit { width: 100px; }
