.hidden { display: none !important; }
.main { overflow: hidden; padding: var(--padding-medium); gap: var(--gap-small); }

.header { height: var(--height); }
.logo-mark { background-image: url("favicon.png"); }
.header-tools { height: 100%; }

.menu-bar { flex: 1; min-width: 0; display: flex; gap: var(--gap-extra-small); margin-inline-start: var(--gap-medium); overflow-x: auto; scrollbar-width: none; }
.menu-bar > button { border-color: transparent; background: transparent; }

.tab-bar { flex: none; display: flex; align-items: flex-end; gap: var(--gap-small); border-bottom: var(--border-width) solid var(--border); }
.tab-strip { flex: 1; min-width: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.tab {
  flex: none; display: flex; align-items: center; max-width: calc(var(--unit) * 70); height: var(--height);
  border: var(--border-width) solid transparent; border-bottom: 0; border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0; color: var(--fg-1);
}
.tab.on { color: var(--fg); background: var(--bg-1); border-color: var(--border); }
.tab-select { flex: 1; min-width: 0; height: 100%; padding: 0 var(--padding-medium); gap: var(--gap-small); border: 0; background: transparent; justify-content: flex-start; text-transform: none; font-weight: 400; }
.tab-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-dot { flex: none; width: calc(var(--unit) * 2); height: calc(var(--unit) * 2); border-radius: 50%; background: var(--highlight); }
.tab-close { flex: none; width: var(--height); height: 100%; border: 0; border-radius: 0; background: transparent; color: var(--fg-1); }
.tab-close > .icon { width: var(--icon-size-extra-small); height: var(--icon-size-extra-small); }
.tab-bar > button { margin-bottom: var(--gap-extra-small); }

.find-bar { flex: none; display: flex; flex-direction: column; gap: var(--gap-small); padding: var(--padding-small) 0; }
.find-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-small); }
.find-row > input[type="text"] { flex: 1; min-width: calc(var(--height) * 4); max-width: calc(var(--height) * 10); }
.find-option { display: flex; align-items: center; gap: var(--gap-small); height: var(--height); cursor: pointer; }

.editors { flex: 1; min-height: 0; display: flex; }
.editor {
  --zoom: 1;
  flex: 1; min-width: 0; resize: none; padding: var(--padding-medium); border-radius: var(--border-radius-large);
  font-size: calc(var(--unit) * var(--size) * var(--zoom)); line-height: 1.5; tab-size: var(--tab-size); user-select: text;
  white-space: pre; overflow: auto;
}
.editor.wrap { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; }
.editors.dropping .editor { outline: var(--border-width-thick) solid var(--highlight); }

@media (max-width: 35rem) {
  .find-row > input[type="text"] { max-width: none; }
}
