@charset "UTF-8";
/*
 * 会員の窓の共通の部品。/member-ui.css（色の変数・窓の枠）の次に読む。作る関数＝/member-parts.mjs・タブの動き＝/ui-tabs.mjs。
 * 機能の1枚＝機能/02_共通のUIの部品.md。旧の member-ui.css・member-parts.css・parts/*.css から運んで、監査のずれを直した（決めの記録 #52）。
 * 全部 :where(body[data-member-ui]) の下（画面の CSS で上書きしやすい詳細度）。
 *
 * 決まり（試験＝tests/ui-parts.test.mjs が縛る）
 *  - ボタンは .ui-button と、その種類 primary・quiet・small・icon・danger だけ（既定を入れて6つ・R8）。破線の枠のボタンを作らない。
 *  - danger（危ない操作）は赤い字。押すと必ず確かめの窓（.ui-dialog）を出す（#69）＝member-parts.mjs の button(…, {kind:'danger', confirm}) で作る。
 *  - ボタンはその場の操作だけ。別の画面へ移る物は文字のリンク（R15）。右上の主ボタンは「作る・追加」の1つだけ。
 *  - 画面の中の切り替えは .ui-tabs（文字＋下線）だけ（R14）。工程（段階）は .ui-steps。
 *  - カードは .ui-card の1種類。カードの中にカードを入れない。金額などの数の札だけ .ui-metric（R11）。
 *  - 空・読み込み中・エラーは .ui-empty・.ui-loading-row・.ui-empty[data-state=error] の3つだけ。「準備中」も .ui-empty（R10）。
 *  - 知らせはその場の1行（.ui-status）。トーストは作らない。
 */

/* 長文を読む領域。枠・見出しの段・操作の配置は各画面の部品が持つ。 */
:where(body[data-member-ui]) .ui-reading-body {
  max-inline-size: var(--member-reading-width);
  min-inline-size: 0;
  color: var(--member-ink);
  font-size: var(--member-reading-size);
  line-height: var(--member-reading-leading);
  overflow-wrap: anywhere;
}
/* 教材や記事の本文は、ナビゲーションを除いたコンテンツ領域の幅を使う。 */
:where(body[data-member-ui]) .ui-reading-body.ui-reading-body--article {
  box-sizing: border-box;
  inline-size: 100%;
  padding: clamp(16px, 3.4vw, 28px);
  border: 1px solid var(--member-line);
  border-radius: var(--member-radius-md);
  background: var(--member-reading-paper);
}
:where(body[data-member-ui]) .ui-reading-body:where(:not(.rich-body)) > :where(p, ul, ol, blockquote) {
  margin-block: 0 var(--member-reading-paragraph-gap);
}
:where(body[data-member-ui]) .ui-reading-body:where(:not(.rich-body)) > :where(p, ul, ol, blockquote):last-child {
  margin-block-end: 0;
}

/* ボタン（R8）：既定・主（primary）・控えめ（quiet）・小（small）・印（icon）・危ない操作（danger） */
:where(body[data-member-ui]) .button-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
/* みんなの作品の公開の入口の下の状態の1行（#4106）：釦の列の中で1行を全部使う。 */
:where(body[data-member-ui]) [data-gallery-publish]>.gallery-publish-state{flex-basis:100%;margin:0}
/* Refs #1177 D6：旧devの実測_20261029.json の既定・主ボタン（/account/・/projects/）。 */
:where(body[data-member-ui]) .ui-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--member-touch);padding:8px 16px;border:1px solid var(--member-line);border-radius:var(--member-radius-md);background:var(--member-surface);color:var(--member-ink);font-weight:700;line-height:1.5;text-decoration:none;transition:background-color .15s ease}
:where(body[data-member-ui]) .ui-button:hover:not(:disabled){background:var(--member-hover)}
:where(body[data-member-ui]) .ui-button:disabled{cursor:not-allowed;opacity:.6}
:where(body[data-member-ui]) .ui-button.primary{background:var(--member-accent);border-color:var(--member-accent);color:var(--member-accent-ink)}
:where(body[data-member-ui]) .ui-button.primary:hover:not(:disabled){background:var(--member-accent-pressed)}
:where(body[data-member-ui]) .ui-button.quiet{background:transparent;border-color:transparent;color:var(--member-accent);text-decoration:underline;text-underline-offset:3px}
:where(body[data-member-ui]) .ui-button.quiet:hover:not(:disabled){background:var(--member-hover)}
:where(body[data-member-ui]) .ui-button.small{min-height:36px;padding:5px 12px;font-size:13px}
@media (pointer:coarse){:where(body[data-member-ui]) .ui-button.small{min-height:var(--member-touch)}}
/* Refs #1348：危ないボタンの地は旧と同じ透明。 */
:where(body[data-member-ui]) .ui-button.danger{border-color:var(--member-error);background:transparent;color:var(--member-error)}
:where(body[data-member-ui]) .ui-button.danger:hover:not(:disabled){background:var(--member-error-bg)}
:where(body[data-member-ui]) .ui-button.icon{flex:none;width:var(--member-touch);padding:0;border-radius:var(--member-radius-round);background:var(--member-field);font-size:18px}
/* 自分の投稿の操作（#1431・編集・削除など）：投稿の下に右寄せで小さく。枠も地も無い 13px の文字のボタン・色は --member-muted、
 * 削除（danger）は字の色だけ --member-error。押せる大きさ（44px）は透明の余白で保ち、余白の分は外側の負の余白で詰める。
 * 会員の画面で自分の投稿に付く操作は全部 member-parts.mjs の ownActions(…) で包む（試験＝tests/own-actions.test.mjs）。 */
:where(body[data-member-ui]) .ui-own-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0 4px;margin:0 -10px -10px auto}
:where(body[data-member-ui]) .ui-own-actions>.ui-button{min-width:var(--member-touch);min-height:var(--member-touch);padding:0 10px;border-color:transparent;background:transparent;color:var(--member-muted);font-size:13px;font-weight:400;text-decoration:none}
:where(body[data-member-ui]) .ui-own-actions>.ui-button:hover:not(:disabled){background:transparent;color:var(--member-ink);text-decoration:underline;text-underline-offset:3px}
:where(body[data-member-ui]) .ui-own-actions>.ui-button.danger{color:var(--member-error)}
:where(body[data-member-ui]) .ui-own-actions>.ui-button.danger:hover:not(:disabled){color:var(--member-error)}

/* タブ（R14）：文字＋下線。role=tablist・tab・aria-selected で書く */
:where(body[data-member-ui]) .ui-tabs{display:flex;flex-wrap:wrap;gap:0 24px;margin:0 0 20px;border-bottom:1px solid var(--member-line)}
:where(body[data-member-ui]) .ui-tabs [role=tab]{min-height:var(--member-touch);margin:0 0 -1px;padding:8px 2px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--member-muted);font-weight:700}
:where(body[data-member-ui]) .ui-tabs [role=tab]:hover{color:var(--member-ink)}
:where(body[data-member-ui]) .ui-tabs [role=tab][aria-selected=true]{border-bottom-color:var(--member-accent);color:var(--member-accent)}

/* 工程（R14）：破線の丸＝まだ・塗りの丸＝済み・大きな丸＝今。aria-current=step と data-done で書く */
:where(body[data-member-ui]) .ui-steps{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(var(--member-touch),1fr);margin:0 0 20px;padding:8px 4px;list-style:none;counter-reset:ui-step;overflow-x:auto}
:where(body[data-member-ui]) .ui-steps>li{position:relative;display:grid;grid-template-rows:var(--member-touch) auto;justify-items:center;gap:6px;min-width:0;counter-increment:ui-step;font-size:13px;text-align:center}
:where(body[data-member-ui]) .ui-steps>li::before{content:counter(ui-step);position:relative;z-index:1;display:grid;place-items:center;align-self:center;width:32px;height:32px;border:2px dashed var(--member-line);border-radius:var(--member-radius-round);background:var(--member-surface);color:var(--member-muted);font-weight:700}
:where(body[data-member-ui]) .ui-steps>li+li::after{content:"";position:absolute;top:calc(var(--member-touch) / 2 - 2px);left:-50%;right:50%;height:4px;background:var(--member-line)}
:where(body[data-member-ui]) .ui-steps>li[data-done]::before{border-style:solid;border-color:var(--member-accent);background:var(--member-accent);color:var(--member-accent-ink)}
:where(body[data-member-ui]) .ui-steps>li[data-done]+li::after{background:var(--member-accent)}
:where(body[data-member-ui]) .ui-steps>li[aria-current=step]::before{width:var(--member-touch);height:var(--member-touch);border:3px solid var(--member-accent);color:var(--member-accent);font-size:18px}
:where(body[data-member-ui]) .ui-steps>li[aria-current=step]{font-weight:700}

