/* =========================================================
 * ゴリラ・バナーメーカー フロント
 * すべて .gbm-app の中だけに効くように書いています（テーマと干渉しない）
 * ライト＝②の水色系 / ダーク＝①の黒×金×紫
 * ========================================================= */

.gbm-app {
	--gbm-bg: #eef5fb; --gbm-surface: #ffffff; --gbm-surface2: #f4f8fc; --gbm-line: #d6e2ee; --gbm-fg: #1d2a38; --gbm-muted: #5f7286;
	--gbm-accent: #1f8fe0; --gbm-accent2: #0e86a8; --gbm-accent-ink: #ffffff; --gbm-grad: linear-gradient(120deg, #3b9cf5, #12c9ef);
	--gbm-chip-on: #e3f2fd; --gbm-focus: #1f8fe0; --gbm-warn: #c2410c; --gbm-ok: #16a34a; --gbm-danger: #dc2626;
	--gbm-img: #4aa8ff; --gbm-cta: #ff9a3c; --gbm-ink: #2b3647; --gbm-canvas-line: #d6e2ee;
	--gbm-top: 0px;
	--gbm-font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	--gbm-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--gbm-r: 10px; --gbm-r-sm: 6px;

	position: relative;
	left: 50%;
	width: min(1320px, calc(100vw - 24px));
	background: var(--gbm-bg);
	color: var(--gbm-fg);
	font-family: var(--gbm-font);
	font-size: 14px;
	line-height: 1.6;
	border-radius: 12px;
	text-align: left;
}
.gbm-app[data-theme="dark"] {
	--gbm-bg: #0b0b13; --gbm-surface: #15151f; --gbm-surface2: #1c1c29; --gbm-line: #2c2c3d; --gbm-fg: #f0eff5; --gbm-muted: #9d9cb0;
	--gbm-accent: #d4af37; --gbm-accent2: #b77cf8; --gbm-accent-ink: #1a1a28; --gbm-grad: linear-gradient(120deg, #d4af37, #e8c547);
	--gbm-chip-on: rgba(168, 85, 247, .2); --gbm-focus: #a855f7; --gbm-warn: #fb923c; --gbm-ok: #4ade80; --gbm-danger: #f87171;
	color-scheme: dark;
}
/* テーマの「本文幅」制限を外して、画面いっぱい（最大1320px）に広げる */
.gbm-app.gbm-app {
	max-width: none !important;
	margin: 24px 0 40px calc(-1 * min(660px, calc(50vw - 12px))) !important;
	padding: 0 !important;
}
.admin-bar .gbm-app { --gbm-top: 32px; }
@media (max-width: 782px) { .admin-bar .gbm-app { --gbm-top: 0px; } }

/* テーマのスタイルを打ち消す */
.gbm-app *, .gbm-app *::before, .gbm-app *::after { box-sizing: border-box; }
.gbm-app [hidden] { display: none !important; }
.gbm-app h2, .gbm-app h3, .gbm-app p, .gbm-app figure, .gbm-app dl, .gbm-app dd { margin: 0; padding: 0; border: 0; background: none; }
.gbm-app h2::before, .gbm-app h2::after, .gbm-app h3::before, .gbm-app h3::after { content: none; display: none; }
.gbm-app button, .gbm-app input, .gbm-app textarea, .gbm-app select {
	font: inherit; color: inherit; margin: 0; letter-spacing: normal; text-transform: none; box-shadow: none; min-height: 0; line-height: 1.4;
}
.gbm-app button { cursor: pointer; width: auto; text-align: center; }
.gbm-app button:disabled { cursor: not-allowed; opacity: .5; }
.gbm-app :focus-visible { outline: 2px solid var(--gbm-focus); outline-offset: 2px; }
.gbm-app img { max-width: 100%; height: auto; }

