/* css/main.css  2026-11-17 23:49:20 */
:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1f2937; background: #f8fafc; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; }
button, textarea, input { font: inherit; }
button { min-height: 34px; padding: 0 10px; border: 1px solid #d7dee8; border-radius: 7px; color: #334155; background: #ffffff; cursor: pointer; }
button:hover, button[aria-pressed="true"] { color: #3657c8; background: #eef2ff; border-color: #91a5ef; }
input, textarea { color: #1f2937; }
h1, h2, h3, p { margin: 0; }
h2 { margin-bottom: 12px; font-size: 16px; }
h3 { margin: 22px 0 8px; font-size: 13px; }
.spacer { flex: 1 1 auto; }
.icon-button { min-width: 34px; padding: 0 6px; border-color: transparent; background: transparent; font-size: 20px; }
.document-title { min-width: 0; width: min(60vw, 360px); border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 600; }
gg-toolbar, gg-editor-actions, gg-command-scope, gg-command-shortcuts, .toolbar-settings-list, .toolbar-available-list { display: flex; flex-wrap: wrap; gap: 6px; }
gg-toolbar button, gg-editor-actions button { min-width: 34px; padding: 0 8px; }
gg-toolbar .toolbar-settings-button { margin-left: auto; color: #64748b; }
.ai-button { color: #ffffff; border-color: #4b65c7; background: #4b65c7; }
.ai-button:hover { color: #ffffff; background: #3d54ab; }
.note-editor-panel { position: relative; display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }
#markdownSource { width: min(100%, 760px); min-height: 0; flex: 1 1 auto; align-self: center; padding: 22px 18px; border: 0; outline: 0; resize: none; background: transparent; font-size: 17px; line-height: 1.75; }
.selection-marker { position: absolute; left: 50%; bottom: 10px; max-width: min(92%, 720px); padding: 6px 10px; overflow: hidden; border: 1px solid #b8c8ff; border-radius: 6px; color: #3657c8; background: #eef2ff; font-size: 12px; text-overflow: ellipsis; transform: translateX(-50%); white-space: nowrap; }
gg-command-layer { display: grid; gap: 8px; width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #ffffff; box-shadow: 0 -8px 20px rgb(15 23 42 / 8%); }
gg-command-layer[hidden] { display: none; }
gg-command-header { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.command-scope-label { color: #64748b; font-size: 12px; }
gg-command-scope button, gg-command-shortcuts button { min-height: 28px; padding: 0 8px; font-size: 12px; }
gg-command-input { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; min-height: 74px; }
#aiCommandInput { width: 100%; min-height: 74px; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; outline-color: #91a5ef; resize: vertical; }
.command-send-button { align-self: stretch; min-width: 40px; font-size: 22px; }
gg-command-attachment { position: relative; display: grid; place-items: center; width: 68px; min-height: 68px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; }
gg-command-attachment[hidden] { display: none; }
gg-command-attachment img { width: 60px; height: 60px; object-fit: contain; }
gg-command-attachment button { position: absolute; top: -8px; right: -8px; min-width: 24px; min-height: 24px; padding: 0; }
gg-command-attachment #editAttachmentButton { top: auto; right: auto; bottom: -8px; left: -8px; min-width: 38px; font-size: 10px; }
.toolbar-settings-list, .toolbar-available-list { align-items: center; }
.toolbar-setting-item { display: inline-flex; align-items: center; gap: 5px; }
.image-editor-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; flex-direction: column; gap: 8px; text-align: center; }
@media (max-width: 640px) { body { overflow: auto; } .document-title { width: min(60vw, 250px); } #markdownSource { font-size: 16px; } gg-command-input { grid-template-columns: minmax(0, 1fr) auto; } gg-command-attachment { grid-column: 1 / -1; width: 68px; } }