/* Refs #1111：7段以上は左→右、上→下の2行。現行の工房は最大12段。 */
:where(body[data-member-ui]) .ui-steps:has(>li:nth-child(7)){grid-auto-flow:row;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 0}
:where(body[data-member-ui]) .ui-steps:has(>li:nth-child(9)){grid-template-columns:repeat(5,minmax(0,1fr))}
:where(body[data-member-ui]) .ui-steps:has(>li:nth-child(11)){grid-template-columns:repeat(6,minmax(0,1fr))}
:where(body[data-member-ui]) .ui-steps:has(>li:nth-child(7))>li{white-space:normal;overflow-wrap:anywhere}
:where(body[data-member-ui]) .ui-steps:has(>li:nth-child(7))>li>button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
/* 各行の先頭は、前の行の末尾と横線で結ばない。番号は同じリストで続ける。 */
:where(body[data-member-ui]) .ui-steps:not(.ui-step-cards):has(>li:nth-child(7)):not(:has(>li:nth-child(9)))>li:nth-child(5)::after,
:where(body[data-member-ui]) .ui-steps:not(.ui-step-cards):has(>li:nth-child(9)):not(:has(>li:nth-child(11)))>li:nth-child(6)::after,
:where(body[data-member-ui]) .ui-steps:not(.ui-step-cards):has(>li:nth-child(11))>li:nth-child(7)::after{content:none}

/* UI 第3弾：矢印のカードの工程ナビ（共通UI仕様 CP-04）。確定済み＝濃い青緑・作業中＝金・未到達＝紙。
   吹き出し（lockItem）が切れないよう、矢印の切り抜きは li でなく裏の .step-card-face に掛ける。class="ui-steps ui-step-cards" で使う（note の記事と、工房の大工程＝studio-steps.mjs・#2874。工房の中の段は R14 の丸のまま）。 */
:where(body[data-member-ui]) .ui-steps>li>.step-card-face{display:none}
:where(body[data-member-ui]) .ui-steps.ui-step-cards{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin:0 0 16px;padding:0;overflow:visible}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li{position:relative;isolation:isolate;display:grid;grid-template-rows:none;grid-template-columns:auto minmax(0,auto);align-content:center;align-items:center;justify-content:center;gap:3px 5px;box-sizing:border-box;min-width:0;min-height:56px;padding:8px 19px;color:var(--member-muted);font-size:12px;line-height:1.35;overflow-wrap:anywhere}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li:has(.ui-bubble){z-index:3}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li::before,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[aria-current=step]::before,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-done]::before{content:counter(ui-step,decimal-leading-zero);display:inline;width:auto;height:auto;border:0;background:none;color:inherit;font-size:19px;line-height:1;font-weight:750;font-variant-numeric:tabular-nums}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li::after,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li+li::after,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-done]+li::after{content:"未到達";position:static;grid-column:1/-1;height:auto;background:none;font-size:12px}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li>.step-card-face{display:block;position:absolute;inset:0;z-index:-1;background:var(--member-line);clip-path:polygon(0 0,calc(100% - clamp(8px,1.35vw,17px)) 0,100% 50%,calc(100% - clamp(8px,1.35vw,17px)) 100%,0 100%,clamp(8px,1.35vw,17px) 50%);pointer-events:none}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li:first-child>.step-card-face{clip-path:polygon(0 0,calc(100% - clamp(8px,1.35vw,17px)) 0,100% 50%,calc(100% - clamp(8px,1.35vw,17px)) 100%,0 100%)}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li>.step-card-face::after{content:"";position:absolute;inset:1px 2px;background:var(--member-canvas);clip-path:inherit}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-working],
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[aria-current=step]:not([data-done]){color:var(--member-ink)}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-working]>.step-card-face,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-working]>.step-card-face::after,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[aria-current=step]:not([data-done])>.step-card-face,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[aria-current=step]:not([data-done])>.step-card-face::after{background:var(--member-frame-gold)}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-done]{color:var(--member-frame-ink)}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-done]>.step-card-face,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-done]>.step-card-face::after{background:var(--member-frame)}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-working]::after,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li+li[data-working]::after{content:"作業中"}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-done]::after,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li+li[data-done]::after{content:"確定済み"}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-ready]::after,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li+li[data-ready]::after{content:"進める"}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li>:is(button,a){position:static;min-width:0;min-height:0;max-width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:700;line-height:inherit;white-space:normal;text-decoration:none;cursor:pointer}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li>:is(button,a)[aria-disabled=true]{cursor:not-allowed}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li>:is(button,a)::after{content:"";position:absolute;inset:0}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li>:is(button,a):hover,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li:focus-within,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-done][aria-current=step]>:is(button,a){text-decoration:underline;text-underline-offset:3px}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[aria-current=step]{font-weight:400}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li>:is(button,a):focus-visible{outline:2px solid var(--member-focus);outline-offset:2px}
:where(body[data-member-ui]) .ui-steps.ui-step-cards .ui-lock-icon{display:none}
/* 票935（#5759・先触り その2 K2-06）：工房の大工程の帯は、段の名前を語の切れ目（studio-steps.mjs が入れる wbr）でだけ折る＝「サンプル生／成」にしない。幅が足りない時だけ字の間で折る（overflow-wrap:anywhere はそのまま）。
   余白・字の大きさは変えない（スマホの余白は各工房の css が持つ）。 */
:where(body[data-member-ui]) .ui-steps.ui-step-cards.studio-major-steps>li{word-break:keep-all}
@media (max-width:760px){
  :where(body[data-member-ui]) .ui-steps.ui-step-cards:has(>li:nth-child(5)){grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr))}
  :where(body[data-member-ui]) .ui-steps.ui-step-cards>li{grid-template-columns:minmax(0,1fr);gap:3px;padding-inline:12px}
  :where(body[data-member-ui]) .ui-steps.ui-step-cards>li:nth-child(3n+1)>.step-card-face{clip-path:polygon(0 0,calc(100% - clamp(8px,1.35vw,17px)) 0,100% 50%,calc(100% - clamp(8px,1.35vw,17px)) 100%,0 100%)}
}
/* 工程の中の切り替え（設計・生成／AIレビュー）：選んだタブの幅いっぱいに4pxの下線。 */
:where(body[data-member-ui]) .step-mode-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 12px;padding:0;border-bottom:1px solid var(--member-line)}
:where(body[data-member-ui]) .step-mode-tabs :is(button,a,.step-mode-current){display:inline-flex;align-items:center;box-sizing:border-box;min-height:var(--member-touch);max-width:100%;padding:6px 14px;border:0;border-bottom:4px solid transparent;border-radius:0;background:transparent;color:var(--member-ink);font:inherit;line-height:1.4;text-align:start;text-decoration:none}
:where(body[data-member-ui]) .step-mode-tabs :is(button:enabled,a):hover{background:var(--member-hover);cursor:pointer}
:where(body[data-member-ui]) .step-mode-tabs :is(button,a):focus-visible{outline:2px solid var(--member-focus);outline-offset:-2px}
:where(body[data-member-ui]) .step-mode-tabs button:disabled{color:var(--member-muted)}
:where(body[data-member-ui]) .step-mode-tabs [aria-current=page]{border-bottom-color:var(--member-frame);font-weight:700}

/* Refs #1170：大きな段＝元の工程。任意の中の段＝同じ工程内の画面。R14の2行化を保つ。 */
:where(body[data-member-ui]) .studio-steps-nav{margin:0 0 16px}
/* #6772 A1：工程の帯の下の「1つ前に戻る」（左）・「次へ進む」（右）＝見るだけの行き来。 */
:where(body[data-member-ui]) .studio-step-moves{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
:where(body[data-member-ui]) .studio-step-moves>[data-step-move=next]{margin-inline-start:auto}
:where(body[data-member-ui]) .studio-steps-nav .ui-steps{grid-auto-columns:minmax(0,1fr);margin-bottom:8px}
:where(body[data-member-ui]) .studio-steps-nav .ui-steps>li{white-space:normal;overflow-wrap:anywhere}
:where(body[data-member-ui]) .studio-steps-nav .ui-steps button{min-height:var(--member-touch);max-width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
/* #2874：工房の大工程は矢羽根のカード（共通UI仕様 CP-04・第4弾の見本）。番号と工程名・状態の言葉（作業中・確定済み・未到達）を出す。
   7段以上は R14 の列数（4・5・6列）で2行、狭い画面は3列で折り返す。各行の頭のカードは左の切り込みを付けない。 */
:where(body[data-member-ui]) .studio-steps-nav .studio-major-steps{margin:0 0 12px}
:where(body[data-member-ui]) .ui-steps.ui-step-cards:has(>li:nth-child(7)){gap:8px}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-step-complete][aria-current=step]{color:var(--member-frame-ink)}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-step-complete][aria-current=step]>.step-card-face,
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-step-complete][aria-current=step]>.step-card-face::after{background:var(--member-frame)}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-step-complete][aria-current=step]::after{content:"確定済み"}
:where(body[data-member-ui]) .ui-steps.ui-step-cards>li[data-step-complete][aria-current=step]>:is(button,a){text-decoration:underline;text-underline-offset:3px}
@media (min-width:761px){
  :where(body[data-member-ui]) .ui-steps.ui-step-cards:has(>li:nth-child(7)):not(:has(>li:nth-child(9)))>li:nth-child(4n+1)>.step-card-face,
  :where(body[data-member-ui]) .ui-steps.ui-step-cards:has(>li:nth-child(9)):not(:has(>li:nth-child(11)))>li:nth-child(5n+1)>.step-card-face,
  :where(body[data-member-ui]) .ui-steps.ui-step-cards:has(>li:nth-child(11))>li:nth-child(6n+1)>.step-card-face{clip-path:polygon(0 0,calc(100% - clamp(8px,1.35vw,17px)) 0,100% 50%,calc(100% - clamp(8px,1.35vw,17px)) 100%,0 100%)}
}
:where(body[data-member-ui]) [data-studio-screen][hidden]{display:none}

