/* まんがスタジオ｜yosooi系（白×余白×構造）×原稿用紙×インクブルー 2026-07-31リフレッシュ */
:root {
  --bg: #FCFCFB;
  --panel: #FFFFFF;
  --panel2: #F3F6FA;
  --ink: #17202A;
  --sub: #788592;
  --line: #E6EBF1;
  --blue: #2E6FE8;
  --accent: #E8452C;
  --shadow: 0 2px 14px rgba(30, 60, 110, 0.05);
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  background: var(--bg);
  background-image: linear-gradient(rgba(46, 111, 232, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 111, 232, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
}
/* yosooiの象徴: 巨大タイポの反復（流れるテロップ帯） */
.marquee {
  overflow: hidden; white-space: nowrap; user-select: none;
  border-bottom: 1px solid var(--line); background: #fff;
  padding: 6px 0;
}
.marquee span {
  display: inline-block; animation: mq 40s linear infinite;
  font-family: 'Dela Gothic One', sans-serif; font-size: 11px;
  letter-spacing: .45em; color: rgba(23, 32, 42, .22);
}
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select {
  font-family: inherit; font-size: 13px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(46, 111, 232, .3); border-color: var(--blue); }
textarea { resize: vertical; min-height: 90px; }
label { display: block; font-weight: 700; font-size: 12px; margin-bottom: 12px; }
label > input, label > textarea, label > select { margin-top: 5px; font-weight: 400; }

/* header */
header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo i {
  font-style: normal; font-weight: 900; font-size: 16px;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: var(--ink);
  font-family: 'Dela Gothic One', sans-serif;
}
.logo b { font-size: 15px; }
.logo small { display: block; font-size: 9px; letter-spacing: .22em; color: var(--sub); }
nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.tab { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--sub); }
.tab:hover { background: var(--panel2); }
.tab.active { background: var(--blue); color: #fff; }
.head-actions { display: flex; align-items: center; gap: 10px; }
#apiState { font-size: 12px; color: var(--sub); font-weight: 700; }
#apiState.connected { color: #2E9E6B; }
#apiBtn, #helpBtn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: 12px;
}

/* views */
.view { display: none; }
.view.active { display: block; }
/* 画面幅いっぱいに使う（2026-08-23 ゆめ指示: スマホ対応でこじんまりさせない。PCは全幅、狭い画面だけ1カラム） */
#create.view.active { display: grid; grid-template-columns: minmax(340px, 400px) 1fr minmax(300px, 340px); gap: 22px; padding: 22px 28px 70px; align-items: start; }
.full-view { padding: 28px 32px 90px; max-width: none; margin: 0; }
#screenplay.view.active { display: grid; grid-template-columns: minmax(380px, 460px) 1fr; gap: 22px; padding: 22px 28px 70px; align-items: start; }
@media (min-width: 1800px) {
  #create.view.active { grid-template-columns: 440px 1fr 380px; padding: 26px 40px 80px; }
  #screenplay.view.active { grid-template-columns: 520px 1fr; padding: 26px 40px 80px; }
  .full-view { padding: 32px 48px 100px; }
}
.panel-title span { font-size: 10px; letter-spacing: .32em; color: var(--blue); font-weight: 800; }
.panel-title h1 { font-size: 26px; line-height: 1.45; margin: 8px 0 8px; letter-spacing: .01em; }
.panel-title h2 { font-size: 19px; margin: 6px 0 8px; }
.panel-title p { color: var(--sub); font-size: 12.5px; margin-bottom: 16px; }
h1 mark { background: linear-gradient(transparent 62%, #BDD4FB 62%); color: inherit; }

.brief-panel, .inspector {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow: auto;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.generate-box button, .primary {
  width: 100%; padding: 13px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff;
  background: var(--blue);
  box-shadow: none; transition: .15s;
}
.generate-box button:hover, .primary:hover { background: #1D57C4; }
.generate-box button:disabled { opacity: .55; cursor: wait; }
.generate-box small { display: block; text-align: center; color: var(--sub); font-size: 11px; margin-top: 7px; }
.ghost-btn {
  width: 100%; padding: 10px; border-radius: 12px; font-weight: 700; font-size: 12.5px;
  border: 1.5px dashed var(--line); color: var(--sub); margin-top: 8px; background: #fff;
}
.ghost-btn:hover { border-color: var(--blue); color: var(--blue); }

/* canvas */
.canvas-panel { min-width: 0; }
.canvas-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.canvas-head span { font-size: 10px; letter-spacing: .25em; color: var(--blue); font-weight: 800; }
.canvas-head b { font-size: 16px; display: block; }
.canvas-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.canvas-actions button {
  border: 1px solid var(--line); background: #fff; padding: 8px 13px;
  border-radius: 10px; font-weight: 700; font-size: 12px;
}
.canvas-actions button.accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.status-line {
  display: flex; gap: 16px; align-items: center; font-size: 11.5px; color: var(--sub);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; margin-bottom: 14px;
}
.status-line em { margin-left: auto; font-style: normal; font-weight: 700; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--line); margin-right: 5px; }
.dot.ready { background: #2E9E6B; }

.section-stack { display: flex; flex-direction: column; gap: 14px; }
.lp-section {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 260px; gap: 14px;
}
.num {
  font-size: 10px; letter-spacing: .16em; font-weight: 800; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.lp-section h3 input { border: none; padding: 2px 0; font-weight: 800; font-size: 15px; background: transparent; }
.script-area { width: 100%; font-size: 12.5px; min-height: 150px; font-family: inherit; }
.image-box {
  border-radius: 12px; background: var(--panel2); min-height: 220px;
  display: grid; place-items: center; color: var(--sub); font-size: 22px; overflow: hidden;
  position: relative; border: 1px solid var(--line);
}
.image-box img { width: 100%; height: auto; display: block; }
.image-box .spin { font-size: 12px; font-weight: 700; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.candidates { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cand { position: relative; display: inline-block; }
.candidates img {
  width: 54px; height: 74px; object-fit: cover; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer; display: block;
}
.candidates img.active { border-color: var(--blue); }
.cand button {
  position: absolute; top: -5px; right: -5px; width: 18px; height: 18px;
  border-radius: 50%; background: rgba(28,39,51,.75); color: #fff;
  font-size: 11px; line-height: 1; display: none;
}
.cand:hover button { display: block; }
.section-tools { grid-column: 1 / -1; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.section-tools button {
  border: 1px solid var(--line); background: #fff; padding: 6px 11px;
  border-radius: 9px; font-weight: 700; font-size: 11.5px;
}
.section-tools button.gen { background: var(--blue); border-color: var(--blue); color: #fff; }
.section-tools button.danger { color: var(--accent); border-color: #F2CFC8; }
.section-tools .order { display: flex; flex-direction: column; gap: 2px; }
.section-tools .order button { padding: 1px 8px; font-size: 10px; }
.mini-note { font-size: 11px; color: var(--sub); }
.edit-panel {
  grid-column: 1 / -1; background: #F4F8FD; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px;
}
.edit-panel .chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  font-size: 11.5px; font-weight: 700; background: #fff;
}
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.n-select { display: flex; gap: 6px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.n-select button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-weight: 800; font-size: 12px;
}
.n-select button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.n-select span { font-size: 11px; color: var(--sub); }

/* inspector */
.toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.toggle b { font-size: 12.5px; display: block; }
.toggle small { color: var(--sub); font-size: 11px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
.cost-box {
  margin-top: 12px; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px;
  font-size: 11.5px; color: var(--sub);
}
.cost-box b { color: var(--ink); font-size: 14px; }

/* format hint */
.format-hint {
  display: block; font-size: 11px; color: var(--sub);
  background: var(--panel2); border-radius: 8px; padding: 7px 10px;
  margin: -6px 0 12px; line-height: 1.55;
}
.tab em {
  font-style: normal; font-size: 10px; font-weight: 800;
  background: rgba(46, 111, 232, .12); color: var(--blue);
  border-radius: 999px; padding: 1px 7px; margin-left: 3px; vertical-align: 1px;
}
.tab.active em { background: rgba(255, 255, 255, .25); color: #fff; }

/* taste gallery */
.taste-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.taste-search input { width: 220px; }
.taste-search button {
  border: 1px solid var(--line); background: #fff; padding: 9px 14px;
  border-radius: 10px; font-weight: 700; font-size: 12px; white-space: nowrap;
}
.taste-search button:hover { border-color: var(--blue); color: var(--blue); }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.filters .chip { padding: 6px 14px; font-size: 12px; }
.taste-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.taste-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.taste-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 14px 34px rgba(30, 60, 110, .14); }
.taste-card.selected { border: 2px solid var(--blue); }
.taste-prev {
  position: relative; aspect-ratio: 4 / 3; padding: 12px;
  display: flex; flex-direction: column; gap: 7px;
}
.taste-prev .tp {
  flex: 1; display: block; border: 2px solid rgba(28, 39, 51, .75); border-radius: 6px;
  position: relative; overflow: hidden; background: rgba(255, 255, 255, .5);
}
.taste-prev .tp.big { flex: 1.6; display: grid; place-items: center; }
.taste-prev .tp.big em { font-style: normal; font-size: 30px; }
.taste-prev .tp.big b {
  position: absolute; right: 8px; top: 8px; width: 34px; height: 20px;
  border-radius: 999px 999px 999px 3px; opacity: .85;
}
.taste-prev .tp-row { flex: 1; display: flex; gap: 7px; }
.taste-prev .tp-row .tp { flex: 1; }
.tp-badge {
  position: absolute; top: 8px; left: 8px; text-decoration: none;
  background: var(--blue); color: #fff; font-size: 10px; font-weight: 800;
  border-radius: 999px; padding: 3px 9px; z-index: 2;
}
.taste-prev.has-img { padding: 0; }
.taste-prev.has-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.tp-re {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  font-size: 14px; display: grid; place-items: center;
  opacity: 0; transition: .15s;
}
.taste-card:hover .tp-re { opacity: 1; }
.tp-re:hover { border-color: var(--blue); }
.taste-body { padding: 12px 14px 14px; }
.taste-body b { font-size: 13.5px; display: block; margin-bottom: 4px; }
.taste-body p { font-size: 11.5px; color: var(--sub); line-height: 1.6; margin-bottom: 9px; min-height: 3.2em; }
.taste-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.taste-tags span {
  font-size: 10px; font-weight: 700; color: var(--blue);
  background: rgba(46, 111, 232, .09); border-radius: 999px; padding: 2px 9px;
}
.taste-tags span.cat { color: var(--sub); background: var(--panel2); }

/* characters */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head span { font-size: 10px; letter-spacing: .32em; color: var(--blue); font-weight: 800; }
.page-head h2 { font-size: 24px; margin: 6px 0 4px; letter-spacing: .01em; }
.page-head p { color: var(--sub); font-size: 12.5px; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.char-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.char-card h3 { font-size: 14px; margin-bottom: 10px; color: var(--blue); }
.char-body { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.portrait { cursor: pointer; }
.portrait input { display: none; }
.char-preview {
  border: 2px dashed var(--line); border-radius: 12px; aspect-ratio: 3/4;
  display: grid; place-items: center; gap: 2px; color: var(--sub); overflow: hidden; text-align: center;
}
.char-preview b { font-size: 20px; color: var(--blue); }
.char-preview span { font-size: 10px; font-weight: 700; }
.char-preview img { width: 100%; height: 100%; object-fit: cover; }

/* export */
.export-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.export-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.export-card h3 { font-size: 15px; margin-bottom: 8px; }
.export-card p { font-size: 12px; color: var(--sub); margin-bottom: 12px; }
.export-card .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.export-card .btn-row button {
  border: 1px solid var(--line); background: #fff; padding: 9px 14px;
  border-radius: 10px; font-weight: 700; font-size: 12.5px;
}
.export-card .btn-row button.accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.preview-wrap { position: sticky; top: 80px; }
.preview-size { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.preview-size button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; }
.preview-size button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.phone-preview {
  width: 390px; margin: 0 auto; background: #fff; border: 8px solid var(--ink);
  border-radius: 28px; overflow: auto; max-height: calc(100vh - 150px); box-shadow: var(--shadow);
}
.phone-preview.size-lg { width: min(720px, 100%); border-radius: 14px; border-width: 4px; }
.phone-preview.size-full { width: 100%; border: 1px solid var(--line); border-radius: 8px; max-height: none; }
.phone-preview img { width: 100%; display: block; }
.ph-empty { padding: 60px 20px; text-align: center; color: var(--sub); font-size: 12px; }
.ph-btn {
  display: block; margin: 12px; padding: 14px; border-radius: 12px; text-align: center;
  color: #fff; font-weight: 800; text-decoration: none; font-size: 14px; background: var(--blue);
}

/* modal */
dialog {
  border: none; border-radius: 18px; padding: 0; width: min(560px, 92vw);
  box-shadow: 0 30px 80px rgba(20, 40, 80, .3);
}
dialog::backdrop { background: rgba(28, 39, 51, .45); backdrop-filter: blur(3px); }
dialog form, dialog .dlg-body { padding: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.modal-head span { font-size: 10px; letter-spacing: .22em; color: var(--blue); font-weight: 800; }
.modal-head h2 { font-size: 18px; margin-top: 3px; }
.modal-head button { font-size: 20px; color: var(--sub); }
dialog p { font-size: 12.5px; color: var(--sub); margin-bottom: 14px; }
dialog menu { display: flex; gap: 8px; justify-content: flex-end; padding: 0; margin-top: 16px; }
dialog menu button {
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 13px;
  border: 1px solid var(--line); background: #fff;
}
dialog menu button.go { background: var(--blue); color: #fff; border-color: var(--blue); }
.security-note {
  background: var(--panel2); border-radius: 10px; padding: 10px 12px;
  font-size: 11.5px; color: var(--sub); margin-top: 10px; white-space: pre-line;
}
.guide h3 { font-size: 13.5px; margin: 14px 0 6px; color: var(--blue); }
.guide ol { padding-left: 20px; font-size: 12.5px; }
.guide li { margin-bottom: 4px; }
#helpDialog { width: min(640px, 94vw); }
#helpDialog .dlg-body { max-height: 80vh; overflow: auto; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 18px;
  font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 100; max-width: min(560px, 90vw);
  white-space: pre-line; line-height: 1.6; text-align: left;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1080px) {
  #create.view.active, #screenplay.view.active { grid-template-columns: 1fr; padding: 16px 14px 60px; }
  .full-view { padding: 20px 14px 70px; }
  .brief-panel, .inspector { position: static; max-height: none; }
  .export-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  header { flex-wrap: wrap; }
  .lp-section { grid-template-columns: 1fr; }
}


/* ========== AI脚本化 ========== */
.tab em { font-style: normal; font-size: 9px; letter-spacing: .12em; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.tab.active em { background: #fff; color: var(--blue); }
#tasteCount { background: var(--panel2); color: var(--sub); }
.sp-source { min-height: 220px; font-size: 13.5px; line-height: 1.7; }
.btn-row.small { display: flex; gap: 8px; margin: -4px 0 12px; }
.btn-row.small .ghost-btn { margin: 0; flex: 1; font-size: 12px; padding: 8px 10px; }
.sp-body { min-height: 60vh; }
.sp-empty { padding: 60px 24px; text-align: center; color: var(--sub); }
.sp-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 8px; }
.sp-head { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; box-shadow: var(--shadow); }
.sp-head > span { font-size: 10px; letter-spacing: .32em; color: var(--blue); font-weight: 800; }
.sp-head h2 { font-size: 24px; margin: 6px 0 4px; }
.sp-head .logline { color: var(--sub); font-size: 13.5px; }
.sp-head .theme { margin-top: 8px; font-size: 13px; }
.sp-head .theme i, .sp-line i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #fff; background: var(--ink); border-radius: 4px; padding: 1px 6px; margin-right: 8px; vertical-align: 1px; }
.sp-chars { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sp-chars li { background: var(--panel2); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; max-width: 360px; }
.sp-chars li b { display: inline-block; margin-right: 6px; }
.sp-chars li span { font-size: 10px; color: var(--blue); font-weight: 800; margin-right: 8px; }
.sp-chars li em { display: block; font-style: normal; color: var(--sub); font-size: 11.5px; }
.sp-page { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.sp-page header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; position: static; padding: 0; background: none; border: none; backdrop-filter: none; }
.sp-page header .num { font-family: 'Dela Gothic One', sans-serif; font-size: 26px; color: var(--blue); line-height: 1; }
.sp-page header h3 { font-size: 16px; }
.sp-page header p { color: var(--sub); font-size: 12.5px; }
.sp-panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sp-panel { border: 2px solid var(--ink); border-radius: 6px; padding: 12px 14px; background: #fff; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.sp-panel.size-large { grid-column: span 2; border-width: 3px; }
.sp-panel.size-small { opacity: .92; }
.sp-panel-head { display: flex; align-items: center; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; margin-bottom: 2px; }
.sp-panel-head b { font-size: 13px; }
.sp-panel-head .cam { font-size: 11px; font-weight: 800; color: var(--blue); background: #EAF1FD; border-radius: 999px; padding: 2px 9px; }
.sp-panel-head .sz { margin-left: auto; font-size: 10px; color: var(--sub); font-weight: 800; }
.sp-line { color: #3a4652; line-height: 1.6; }
.sp-line.note { color: var(--sub); font-size: 12px; }
.sp-dialogue { background: var(--panel2); border-radius: 18px; padding: 8px 14px; font-weight: 700; font-size: 14px; margin-top: 2px; }
.sp-dialogue small { display: block; font-size: 10px; color: var(--sub); font-weight: 800; margin-bottom: 2px; }
.sp-mono { color: var(--sub); font-size: 12.5px; padding-left: 4px; }
.sp-sfx { font-family: 'Dela Gothic One', sans-serif; color: var(--accent); font-size: 15px; letter-spacing: .06em; }
@media (max-width: 640px) { .sp-panel.size-large { grid-column: span 1; } }

/* ========== Pro: 画風分析 ========== */
body[data-edition="bonus"] .pro-only { display: none; }
.analyzer-card { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.analyzer-head span { font-size: 10px; letter-spacing: .32em; color: var(--accent); font-weight: 800; }
.analyzer-head h3 { font-size: 17px; margin: 6px 0 4px; }
.analyzer-head p { color: var(--sub); font-size: 12.5px; margin-bottom: 14px; }
.analyzer-body { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.analyzer-drop .char-preview { min-height: 220px; }
.analyzer-drop img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; }
.analyze-result { margin-top: 12px; display: grid; gap: 10px; }
.analyze-result .ar-box { background: var(--panel2); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; }
.analyze-result .ar-box b { display: block; font-size: 11px; letter-spacing: .1em; color: var(--blue); margin-bottom: 4px; }
.analyze-result .ar-box code { display: block; font-family: inherit; color: var(--sub); font-size: 11.5px; margin-top: 4px; line-height: 1.55; }
.analyze-result .ar-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.analyze-result .ar-actions button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; }
.analyze-result .ar-actions button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
@media (max-width: 640px) { .analyzer-body { grid-template-columns: 1fr; } }
