/* GitHubEditor component styles (canonical editor; memories/EDITOR.md) */
.ged { border: 1px solid #d0d7de; border-radius: 6px; background: #fff; display: flex; flex-direction: column; position: relative; }
.ged.expanded { position: fixed; inset: 0; z-index: 1000; border-radius: 0; }
.ged-tabs { display: flex; gap: 6px; padding: 6px 8px; border-bottom: 1px solid #d0d7de; background: #f6f8fa; }
/* visibly controls, not plain words (Brady on iOS: 'preview' read as text) */
.ged-tabs button { border: 1px solid #d0d7de; background: #fff; padding: 6px 16px; font-weight: 600; color: #57606a; cursor: pointer; border-radius: 6px; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.ged-tabs button.on { color: #fff; background: #0969da; border-color: #0969da; }
.ged-tabs .ged-x { margin-left: auto; font-weight: 400; }
.ged button, .ged-toolbar button { touch-action: manipulation; }
.ged-spacer { flex: 1; }
.ged-toolbar { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid #d0d7de; align-items: center; flex-wrap: wrap; }
.ged-toolbar button { border: 0; background: none; min-width: 30px; padding: 4px 6px; cursor: pointer; color: #57606a; border-radius: 4px; font-size: 14px; }
.ged-toolbar button:hover { background: #eaeef2; color: #24292f; }
.ged-status { font-size: 12px; color: #57606a; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ged textarea { width: 100%; min-height: 180px; border: 0; padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; resize: vertical; outline: none; box-sizing: border-box; }
.ged.expanded textarea { flex: 1; min-height: 0; resize: none; }
.ged-preview { padding: 12px 16px; min-height: 180px; overflow: auto; }
.ged.expanded .ged-preview { flex: 1; min-height: 0; }
.ged-preview img { max-width: 100%; }
.ged-preview pre { background: #f6f8fa; padding: 10px; border-radius: 6px; overflow: auto; }
.ged-preview code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ged-preview table { border-collapse: collapse; }
.ged-preview th, .ged-preview td { border: 1px solid #d0d7de; padding: 4px 10px; }
.ged-preview blockquote { border-left: 3px solid #d0d7de; margin: 0; padding: 0 12px; color: #57606a; }
.ged-ac { position: absolute; left: 12px; bottom: 30px; background: #fff; border: 1px solid #d0d7de; border-radius: 6px; box-shadow: 0 3px 12px rgba(0,0,0,.15); max-height: 220px; overflow: auto; min-width: 220px; z-index: 10; }
.ged-ac div { padding: 6px 12px; cursor: pointer; font-size: 14px; }
.ged-ac div.sel, .ged-ac div:hover { background: #0969da; color: #fff; }
.ged-foot { border-top: 1px solid #d0d7de; padding: 4px 10px; font-size: 12px; color: #57606a; display: flex; gap: 12px; }