/* カード（R11）：1種類。数の札だけ .ui-metric */
:where(body[data-member-ui]) .ui-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:0 0 24px}
:where(body[data-member-ui]) .ui-card{min-width:0;padding:24px;border:1px solid var(--member-line);border-radius:var(--member-radius-md);background:var(--member-surface)}
@media (max-width:760px){:where(body[data-member-ui]) .ui-card{padding:18px}}
:where(body[data-member-ui]) .ui-card>:is(h2,h3){margin:0 0 6px;font-size:17px;line-height:1.5}
:where(body[data-member-ui]) .ui-card>p:where(:not(.ui-reading-body)){color:var(--member-muted);font-size:14px}
:where(body[data-member-ui]) .ui-card>p+.button-row{margin-top:12px}
:where(body[data-member-ui]) .ui-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:0 0 24px}
:where(body[data-member-ui]) .ui-metric{display:flex;flex-direction:column;gap:2px;min-width:0;padding:14px 16px;border:1px solid var(--member-line);border-radius:var(--member-radius-md);background:var(--member-surface)}
:where(body[data-member-ui]) .ui-metric>span{color:var(--member-muted);font-size:13px}
:where(body[data-member-ui]) .ui-metric>strong{font-size:24px;line-height:1.4;font-variant-numeric:lining-nums tabular-nums}

/* 空の時・エラー（R10）：1行の文と、あれば次の1手のボタン。「準備中」も同じ形 */
:where(body[data-member-ui]) .ui-empty{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0;padding:24px 20px;border:1px dashed var(--member-line);border-radius:var(--member-radius-md);color:var(--member-muted)}
:where(body[data-member-ui]) .ui-empty>p{margin:0}
:where(body[data-member-ui]) .ui-empty[data-state=error]{border-style:solid;border-color:var(--member-error);background:var(--member-error-bg);color:var(--member-error);font-weight:700}
/* エラーの続き（R17・member-errors.mjs）：お金の1文・次の1手の1文は普通の太さ。エラーコードは押すと写せる小さなボタン */
:where(body[data-member-ui]) .ui-empty[data-state=error] .ui-error-more{display:flex;flex-direction:column;gap:4px;margin:0;color:var(--member-ink);font-weight:400}
:where(body[data-member-ui]) .ui-empty[data-state=error] .ui-error-more>p{margin:0}
:where(body[data-member-ui]) .ui-empty[data-state=error] .ui-error-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.02em}
:where(body[data-member-ui]) .ui-empty[data-state=error] .ui-error-code-about{margin:0;color:var(--member-ink);font-weight:400}
:where(body[data-member-ui]) .ui-empty[data-state=error] [data-error-copy]{max-inline-size:100%;flex-wrap:wrap;justify-content:flex-start;text-align:left}
:where(body[data-member-ui]) .ui-empty[data-state=error] [data-error-copy]>span{min-inline-size:0;white-space:normal;overflow-wrap:anywhere}
/* #7587 ③・#7653：失敗の箱の直後は、ボタンの行や文字リンクも箱から12px離す。 */
:where(body[data-member-ui]) .ui-empty[data-state=error]+*{margin-top:12px}
:where(body[data-member-ui]) .ui-empty[data-state=error]+a:where(:not(.ui-button)){display:inline-block}
/* 読み込み中（R10）：一覧の形のまま薄い棒を2本（答えが来ても下が動かない）。読み上げない */
:where(body[data-member-ui]) .ui-loading{margin:0;padding:0;list-style:none;border-top:1px solid var(--member-line)}
:where(body[data-member-ui]) .ui-loading-row{height:56px;border-bottom:1px solid var(--member-line);background:linear-gradient(var(--member-rail),var(--member-rail)) 8px 16px/40% 8px no-repeat,linear-gradient(var(--member-rail),var(--member-rail)) 8px 34px/25% 6px no-repeat}

/* 一覧の行：題／2行目＝日付・札。行の間に区切り線 */
:where(body[data-member-ui]) .ui-list{margin:0 0 24px;padding:0;list-style:none}
:where(body[data-member-ui]) .ui-list>li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;min-height:56px;padding:12px 8px;border-bottom:1px solid var(--member-line)}
:where(body[data-member-ui]) .ui-list-title{font-weight:700;overflow-wrap:anywhere}
:where(body[data-member-ui]) .ui-list-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;color:var(--member-muted);font-size:12px}
/* 短い ID（#440・#2949・/member-short-id.mjs）：固有の id の頭6文字を、どこに置いても同じ小さい字で。前の文字との間は 0.5em。 */
:where(body[data-member-ui]) .member-short-id{display:inline-block;margin-inline-start:.5em;font-size:12px;font-weight:400;line-height:1.5;color:var(--member-muted);letter-spacing:0;white-space:nowrap}

/* 札：色だけでなく文字で言う。長い丸はここだけ（R7） */
/* Refs #1177 D4：旧devの実測_20261029.json の /account/・/alchemist/catalog/。未読だけ上下2px（/notices/）。 */
:where(body[data-member-ui]) .ui-tag{display:inline-block;padding:4px 8px;border:1px solid transparent;border-radius:var(--member-radius-pill);background:var(--member-rail);color:var(--member-ink);font-size:12px;font-weight:700;line-height:1.4}
:where(body[data-member-ui]) .ui-tag[data-kind=unread]{padding:2px 8px;background:var(--member-accent);color:var(--member-accent-ink)}
:where(body[data-member-ui]) .ui-tag[data-kind=important]{border-color:var(--member-gold);background:transparent;color:var(--member-gold)}

/* 知らせの1行：idle・pending・notice・success・error */
:where(body[data-member-ui]) .ui-status{min-height:28px;margin:0 0 12px;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
:where(body[data-member-ui]) .ui-status:is([data-state=pending],[data-state=notice]){color:var(--member-muted)}
:where(body[data-member-ui]) .ui-status[data-state=success]{color:var(--member-success);font-weight:700}
:where(body[data-member-ui]) .ui-status[data-state=error]{color:var(--member-error);font-weight:700}

/* 工房の導入案内：見える案内だけを8pxで並べ、最後の案内から内容まで24px空ける。 */
:where(body[data-member-ui]) .studio-intro{display:flex;flex-direction:column;gap:8px}
:where(body[data-member-ui]) .studio-intro:has(>.lead:not([hidden]),>.ui-status:not(:empty)){margin-bottom:24px}
:where(body[data-member-ui]) .studio-intro>:is(.lead,.ui-status){margin:0}
:where(body[data-member-ui]) .studio-intro>.ui-status{min-height:0}
/* #7536・#7653（R24）：空の知らせを高さ・下の余白・並びの gap から外し、読み上げの場所を残す。位置を持つマップの知らせは除く。 */
:where(body[data-member-ui]) .ui-status:is(:empty,:where(:has(>.ui-wait[data-empty-status]:only-child:empty))):not(:where(.map-status,.map-phone-status,.map-window-state,.map-resume-note)){position:absolute;height:0;min-height:0;margin-bottom:0}
/* #2874：作品の作業画面の頭＝「○○一覧に戻る」（太字の文字リンク）→ グループ ＞ 作品（控えめの字）→ 工程。 */
:where(body[data-member-ui]) .studio-work-context{display:grid;gap:4px;margin:0 0 16px}
:where(body[data-member-ui]) .studio-work-context>a{display:flex;width:fit-content;align-items:center;min-height:var(--member-touch);font-weight:700}
:where(body[data-member-ui]) .studio-work-context>.studio-lead{margin:0;color:var(--member-muted)}
/* #2874：AI の会社への送り・名前の注意・料金の目安は、本文の下の1段落だけ（本文の上に並べない・共通UI仕様 S3-02）。 */
:where(body[data-member-ui]) .studio-ai-note{margin:32px 0 0;padding-top:12px;border-top:1px solid var(--member-line);color:var(--member-muted);font-size:12px;line-height:1.7}
/* #7579：料金の目安の欄は注の段の右に並べる（閉じた時に頁を伸ばさない＝生成の後の自動スクロールの行き先がずれない・#6772 の試験）。 */
:where(body[data-member-ui]) .studio-ai-foot{display:flex;align-items:baseline;gap:0 16px;margin:32px 0 0;padding-top:12px;border-top:1px solid var(--member-line)}
:where(body[data-member-ui]) .studio-ai-foot>.studio-ai-note{margin:0;padding:0;border:0}
:where(body[data-member-ui]) .studio-ai-foot>p.studio-ai-note{flex:1 1 0;min-width:0}
:where(body[data-member-ui]) .studio-ai-note[data-ai-cost-area]{flex:0 1 auto;max-width:50%;margin:0;padding:0;border:0;font-size:14px}
:where(body[data-member-ui]) [data-ai-cost-area]>summary{cursor:pointer}
@media (width > 760px){
:where(body[data-member-ui]) .studio-ai-note[data-ai-cost-area]>summary{min-height:var(--member-touch);align-content:center}
}
:where(body[data-member-ui]) [data-ai-prices]>ul{margin-block:6px}

/* 入力 */
:where(body[data-member-ui]) .ui-field{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0 0 16px}
:where(body[data-member-ui]) .ui-field>:is(span,label){font-size:13px;font-weight:700}
:where(body[data-member-ui]) .ui-field>small{color:var(--member-muted);font-size:12px}
:where(body[data-member-ui]) .studio-field-counter{display:block;flex-basis:100%;min-width:0;color:var(--member-muted);font-size:12px}
/* Refs #1036：文字16px。スマホの入力時にも文字を小さくしない。
 * Refs #1348：会員の窓の中の欄は旧 dev の実測（10/29 新旧の測り）＝地 #f4f8ed・枠は透明で内側の影 #b4c8b8・余白 8px 14px・行の高さ 24px・高さ 44px。 */
:where(body[data-member-ui]) .ui-field :is(input,select,textarea){width:100%;min-height:var(--member-touch);padding:8px 14px;border:1px solid transparent;border-radius:var(--member-radius-md);background:var(--member-surface);box-shadow:inset 0 0 0 1px var(--member-field-ring);color:var(--member-ink);font-size:16px;line-height:1.5}
/* Refs #1034・#1036 K5：ログイン前の頁（公開用の帯が直下）の欄は旧のログインの画面の値（行の高さ28px・余白 10px 12px・枠 #789a81）のまま。 */
:where(body[data-member-ui]:has(>.member-bar[data-variant=public])) .ui-field :is(input,select,textarea){padding:10px 12px;border-color:var(--member-field-line);background:var(--member-field);box-shadow:none;line-height:1.75}
:where(body[data-member-ui]) .ui-field :is(input,textarea)::placeholder{color:var(--member-placeholder)}
:where(body[data-member-ui]) .ui-field [aria-invalid=true]{border-color:var(--member-error)}

/* 段の見出し：左に h2、右にその段の操作 */
:where(body[data-member-ui]) .ui-section{margin:0 0 32px}
:where(body[data-member-ui]) .ui-section-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 12px}
/* 票937（#5971・先触り その2 K2-10）：貼り付けた台本を開いた時に焦点を移す見出し（tabindex=-1・押せる物ではない）には焦点の枠を出さない。
   頁を直に開く・読み直す・ほかの頁から来た時は、ブラウザがキーボードと同じく :focus-visible を当てて濃い枠が付き、押せる物に見えた。
   焦点は今のまま見出しへ移す（読み上げはそのまま）。.member-main:focus と同じ型。 */
