:root { color-scheme: light dark; font-family: system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f7f8fa; color: #202124; }
header { height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: #fff; border-bottom: 1px solid #e6e8eb; }
header strong { font-size: 18px; }
#status { color: #5f6368; flex: 1; font-size: 14px; }
button { border: 1px solid #d0d7de; border-radius: 6px; background: #fff; padding: 7px 11px; cursor: pointer; font: inherit; }
button:hover { background: #f0f3f6; }
main { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: calc(100vh - 56px); }
aside { background: #fff; border-right: 1px solid #e6e8eb; overflow: auto; }
.files-heading { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-bottom: 1px solid #eef0f2; }
.files-heading button { padding: 4px 8px; }
.file-row { display: flex; align-items: center; min-width: 0; }
.file-row.active { background: #e8f0fe; color: #174ea6; }
.file { min-width: 0; flex: 1; border: 0; border-radius: 0; text-align: left; padding: 10px 8px 10px 14px; background: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row.active .file { color: #174ea6; font-weight: 600; }
.file-actions { display: flex; gap: 2px; padding-right: 6px; }
.file-action { border: 0; background: transparent; padding: 5px; color: #5f6368; font-size: 12px; }
.file-action:hover { background: #dce5f5; }
.file-action.danger:hover { color: #b3261e; background: #fde8e7; }
section { min-width: 0; padding: 16px; }
#editor { height: calc(100vh - 88px); background: #fff; border: 1px solid #e6e8eb; border-radius: 8px; overflow: hidden; }
@media (max-width: 700px) { main { grid-template-columns: 1fr; } aside { display: none; } section { padding: 0; } #editor { height: calc(100vh - 56px); border: 0; border-radius: 0; } }