/* ---------- 上のバー ---------- */
.gbm-bar {
	position: sticky; top: var(--gbm-top); z-index: 20; background: var(--gbm-surface); border-bottom: 1px solid var(--gbm-line);
	border-radius: 12px 12px 0 0; padding: 10px 16px;
}
.gbm-bar-in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gbm-brand { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; min-width: 0; }
.gbm-brand small { font-family: var(--gbm-mono); font-size: 10px; letter-spacing: .2em; color: var(--gbm-muted); }
.gbm-brand b { font-weight: 900; font-size: 19px; background: var(--gbm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gbm-save-state { font-size: 11px; color: var(--gbm-muted); }

.gbm-btn {
	border: 1px solid var(--gbm-line); background: var(--gbm-surface2); color: var(--gbm-fg); border-radius: var(--gbm-r-sm);
	padding: 7px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
}
.gbm-btn:hover:not(:disabled) { border-color: var(--gbm-accent); }
.gbm-btn-main { background: var(--gbm-grad); color: var(--gbm-accent-ink); border-color: transparent; }
.gbm-btn-sub { background: transparent; color: var(--gbm-accent2); border-color: var(--gbm-accent2); }
.gbm-btn-ai { width: 100%; justify-content: center; white-space: normal; padding: 11px; font-size: 14px; background: linear-gradient(120deg, #7c5cf0, #b05cf0); color: #fff; border: none; }
.gbm-btn-sm { padding: 4px 10px; font-size: 12px; }
.gbm-count { display: inline-flex; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gbm-accent2); color: #fff; font-size: 11px; align-items: center; justify-content: center; padding: 0 5px; }

/* ---------- プロジェクト ---------- */
.gbm-proj { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; max-width: 260px; padding: 2px 10px; border-left: 1px solid var(--gbm-line); }
.gbm-proj-label { font-size: 10px; color: var(--gbm-muted); letter-spacing: .08em; }
.gbm-proj-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbm-proj-dirty { font-size: 11px; font-weight: 700; color: var(--gbm-warn); }
.gbm-pj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.gbm-pj { border: 1px solid var(--gbm-line); border-radius: var(--gbm-r-sm); background: var(--gbm-surface2); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gbm-pj.gbm-cur { border-color: var(--gbm-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gbm-accent) 20%, transparent); }
.gbm-pj-thumb { aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: #fff; border: 1px solid var(--gbm-canvas-line); position: relative; max-width: 100%; }
.gbm-pj-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.gbm-pj-thumb > .gbm-mini { border: none; height: 100%; aspect-ratio: auto; }
.gbm-pj b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbm-pj small { font-size: 11px; color: var(--gbm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbm-pj .gbm-acts .gbm-btn { padding: 4px 6px; }
.gbm-pj input[type="text"] { padding: 4px 6px; font-size: 12px; }
.gbm-bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gbm-bn { border: 1px solid var(--gbm-line); border-radius: var(--gbm-r-sm); background: var(--gbm-surface2); padding: 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gbm-bn a.gbm-bn-img { display: block; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: #fff; }
.gbm-bn a.gbm-bn-img img { width: 100%; height: 100%; object-fit: contain; }
.gbm-bn-drop { border: 2px dashed var(--gbm-line); border-radius: var(--gbm-r-sm); min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-align: center; color: var(--gbm-muted); font-size: 12px; padding: 12px; background: var(--gbm-surface); }
.gbm-bn-drop.gbm-drop { border-color: var(--gbm-accent); }
.gbm-bn-drop b { color: var(--gbm-fg); font-size: 13px; }
.gbm-app a.gbm-link { color: var(--gbm-accent2); text-decoration: underline; }

/* ---------- 全体レイアウト ---------- */
.gbm-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; padding: 18px 16px 24px; }
.gbm-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gbm-side {
	position: static;
	background: var(--gbm-surface); border: 1px solid var(--gbm-line); border-radius: var(--gbm-r); padding: 16px;
	display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.gbm-side > * { flex-shrink: 0; }
.gbm-panel { background: var(--gbm-surface); border: 1px solid var(--gbm-line); border-radius: var(--gbm-r); padding: 16px; min-width: 0; }
.gbm-app h2 { font-weight: 700; font-size: 15px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--gbm-fg); line-height: 1.5; }
.gbm-side h2 { margin: 0; }
.gbm-step { font-family: var(--gbm-mono); font-size: 11px; color: var(--gbm-accent); letter-spacing: .08em; }
.gbm-hint { font-weight: 400; font-size: 12px; color: var(--gbm-muted); }
.gbm-app h3 { font-size: 13px; font-weight: 700; color: var(--gbm-fg); line-height: 1.5; }
.gbm-muted { color: var(--gbm-muted); font-size: 12px; }
.gbm-ex { font-size: 11px; color: var(--gbm-muted); }
.gbm-badge { font-size: 10px; font-weight: 700; color: var(--gbm-accent2); border: 1px solid var(--gbm-accent2); border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.gbm-badge:empty { display: none; }
.gbm-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gbm-between { justify-content: space-between; }
.gbm-end { justify-content: flex-end; }
.gbm-mt { margin-top: 10px; }
.gbm-stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- レイアウト（横スライダー） ---------- */
.gbm-slider { position: relative; margin-bottom: 14px; }
.gbm-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: thin; }
.gbm-thumb {
	flex: 0 0 clamp(150px, 22%, 210px); scroll-snap-align: start; border: 2px solid var(--gbm-line); border-radius: var(--gbm-r-sm);
	background: var(--gbm-surface2); padding: 7px; display: flex; flex-direction: column; gap: 5px; text-align: left !important;
}
.gbm-thumb[aria-pressed="true"] { border-color: var(--gbm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gbm-accent) 22%, transparent); }
.gbm-thumb span { font-size: 11.5px; color: var(--gbm-muted); line-height: 1.3; }
.gbm-thumb[aria-pressed="true"] span { color: var(--gbm-fg); font-weight: 700; }
.gbm-arrow {
	position: absolute; top: calc(50% - 22px); width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gbm-line);
	background: var(--gbm-surface); color: var(--gbm-fg); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); font-size: 18px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; z-index: 2; padding: 0;
}
.gbm-arrow.gbm-l { left: -8px; }
.gbm-arrow.gbm-r { right: -8px; }

.gbm-mini { position: relative; aspect-ratio: 3 / 2; background: #fff; border: 1px solid var(--gbm-canvas-line); border-radius: 3px; max-width: 100%; }
.gbm-mini i {
	position: absolute; border: 1px dashed rgba(43, 54, 71, .5); background: rgba(43, 54, 71, .05); font-style: normal; font-size: 8px; font-weight: 700;
	color: var(--gbm-ink); display: flex; align-items: center; justify-content: center; overflow: hidden; line-height: 1.15; text-align: center;
}
.gbm-mini i.gbm-img { background: var(--gbm-img); border-style: solid; border-color: var(--gbm-img); color: #fff; }
.gbm-mini i.gbm-cta { background: var(--gbm-cta); border: none; border-radius: 20px; color: #fff; }
.gbm-tmini i { font-size: 9px; padding: 1px 3px; }
.gbm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gbm-pair figure { background: var(--gbm-surface2); border: 1px solid var(--gbm-line); border-radius: var(--gbm-r-sm); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gbm-pair figcaption { font-size: 12px; font-weight: 700; color: var(--gbm-accent); display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.gbm-pair figcaption em { font-style: normal; font-weight: 400; color: var(--gbm-muted); display: inline-flex; align-items: center; gap: 4px; }
.gbm-diagram .gbm-mini i { font-size: 12px; }
.gbm-sample { position: relative; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: var(--gbm-surface); border: 1px dashed var(--gbm-line); display: flex; align-items: center; justify-content: center; max-width: 100%; }
.gbm-sample img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gbm-sample-empty { font-size: 12px; color: var(--gbm-muted); text-align: center; padding: 12px; }
.gbm-navbtn { border: 1px solid var(--gbm-line); background: var(--gbm-surface); border-radius: 4px; padding: 0 7px; font-size: 12px; color: var(--gbm-fg); }

/* ---------- 配置プレビュー（白いキャンバス） ---------- */
.gbm-seg { display: flex; gap: 4px; flex-wrap: wrap; }
.gbm-panel > .gbm-seg { max-width: 440px; margin-bottom: 12px; }
.gbm-seg button { flex: 1; min-width: 0; border: 1px solid var(--gbm-line); background: var(--gbm-surface2); color: var(--gbm-fg); border-radius: var(--gbm-r-sm); padding: 7px 6px; font-size: 12px; font-weight: 700; }
.gbm-seg button[aria-pressed="true"] { background: var(--gbm-grad); color: var(--gbm-accent-ink); border-color: transparent; }
.gbm-stage-wrap { display: flex; justify-content: center; overflow: hidden; }
.gbm-stage { position: relative; width: 100%; background: #fff; box-shadow: inset 0 0 0 1px var(--gbm-canvas-line); border-radius: 8px; touch-action: none; user-select: none; max-width: 100%; }
.gbm-el {
	position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2px 6px;
	border: 1.5px dashed rgba(43, 54, 71, .5); background: rgba(43, 54, 71, .06); color: var(--gbm-ink); border-radius: 4px; cursor: move;
	font-weight: 700; font-size: clamp(9px, 1.25vw, 13px); line-height: 1.25; overflow: hidden;
}
.gbm-el.gbm-img { background: var(--gbm-img); color: #fff; border-style: solid; border-color: transparent; }
.gbm-el.gbm-cta { background: var(--gbm-cta); color: #fff; border: none; border-radius: 999px; }
.gbm-el.gbm-drag, .gbm-el.gbm-sel { outline: 2px solid var(--gbm-accent); z-index: 5; }
.gbm-el img.gbm-logo { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.gbm-el .gbm-h { position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; background: var(--gbm-accent); border-radius: 3px 0 3px 0; cursor: nwse-resize; }
.gbm-stage-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.gbm-stage-tools .gbm-muted { margin-left: auto; }

/* ---------- 入力 ---------- */
.gbm-field { display: flex; flex-direction: column; gap: 5px; }
.gbm-lbl { font-weight: 700; font-size: 13px; }
.gbm-app input[type="text"], .gbm-app textarea {
	width: 100%; border: 1px solid var(--gbm-line); background: var(--gbm-surface2); color: var(--gbm-fg); border-radius: var(--gbm-r-sm);
	padding: 8px 10px; font-size: 13px; max-width: 100%; height: auto;
}
.gbm-app textarea { resize: vertical; min-height: 64px; }
.gbm-app input::placeholder, .gbm-app textarea::placeholder { color: var(--gbm-muted); opacity: .8; }
.gbm-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.gbm-chip { border: 1px solid var(--gbm-line); background: var(--gbm-surface); color: var(--gbm-fg); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 400; }
.gbm-chip[aria-pressed="true"] { background: var(--gbm-chip-on); border-color: var(--gbm-accent2); font-weight: 700; }
.gbm-chip[aria-pressed="true"]::before { content: "✓ "; }
.gbm-target-box .gbm-chip { font-size: 12.5px; padding: 4px 12px; }
.gbm-box { background: var(--gbm-surface2); border: 1px solid var(--gbm-line); border-radius: var(--gbm-r-sm); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gbm-ai-box { border-color: color-mix(in srgb, #8b5cf6 45%, var(--gbm-line)); background: color-mix(in srgb, #8b5cf6 7%, var(--gbm-surface2)); }

/* A〜G 横タブ */
.gbm-etabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.gbm-etab { flex: 0 0 auto; scroll-snap-align: start; display: flex; align-items: center; gap: 6px; border: 1px solid var(--gbm-line); background: var(--gbm-surface2); color: var(--gbm-fg); border-radius: 99px; padding: 4px 11px 4px 4px; font-size: 12px; font-weight: 700; }
.gbm-etab[aria-selected="true"] { border-color: var(--gbm-accent); background: var(--gbm-chip-on); }
.gbm-etab.gbm-off { opacity: .45; }
.gbm-st { width: 7px; height: 7px; border-radius: 50%; background: var(--gbm-line); }
.gbm-st.gbm-done { background: var(--gbm-ok); }
.gbm-tag { font-family: var(--gbm-mono); font-weight: 600; font-size: 11px; min-width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gbm-ink); color: #fff; flex: none; padding: 0 3px; }
.gbm-tag.gbm-img { background: var(--gbm-img); }
.gbm-tag.gbm-cta { background: var(--gbm-cta); }
.gbm-epanel { border: 1px solid var(--gbm-line); border-radius: var(--gbm-r-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--gbm-surface2); }
.gbm-epanel-h { display: flex; align-items: center; gap: 8px; }
.gbm-epanel-h .gbm-lbl { flex: 1; }
.gbm-new { font-size: 10px; color: var(--gbm-warn); font-weight: 700; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.gbm-sw { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--gbm-muted); cursor: pointer; }
.gbm-sw input { width: 16px; height: 16px; accent-color: var(--gbm-accent); }
.gbm-enav { display: flex; justify-content: space-between; gap: 8px; }
.gbm-enav button { font-size: 12px; border: none; background: none; color: var(--gbm-accent2); font-weight: 700; padding: 4px 0; }
.gbm-logo-drop {
	border: 2px dashed var(--gbm-line); border-radius: 6px; min-height: 84px; display: flex; align-items: center; justify-content: center; padding: 8px;
	cursor: pointer; font-size: 12px; color: #5f7286; text-align: center; white-space: pre-line;
	background-color: #fff; background-image: linear-gradient(45deg, #eef1f5 25%, transparent 25%, transparent 75%, #eef1f5 75%), linear-gradient(45deg, #eef1f5 25%, transparent 25%, transparent 75%, #eef1f5 75%);
	background-size: 14px 14px; background-position: 0 0, 7px 7px;
}
.gbm-logo-drop.gbm-drop { border-color: var(--gbm-accent); }
.gbm-logo-drop img { max-height: 90px; object-fit: contain; }

/* ---------- カラー ---------- */
.gbm-cs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.gbm-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gbm-preset { border: 2px solid var(--gbm-line); border-radius: var(--gbm-r-sm); padding: 6px; background: var(--gbm-surface); color: var(--gbm-fg); display: flex; flex-direction: column; gap: 5px; text-align: left !important; font-size: 11px; }
.gbm-preset[aria-pressed="true"] { border-color: var(--gbm-accent); }
.gbm-bars { display: flex; height: 18px; border-radius: 3px; overflow: hidden; }
.gbm-bars i { flex: 1; }
.gbm-role { display: grid; grid-template-columns: 72px 30px minmax(0, 1fr); gap: 8px; align-items: center; }
.gbm-role b { font-size: 12px; }
.gbm-role input[type="color"] { width: 30px; height: 26px; padding: 0; border: 1px solid var(--gbm-line); border-radius: 4px; background: none; }
.gbm-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.gbm-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gbm-line); padding: 0; }
.gbm-refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gbm-ref {
	position: relative; aspect-ratio: 1; border: 2px dashed var(--gbm-line); border-radius: var(--gbm-r-sm); background: var(--gbm-surface);
	display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--gbm-muted); text-align: center; overflow: hidden; cursor: pointer; white-space: pre-line; max-width: 100%;
}
.gbm-ref.gbm-drop { border-color: var(--gbm-accent); }
.gbm-ref img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gbm-ref .gbm-x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; line-height: 1; z-index: 1; padding: 0; }
.gbm-ref input { display: none; }
.gbm-ai-cards { display: grid; gap: 8px; }
.gbm-ai { border: 1px solid var(--gbm-line); border-radius: var(--gbm-r-sm); padding: 8px; background: var(--gbm-surface); display: flex; flex-direction: column; gap: 6px; }
.gbm-ai p { font-size: 12px; }

/* ---------- プロンプト・タスク ---------- */
.gbm-app textarea.gbm-prompt { font-family: var(--gbm-mono); font-size: 12px; line-height: 1.7; min-height: 280px; white-space: pre; overflow: auto; }
.gbm-mono { font-family: var(--gbm-mono); font-size: 12px; }
.gbm-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.gbm-task { border: 1px solid var(--gbm-line); border-radius: var(--gbm-r-sm); background: var(--gbm-surface2); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gbm-task.gbm-loaded { border-color: var(--gbm-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gbm-accent) 20%, transparent); }
.gbm-task-h { display: flex; gap: 6px; align-items: center; }
.gbm-task-h b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.gbm-task dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 6px; font-size: 11.5px; }
.gbm-task dt { font-family: var(--gbm-mono); font-weight: 600; color: var(--gbm-accent2); }
.gbm-task dd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gbm-task .gbm-meta { font-size: 11px; color: var(--gbm-muted); word-break: break-all; }
.gbm-acts { display: flex; gap: 6px; }
.gbm-acts .gbm-btn { flex: 1; justify-content: center; padding: 4px 8px; font-size: 11px; }
.gbm-empty { border: 2px dashed var(--gbm-line); border-radius: var(--gbm-r-sm); padding: 18px; text-align: center; color: var(--gbm-muted); font-size: 12px; }
.gbm-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: gbm-sp .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes gbm-sp { to { transform: rotate(360deg); } }

.gbm-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(10, 12, 20, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gbm-modal > div { background: var(--gbm-surface); color: var(--gbm-fg); border: 1px solid var(--gbm-line); border-radius: var(--gbm-r); width: 100%; max-width: 680px; max-height: 86vh; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.gbm-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--gbm-fg); color: var(--gbm-bg); padding: 9px 18px; border-radius: 99px; font-size: 13px; font-weight: 700; z-index: 100001; max-width: calc(100vw - 32px); text-align: center; }
.gbm-toast.gbm-err { background: var(--gbm-danger); color: #fff; border-radius: 10px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1040px) {
	.gbm-wrap { grid-template-columns: minmax(0, 1fr); }
	.gbm-side { position: static; max-height: none; }
}
@media (max-width: 620px) {
	.gbm-app.gbm-app { width: calc(100vw - 16px); margin-left: calc(-1 * (50vw - 8px)) !important; }
	.gbm-wrap { padding: 12px 10px 20px; }
	.gbm-pair, .gbm-cs { grid-template-columns: 1fr; }
	.gbm-brand b { font-size: 16px; }
	.gbm-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gbm-thumb { flex-basis: 62%; }
	.gbm-arrow { display: none; }
	.gbm-bar { position: static; }
}
@media (prefers-reduced-motion: reduce) {
	.gbm-app * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