:where(body[data-member-ui]) [data-script-source=paste] h2[tabindex="-1"]:focus{outline:none}

/* Refs #1637：工房の資料（文・URL／txt・md・csv）を足す2つのフォーム。画像の追加や他の工房の段には触れない。 */
:where(body[data-member-ui]) .ui-section[aria-labelledby="h-items"]>form{margin:0;padding:20px;border:1px solid var(--member-line);border-radius:var(--member-radius-md);background:var(--member-surface)}
:where(body[data-member-ui]) .ui-section[aria-labelledby="h-items"]>form+form{margin-top:12px}
:where(body[data-member-ui]) .ui-section[aria-labelledby="h-items"]>form .ui-field{margin-bottom:0}
:where(body[data-member-ui]) .ui-section[aria-labelledby="h-items"]>form>.studio-row{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;align-items:end;margin:0}
:where(body[data-member-ui]) .ui-section[aria-labelledby="h-items"]>form>.studio-row+.ui-field{margin-top:16px}
:where(body[data-member-ui]) .ui-section[aria-labelledby="h-items"]>form .ui-field :is(input,select){height:44px;min-height:44px;box-sizing:border-box}
:where(body[data-member-ui]) .ui-section[aria-labelledby="h-items"]>form>.ui-field textarea{width:100%;min-height:112px;box-sizing:border-box}
:where(body[data-member-ui]) .ui-section[aria-labelledby="h-items"]>form>.button-row{margin-top:16px}
:where(body[data-member-ui]) .ui-section[aria-labelledby="h-items"]>form .ui-field>input[type=file]{margin-top:8px}
@media (max-width:640px){:where(body[data-member-ui]) .ui-section[aria-labelledby="h-items"]>form>.studio-row{grid-template-columns:minmax(0,1fr)}}

/* 確かめの窓（#69）：危ない操作のボタンを押した時に出す。member-parts.mjs の confirmDialog が作る */
:where(body[data-member-ui]) .ui-dialog{width:min(480px,calc(100vw - 32px));padding:24px;border:1px solid var(--member-line);border-radius:var(--member-radius-lg);background:var(--member-surface);color:var(--member-ink);box-shadow:var(--member-shadow-dialog)}
:where(body[data-member-ui]) .ui-dialog::backdrop{background:var(--member-shade)}
:where(body[data-member-ui]) .ui-dialog>h2{margin:0 0 12px;font-size:18px;line-height:1.5}
:where(body[data-member-ui]) .ui-dialog>p{margin:0 0 12px}
/* #7104（C24）：窓の説明が form の頭にある時も、窓の直下の説明と同じ下 12px（掲示板の新しく書く・作品の問題を知らせる）。
 * キャラの窓（.shared-create-form）は欄の間を gap で取る別の決め（characters.css）なので外す。 */
:where(body[data-member-ui]) .ui-dialog>form:not(.shared-create-form)>p:first-child{margin:0 0 12px}
:where(body[data-member-ui]) .ui-dialog>.button-row{justify-content:flex-end;margin-top:8px}

/* 見るだけの詳しい窓（#1446・決め #280・R18 の3段目）：<dialog data-window-size="detail" class="ui-dialog ui-detail">。member-parts.mjs の detailTable・detailDesc・detailActions で組む。
 * 本人が10/30 の磨きの会で選んだ A（表）の形：題 → 札の並び → 項目の表 → 内容の枠 → ボタン（右寄せ・閉じる→行き先）。札が無い時も題と表の間は12px（余白の相殺で揃える）。 */
:where(body[data-member-ui]) .ui-detail>h2{margin:0 0 6px;font-size:20px;line-height:1.5}
:where(body[data-member-ui]) .ui-detail-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
:where(body[data-member-ui]) .ui-detail-tags:empty{display:none}
/* separate＋spacing 0：collapse だと角の丸い外枠が消える。角のマスの地も角に合わせて丸める。 */
:where(body[data-member-ui]) .ui-detail-table{width:100%;margin:12px 0 0;border:1px solid var(--member-line);border-collapse:separate;border-spacing:0;border-radius:var(--member-radius-md);background:var(--member-surface)}
:where(body[data-member-ui]) .ui-detail-table :is(th,td){padding:10px 14px;vertical-align:top;text-align:left;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
:where(body[data-member-ui]) .ui-detail-table th{width:6em;background:var(--member-canvas);font-weight:700;white-space:nowrap}
:where(body[data-member-ui]) .ui-detail-table tr+tr>:is(th,td){border-top:1px solid color-mix(in srgb,var(--member-line) 60%,transparent)}
:where(body[data-member-ui]) .ui-detail-table tr:first-child>th{border-top-left-radius:var(--member-radius-md)}
:where(body[data-member-ui]) .ui-detail-table tr:last-child>th{border-bottom-left-radius:var(--member-radius-md)}
:where(body[data-member-ui]) .ui-detail-table td>small{display:block;margin-top:2px;color:var(--member-muted);font-size:13px}
:where(body[data-member-ui]) .ui-detail-desc{margin:14px 0 0;padding:14px 16px;border:1px solid var(--member-line);border-radius:var(--member-radius-md);background:var(--member-surface);line-height:1.8;overflow-wrap:anywhere}
:where(body[data-member-ui]) .ui-detail-desc-label{margin:0 0 4px;color:var(--member-muted);font-size:13px;font-weight:700;line-height:1.5}
:where(body[data-member-ui]) .ui-detail-desc>p{margin:0}
:where(body[data-member-ui]) .ui-detail-desc>p+p{margin-top:12px}
:where(body[data-member-ui]) .ui-detail-desc>.ui-detail-desc-label+p{margin-top:0}
:where(body[data-member-ui]) .ui-detail-desc.ui-reading-body{max-inline-size:none}
:where(body[data-member-ui]) .ui-detail-desc.ui-reading-body>p:not(.ui-detail-desc-label){max-inline-size:var(--member-reading-width)}
:where(body[data-member-ui]) .ui-detail-desc.ui-reading-body>p:not(.ui-detail-desc-label)+p{margin-block-start:var(--member-reading-paragraph-gap)}
:where(body[data-member-ui]) .ui-detail>p:not(.ui-status){margin:12px 0 0}
/* 知らせの1行は中身がある時だけ出す（空の行で内容とボタンの間を空けない）。 */
:where(body[data-member-ui]) .ui-detail>.ui-status{margin:12px 0 0;min-height:0}
:where(body[data-member-ui]) .ui-detail-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;margin:20px 0 0}
:where(body[data-member-ui]) .ui-detail-actions>.ui-button{min-height:44px}

/* AIの待ち（#1145・#2279）：短い待ちは画面内、長い待ちは覆い。API・課金の状態とは独立。 */
:where(body[data-member-ui]) .ui-wait{min-width:0;overflow-wrap:anywhere}
:where(body[data-member-ui]) .ui-wait .ui-status{margin:0;min-height:0}
:where(body[data-member-ui]) .ui-wait-elapsed{font-variant-numeric:tabular-nums;font-size:13px}
:where(body[data-member-ui]) .ui-wait-spinner{display:inline-block;flex:none;width:16px;height:16px;margin-right:4px;border:2px solid currentColor;border-right-color:transparent;border-radius:var(--member-radius-round);animation:ui-wait-spin .8s linear infinite}
@keyframes ui-wait-spin{to{transform:rotate(360deg)}}
:where(body[data-member-ui]) .ui-wait[data-wait=short]{box-sizing:border-box;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:10px;width:min(100%,360px);min-height:48px;margin:8px 0 0;padding:7px 10px;border:1px solid color-mix(in srgb,var(--member-gold) 26%,var(--member-line));border-radius:var(--member-radius-md);background:color-mix(in srgb,var(--member-surface) 88%,var(--member-canvas));color:var(--member-ink);font-size:13px;line-height:1.35}
:where(body[data-member-ui]) .ui-wait-dots{display:flex;align-items:center;gap:4px;padding:0 2px;color:var(--member-gold)}
:where(body[data-member-ui]) .ui-wait-dot{display:block;width:6px;height:6px;border-radius:var(--member-radius-round);background:currentColor;animation:ui-wait-dot 1.2s ease-in-out infinite}
:where(body[data-member-ui]) .ui-wait-dot:nth-child(2){animation-delay:.16s}
:where(body[data-member-ui]) .ui-wait-dot:nth-child(3){animation-delay:.32s}
:where(body[data-member-ui]) .ui-wait-short-copy{min-width:0}
:where(body[data-member-ui]) .ui-wait-short-copy>.ui-status{color:var(--member-accent);font-weight:700}
:where(body[data-member-ui]) .ui-wait-short-meta{display:flex;flex-wrap:wrap;gap:0 10px;color:var(--member-muted)}
:where(body[data-member-ui]) .ui-wait-short-meta>*{margin:0}
:where(body[data-member-ui]) .ui-wait[data-wait=short]>.ui-wait-overdue{grid-column:1/-1;margin:0;color:var(--member-muted)}
:where(body[data-member-ui]) .ui-wait[data-wait=short]>.ui-wait-overdue:not(:empty){margin-top:5px;padding-top:5px;border-top:1px solid var(--member-line)}
/* #7179 ②（監査 7186 ①）：浮く箱（fixed／sticky）の中で押したボタンの短い待ちは、ボタンの場所に置き換わる（/member-wait.mjs）。
   箱は押した時のボタンの幅と高さの両方に収める（はみ出した分だけ内容を隠す）。文は1行ずつ省き、遅れの知らせが出たら目安と経過の行に替える。 */
:where(body[data-member-ui]) .ui-wait[data-wait=short][data-wait-in-place]{inline-size:var(--wait-place-inline,auto);block-size:var(--wait-place-block,auto);max-inline-size:100%;min-height:0;margin:0;padding-block:2px;overflow:hidden;align-content:center;line-height:1.25;translate:0 calc(-1 * var(--wait-rise,0px))}
:where(body[data-member-ui]) .ui-wait[data-wait-in-place]>.ui-wait-dots{grid-row:1/span 2}
:where(body[data-member-ui]) .ui-wait[data-wait-in-place] :is(.ui-wait-short-copy>.ui-status,.ui-wait-short-meta),:where(body[data-member-ui]) .ui-wait[data-wait-in-place]>.ui-wait-overdue{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
:where(body[data-member-ui]) .ui-wait[data-wait-in-place] .ui-wait-short-meta{display:block}
:where(body[data-member-ui]) .ui-wait[data-wait-in-place] .ui-wait-short-meta>*{display:inline;margin-inline-end:10px}
:where(body[data-member-ui]) .ui-wait[data-wait-in-place]:has(>.ui-wait-overdue:not(:empty)) .ui-wait-short-meta{display:none}
:where(body[data-member-ui]) .ui-wait[data-wait=short][data-wait-in-place]>.ui-wait-overdue{grid-column:2}
:where(body[data-member-ui]) .ui-wait[data-wait=short][data-wait-in-place]>.ui-wait-overdue:not(:empty){margin:0;padding:0;border:0}
@keyframes ui-wait-dot{0%,60%,100%{opacity:.28;transform:translateY(0)}30%{opacity:1;transform:translateY(-2px)}}
/* dialog自体は透明、幕はbackdropに1枚だけ。窓とマップを透かす。 */
:where(body[data-member-ui]) .ui-wait-cover{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:24px;border:0;border-radius:0;background:transparent;color:var(--member-ink);overflow:auto;overscroll-behavior:contain;outline:none}
:where(body[data-member-ui]) .ui-wait-cover[open]{display:grid;place-items:center}
:where(body[data-member-ui]) .ui-wait-cover::backdrop{background:color-mix(in srgb,var(--member-frame) 24%,transparent);animation:ui-wait-veil .28s ease-out both}
:where(body[data-member-ui]) .ui-wait-popup{box-sizing:border-box;width:100%;max-width:320px;max-height:100%;overflow:auto;padding:18px;background:var(--member-surface);border:1px solid var(--member-frame-gold);border-left:3px solid var(--member-accent);border-radius:var(--member-radius-md);box-shadow:var(--member-shadow-dialog);color:var(--member-accent);overflow-wrap:anywhere;animation:ui-wait-enter .28s ease-out both}
:where(body[data-member-ui]) .ui-wait-popup>*{margin:0}
:where(body[data-member-ui]) .ui-wait-popup>*+*{margin-top:6px}
:where(body[data-member-ui]) .ui-wait-cover[data-wait=long] .ui-wait-popup>:is(strong,.ui-status,.ui-wait-estimate,.ui-wait-elapsed,.ui-wait-overdue){text-align:center}
:where(body[data-member-ui]) .ui-wait-cover[data-wait=long] .ui-wait-mark{position:relative;display:grid;width:132px;height:132px;margin:14px auto 12px;border:1px solid color-mix(in srgb,var(--member-gold) 74%,transparent);border-radius:var(--member-radius-round);place-items:center;color:var(--member-gold);font-family:Georgia,serif;font-size:36px;line-height:1;text-shadow:0 0 18px var(--member-gold);animation:ui-wait-glow 2.4s ease-in-out infinite}
:where(body[data-member-ui]) .ui-wait-cover[data-wait=long] .ui-wait-mark::before{content:"";position:absolute;inset:-1px;border-radius:var(--member-radius-round);background:radial-gradient(circle at 50% 0,var(--member-gold) 0 4px,transparent 5px);animation:ui-wait-spin 4s linear infinite}
:where(body[data-member-ui]) .ui-wait-cover[data-wait=long] .ui-wait-mark::after{content:"";position:absolute;inset:14px;border:1px solid color-mix(in srgb,var(--member-gold) 30%,transparent);border-radius:var(--member-radius-round)}
:where(body[data-member-ui]) .ui-wait-tip{border-left:3px solid var(--member-gold);padding-left:10px;margin-top:12px}
:where(body[data-member-ui]) .ui-wait-tip p{margin:6px 0 0}
:where(body[data-member-ui]) .ui-wait-cover .ui-status{margin:0;min-height:0}
/* #2549・#2518 U2：確認版 review-wait-book.css の書かれる本。会員だけに描く（決め #318）。 */
:where(body[data-member-ui]) .ui-wait-cover .ui-wait-popup:has(> .ui-wait-book) {
  max-width: 320px;
  padding: clamp(16px, 5vw, 24px);
  border-inline-start-width: 1px;
  /* 登場中も本の高さの下限を守る。窓全体の縮小は使わない。 */
  animation-name: ui-wait-book-enter;
}
:where(body[data-member-ui]) .ui-wait-popup:has(> .ui-wait-book) > strong { display: block; }
:where(body[data-member-ui]) .ui-wait-popup > .ui-wait-book {
  display: grid;
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 310px);
  min-height: clamp(110px, 35vw, 184px);
  margin: 16px auto 20px;
  filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--member-frame) 15%, transparent));
}
:where(body[data-member-ui]) .ui-wait-book-page {
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--member-line);
  border-radius: var(--member-radius-sm);
  background: var(--member-field);
}
:where(body[data-member-ui]) .ui-wait-book-page:first-child {
  border-top-left-radius: var(--member-radius-md);
  border-bottom-left-radius: var(--member-radius-md);
  transform: perspective(420px) rotateY(4deg);
  transform-origin: right center;
}
:where(body[data-member-ui]) .ui-wait-book-page:last-child {
  border-top-right-radius: var(--member-radius-md);
  border-bottom-right-radius: var(--member-radius-md);
  transform: perspective(420px) rotateY(-4deg);
  transform-origin: left center;
}
:where(body[data-member-ui]) .ui-wait-book::after {
  position: absolute;
  inset-block: 7px;
  inset-inline-start: 50%;
  width: 1px;
  background: var(--member-frame-gold);
  content: "";
}
:where(body[data-member-ui]) .ui-wait-book-line {
  height: 3px;
  border-radius: var(--member-radius-sm);
  background: color-mix(in srgb, var(--member-ink) 58%, transparent);
  transform-origin: left;
  animation: ui-wait-book-write 4s ease-in-out infinite;
}
:where(body[data-member-ui]) .ui-wait-book-line:nth-child(2) { width: 82%; animation-delay: -3.2s; }
:where(body[data-member-ui]) .ui-wait-book-line:nth-child(3) { width: 66%; animation-delay: -2.4s; }
:where(body[data-member-ui]) .ui-wait-book-page:last-child .ui-wait-book-line:nth-child(1) { animation-delay: -2s; }
:where(body[data-member-ui]) .ui-wait-book-page:last-child .ui-wait-book-line:nth-child(2) { animation-delay: -1.2s; }
:where(body[data-member-ui]) .ui-wait-book-page:last-child .ui-wait-book-line:nth-child(3) { animation-delay: -.4s; }
@keyframes ui-wait-book-write {
  0%, 12% { opacity: .25; transform: scaleX(.12); }
  38%, 72% { opacity: .8; transform: scaleX(1); }
  94%, 100% { opacity: .2; transform: scaleX(.12); transform-origin: right; }
}
@keyframes ui-wait-enter{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes ui-wait-book-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes ui-wait-veil{from{opacity:0}to{opacity:1}}
@keyframes ui-wait-glow{50%{opacity:.4}}
@media(prefers-reduced-motion:reduce){:where(body[data-member-ui]) :is(.ui-wait-spinner,.ui-wait-popup,.ui-wait-mark,.ui-wait-dot,.ui-wait-book-line),:where(body[data-member-ui]) .ui-wait-mark::before,:where(body[data-member-ui]) .ui-wait-mark::after,:where(body[data-member-ui]) .ui-wait-cover::backdrop{animation:none!important;transition:none!important}}

/* AI の結果の形（#1458・本人 10/30「診断の結果は構造化して」「AIレビューのページも共通ルールにしよう」「出力結果の改行も読みやすくして」）。
 * 作る関数＝member-parts.mjs の prose・basisTable・resultNote・resultSection（診断の結果と2つのワークの AI レビューで同じ物を使う）。
 *  - 本文（.ui-prose）：段落の <p> の間は 10px。長い1段落は splitParagraphs が文の終わりで分ける。太字は **…** だけ。
 *  - 根拠・指摘の表（.ui-basis-table）：項目（太字・44%）・札（7.5em・折り返さない）・中身。幅760px以下は1行を縦に積む。
 *  - 注の枠（.ui-result-note）：左に金の線3px。頭に小さな見出し。
 *  - 項目ごとの段（.ui-result-section）：見出し16px・本文15px。同じカードの中で続く段の間に薄い線と上下20px。カードは二重にしない。 */
:where(body[data-member-ui]) .ui-prose>p{margin:0;overflow-wrap:anywhere}
:where(body[data-member-ui]) .ui-prose>p+p{margin-top:10px}
:where(body[data-member-ui]) .ui-prose strong{font-weight:700}
:where(body[data-member-ui]) .ui-basis-table{width:100%;margin:0;border:1px solid var(--member-line);border-radius:var(--member-radius-md);border-collapse:separate;border-spacing:0;background:var(--member-surface);color:var(--member-ink);font-size:14px;line-height:1.7}
:where(body[data-member-ui]) .ui-basis-table :is(th,td){padding:10px 12px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
:where(body[data-member-ui]) .ui-basis-table thead th{background:var(--member-canvas);color:var(--member-muted);font-size:12px;font-weight:700;line-height:1.5}
:where(body[data-member-ui]) .ui-basis-table thead th:first-child{border-top-left-radius:var(--member-radius-md)}
:where(body[data-member-ui]) .ui-basis-table thead th:last-child{border-top-right-radius:var(--member-radius-md)}
:where(body[data-member-ui]) .ui-basis-table tbody :is(th,td){border-top:1px solid var(--member-line)}
:where(body[data-member-ui]) .ui-basis-table tbody th{width:44%;font-weight:700}
:where(body[data-member-ui]) .ui-basis-table .ui-basis-answer{width:7.5em;white-space:nowrap}
:where(body[data-member-ui]) .ui-basis-table td>:is(p,blockquote,.ui-prose,.button-row){margin:0}
:where(body[data-member-ui]) .ui-basis-table td>*+*{margin-top:6px}
:where(body[data-member-ui]) .ui-basis-tag{display:inline-block;padding:2px 10px;border:1px solid var(--member-line);border-radius:var(--member-radius-pill);background:transparent;color:var(--member-ink);font-size:12px;font-weight:700;line-height:1.5}
:where(body[data-member-ui]) .ui-basis-tag[data-level=high]{border-color:var(--member-accent);background:var(--member-accent);color:var(--member-accent-ink)}
:where(body[data-member-ui]) .ui-basis-tag[data-level=mid]{border-color:var(--member-rail);background:var(--member-rail)}
:where(body[data-member-ui]) .ui-basis-tag[data-level=none]{color:var(--member-muted);font-weight:400}
@media (max-width:760px){
  :where(body[data-member-ui]) .ui-basis-table,:where(body[data-member-ui]) .ui-basis-table :is(tbody,tr,th,td){display:block;width:auto}
  :where(body[data-member-ui]) .ui-basis-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  :where(body[data-member-ui]) .ui-basis-table tbody :is(th,td){padding:2px 12px;border-top:0}
  /* #4120：上の tbody th{width:44%} は縦積みの width:auto より強い＝同じ強さで名指しして、項目の欄を全幅に戻す（語の途中で折れない）。 */
  :where(body[data-member-ui]) .ui-basis-table tbody th{width:auto}
  :where(body[data-member-ui]) .ui-basis-table tbody tr>:first-child{padding-top:12px}
  :where(body[data-member-ui]) .ui-basis-table tbody tr>:last-child{padding-bottom:12px}
  :where(body[data-member-ui]) .ui-basis-table tbody tr+tr{border-top:1px solid var(--member-line)}
}
:where(body[data-member-ui]) .ui-result-note{margin:0;padding:10px 14px;border-left:3px solid var(--member-frame-gold);background:var(--member-surface);color:var(--member-ink);font-size:14px;line-height:1.8}
:where(body[data-member-ui]) .ui-result-note-label{margin:0 0 2px;color:var(--member-muted);font-size:12px;font-weight:700;line-height:1.5}
:where(body[data-member-ui]) .ui-result-section{min-width:0}
:where(body[data-member-ui]) .ui-result-section>:is(h2,h3){margin:0 0 8px;font-size:16px;line-height:1.6}
:where(body[data-member-ui]) .ui-result-section>.ui-prose{color:var(--member-ink);font-size:15px;line-height:1.85}
:where(body[data-member-ui]) .ui-result-section>:is(ul,ol){margin:0;padding-left:1.4em;font-size:15px;line-height:1.85}
:where(body[data-member-ui]) .ui-result-section>:not(h2,h3)+*{margin-top:10px}
:where(body[data-member-ui]) .ui-result-section+.ui-result-section{margin-top:20px;padding-top:20px;border-top:1px solid color-mix(in srgb,var(--member-line) 60%,transparent)}
/* #4021 組0（#4418）：AI レビューの共通の形（public/member-parts.mjs の aiReview）。本人の決め 11/19「3点とも推奨で」：
 *  ①点＝色の札（.ui-basis-tag の high・mid・low＝80・70 の線）②幅760px以下＝共通の表のまま縦に積む（上の .ui-basis-table）③直し案の操作＝その行の中（.ui-ai-review-actions）。
 *  知らせ・総合点・表の注・平均の行（data-ai-review-foot）・畳み（collapsed の時だけ .ui-tree-box）。カードは二重にしない（外の .ui-section か .ui-card の中に置く）。 */
:where(body[data-member-ui]) .ui-ai-review{display:grid;gap:16px;min-width:0}
:where(body[data-member-ui]) .ui-ai-review>*{margin:0}
:where(body[data-member-ui]) .ui-ai-review-notice{padding:8px 12px;border-left:3px solid var(--member-line);background:var(--member-canvas);color:var(--member-ink);font-size:13px;line-height:1.7}
:where(body[data-member-ui]) .ui-ai-review-notice[data-level=warn]{border-left-color:var(--member-frame-gold)}
:where(body[data-member-ui]) .ui-ai-review-total{color:var(--member-ink);font-size:15px;font-weight:700;line-height:1.7}
:where(body[data-member-ui]) .ui-ai-review :is(.ui-ai-review-group,.ui-ai-review-issues){display:grid;gap:8px;min-width:0}
:where(body[data-member-ui]) .ui-ai-review :is(.ui-ai-review-group,.ui-ai-review-issues)>:is(h2,h3,h4){margin:0;font-size:16px;line-height:1.6}
:where(body[data-member-ui]) .ui-ai-review-note{margin:0;color:var(--member-muted);font-size:13px;line-height:1.7}
:where(body[data-member-ui]) .ui-basis-table tr[data-ai-review-foot]>*{font-weight:700}
:where(body[data-member-ui]) .ui-basis-table .ui-ai-review-actions{gap:8px}
/* #7587 ①：直し案の1行（「→ …」）のすぐ下に操作の行を付けない＝説明の1行→ボタン 12px（D3-01〜03 と同じ）。 */
:where(body[data-member-ui]) .ui-basis-table td>*+.ui-ai-review-actions{margin-top:12px}

/* 開いていない項目の錠と吹き出し（#1472・本人 10/30 の案A）＝member-parts.mjs の lockIcon・lockItem。
 * 吹き出しは錠を掛けた項目の次に置く＝包み（左のメニューなら li）を position:relative にする。右に出す・幅760px以下は項目の下に出す。3秒で消える（JS）。 */
:where(body[data-member-ui]) .ui-lock-icon{flex:none;width:14px;height:14px}
:where(body[data-member-ui]) .ui-bubble{position:absolute;z-index:40;top:50%;left:calc(100% + 10px);width:max-content;max-width:240px;padding:8px 12px;border-radius:var(--member-radius-md);background:var(--member-backdrop);color:var(--member-frame-ink);box-shadow:var(--member-shadow-dialog);font-size:13px;font-weight:400;line-height:1.6;text-align:left;transform:translateY(-50%)}
:where(body[data-member-ui]) .ui-bubble::before{content:"";position:absolute;top:50%;right:100%;border:6px solid transparent;border-right-color:var(--member-backdrop);transform:translateY(-50%)}
@media (max-width:760px){
  :where(body[data-member-ui]) .ui-bubble{top:calc(100% + 4px);right:10px;left:10px;width:auto;max-width:none;transform:none}
  :where(body[data-member-ui]) .ui-bubble::before{top:auto;right:auto;bottom:100%;left:18px;border-color:transparent;border-bottom-color:var(--member-backdrop);transform:none}
}

/* Refs #1689：工房と図書館が共用するツリー。行ごとに幹を描き、最後の枝で止める。 */
:where(body[data-member-ui]) .ui-tree-list{display:grid;gap:0;margin:0;padding:0;list-style:none}
:where(body[data-member-ui]) .ui-tree-list>li{display:block;min-width:0;min-height:0;margin:0;padding:0;list-style:none}
:where(body[data-member-ui]) .ui-tree-box{min-width:0}
:where(body[data-member-ui]) .ui-tree-summary{display:flex;align-items:center;gap:10px;min-width:0;min-height:var(--member-touch);cursor:pointer;list-style:none;font-weight:700}
:where(body[data-member-ui]) .ui-tree-summary::-webkit-details-marker{display:none}
:where(body[data-member-ui]) .ui-tree-summary::before{content:"";flex:0 0 7px;width:7px;height:7px;border-right:2px solid var(--member-accent);border-bottom:2px solid var(--member-accent);transform:rotate(-45deg)}
:where(body[data-member-ui]) .ui-tree-box[open]>.ui-tree-summary::before{transform:rotate(45deg)}
:where(body[data-member-ui]) .ui-tree-summary:hover{color:var(--member-accent)}
:where(body[data-member-ui]) .ui-tree-title{min-inline-size:0;overflow-wrap:anywhere}
:where(body[data-member-ui]) .ui-tree-children{min-width:0;margin-inline-start:var(--member-tree-indent)}
:where(body[data-member-ui]) .ui-tree-children .ui-tree-list>li{position:relative}
:where(body[data-member-ui]) .ui-tree-children .ui-tree-list>li::before,
:where(body[data-member-ui]) .ui-tree-children .ui-tree-list>li::after{
  content:"";position:absolute;inset-inline-start:calc(var(--member-tree-indent) / -2);pointer-events:none;
}
:where(body[data-member-ui]) .ui-tree-children .ui-tree-list>li::before{
  inset-block-start:var(--member-tree-row-anchor);inline-size:calc(var(--member-tree-indent) / 2);
  border-block-start:1px solid var(--member-line);
}
/* 開閉の山形が回転しても、横枝は山形の手前で止める。 */
:where(body[data-member-ui]) .ui-tree-children .ui-tree-list>.ui-tree-branch::before{
  inline-size:calc(var(--member-tree-indent) / 2 - 8px);
}
:where(body[data-member-ui]) .ui-tree-children .ui-tree-list>li::after{
  inset-block:0;border-inline-start:1px solid var(--member-line);
}
:where(body[data-member-ui]) .ui-tree-children .ui-tree-list>li:last-child::after{
  inset-block-end:auto;block-size:var(--member-tree-row-anchor);
}
:where(body[data-member-ui]) .ui-tree-leaf .ui-list-title{font-weight:600}

/* Refs #1561/#1689：工房の親行・子行・管理口。 */
:where(body[data-member-ui]) .studio-group-collection{padding-block:8px}
:where(body[data-member-ui]) .studio-group-list{margin:0}
:where(body[data-member-ui]) .studio-group-list>.ui-tree-branch{position:relative;border-bottom:1px solid var(--member-line)}
:where(body[data-member-ui]) .studio-group-list>.ui-tree-branch:last-child{border-bottom:0}
:where(body[data-member-ui]) .studio-group-summary{display:grid;grid-template-columns:7px 24px minmax(0,1fr) auto;gap:14px;align-items:center;min-height:80px;padding:12px 52px 12px 8px}
:where(body[data-member-ui]) .studio-group-summary::before{grid-column:1}
:where(body[data-member-ui]) .studio-group-summary:hover{background:var(--member-hover)}
:where(body[data-member-ui]) .studio-group-box>.ui-tree-children{margin-inline-start:calc(var(--member-tree-indent) + var(--member-studio-tree-child-offset))}
:where(body[data-member-ui]) .studio-group-number{font-size:13px;color:var(--member-muted);font-variant-numeric:tabular-nums}
:where(body[data-member-ui]) .studio-group-text{display:block;min-width:0}
:where(body[data-member-ui]) .studio-group-text .ui-list-title{display:block;font-size:15px;font-weight:700;overflow-wrap:anywhere}
:where(body[data-member-ui]) .studio-group-text .ui-list-meta{display:block;font-size:12px;margin-top:4px}
:where(body[data-member-ui]) .studio-group-settings{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;border-radius:var(--member-radius-sm);color:var(--member-ink);text-decoration:none}
:where(body[data-member-ui]) .studio-group-branch>.studio-group-settings{position:absolute;z-index:4;top:18px;right:8px}
:where(body[data-member-ui]) .studio-group-settings::before{content:"";width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm7.4-2.1c.1-.5.1-.9.1-1.4s0-.9-.1-1.4l2-1.5-2-3.4-2.3 1c-.7-.6-1.5-1-2.4-1.4L14.3 3h-4l-.4 2.3c-.9.4-1.7.8-2.4 1.4l-2.3-1-2 3.4 2 1.5c-.1.5-.1.9-.1 1.4s0 .9.1 1.4l-2 1.5 2 3.4 2.3-1c.7.6 1.5 1 2.4 1.4l.4 2.3h4l.4-2.3c.9-.4 1.7-.8 2.4-1.4l2.3 1 2-3.4-2-1.5Z'/%3E%3C/svg%3E") center/contain no-repeat}
:where(body[data-member-ui]) .studio-group-settings:hover{background:var(--member-hover)}
:where(body[data-member-ui]) .studio-group-children{padding:4px 8px 12px 0}
:where(body[data-member-ui]) .studio-group-child-row{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 12px;min-height:56px;padding:8px}
:where(body[data-member-ui]) .studio-group-child-text{display:block;min-width:0;flex:1 1 220px;padding-block-start:2px}
:where(body[data-member-ui]) .studio-group-child-text .ui-list-title{display:block;color:var(--member-ink);line-height:24px;overflow-wrap:anywhere}
:where(body[data-member-ui]) .studio-group-child-text .ui-list-meta{display:block;margin-top:4px}
:where(body[data-member-ui]) .studio-group-child-actions{display:flex;flex-wrap:wrap;gap:8px}
:where(body[data-member-ui]) .studio-group-count:empty{display:none}
:where(body[data-member-ui]) .studio-group-retry{margin:8px 0}

/* 資料フォームをタブと開閉で包んでも、#1637 の寸法を維持する。 */
:where(body[data-member-ui]) .studio-material-add{margin-top:16px}
:where(body[data-member-ui]) .studio-material-add>summary{display:inline-flex;align-items:center;min-height:var(--member-touch);cursor:pointer;font-weight:700;list-style:none}
:where(body[data-member-ui]) .studio-material-add>summary::-webkit-details-marker{display:none}
:where(body[data-member-ui]) .studio-material-add>summary::before{content:"＋";margin-right:8px;color:var(--member-accent)}
:where(body[data-member-ui]) .studio-material-add[open]>summary::before{content:"−"}
:where(body[data-member-ui]) .studio-material-add-body{margin-top:12px}
:where(body[data-member-ui]) .studio-material-panel>form{margin:0;padding:20px;border:1px solid var(--member-line);border-radius:var(--member-radius-md);background:var(--member-surface)}
:where(body[data-member-ui]) .studio-material-panel>form .ui-field{margin-bottom:0}
:where(body[data-member-ui]) .studio-material-panel>form>.studio-row{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;align-items:end;margin:0}
:where(body[data-member-ui]) .studio-material-panel>form>.studio-row+.ui-field{margin-top:16px}
:where(body[data-member-ui]) .studio-material-panel>form .ui-field :is(input,select){height:44px;min-height:44px;box-sizing:border-box}
:where(body[data-member-ui]) .studio-material-panel>form>.ui-field textarea{width:100%;min-height:112px;box-sizing:border-box}
:where(body[data-member-ui]) .studio-material-panel>form>.button-row{margin-top:16px}
:where(body[data-member-ui]) .studio-material-panel>form .ui-field>input[type=file]{margin-top:8px}
@media (max-width:640px){:where(body[data-member-ui]) .studio-material-panel>form>.studio-row{grid-template-columns:minmax(0,1fr)}}

/* Refs #1636：見本カタログは、画風・デザインテーマだけを共通寸法で比べる。 */
:where(body[data-member-ui]) .studio-grid.studio-visual-catalog{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:16px}
:where(body[data-member-ui]) .studio-grid.studio-visual-catalog>.studio-tile{gap:8px;padding:12px}
:where(body[data-member-ui]) .studio-grid.studio-visual-catalog>.studio-tile img{width:100%;height:180px;aspect-ratio:auto;object-fit:contain}
:where(body[data-member-ui]) .studio-grid.studio-visual-catalog>.studio-tile label{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
:where(body[data-member-ui]) .studio-grid.studio-visual-catalog>.studio-tile small{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
/* プロジェクトの共通のグループ（#2452 ⑧・/parts/shared-groups.mjs）：選ぶ欄のその場の作成・親の選択・作成の窓・グループの一覧。狭い幅は折り返し、横にはみ出さない。 */
:where(body[data-member-ui]) .shared-group-new{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 0}
:where(body[data-member-ui]) .shared-group-new[hidden],:where(body[data-member-ui]) .shared-group-open>[hidden]{display:none}
:where(body[data-member-ui]) .shared-group-open{margin:4px 0 0}
:where(body[data-member-ui]) .shared-group-new>input{flex:1 1 8em;min-width:0}
/* #7180（C25）：横に並ぶ新しいグループの名前の欄（44px）と「作る」「やめる」（小のボタン 36px）の高さと下の線をそろえる＝ボタンも 44px。キャラの窓（words・縦の並び）は .studio-row が無いので今のまま。 */
:where(body[data-member-ui]) .studio-row.shared-group-new>.ui-button.small{min-height:var(--member-touch)}
:where(body[data-member-ui]) .shared-group-field .ui-list-meta:empty,:where(body[data-member-ui]) .shared-parent-state:empty{display:none}
/* #7315（スマホの2周目 FS-12）：選ぶ欄の下の、選んだ物の短い ID（/parts/shared-groups.mjs）。スマホの幅（760px 以下）だけ＝PC は選ぶ欄の字で全部読めるので出さない。 */
:where(body[data-member-ui]) .shared-chosen-id{display:block;margin:4px 0 0}
:where(body[data-member-ui]) .shared-chosen-id[hidden]{display:none}
@media (min-width:761px){:where(body[data-member-ui]) .shared-chosen-id{display:none}}
:where(body[data-member-ui]) .shared-parent-state{margin-top:4px}
:where(body[data-member-ui]) .shared-create-dialog select{max-width:100%;text-overflow:ellipsis}
:where(body[data-member-ui]) .shared-create-form{min-width:0}
:where(body[data-member-ui]) .shared-group-row{align-items:flex-start}
:where(body[data-member-ui]) .shared-group-text{display:flex;gap:10px;align-items:flex-start;flex:1 1 16em;min-width:0}
:where(body[data-member-ui]) .shared-group-text>span:last-child{display:flex;flex-direction:column;min-width:0}
:where(body[data-member-ui]) .shared-group-actions{flex:0 1 auto;margin:0}
:where(body[data-member-ui]) .shared-group-row>div:last-child:not(:empty){flex:1 1 100%;min-width:0}
:where(body[data-member-ui]) .shared-group-delete{color:var(--member-error)}
/* みんなの作品の公開の窓のラベル（全工房で共通・第4弾 391）：共通の欄の幅100%・枠を、チェックボックスへ当てない。 */
:where(body[data-member-ui]) .gallery-publish-labels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:8px;padding:8px 12px 12px;border:1px solid var(--member-line);border-radius:var(--member-radius-md)}
:where(body[data-member-ui]) .gallery-publish-labels legend{padding-inline:4px;font-weight:700}
:where(body[data-member-ui]) .gallery-publish-labels label{display:flex;align-items:center;gap:8px;min-block-size:var(--member-touch);overflow-wrap:anywhere}
:where(body[data-member-ui]) .gallery-publish-labels input[type=checkbox]{flex:none;width:18px;height:18px;min-height:0;margin:0;padding:0;box-shadow:none;accent-color:var(--member-accent)}

/* ---- ファイル選び（#4215・票23・member-parts.mjs の filePicker）。ブラウザ既定の「Choose File」を見せず、日本語のラベルの釦＋選んだ名前の1行。
 * 入力は見えなくするだけ（required の知らせの吹き出しの場所に残す）。見本＝BGM の .bgm-file-*（#4108）・掲示板の添付（#1032）。 ---- */
:where(body[data-member-ui]) .ui-field:has(>.ui-file-input){position:relative}
:where(body[data-member-ui]) input.ui-file-input{position:absolute;left:0;bottom:0;width:1px;height:1px;min-height:0;padding:0;margin:0;border:0;box-shadow:none;opacity:0;pointer-events:none;clip-path:inset(50%)}
:where(body[data-member-ui]) .ui-file-pick{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0}
:where(body[data-member-ui]) .ui-file-pick>label{cursor:pointer}
:where(body[data-member-ui]) .ui-file-pick>label[aria-disabled=true]{cursor:not-allowed;opacity:.6}
:where(body[data-member-ui]) .ui-file-name{min-width:0;overflow-wrap:anywhere;color:var(--member-muted);font-size:14px;font-weight:400}
/* #7255（スマホの見た目の磨き 11/27・決まり_会員画面の見た目_1127 の S2・C6・#5024）：押せる所を 44px に。左のメニューが畳まれる幅（760px 以下）だけ＝PC（761px 以上）の値は変えない。
   形は #5024 と同じ（inline-flex・縦の真ん中・min-height:var(--member-touch)）。字・色・並びは変えない。部品で届く物は部品で、届かない所だけ画面の印で。 */
@media (max-width:760px){
/* ② 一覧の行の題のリンク（工房の一覧・グループ・2大ワークの履歴・みんなの作品・学習データ・コンセプト ほか）。工房の子の行の display:block より強く。 */
body[data-member-ui] a.ui-list-title{display:inline-flex;align-items:center;min-height:var(--member-touch)}
/* ① 空・エラーの知らせ（emptyState・errorState）の中で1行に独りのリンク＝SNS の準備中・診断レポートの無し・記事の無し・グループの見つからない ほか。 */
:where(body[data-member-ui]) .ui-empty>a:not(.ui-button){display:inline-flex;align-items:center;min-height:var(--member-touch)}
/* ① 画面ごとの1行に独りのリンク（p や行の中に独りで置いた「戻る」「開く」）。 */
:where(body[data-member-ui]) :is(.academy-section-link,[id=notice-root]+p,.shared-group-back,.gallery-back,.catalog-actions,.diag-synergy-link,.diag-links,.login-help-case>p:not([id]),.topup-terms-row,.character-finish-actions,.ui-section[aria-labelledby=h-bulk]>p)>a:not(.ui-button){display:inline-flex;align-items:center;min-height:var(--member-touch)}
/* #7315（スマホの2周目 FS2-01〜04）：ログイン前・メールの頁の1行に独りのリンクも同じ形（ログインのヘルプの「お問い合わせ」と頁の下の「特定商取引法に基づく表記」・
   ゲストの問い合わせの「特定商取引法に基づく表記」と「ログインへ戻る」・メールの解除の「ログインして通知設定を確認する」）。文の中のリンク（字の続く p）は数えない。 */
:where(body[data-member-ui]) :is(.login-help-contact,.login-help-main>.login-foot,p.contact-note:not([id]),.contact-links,.mail-note)>a:only-child:not(.ui-button){display:inline-flex;align-items:center;min-height:var(--member-touch)}
/* ③ 開け閉め（summary）の印の無い既定の形＝漫画台本の全文 ほか（#7105 の dialogue-before と同じ形）。印（class）のある summary は各画面の値のまま。 */
:where(body[data-member-ui] details>summary:not([class])){box-sizing:border-box;min-height:var(--member-touch);padding-block:10px}
/* ④ チェック・ラジオを包む label の押せる所（テーマの札・カラー・レイアウト・「前に間を空ける」ほか）。並べ方（display）は各画面の値のまま。 */
:where(body[data-member-ui] label:has(>input:is([type=checkbox],[type=radio]))){min-height:var(--member-touch)}
}
