:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #111111;
}

body {
  margin: 0;
  background: #ffffff;
  color: inherit;
}

.material-icons-outlined {
  font-family: 'Material Icons Outlined';
  font-size: 1.4rem;
  line-height: 1;
  font-style: normal;
  font-weight: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.centered {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #f9f9f9;
}

.login {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  color: #111111;
  font-family: inherit;
  padding: 2rem;
}

.login__card {
  width: min(90vw, 420px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #ffffff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.1), 0 0 0 1px rgba(17, 17, 17, 0.04);
}

.login__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.login__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.login__logo:hover {
  transform: scale(1.05);
}

.login__logo img {
  display: block;
  width: 80px;
  height: 80px;
  filter: saturate(0.95);
}

.login__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111111;
  line-height: 1.2;
}

.login__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #666666;
  font-weight: 400;
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login__form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #444444;
  font-weight: 500;
}

.login__form input {
  background: #fafafa;
  border-radius: 12px;
  border: 1.5px solid rgba(17, 17, 17, 0.1);
  padding: 0.875rem 1.125rem;
  color: #111111;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.login__form input::placeholder {
  color: #999999;
}

.login__form input:hover {
  border-color: rgba(17, 17, 17, 0.15);
}

.login__form input:focus {
  outline: none;
  border-color: #111111;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08);
}

.login__form button {
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.login__form button:hover,
.login__form button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.15);
  outline: none;
}

.login__form button:active {
  transform: translateY(0);
}

#feedback {
  padding: 0.875rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
  transition: all 0.2s ease;
}

#feedback.error {
  background: #fee;
  color: #c33;
  border: 1px solid rgba(204, 51, 51, 0.2);
}

#feedback.success {
  background: #efe;
  color: #3c3;
  border: 1px solid rgba(51, 204, 51, 0.2);
}

.login__form--secondary {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  padding-top: 1.5rem;
}

.login__ghost {
  background: transparent;
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.login__ghost:hover,
.login__ghost:focus-visible {
  background: rgba(17, 17, 17, 0.06);
  outline: none;
}

.login__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.login-modal {
  border: none;
  padding: 0;
  background: transparent;
}

.login-modal::backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.login-modal__card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: min(90vw, 360px);
  box-shadow: 0 32px 80px rgba(17, 17, 17, 0.18);
}

.login-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-modal__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.login-modal__close {
  border: none;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.login-modal__close:hover,
.login-modal__close:focus-visible {
  background: rgba(17, 17, 17, 0.14);
  outline: none;
}

.login-modal__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-modal__body label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.login-modal__body input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}

.login-modal__footer {
  display: flex;
  justify-content: flex-end;
}
.card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e9e9e9;
  padding: 2rem;
  width: min(100%, 420px);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack.secondary {
  border-top: 1px solid #efefef;
  padding-top: 1.5rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: #5a5a5a;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  padding: 0.75rem 1rem;
  color: #111111;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  border-color: #4c4c4c;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
  outline: none;
}

button {
  background: #111111;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.12);
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.14);
}

#feedback {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #f3f3f3;
  color: #4c4c4c;
}

#feedback.error {
  background: #ffecec;
  color: #bb1d1d;
}

#feedback.success {
  background: #e8fff1;
  color: #1d8f52;
}

.editor {
  background: #fafafa;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 0.75rem;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(17, 17, 17, 0.08);
}

.sidebar__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  height: 100%;
  width: 100%;
}

.sidebar__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(245, 245, 247, 0.9);
  color: #111111;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.sidebar__logo .material-icons-outlined {
  font-size: 1.8rem;
}

.sidebar__logo .editor-navAvatar--image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar__logo .editor-navAvatar--fallback {
  font-size: 1.8rem;
  color: #666666;
}

.sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.sidebar__home {
  margin-bottom: 0;
}

.sidebar__separator {
  width: 32px;
  height: 1px;
  background: rgba(17, 17, 17, 0.1);
  margin: 1rem 0;
}

.sidebar__icons {
  flex: 1;
  justify-content: flex-start;
}

.sidebar__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.05);
  color: #111111;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar__icon:hover,
.sidebar__icon:focus-visible,
.sidebar__icon.is-active {
  background: rgba(17, 17, 17, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.sidebar__icon .material-icons-outlined {
  font-size: 1.35rem;
}

.sidebar__iconGlyph {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.sidebar__icon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  position: relative;
}

.sidebar__sublist--icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.sidebar__sublist--icons[hidden] {
  display: none;
}

.sidebar__toolMenuWrapper {
  position: relative;
}

.sidebar__toolMenu {
  position: fixed;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.16);
  z-index: 60;
  backdrop-filter: blur(10px);
}

.sidebar__toolMenu[hidden] {
  display: none;
}

.sidebar__toolMenuAction {
  border: none;
  background: rgba(17, 17, 17, 0.04);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.85rem;
  color: #111111;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  min-width: 0;
  width: 100%;
}

.sidebar__toolMenuAction:hover,
.sidebar__toolMenuAction:focus-visible {
  background: rgba(17, 17, 17, 0.12);
  outline: none;
  transform: translateX(2px);
}

.sidebar__toolMenuAction[disabled],
.sidebar__toolMenuAction.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  background: rgba(17, 17, 17, 0.04);
}

.sidebar__toolMenuAction[disabled]:hover,
.sidebar__toolMenuAction[disabled]:focus-visible,
.sidebar__toolMenuAction.is-disabled:hover,
.sidebar__toolMenuAction.is-disabled:focus-visible {
  background: rgba(17, 17, 17, 0.04);
  transform: none;
}

.sidebar__toolMenuAction[disabled] .material-icons-outlined,
.sidebar__toolMenuAction.is-disabled .material-icons-outlined {
  color: #aaaaaa;
}

.sidebar__toolMenuAction .material-icons-outlined {
  font-size: 1.15rem;
  color: #555555;
  margin-top: 0.1rem;
}

.sidebar__toolMenuAction:hover .material-icons-outlined,
.sidebar__toolMenuAction:focus-visible .material-icons-outlined {
  color: #111111;
}

.sidebar__toolMenuLabel {
  flex: 1;
  font-weight: 600;
  color: #111111;
}

.sidebar__toolMenuText {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.3;
  flex: 1;
}

.sidebar__toolMenuDescription {
  font-size: 0.75rem;
  color: #666666;
}

.sidebar__toolMenuEmpty {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: #666666;
}

.sidebar__sublink {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: none;
  background: rgba(17, 17, 17, 0.04);
  color: #111111;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar__sublink:hover,
.sidebar__sublink:focus-visible {
  background: rgba(17, 17, 17, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.sidebar__sublink .material-icons-outlined {
  font-size: 1.2rem;
}

.sidebar__sublink--empty {
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
  transform: none;
}

.sidebar__icon--logout {
  background: rgba(235, 87, 87, 0.18);
}

.sidebar__icon--logout:hover,
.sidebar__icon--logout:focus-visible {
  background: rgba(235, 87, 87, 0.3);
}

.editor__main {
  margin-left: 120px;
  margin-right: 160px;
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 4rem);
  display: flex;
  justify-content: center;
}

.editor__section {
  width: min(100%, 22.5cm);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  overflow-x: hidden;
  position: relative;
}

.editor__section[hidden] {
  display: none;
}

.editor__sectionTitle {
  flex: 1;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.editor__ideasActions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.editor__addCard {
  border: none;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.editor__addCard:hover,
.editor__addCard:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.12);
  outline: none;
}

.editor__addCard .material-icons-outlined {
  font-size: 1.2rem;
}

.editor__helpButton {
  border: none;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.editor__helpButton:hover,
.editor__helpButton:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
  background: rgba(59, 130, 246, 0.15);
  outline: none;
}

.editor__helpButton .material-icons-outlined {
  font-size: 1.2rem;
}

.editor__comingSoon {
  width: 100%;
  padding: 4rem 2rem;
  text-align: center;
  color: #666666;
  font-size: 1.1rem;
}

.ideas__container {
  width: 100%;
  max-width: 100%;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  overflow-x: hidden;
  box-sizing: border-box;
}

.ideas__entitiesPanel {
  width: 240px;
  min-height: 60vh;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
}

.ideas__entitiesSection {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ideas__entitiesTitle {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666666;
}

.ideas__entitiesList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ideas__entityItem {
  padding: 0.6rem 0.75rem;
  background: rgba(17, 17, 17, 0.04);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #111111;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.ideas__entityItem:hover {
  background: rgba(17, 17, 17, 0.08);
  transform: translateX(2px);
}

.ideas__entityName {
  font-weight: 500;
  flex: 1;
}

.ideas__entityCount {
  font-size: 0.75rem;
  color: #666666;
  background: rgba(17, 17, 17, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
}

.ideas__entitiesEmpty {
  font-size: 0.85rem;
  color: #999999;
  font-style: italic;
  padding: 0.5rem 0;
}

.ideas__board {
  flex: 1;
  min-width: 0;
  min-height: 60vh;
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: inset 0 2px 8px rgba(17, 17, 17, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.ideas__content {
  flex: 1;
  min-width: 0;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.ideas__saved {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.ideas__editor {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1.6;
  color: #111111;
  font-family: inherit;
  padding: 0;
  margin-top: 1rem;
  resize: none;
  outline: none;
  min-height: 1.6em;
}

.ideas__editor::placeholder {
  color: #999999;
}

.ideas__aiModal {
  border: none;
  padding: 0;
  background: transparent;
  width: min(90vw, 600px);
  max-width: 90vw;
  max-height: 90vh;
}

.ideas__aiModal::backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.ideas__aiModalCard {
  width: 100%;
  background: #ffffff;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(17, 17, 17, 0.2);
  max-height: 90vh;
  overflow: hidden;
  box-sizing: border-box;
}

.ideas__aiPanelHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.ideas__aiPanelTitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111111;
}

.ideas__aiPanelClose {
  border: none;
  background: transparent;
  color: #666666;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.ideas__aiPanelClose:hover,
.ideas__aiPanelClose:focus-visible {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
  outline: none;
}

.ideas__aiPanelClose .material-icons-outlined {
  font-size: 1.2rem;
}

.ideas__aiPanelContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.5rem;
  overflow-y: auto;
  min-height: 0;
}

.ideas__temperatureControl {
  padding-bottom: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.ideas__temperatureLabel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111111;
}

.ideas__temperatureValue {
  font-size: 0.9rem;
  color: #666666;
  font-weight: 500;
}

.ideas__temperatureSlider {
  width: 100%;
  height: 2px;
  border: 0;
  border-radius: 1px;
  background: rgba(120, 72, 30, 0.5); /* darker brown tone */
  outline: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  padding: 0;
  margin-bottom: 0.5rem;
}

.ideas__temperatureSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111111;
  cursor: pointer;
  border: none;
}

.ideas__temperatureSlider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111111;
  cursor: pointer;
  border: none;
}

.ideas__temperatureLabels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #999999;
  margin-top: 0.25rem;
}

.ideas__aiQuestionContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ideas__aiQuestion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ideas__aiQuestionLabel {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ideas__aiQuestionText {
  font-size: 1rem;
  line-height: 1.6;
  color: #111111;
  margin: 0;
}

.ideas__aiAnswer {
  width: 100%;
  min-height: 120px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #111111;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.ideas__aiAnswer:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ideas__aiAnswer::placeholder {
  color: #999999;
}

.ideas__aiQuestionLabel {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.ideas__aiQuestionText {
  margin: 0 0 1rem 0;
}

.ideas__aiQuestionText:last-child {
  margin-bottom: 0;
}

.ideas__aiPanelActions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  gap: 0.75rem;
}

.ideas__aiSkipButton {
  border: none;
  background: transparent;
  color: #666666;
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.ideas__aiSkipButton:hover:not(:disabled),
.ideas__aiSkipButton:focus-visible:not(:disabled) {
  background: rgba(17, 17, 17, 0.05);
  color: #111111;
  outline: none;
}

.ideas__aiSkipButton:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ideas__aiDoneButton {
  border: none;
  background: #3b82f6;
  color: #ffffff;
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  margin-left: auto;
}

.ideas__aiDoneButton:hover:not(:disabled),
.ideas__aiDoneButton:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
  background: #2563eb;
  outline: none;
}

.ideas__aiDoneButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.idea__card {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.idea__card:hover {
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.12);
}

.idea__cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.idea__cardActions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.idea__cardMove {
  border: none;
  background: transparent;
  color: #666666;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  width: 28px;
  height: 28px;
}

.idea__cardMove:hover:not(:disabled),
.idea__cardMove:focus-visible:not(:disabled) {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
  outline: none;
}

.idea__cardMove:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.idea__cardMove .material-icons-outlined {
  font-size: 1.1rem;
}

.idea__cardDelete {
  border: none;
  background: transparent;
  color: #999999;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.idea__cardDelete:hover,
.idea__cardDelete:focus-visible {
  background: rgba(235, 87, 87, 0.1);
  color: #b91c1c;
  outline: none;
}

.idea__cardDelete .material-icons-outlined {
  font-size: 1.1rem;
}

.idea__cardText {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #111111;
  resize: none;
  font-family: inherit;
  padding: 0;
  margin: 0;
  overflow: hidden;
  min-height: 1.5em;
  height: auto;
  max-height: none;
}

.idea__cardText:focus {
  outline: none;
}

.idea__cardText::placeholder {
  color: #999999;
}

/* Estilos para cards de ideas guardadas */
.idea__card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f9f9f9;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 8px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.idea__card:hover {
  border-color: rgba(17, 17, 17, 0.2);
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.06);
}

.idea__cardContent {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #111111;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: left;
  min-width: 0;
  max-width: 100%;
}

.idea__cardDelete {
  border: none;
  background: transparent;
  color: #999999;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0.125rem;
}

.idea__cardDelete:hover,
.idea__cardDelete:focus-visible {
  background: rgba(235, 87, 87, 0.1);
  color: #b91c1c;
  outline: none;
}

.idea__cardDelete .material-icons-outlined {
  font-size: 1.1rem;
}

.editor.editor--sepia .ideas__board {
  background: rgba(244, 228, 208, 0.5);
  box-shadow: inset 0 2px 8px rgba(125, 90, 52, 0.08);
}

.editor.editor--sepia .idea__card {
  background: #fdf6e7;
  border-color: rgba(125, 90, 52, 0.2);
  color: #3f2f21;
}

.editor.editor--sepia .idea__cardText {
  color: #3f2f21;
}

.editor.editor--sepia .idea__cardText::placeholder {
  color: rgba(63, 47, 33, 0.5);
}

.editor.editor--sepia .ideas__content {
  background: #fdf6e7;
}

.editor.editor--sepia .ideas__saved {
  border-bottom-color: rgba(125, 90, 52, 0.2);
}

.editor.editor--sepia .idea__card {
  background: rgba(244, 228, 208, 0.5);
  border-color: rgba(125, 90, 52, 0.2);
}

.editor.editor--sepia .idea__cardContent {
  color: #3f2f21;
}

.editor.editor--sepia .ideas__editor {
  color: #3f2f21;
}

.editor.editor--sepia .ideas__editor::placeholder {
  color: rgba(63, 47, 33, 0.5);
}

.editor.editor--sepia .idea__cardDelete {
  color: rgba(63, 47, 33, 0.6);
}

.editor.editor--sepia .idea__cardDelete:hover,
.editor.editor--sepia .idea__cardDelete:focus-visible {
  background: rgba(235, 87, 87, 0.15);
  color: #b91c1c;
}

.editor.editor--dark .ideas__board {
  background: rgba(22, 27, 34, 0.6);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.editor.editor--dark .idea__card {
  background: #1f2633;
  border-color: rgba(59, 130, 246, 0.25);
  color: #e6edf6;
}

.editor.editor--dark .idea__cardText {
  color: #e6edf6;
}

.editor.editor--dark .idea__cardText::placeholder {
  color: rgba(154, 165, 177, 0.6);
}

.editor.editor--dark .ideas__content {
  background: #1f2633;
}

.editor.editor--dark .ideas__saved {
  border-bottom-color: rgba(59, 130, 246, 0.25);
}

.editor.editor--dark .idea__card {
  background: rgba(22, 27, 34, 0.6);
  border-color: rgba(59, 130, 246, 0.25);
}

.editor.editor--dark .idea__cardContent {
  color: #e6edf6;
}

.editor.editor--dark .ideas__editor {
  color: #e6edf6;
}

.editor.editor--dark .ideas__editor::placeholder {
  color: rgba(154, 165, 177, 0.6);
}

.editor.editor--dark .idea__cardDelete {
  color: rgba(154, 165, 177, 0.8);
}

.editor.editor--dark .idea__cardDelete:hover,
.editor.editor--dark .idea__cardDelete:focus-visible {
  background: rgba(244, 63, 94, 0.2);
  color: #fca5a5;
}

.editor.editor--dark .idea__cardDelete {
  color: rgba(154, 165, 177, 0.8);
}

.editor.editor--dark .idea__cardDelete:hover,
.editor.editor--dark .idea__cardDelete:focus-visible {
  background: rgba(244, 63, 94, 0.2);
  color: #fca5a5;
}

.editor.editor--sepia .idea__cardDelete {
  color: rgba(63, 47, 33, 0.6);
}

.editor.editor--sepia .idea__cardDelete:hover,
.editor.editor--sepia .idea__cardDelete:focus-visible {
  background: rgba(235, 87, 87, 0.15);
  color: #b91c1c;
}

.editor.editor--sepia .idea__cardMove {
  color: rgba(63, 47, 33, 0.6);
}

.editor.editor--sepia .idea__cardMove:hover:not(:disabled),
.editor.editor--sepia .idea__cardMove:focus-visible:not(:disabled) {
  background: rgba(125, 90, 52, 0.15);
  color: #3f2f21;
}

.editor.editor--dark .idea__cardMove {
  color: rgba(154, 165, 177, 0.8);
}

.editor.editor--dark .idea__cardMove:hover:not(:disabled),
.editor.editor--dark .idea__cardMove:focus-visible:not(:disabled) {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.editor.editor--sepia .ideas__aiModalCard {
  background: #fdf6e7;
  color: #3f2f21;
}

.editor.editor--sepia .ideas__temperatureControl {
  border-bottom-color: rgba(125, 90, 52, 0.2);
}

.editor.editor--sepia .ideas__temperatureLabel {
  color: #3f2f21;
}

.editor.editor--sepia .ideas__temperatureValue {
  color: rgba(63, 47, 33, 0.7);
}

.editor.editor--sepia .ideas__temperatureSlider {
  background: rgba(125, 90, 52, 0.2);
}

.editor.editor--sepia .ideas__temperatureSlider::-webkit-slider-thumb {
  background: #3f2f21;
}

.editor.editor--sepia .ideas__temperatureSlider::-moz-range-thumb {
  background: #3f2f21;
}

.editor.editor--sepia .ideas__temperatureLabels {
  color: rgba(63, 47, 33, 0.7);
}

.editor.editor--sepia .ideas__aiPanelHeader {
  border-bottom-color: rgba(125, 90, 52, 0.2);
}

.editor.editor--sepia .ideas__aiPanelTitle {
  color: #3f2f21;
}

.editor.editor--sepia .ideas__aiQuestionText {
  color: #3f2f21;
}

.editor.editor--sepia .ideas__aiAnswer {
  background: #ffffff;
  border-color: rgba(125, 90, 52, 0.25);
  color: #3f2f21;
}

.editor.editor--sepia .ideas__aiAnswer:focus {
  border-color: rgba(125, 90, 52, 0.4);
  box-shadow: 0 0 0 3px rgba(125, 90, 52, 0.1);
}

.editor.editor--dark .ideas__aiModalCard {
  background: #1f2633;
  color: #e6edf6;
}

.editor.editor--dark .ideas__temperatureControl {
  border-bottom-color: rgba(59, 130, 246, 0.25);
}

.editor.editor--dark .ideas__temperatureLabel {
  color: #e6edf6;
}

.editor.editor--dark .ideas__temperatureValue {
  color: rgba(154, 165, 177, 0.8);
}

.editor.editor--dark .ideas__temperatureSlider {
  background: rgba(154, 165, 177, 0.2);
}

.editor.editor--dark .ideas__temperatureSlider::-webkit-slider-thumb {
  background: #e6edf6;
}

.editor.editor--dark .ideas__temperatureSlider::-moz-range-thumb {
  background: #e6edf6;
}

.editor.editor--dark .ideas__temperatureLabels {
  color: rgba(154, 165, 177, 0.8);
}

.editor.editor--dark .ideas__aiPanelHeader {
  border-bottom-color: rgba(59, 130, 246, 0.25);
}

.editor.editor--dark .ideas__aiPanelTitle {
  color: #e6edf6;
}

.editor.editor--dark .ideas__aiQuestionText {
  color: #e6edf6;
}

.editor.editor--dark .ideas__aiAnswer {
  background: rgba(36, 44, 59, 0.6);
  border-color: rgba(59, 130, 246, 0.25);
  color: #e6edf6;
}

.editor.editor--dark .ideas__aiAnswer:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.editor.editor--dark .ideas__aiAnswer::placeholder {
  color: rgba(154, 165, 177, 0.6);
}

.editor.editor--sepia .ideas__aiSkipButton {
  color: rgba(63, 47, 33, 0.7);
}

.editor.editor--sepia .ideas__aiSkipButton:hover:not(:disabled),
.editor.editor--sepia .ideas__aiSkipButton:focus-visible:not(:disabled) {
  background: rgba(125, 90, 52, 0.1);
  color: #3f2f21;
}

.editor.editor--dark .ideas__aiSkipButton {
  color: rgba(154, 165, 177, 0.8);
}

.editor.editor--dark .ideas__aiSkipButton:hover:not(:disabled),
.editor.editor--dark .ideas__aiSkipButton:focus-visible:not(:disabled) {
  background: rgba(36, 44, 59, 0.6);
  color: #e6edf6;
}

.editor.editor--sepia .ideas__entitiesPanel {
  background: #fdf6e7;
  border-color: rgba(125, 90, 52, 0.2);
}

.editor.editor--sepia .ideas__entitiesTitle {
  color: rgba(63, 47, 33, 0.8);
}

.editor.editor--sepia .ideas__entityItem {
  background: rgba(125, 90, 52, 0.08);
  color: #3f2f21;
}

.editor.editor--sepia .ideas__entityItem:hover {
  background: rgba(125, 90, 52, 0.15);
}

.editor.editor--sepia .ideas__entityCount {
  background: rgba(125, 90, 52, 0.2);
  color: #3f2f21;
}

.editor.editor--dark .ideas__entitiesPanel {
  background: #1f2633;
  border-color: rgba(59, 130, 246, 0.25);
}

.editor.editor--dark .ideas__entitiesTitle {
  color: rgba(154, 165, 177, 0.9);
}

.editor.editor--dark .ideas__entityItem {
  background: rgba(36, 44, 59, 0.6);
  color: #e6edf6;
}

.editor.editor--dark .ideas__entityItem:hover {
  background: rgba(36, 44, 59, 0.8);
}

.editor.editor--dark .ideas__entityCount {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

@media (max-width: 820px) {
  .ideas__container {
    flex-direction: column;
  }

  .ideas__entitiesPanel {
    width: 100%;
    order: -1;
  }

  .ideas__aiModal {
    width: 95vw;
    max-height: 95vh;
  }

  .ideas__board {
    padding: 1rem;
  }
}

.editor__workspace {
  width: min(100%, 22.5cm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.editor__meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.editor__statusBar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.editor__statusBar #status {
  flex: 1;
  align-self: auto;
}

.editor__wordCount {
  margin: 0 0 0 auto;
  font-size: 0.9rem;
  color: #858585;
}

.editor__replacementHighlight {
  background: rgba(59, 130, 246, 0.28);
  border-radius: 0.2em;
  padding: 0 0.15em;
  transition: background 0.3s ease, color 0.3s ease;
}

.editor__back {
  border: none;
  background: transparent;
  color: #666666;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}

.editor__back:hover,
.editor__back:focus-visible {
  color: #111111;
  text-decoration: underline;
}

.editor__titleInput {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.editor__titleInput:focus-visible {
  outline: none;
  border-bottom-color: #111111;
}

.editor__toneToggle,
.editor__soundToggle,
.editor__fontToggle {
  border: none;
  background: rgba(17, 17, 17, 0.05);
  color: #463628;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.editor__toneToggle:hover,
.editor__toneToggle:focus-visible,
.editor__soundToggle:hover,
.editor__soundToggle:focus-visible,
.editor__fontToggle:hover,
.editor__fontToggle:focus-visible {
  background: rgba(17, 17, 17, 0.12);
  color: #111111;
  outline: none;
}

.editor__toneToggle:focus-visible,
.editor__soundToggle:focus-visible,
.editor__fontToggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.18);
}

.editor__toneToggle:active,
.editor__soundToggle:active,
.editor__fontToggle:active {
  transform: scale(0.97);
}

.editor__toneToggle[aria-pressed='true'],
.editor__soundToggle[aria-pressed='true'],
.editor__fontToggle[aria-pressed='true'] {
  background: #f0e0c7;
  color: #5c3d1c;
  box-shadow: 0 12px 28px rgba(120, 83, 40, 0.18);
}

.editor__toneToggle .material-icons-outlined,
.editor__soundToggle .material-icons-outlined,
.editor__fontToggle .material-icons-outlined {
  font-size: 1.2rem;
}

.editor__soundToggle {
  margin-left: -5px;
}

.editor__fontToggle {
  margin-left: -5px;
}

.editor__toolsGroup {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.editor__toolsToggle {
  border: none;
  background: rgba(17, 17, 17, 0.05);
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.editor__toolsToggle:hover,
.editor__toolsToggle:focus-visible {
  background: rgba(17, 17, 17, 0.12);
  outline: none;
}

.editor__toolsToggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.18);
}

.editor__toolsToggle:active {
  transform: scale(0.97);
}

.editor__toolsToggle.is-active {
  background: rgba(17, 17, 17, 0.15);
}

.editor__toolsToggle .material-icons-outlined {
  font-size: 1.2rem;
}

.editor__toolMenuWrapper {
  position: relative;
}

.editor__toolMenu {
  position: fixed;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.16);
  z-index: 60;
  backdrop-filter: blur(10px);
}

.editor__toolMenu[hidden] {
  display: none;
}

.editor__toolMenuAction {
  border: none;
  background: rgba(17, 17, 17, 0.04);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.85rem;
  color: #111111;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  min-width: 0;
  width: 100%;
}

.editor__toolMenuAction:hover,
.editor__toolMenuAction:focus-visible {
  background: rgba(17, 17, 17, 0.12);
  outline: none;
  transform: translateX(2px);
}

.editor__toolMenuAction[disabled],
.editor__toolMenuAction.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  background: rgba(17, 17, 17, 0.04);
}

.editor__toolMenuAction[disabled]:hover,
.editor__toolMenuAction[disabled]:focus-visible,
.editor__toolMenuAction.is-disabled:hover,
.editor__toolMenuAction.is-disabled:focus-visible {
  background: rgba(17, 17, 17, 0.04);
  transform: none;
}

.editor__toolMenuAction[disabled] .material-icons-outlined,
.editor__toolMenuAction.is-disabled .material-icons-outlined {
  color: #aaaaaa;
}

.editor__toolMenuAction .material-icons-outlined {
  font-size: 1.15rem;
  color: #555555;
  margin-top: 0.1rem;
}

.editor__toolMenuAction:hover .material-icons-outlined,
.editor__toolMenuAction:focus-visible .material-icons-outlined {
  color: #111111;
}

.editor__toolMenuLabel {
  flex: 1;
  font-weight: 600;
  color: #111111;
}

.editor__toolMenuText {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.3;
  flex: 1;
}

.editor__toolMenuDescription {
  font-size: 0.75rem;
  color: #666666;
}

.editor__toolMenuEmpty {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: #666666;
}

.editor-navAvatar--image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.editor-navAvatar--fallback {
  font-size: 1.8rem;
  color: #666666;
}

.editorProfileModal {
  border: none;
  padding: 0;
  background: transparent;
}

.editorProfileModal::backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.editorProfileCard {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem;
  width: min(420px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 28px 60px rgba(17, 17, 17, 0.18);
}

.editorProfileHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.editorProfileHeader h2 {
  margin: 0;
  font-size: 1.25rem;
}

.editorProfileEmail {
  margin: 0.25rem 0 0;
  color: #666666;
  font-size: 0.9rem;
}

.editorProfileClose {
  border: none;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 50%;
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.editorProfileClose:hover,
.editorProfileClose:focus-visible {
  background: rgba(17, 17, 17, 0.14);
  outline: none;
}

.editorProfileSection {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.editorProfileAvatarWrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.08);
}

.editorProfileAvatar {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.editorProfileAvatar--image {
  object-fit: cover;
  border-radius: 50%;
}

.editorProfileAvatarActions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.editorProfileAction {
  border: none;
  background: rgba(17, 17, 17, 0.06);
  color: #111111;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.editorProfileAction:hover,
.editorProfileAction:focus-visible {
  background: rgba(17, 17, 17, 0.12);
  outline: none;
}

.editorProfileAction--muted {
  background: rgba(17, 17, 17, 0.04);
  color: #555555;
}

.editorProfileAction--muted:hover,
.editorProfileAction--muted:focus-visible {
  background: rgba(17, 17, 17, 0.1);
}

.editorProfileSection label {
  font-weight: 600;
}

.editorProfileSection input[type='text'] {
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
}

.editorProfileSection input[type='text']:focus-visible {
  outline: none;
  border-color: rgba(17, 17, 17, 0.3);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.editorProfileHint {
  margin: 0;
  font-size: 0.8rem;
  color: #777777;
}

.editorProfileFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.editorProfilePrimary {
  border: none;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.editorProfilePrimary:hover,
.editorProfilePrimary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.18);
  outline: none;
}

.editorProfileLogout {
  margin: 0;
}

.editorProfileLogoutButton {
  border: none;
  background: rgba(235, 87, 87, 0.18);
  color: #b91c1c;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.editorProfileLogoutButton:hover,
.editorProfileLogoutButton:focus-visible {
  background: rgba(235, 87, 87, 0.28);
  outline: none;
}

.editor__toolbar {
  position: fixed;
  top: clamp(2rem, 6vw, 4rem);
  right: clamp(2rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.editor__toolbar[hidden] {
  display: none !important;
}

.editor__toolbar::before,
.editor__toolbar::after {
  content: '';
  width: 1px;
  height: 32px;
  background: rgba(17, 17, 17, 0.1);
  display: block;
}

.toolbar__group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
}

.toolbar__group button {
  border-radius: 0;
  border: none;
  background: transparent;
  color: #111111;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
  min-height: auto;
}

.toolbar__group button {
  cursor: pointer;
}

.toolbar__group button:hover,
.toolbar__group button:focus-visible {
  color: #000000;
}

.editor__toolbar button:focus-visible {
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.toolbar__group button:focus-visible {
  outline: none;
}

.toolbar__group button.is-active {
  color: #000000;
  font-weight: 600;
}

.toolbar__icon {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
}

.toolbar__group--stack {
  flex-direction: column;
  gap: 0.35rem;
}

.toolbar__group--combined {
  gap: 0.5rem;
}

.toolbar__block-icon {
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
}

.toolbar__group--combined button[data-block].is-active .toolbar__block-icon {
  color: #111111;
  font-weight: 600;
}

.toolbar__group--combined button[data-block]:hover .toolbar__block-icon,
.toolbar__group--combined button[data-block]:focus-visible .toolbar__block-icon {
  color: #111111;
}

.toolbar__group--stack button {
  font-size: 1rem;
  padding: 0;
  color: rgba(17, 17, 17, 0.5);
}

.toolbar__group--stack button:hover,
.toolbar__group--stack button:focus-visible {
  transform: scale(1.05);
  transform-origin: center;
  color: #111111;
}

.toolbar__group--stack button.is-active {
  position: relative;
}

.toolbar__group--select {
  order: -1;
}

.toolbar__group--select select {
  border-bottom: none;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(17, 17, 17, 0.65);
}

.toolbar__group--select select:focus-visible {
  border-bottom: none;
  color: #111111;
}

.selection-menu {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  width: max-content;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.12);
  transform: translate(-50%, -120%);
  z-index: 10;
  backdrop-filter: blur(8px);
}

.selection-menu__section {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.selection-menu__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666666;
}

.selection-menu__tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.selection-menu__tool {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.selection-menu__tool .material-icons-outlined {
  font-size: 1.2rem;
  color: #666666;
  margin-top: 0.05rem;
}

.selection-menu__tool:hover .material-icons-outlined,
.selection-menu__tool:focus-visible .material-icons-outlined {
  color: #111111;
}

.selection-menu__toolText {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.35;
}

.selection-menu__label {
  font-size: 0.9rem;
}

.selection-menu__description {
  font-size: 0.75rem;
  color: #666666;
}

.selection-menu__empty {
  font-size: 0.85rem;
  color: #888888;
  padding: 0.2rem 0;
}

.selection-menu__tools li {
  margin: 0;
}

.selection-menu__tool {
  width: 100%;
  background: rgba(17, 17, 17, 0.04);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: #111111;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.selection-menu__tool:hover,
.selection-menu__tool:focus-visible {
  background: rgba(17, 17, 17, 0.08);
  border-color: rgba(17, 17, 17, 0.18);
  outline: none;
}

.selection-menu__tool[disabled],
.selection-menu__tool.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
  background: rgba(17, 17, 17, 0.04);
  border-color: rgba(17, 17, 17, 0.06);
  color: #777777;
}

.selection-menu__tool[disabled] .material-icons-outlined,
.selection-menu__tool.is-disabled .material-icons-outlined {
  color: #aaaaaa;
}

.selection-menu__tool[disabled]:hover,
.selection-menu__tool[disabled]:focus-visible,
.selection-menu__tool.is-disabled:hover,
.selection-menu__tool.is-disabled:focus-visible {
  background: rgba(17, 17, 17, 0.04);
  border-color: rgba(17, 17, 17, 0.06);
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.editor__page {
  width: 100%;
  aspect-ratio: 210 / 297;
  padding: 2.5rem 2.2rem;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 3px 10px rgba(17, 17, 17, 0.12), 0 0 0 1px rgba(17, 17, 17, 0.04);
  line-height: 1.6;
  font-size: 1.05rem;
  box-sizing: border-box;
  color: #111111;
}

.editor__page:focus {
  outline: none;
}

.editor__emptyTip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.editor__emptyTip[hidden] {
  display: none;
}

.editor__emptyTipText {
  margin: 0;
  font-size: 1rem;
  color: #888888;
  text-align: center;
  font-style: italic;
}

.editor__emptyTipLink {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #3b82f6;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-style: normal;
  font-weight: 500;
  pointer-events: auto;
  transition: color 0.2s ease;
}

.editor__emptyTipLink:hover,
.editor__emptyTipLink:focus-visible {
  color: #2563eb;
  outline: none;
}

.editor__page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.editor__page h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.editor__page blockquote {
  border-left: 4px solid #e5e5e5;
  padding-left: 1rem;
  color: #494949;
  margin: 1.5rem 0;
  font-style: italic;
}

.editor__page p {
  margin: 0 0 1rem 0;
}

#status {
  align-self: flex-start;
  min-height: 1.5rem;
  font-size: 0.9rem;
  color: #858585;
}

#status.error {
  color: #bb1d1d;
}

#status.success {
  color: #1d8f52;
}

.editor.editor--sepia {
  background: #f4ede2;
  color: #3f2f21;
}

.editor.editor--sepia .sidebar {
  background: rgba(244, 228, 208, 0.92);
  border-right-color: rgba(125, 90, 52, 0.25);
}

.editor.editor--sepia .sidebar__logo {
  background: rgba(255, 249, 239, 0.9);
  border-color: rgba(125, 90, 52, 0.25);
  color: #3f2f21;
}

.editor.editor--sepia .sidebar__separator {
  background: rgba(125, 90, 52, 0.2);
}

.editor.editor--sepia .sidebar__icon:not(.sidebar__icon--logout),
.editor.editor--sepia .sidebar__sublink {
  background: rgba(125, 90, 52, 0.12);
  color: #3f2f21;
}

.editor.editor--sepia .sidebar__icon:not(.sidebar__icon--logout):hover,
.editor.editor--sepia .sidebar__icon:not(.sidebar__icon--logout):focus-visible,
.editor.editor--sepia .sidebar__icon:not(.sidebar__icon--logout).is-active,
.editor.editor--sepia .sidebar__sublink:hover,
.editor.editor--sepia .sidebar__sublink:focus-visible {
  background: rgba(125, 90, 52, 0.22);
  transform: translateY(-2px);
}

.editor.editor--sepia .editor__main {
  color: inherit;
}

.editor.editor--sepia .editor__back {
  color: rgba(85, 64, 45, 0.8);
}

.editor.editor--sepia .editor__back:hover,
.editor.editor--sepia .editor__back:focus-visible {
  color: #2f2418;
}

.editor.editor--sepia .editor__titleInput {
  border-bottom-color: rgba(125, 90, 52, 0.35);
  color: inherit;
}

.editor.editor--sepia .editor__titleInput:focus-visible {
  border-bottom-color: #7d5a34;
}

.editor.editor--sepia .editor__toneToggle,
.editor.editor--sepia .editor__soundToggle,
.editor.editor--sepia .editor__fontToggle {
  background: rgba(125, 90, 52, 0.16);
  color: #3f2f21;
}

.editor.editor--sepia .editor__toneToggle:hover,
.editor.editor--sepia .editor__toneToggle:focus-visible,
.editor.editor--sepia .editor__soundToggle:hover,
.editor.editor--sepia .editor__soundToggle:focus-visible,
.editor.editor--sepia .editor__fontToggle:hover,
.editor.editor--sepia .editor__fontToggle:focus-visible {
  background: rgba(125, 90, 52, 0.26);
  color: #2b1f13;
}

.editor.editor--sepia .editor__toneToggle[aria-pressed='true'],
.editor.editor--sepia .editor__soundToggle[aria-pressed='true'],
.editor.editor--sepia .editor__fontToggle[aria-pressed='true'] {
  background: #f1e3cf;
  color: #422b15;
  box-shadow: 0 12px 28px rgba(120, 83, 40, 0.2);
}

.editor.editor--sepia .editor__toolsToggle {
  background: rgba(125, 90, 52, 0.16);
  color: #3f2f21;
}

.editor.editor--sepia .editor__toolsToggle:hover,
.editor.editor--sepia .editor__toolsToggle:focus-visible {
  background: rgba(125, 90, 52, 0.26);
  color: #2b1f13;
}

.editor.editor--sepia .editor__toolsToggle.is-active {
  background: rgba(125, 90, 52, 0.22);
}

.editor.editor--sepia .editor__toolbar::before,
.editor.editor--sepia .editor__toolbar::after {
  background: rgba(125, 90, 52, 0.25);
}

.editor.editor--sepia .toolbar__group button {
  color: rgba(63, 47, 33, 0.8);
}

.editor.editor--sepia .toolbar__group button:hover,
.editor.editor--sepia .toolbar__group button:focus-visible,
.editor.editor--sepia .toolbar__group button.is-active {
  color: #2f2418;
}

.editor.editor--sepia .toolbar__block-icon {
  color: rgba(63, 47, 33, 0.6);
}

.editor.editor--sepia .toolbar__group--combined button[data-block].is-active .toolbar__block-icon,
.editor.editor--sepia .toolbar__group--combined button[data-block]:hover .toolbar__block-icon,
.editor.editor--sepia .toolbar__group--combined button[data-block]:focus-visible .toolbar__block-icon {
  color: #2f2418;
}

.editor.editor--sepia .selection-menu {
  background: rgba(253, 246, 231, 0.98);
  border-color: rgba(125, 90, 52, 0.22);
  box-shadow: 0 20px 40px rgba(125, 90, 52, 0.18);
}

.editor.editor--sepia .sidebar__toolMenu,
.editor.editor--sepia .editor__toolMenu {
  background: rgba(253, 246, 231, 0.98);
  border-color: rgba(125, 90, 52, 0.22);
  box-shadow: 0 20px 40px rgba(125, 90, 52, 0.2);
}

.editor.editor--sepia .sidebar__toolMenuAction,
.editor.editor--sepia .editor__toolMenuAction {
  background: rgba(125, 90, 52, 0.12);
  color: #3f2f21;
}

.editor.editor--sepia .sidebar__toolMenuAction:hover,
.editor.editor--sepia .sidebar__toolMenuAction:focus-visible,
.editor.editor--sepia .editor__toolMenuAction:hover,
.editor.editor--sepia .editor__toolMenuAction:focus-visible {
  background: rgba(125, 90, 52, 0.22);
  color: #2b1f13;
}

.editor.editor--sepia .sidebar__toolMenuAction[disabled],
.editor.editor--sepia .sidebar__toolMenuAction.is-disabled,
.editor.editor--sepia .editor__toolMenuAction[disabled],
.editor.editor--sepia .editor__toolMenuAction.is-disabled {
  background: rgba(125, 90, 52, 0.12);
  color: rgba(63, 47, 33, 0.55);
}

.editor.editor--sepia .sidebar__toolMenuAction[disabled] .material-icons-outlined,
.editor.editor--sepia .sidebar__toolMenuAction.is-disabled .material-icons-outlined,
.editor.editor--sepia .editor__toolMenuAction[disabled] .material-icons-outlined,
.editor.editor--sepia .editor__toolMenuAction.is-disabled .material-icons-outlined {
  color: rgba(63, 47, 33, 0.45);
}

.editor.editor--sepia .sidebar__toolMenuAction .material-icons-outlined,
.editor.editor--sepia .editor__toolMenuAction .material-icons-outlined {
  color: rgba(63, 47, 33, 0.65);
}

.editor.editor--sepia .sidebar__toolMenuAction:hover .material-icons-outlined,
.editor.editor--sepia .sidebar__toolMenuAction:focus-visible .material-icons-outlined,
.editor.editor--sepia .editor__toolMenuAction:hover .material-icons-outlined,
.editor.editor--sepia .editor__toolMenuAction:focus-visible .material-icons-outlined {
  color: #2f2418;
}

.editor.editor--sepia .sidebar__toolMenuLabel,
.editor.editor--sepia .editor__toolMenuLabel {
  color: #3f2f21;
}

.editor.editor--sepia .sidebar__toolMenuDescription,
.editor.editor--sepia .editor__toolMenuDescription {
  color: rgba(63, 47, 33, 0.7);
}

.editor.editor--sepia .sidebar__toolMenuEmpty,
.editor.editor--sepia .editor__toolMenuEmpty {
  color: rgba(63, 47, 33, 0.7);
}

.editor.editor--sepia .selection-menu__title {
  color: rgba(63, 47, 33, 0.7);
}

.editor.editor--sepia .selection-menu__tool {
  background: rgba(125, 90, 52, 0.12);
  border-color: rgba(125, 90, 52, 0.2);
  color: #3f2f21;
}

.editor.editor--sepia .selection-menu__tool:hover,
.editor.editor--sepia .selection-menu__tool:focus-visible {
  background: rgba(125, 90, 52, 0.22);
  border-color: rgba(125, 90, 52, 0.32);
}

.editor.editor--sepia .selection-menu__tool[disabled],
.editor.editor--sepia .selection-menu__tool.is-disabled {
  background: rgba(125, 90, 52, 0.12);
  border-color: rgba(125, 90, 52, 0.2);
  color: rgba(63, 47, 33, 0.55);
}

.editor.editor--sepia .selection-menu__tool[disabled] .material-icons-outlined,
.editor.editor--sepia .selection-menu__tool.is-disabled .material-icons-outlined {
  color: rgba(63, 47, 33, 0.45);
}

.editor.editor--sepia .thesaurus__output {
  background: rgba(125, 90, 52, 0.1);
  border-color: rgba(125, 90, 52, 0.2);
  color: #3f2f21;
}

.editor.editor--sepia .thesaurus__hint,
.editor.editor--sepia .thesaurus__pos {
  color: rgba(63, 47, 33, 0.65);
}

.editor.editor--sepia .thesaurus__term {
  background: rgba(125, 90, 52, 0.26);
  color: #2b1f13;
}

.editor.editor--sepia .thesaurus__term:hover,
.editor.editor--sepia .thesaurus__term:focus-visible {
  background: rgba(125, 90, 52, 0.38);
  color: #1f160e;
}

.editor.editor--sepia .thesaurus__term--applied {
  background: rgba(125, 90, 52, 0.48);
  color: #1f160e;
}

.editor.editor--sepia .editor__replacementHighlight {
  background: rgba(125, 90, 52, 0.34);
  color: #2b1f13;
}

.editor.editor--sepia .selection-menu__tool .material-icons-outlined {
  color: rgba(63, 47, 33, 0.65);
}

.editor.editor--sepia .selection-menu__tool:hover .material-icons-outlined,
.editor.editor--sepia .selection-menu__tool:focus-visible .material-icons-outlined {
  color: #2f2418;
}

.editor.editor--sepia .selection-menu__description {
  color: rgba(63, 47, 33, 0.68);
}

.editor.editor--sepia .editor__page {
  background: #fdf6e7;
  color: #3f2f21;
  box-shadow: 0 3px 10px rgba(125, 90, 52, 0.12), 0 0 0 1px rgba(125, 90, 52, 0.04);
}

.editor.editor--sepia .editor__page blockquote {
  border-left-color: rgba(173, 122, 58, 0.4);
  color: #5d4832;
}

.editor.editor--sepia .editor__emptyTipText {
  color: #81623a;
}

.editor.editor--sepia .editor__emptyTipLink {
  color: #9c6f3a;
}

.editor.editor--sepia .editor__emptyTipLink:hover,
.editor.editor--sepia .editor__emptyTipLink:focus-visible {
  color: #7d5a34;
}

.editor.editor--sepia #status {
  color: #81623a;
}

.editor.editor--sepia .editor__wordCount {
  color: #81623a;
}

.editor.editor--sepia .character-editor {
  background: rgba(244, 228, 208, 0.5);
  border-color: rgba(125, 90, 52, 0.25);
}

.editor.editor--sepia .character-editor__avatar-placeholder {
  background: rgba(125, 90, 52, 0.12);
  color: #7d5a34;
}

.editor.editor--sepia .character-editor__name {
  color: #3f2f21;
}

.editor.editor--sepia .character-editor__description {
  background: rgba(255, 249, 239, 0.9);
  border-color: rgba(125, 90, 52, 0.25);
  color: #3f2f21;
}

.editor.editor--sepia .character-editor__description:focus {
  border-color: rgba(125, 90, 52, 0.4);
  box-shadow: 0 0 0 3px rgba(125, 90, 52, 0.15);
}
.editor.editor--dark {
  background: #0d1117;
  color: #e6edf6;
}

.editor.editor--dark .sidebar {
  background: rgba(13, 17, 23, 0.94);
  border-right-color: #1f2633;
}

.editor.editor--dark .sidebar__logo {
  background: rgba(22, 27, 34, 0.9);
  border-color: #1f2633;
  color: #e6edf6;
}

.editor.editor--dark .sidebar__separator {
  background: rgba(255, 255, 255, 0.15);
}

.editor.editor--dark .sidebar__icon:not(.sidebar__icon--logout),
.editor.editor--dark .sidebar__sublink {
  background: rgba(36, 44, 59, 0.4);
  color: #e6edf6;
}

.editor.editor--dark .sidebar__icon:not(.sidebar__icon--logout):hover,
.editor.editor--dark .sidebar__icon:not(.sidebar__icon--logout):focus-visible,
.editor.editor--dark .sidebar__icon:not(.sidebar__icon--logout).is-active,
.editor.editor--dark .sidebar__sublink:hover,
.editor.editor--dark .sidebar__sublink:focus-visible {
  background: rgba(59, 130, 246, 0.25);
  color: #e6edf6;
  transform: translateY(-2px);
}

.editor.editor--dark .sidebar__icon .material-icons-outlined,
.editor.editor--dark .sidebar__sublink .material-icons-outlined {
  color: inherit;
}

.editor.editor--dark .sidebar__icon--logout {
  background: rgba(244, 63, 94, 0.45);
  color: #ffffff;
}

.editor.editor--dark .sidebar__icon--logout:hover,
.editor.editor--dark .sidebar__icon--logout:focus-visible {
  background: rgba(248, 113, 113, 0.6);
  color: #ffffff;
}

.editor.editor--dark .editor__main {
  color: inherit;
}

.editor.editor--dark .editor__back {
  color: #9aa5b1;
}

.editor.editor--dark .editor__back:hover,
.editor.editor--dark .editor__back:focus-visible {
  color: #e6edf6;
}

.editor.editor--dark .editor__titleInput {
  border-bottom-color: #1f2633;
  color: inherit;
}

.editor.editor--dark .editor__titleInput:focus-visible {
  border-bottom-color: #3b82f6;
}

.editor.editor--dark .editor__toneToggle,
.editor.editor--dark .editor__soundToggle,
.editor.editor--dark .editor__fontToggle {
  background: rgba(36, 44, 59, 0.6);
  color: #e6edf6;
}

.editor.editor--dark .editor__toneToggle:hover,
.editor.editor--dark .editor__toneToggle:focus-visible,
.editor.editor--dark .editor__soundToggle:hover,
.editor.editor--dark .editor__soundToggle:focus-visible,
.editor.editor--dark .editor__fontToggle:hover,
.editor.editor--dark .editor__fontToggle:focus-visible {
  background: rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

.editor.editor--dark .editor__toneToggle[aria-pressed='true'],
.editor.editor--dark .editor__soundToggle[aria-pressed='true'],
.editor.editor--dark .editor__fontToggle[aria-pressed='true'] {
  background: rgba(59, 130, 246, 0.45);
  color: #ffffff;
}

.editor.editor--dark .editor__toolsToggle {
  background: rgba(36, 44, 59, 0.6);
  color: #e6edf6;
}

.editor.editor--dark .editor__toolsToggle:hover,
.editor.editor--dark .editor__toolsToggle:focus-visible {
  background: rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

.editor.editor--dark .editor__toolsToggle.is-active {
  background: rgba(59, 130, 246, 0.45);
}

.editor.editor--dark .editor__toolbar::before,
.editor.editor--dark .editor__toolbar::after {
  background: rgba(230, 237, 246, 0.12);
}

.editor.editor--dark .toolbar__group button {
  color: rgba(230, 237, 246, 0.8);
}

.editor.editor--dark .toolbar__group button:hover,
.editor.editor--dark .toolbar__group button:focus-visible,
.editor.editor--dark .toolbar__group button.is-active {
  color: #ffffff;
}

.editor.editor--dark .toolbar__block-icon {
  color: rgba(230, 237, 246, 0.6);
}

.editor.editor--dark .selection-menu {
  background: rgba(22, 27, 34, 0.95);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.editor.editor--dark .selection-menu__title {
  color: rgba(154, 165, 177, 0.8);
}

.editor.editor--dark .selection-menu__tool {
  background: rgba(36, 44, 59, 0.7);
  border-color: rgba(59, 130, 246, 0.25);
  color: #e6edf6;
}

.editor.editor--dark .selection-menu__tool:hover,
.editor.editor--dark .selection-menu__tool:focus-visible {
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(59, 130, 246, 0.45);
}

.editor.editor--dark .selection-menu__tool[disabled],
.editor.editor--dark .selection-menu__tool.is-disabled {
  background: rgba(36, 44, 59, 0.7);
  border-color: rgba(59, 130, 246, 0.25);
  color: rgba(198, 209, 222, 0.7);
}

.editor.editor--dark .selection-menu__tool[disabled] .material-icons-outlined,
.editor.editor--dark .selection-menu__tool.is-disabled .material-icons-outlined {
  color: rgba(154, 165, 177, 0.6);
}

.editor.editor--dark .selection-menu__tool .material-icons-outlined {
  color: rgba(230, 237, 246, 0.8);
}

.editor.editor--dark .selection-menu__tool:hover .material-icons-outlined,
.editor.editor--dark .selection-menu__tool:focus-visible .material-icons-outlined {
  color: #ffffff;
}

.editor.editor--dark .selection-menu__description,
.editor.editor--dark .sidebar__toolMenuDescription {
  color: rgba(154, 165, 177, 0.85);
}

.editor.editor--dark .sidebar__toolMenu,
.editor.editor--dark .editor__toolMenu {
  background: rgba(22, 27, 34, 0.96);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.35);
}

.editor.editor--dark .sidebar__toolMenuAction,
.editor.editor--dark .editor__toolMenuAction {
  background: rgba(36, 44, 59, 0.7);
  color: #e6edf6;
}

.editor.editor--dark .sidebar__toolMenuAction:hover,
.editor.editor--dark .sidebar__toolMenuAction:focus-visible,
.editor.editor--dark .editor__toolMenuAction:hover,
.editor.editor--dark .editor__toolMenuAction:focus-visible {
  background: rgba(59, 130, 246, 0.35);
}

.editor.editor--dark .sidebar__toolMenuAction[disabled],
.editor.editor--dark .sidebar__toolMenuAction.is-disabled,
.editor.editor--dark .editor__toolMenuAction[disabled],
.editor.editor--dark .editor__toolMenuAction.is-disabled {
  background: rgba(36, 44, 59, 0.7);
  color: rgba(198, 209, 222, 0.7);
}

.editor.editor--dark .sidebar__toolMenuAction[disabled] .material-icons-outlined,
.editor.editor--dark .sidebar__toolMenuAction.is-disabled .material-icons-outlined,
.editor.editor--dark .editor__toolMenuAction[disabled] .material-icons-outlined,
.editor.editor--dark .editor__toolMenuAction.is-disabled .material-icons-outlined {
  color: rgba(154, 165, 177, 0.6);
}

.editor.editor--dark .thesaurus__output {
  background: rgba(36, 44, 59, 0.65);
  border-color: rgba(59, 130, 246, 0.25);
  color: #e6edf6;
}

.editor.editor--dark .thesaurus__hint,
.editor.editor--dark .thesaurus__pos {
  color: rgba(154, 165, 177, 0.85);
}

.editor.editor--dark .thesaurus__term {
  background: rgba(59, 130, 246, 0.2);
  color: #e6edf6;
}

.editor.editor--dark .thesaurus__term:hover,
.editor.editor--dark .thesaurus__term:focus-visible {
  background: rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

.editor.editor--dark .thesaurus__term--applied {
  background: rgba(59, 130, 246, 0.5);
  color: #ffffff;
}

.editor.editor--dark .editor__replacementHighlight {
  background: rgba(59, 130, 246, 0.35);
  color: #e6edf6;
}

.editor.editor--dark .editor__page {
  background: #161b22;
  color: #e6edf6;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.editor.editor--dark .editor__page blockquote {
  border-left-color: rgba(59, 130, 246, 0.6);
  color: rgba(230, 237, 246, 0.9);
}

.editor.editor--dark #status {
  color: rgba(154, 165, 177, 0.85);
}

.editor.editor--dark .editor__wordCount {
  color: rgba(154, 165, 177, 0.85);
}

.editor.editor--dark .editor__emptyTipText {
  color: rgba(154, 165, 177, 0.7);
}

.editor.editor--dark .editor__emptyTipLink {
  color: #60a5fa;
}

.editor.editor--dark .editor__emptyTipLink:hover,
.editor.editor--dark .editor__emptyTipLink:focus-visible {
  color: #93c5fd;
}

.editor.editor--dark #status.error {
  color: #f87171;
}

.editor.editor--dark #status.success {
  color: #4ade80;
}

.editor.editor--dark .tool-modal__card {
  background: #1f2633;
  color: #e6edf6;
}

.editor.editor--dark .tool-modal__summary {
  color: #e6edf6;
}

.editor.editor--dark .tool-output {
  background: rgba(36, 44, 59, 0.7);
  color: #e6edf6;
}

.editor.editor--dark .character-editor {
  background: rgba(36, 44, 59, 0.4);
  border-color: rgba(59, 130, 246, 0.25);
}

.editor.editor--dark .character-editor__avatar-placeholder {
  background: rgba(36, 44, 59, 0.7);
  color: rgba(154, 165, 177, 0.8);
}

.editor.editor--dark .character-editor__name {
  color: #e6edf6;
}

.editor.editor--dark .character-editor__description {
  background: rgba(22, 27, 34, 0.8);
  border-color: rgba(59, 130, 246, 0.25);
  color: #e6edf6;
}

.editor.editor--dark .character-editor__description:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.editor.editor--dark .tool-modal__primary,
.editor.editor--dark .tool-actions button {
  background: #3b82f6;
  color: #ffffff;
}

.editor.editor--dark .tool-actions button:hover,
.editor.editor--dark .tool-actions button:focus-visible {
  box-shadow: 0 18px 32px rgba(59, 130, 246, 0.35);
}

.editor.editor--dark .editor-navAvatar {
  background: rgba(36, 44, 59, 0.7);
  color: #e6edf6;
}

.editor.editor--dark .editorProfileCard {
  background: #1f2633;
  color: #e6edf6;
}

.editor.editor--dark .editorProfileEmail {
  color: rgba(154, 165, 177, 0.8);
}

.editor.editor--dark .editorProfileAction,
.editor.editor--dark .editorProfileSection input[type='text'] {
  background: rgba(36, 44, 59, 0.6);
  color: #e6edf6;
  border-color: rgba(230, 237, 246, 0.12);
}

.editor.editor--dark .editorProfileAction--muted {
  background: rgba(36, 44, 59, 0.4);
  color: rgba(230, 237, 246, 0.7);
}

.editor.editor--dark .editorProfileHint {
  color: rgba(154, 165, 177, 0.75);
}

.editor.editor--dark .editorProfilePrimary {
  background: #3b82f6;
  color: #ffffff;
}

.editor.editor--dark .editorProfileLogoutButton {
  background: rgba(244, 63, 94, 0.35);
  color: #fca5a5;
}
@media (max-width: 1100px) {
  .editor__main {
    margin-right: 200px;
  }

  .editor__toolbar {
    right: clamp(1.5rem, 4vw, 3rem);
  }
}

@media (max-width: 980px) {
  .editor__main {
    margin-right: 0;
  }

  .editor__toolbar {
    position: static;
    margin: 2rem auto;
    box-shadow: none;
  }
}

@media (max-width: 820px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }

  .sidebar__content {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .sidebar__home {
    margin-bottom: 0;
  }

  .sidebar__separator {
    width: 1px;
    height: 32px;
    margin: 0 1rem;
  }

  .sidebar__icons {
    flex-direction: row;
    justify-content: flex-start;
  }

  .sidebar__sublist--icons {
    flex-direction: row;
    gap: 0.5rem;
  }

  .editor__main {
    margin: 0;
    padding: 2rem 1.5rem;
  }

  .editor__toolbar {
    margin: 1.5rem auto;
  }
}

@media (max-width: 620px) {
  .editor__page {
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(17, 17, 17, 0.12), 0 0 0 1px rgba(17, 17, 17, 0.04);
    aspect-ratio: auto;
    min-height: 60vh;
  }

  .editor__toneToggle,
  .editor__soundToggle,
  .editor__fontToggle {
    width: auto;
    justify-content: center;
  }

  .editor__toneToggle {
    margin-left: auto;
  }

  .editor__soundToggle {
    margin-left: -5px;
  }

  .editor__fontToggle {
    margin-left: -5px;
  }
}

.workspace {
  background: #ffffff;
  color: #111111;
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.workspace__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.workspace__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.workspace__settingsButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.05);
  color: #444444;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.workspace__settingsButton[hidden] {
  display: none !important;
}

.workspace__settingsButton:hover,
.workspace__settingsButton:focus-visible {
  background: rgba(17, 17, 17, 0.12);
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.12);
  color: #111111;
}

.workspace__settingsButton .material-icons-outlined {
  font-size: 1.4rem;
}

.workspace__actions .workspace__cta {
  align-self: auto;
}

.workspace__titles h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.workspace__subtitle {
  margin: 0.4rem 0 0;
  color: #666666;
}

.workspace__cta {
  align-self: flex-start;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workspace__cta:hover,
.workspace__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.12);
}

.workspace__cta:focus-visible {
  outline: none;
}

.workspace__cta--ghost {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
  box-shadow: none;
}

.workspace__cta--ghost:hover,
.workspace__cta--ghost:focus-visible {
  background: rgba(17, 17, 17, 0.14);
  box-shadow: none;
}

.workspace__userMenuWrapper {
  position: relative;
}

.workspace__userToggle {
  border: none;
  background: rgba(17, 17, 17, 0.05);
  border-radius: 999px;
  padding: 0.3rem 0.5rem 0.3rem 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: #444444;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.workspace__userToggle:hover,
.workspace__userToggle:focus-visible,
.workspace__userToggle[aria-expanded='true'] {
  background: rgba(17, 17, 17, 0.12);
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.12);
}

.workspace__userAvatarImage {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  object-fit: cover;
}

.workspace__userAvatarIcon {
  font-size: 2rem;
  color: #666666;
}

.workspace__profileModal {
  border: none;
  padding: 0;
  background: transparent;
}

.workspace__profileModal::backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.workspace__profileCard {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem;
  width: min(420px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 28px 60px rgba(17, 17, 17, 0.18);
}

.workspace__profileHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.workspace__profileHeader h2 {
  margin: 0;
  font-size: 1.25rem;
}

.workspace__profileEmail {
  margin: 0.25rem 0 0;
  color: #666666;
  font-size: 0.9rem;
}

.workspace__profileClose {
  border: none;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 50%;
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.workspace__profileClose:hover,
.workspace__profileClose:focus-visible {
  background: rgba(17, 17, 17, 0.14);
  outline: none;
}

.workspace__profileSection {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workspace__profileAvatarWrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.08);
}

.workspace__profileAvatarImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.workspace__profileAvatarIcon {
  font-size: 3rem;
  color: #999999;
}

.workspace__profileAvatarActions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.workspace__profileAction {
  border: none;
  background: rgba(17, 17, 17, 0.06);
  color: #111111;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.workspace__profileAction:hover,
.workspace__profileAction:focus-visible {
  background: rgba(17, 17, 17, 0.12);
  outline: none;
}

.workspace__profileAction--muted {
  background: rgba(17, 17, 17, 0.04);
  color: #555555;
}

.workspace__profileAction--muted:hover,
.workspace__profileAction--muted:focus-visible {
  background: rgba(17, 17, 17, 0.1);
}

.workspace__profileAction--admin {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.workspace__profileAction--admin:hover,
.workspace__profileAction--admin:focus-visible {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
}

.workspace__profileSection label {
  font-weight: 600;
}

.workspace__profileSection input[type='text'] {
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
}

.workspace__profileSection input[type='text']:focus-visible {
  outline: none;
  border-color: rgba(17, 17, 17, 0.3);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.workspace__profileHint {
  margin: 0;
  font-size: 0.8rem;
  color: #777777;
}

.workspace__profileRoleBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.workspace__profileFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.workspace__profilePrimary {
  border: none;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workspace__profilePrimary:hover,
.workspace__profilePrimary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.18);
  outline: none;
}

.workspace__profileLogout {
  margin: 0;
}

.workspace__profileLogoutButton {
  border: none;
  background: rgba(235, 87, 87, 0.18);
  color: #b91c1c;
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.workspace__profileLogoutButton:hover,
.workspace__profileLogoutButton:focus-visible {
  background: rgba(235, 87, 87, 0.28);
  outline: none;
}

.workspace__status {
  margin: 0;
  color: #666666;
}

.workspace__status:empty {
  display: none;
}

.workspace__status[data-variant='error'] {
  color: #b91c1c;
}

.workspace__status[data-variant='success'] {
  color: #1d8f52;
}

.workspace__main {
  flex: 1;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 100%;
}

.workspace__list {
  display: flex;
  flex-direction: column;
}

.workspace__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 3rem;
  border: 1px dashed rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.02);
}

.workspace__items {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.workspace__itemCard {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.1);
  aspect-ratio: 210 / 297;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workspace__itemCard:hover,
.workspace__itemCard:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(17, 17, 17, 0.12);
}

.workspace__itemButton {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
  color: inherit;
}

.workspace__itemButton:hover,
.workspace__itemButton:focus-visible {
  outline: none;
}

.workspace__itemMenuWrapper {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workspace__itemMenuToggle {
  border: none;
  background: rgba(17, 17, 17, 0.05);
  border-radius: 999px;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #444444;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.workspace__itemMenuToggle:hover,
.workspace__itemMenuToggle[aria-expanded='true'] {
  background: rgba(17, 17, 17, 0.12);
  color: #111111;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.16);
}

.workspace__itemMenuToggle:focus-visible {
  outline: none;
  background: rgba(17, 17, 17, 0.18);
  color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.18);
}

.workspace__itemMenuToggle:active {
  transform: scale(0.96);
}

.workspace__itemMenuToggle .material-icons-outlined {
  font-size: 1.2rem;
}

.workspace__itemTitle {
  font-weight: 600;
  font-size: 1rem;
  color: #111111;
}

.workspace__itemPreview {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #444444;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 12;
  -webkit-box-orient: vertical;
  white-space: pre-line;
}

.workspace__itemMeta {
  font-size: 0.85rem;
  color: #666666;
}

.workspace__itemButton::before {
  content: '';
  position: absolute;
  inset: 1rem;
  border-left: 3px solid rgba(17, 17, 17, 0.08);
  pointer-events: none;
}

.workspace__itemButton::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.7));
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.workspace__itemButton:hover::after,
.workspace__itemButton:focus-visible::after {
  opacity: 1;
}

@media (max-width: 720px) {
  .workspace__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace__actions {
    width: 100%;
    gap: 0.5rem;
  }

  .workspace__cta {
    align-self: stretch;
    text-align: center;
  }

  .workspace__actions .workspace__cta {
    flex: 1;
  }

  .workspace__userToggle {
    width: 2.5rem;
    height: 2.5rem;
  }

  .workspace__items {
    grid-template-columns: 1fr;
  }
}
.tool-modal {
  border: none;
  padding: 0;
  background: transparent;
  width: min(90vw, 540px);
}

.tool-modal::backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.tool-modal__card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 32px 80px rgba(17, 17, 17, 0.2);
}

.tool-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tool-modal__header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.tool-modal__close {
  border: none;
  background: rgba(17, 17, 17, 0.06);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.tool-modal__close:hover,
.tool-modal__close:focus-visible {
  background: rgba(17, 17, 17, 0.12);
  outline: none;
}

.tool-modal__body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444444;
  padding-bottom: 3rem;
}

.tool-modal__summary {
  margin: 0 0 0.5rem;
}

.tool-modal__hint {
  margin: 0;
  color: #666666;
}

.tool-modal__error {
  margin: 0;
  color: #b91c1c;
  font-weight: 600;
}

.tool-modal__footer {
  display: flex;
  justify-content: flex-end;
}

.tool-modal__primary {
  border: none;
  background: #111111;
  color: #ffffff;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  cursor: pointer;
}

.tool-modal__primary:hover,
.tool-modal__primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(17, 17, 17, 0.18);
  outline: none;
}

.thesaurus {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thesaurus__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.thesaurus__selection {
  margin: 0;
  font-weight: 600;
}

.thesaurus__hint {
  margin: 0;
  font-size: 0.85rem;
  color: #666666;
}

.thesaurus__actions {
  display: flex;
  gap: 0.75rem;
}

.thesaurus__output {
  background: rgba(17, 17, 17, 0.03);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  padding: 1rem;
  min-height: 120px;
}

.thesaurus__result {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.thesaurus__heading {
  margin: 0;
  font-size: 1.1rem;
}

.thesaurus__pos {
  font-size: 0.85rem;
  color: #666666;
  font-style: italic;
}

.thesaurus__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.thesaurus__column {
  flex: 1 1 160px;
}

.thesaurus__column h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.thesaurus__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.thesaurus__list--synonyms {
  list-style: none;
  padding-left: 0;
}

.thesaurus__list li {
  line-height: 1.4;
}

.thesaurus__empty {
  color: #888888;
  font-style: italic;
}

.thesaurus__term {
  border: none;
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.thesaurus__term:hover,
.thesaurus__term:focus-visible {
  background: rgba(17, 17, 17, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.thesaurus__term--applied {
  background: rgba(17, 17, 17, 0.22);
  color: #111111;
}
.tool-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-bottom: 3.5rem;
}

.tool-options {
  display: grid;
  gap: 0.75rem;
}

.tool-option {
  text-align: left;
  background: rgba(17, 17, 17, 0.05);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tool-option:hover,
.tool-option:focus-visible {
  background: rgba(17, 17, 17, 0.1);
  border-color: rgba(17, 17, 17, 0.2);
  outline: none;
}

.tool-option h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.tool-option p {
  margin: 0;
  font-size: 0.9rem;
  color: #555555;
}

.tool-actions {
  display: flex;
  gap: 0.75rem;
}

.tool-actions--bottom-left {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
}

.tool-actions button {
  border: none;
  background: #111111;
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  cursor: pointer;
}

.tool-action--icon {
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.tool-action--icon .material-icons-outlined {
  font-size: 1.2rem;
}

.tool-actions button:hover,
.tool-actions button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.18);
  outline: none;
}

.tool-output {
  min-height: 3rem;
  background: rgba(17, 17, 17, 0.04);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tool-output p {
  margin: 0 0 0.75rem 0;
}

.tool-output p:last-child {
  margin-bottom: 0;
}

.tool-output strong {
  font-weight: 600;
  color: #111111;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.character-editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(17, 17, 17, 0.02);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 12px;
}

.character-editor[hidden] {
  display: none;
}

.character-editor__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.character-editor__avatar-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.character-editor__avatar,
.character-editor__avatar-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.character-editor__avatar-placeholder {
  background: rgba(17, 17, 17, 0.1);
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.character-editor__avatar-placeholder[hidden],
.character-editor__avatar[hidden] {
  display: none !important;
}

.character-editor__avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: #111111;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #ffffff;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.character-editor__avatar-upload:hover,
.character-editor__avatar-upload:focus-within {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.3);
}

.character-editor__avatar-upload input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.character-editor__avatar-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #b91c1c;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.character-editor__avatar-remove:hover,
.character-editor__avatar-remove:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.4);
  outline: none;
}

.character-editor__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111111;
}

.character-editor__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.character-editor__description {
  width: 100%;
  min-height: 150px;
  padding: 0.75rem;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: inherit;
  resize: vertical;
  background: #ffffff;
  color: #111111;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.character-editor__description:focus {
  outline: none;
  border-color: rgba(17, 17, 17, 0.3);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.character-editor__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.character-editor__save {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #111111;
  color: #ffffff;
}

.character-editor__save:hover:not(:disabled),
.character-editor__save:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(17, 17, 17, 0.2);
  outline: none;
}

.character-editor__save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tool-tags {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.tool-tag {
  border: none;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tool-tag:hover:not(:disabled),
.tool-tag:focus-visible:not(:disabled) {
  background: rgba(59, 130, 246, 0.2);
  color: #2563eb;
  transform: translateY(-1px);
  outline: none;
}

.tool-tag:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.editor.editor--dark .tool-tags {
  border-bottom-color: rgba(59, 130, 246, 0.25);
}

.editor.editor--dark .tool-tag {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.editor.editor--dark .tool-tag:hover:not(:disabled),
.editor.editor--dark .tool-tag:focus-visible:not(:disabled) {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.editor.editor--sepia .tool-tags {
  border-bottom-color: rgba(125, 90, 52, 0.2);
}

.editor.editor--sepia .tool-tag {
  background: rgba(125, 90, 52, 0.1);
  color: #7d5a34;
}

.editor.editor--sepia .tool-tag:hover:not(:disabled),
.editor.editor--sepia .tool-tag:focus-visible:not(:disabled) {
  background: rgba(125, 90, 52, 0.2);
  color: #5c3d1c;
}


.workspace__itemDelete .material-icons-outlined {
  font-size: 1.1rem;
  color: #777777;
}


.workspace__itemMenu {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 160px;
  z-index: 20;
  right: 0;
  top: calc(100% + 0.45rem);
  list-style: none;
  margin: 0;
}

.workspace__itemMenu[hidden] {
  display: none;
}

.workspace__itemMenuAction {
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333333;
}

.workspace__itemMenuAction:hover,
.workspace__itemMenuAction:focus-visible {
  background: rgba(235, 87, 87, 0.12);
  color: #b91c1c;
  outline: none;
}
.editor.editor--handwriting .editor__page {
  font-family: 'Caveat', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.35rem;
  line-height: 1.9;
}

.editor.editor--handwriting .editor__fontToggle {
  background: rgba(17, 17, 17, 0.12);
  color: #111111;
}

.editor.editor--handwriting .editor__fontToggle[aria-pressed='true'] {
  background: #f0e0c7;
  color: #5c3d1c;
}

.editor.editor--handwriting .editor__fontToggle .material-icons-outlined {
  transform: rotate(-8deg);
}

.editor.editor--handwriting .selection-menu__description,
.editor.editor--handwriting .sidebar__toolMenuDescription {
  font-family: inherit;
}

/* Settings page styles */
.settings__main {
  display: flex;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.settings__sidebar {
  flex-shrink: 0;
  width: 220px;
}

.settings__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings__navItem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: #666666;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.settings__navItem:hover,
.settings__navItem:focus-visible {
  background: rgba(17, 17, 17, 0.05);
  color: #111111;
  outline: none;
}

.settings__navItem--active {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
  font-weight: 600;
}

.settings__navItem .material-icons-outlined {
  font-size: 1.3rem;
}

.settings__content {
  flex: 1;
  min-width: 0;
}

.settings__loading {
  text-align: center;
  padding: 3rem;
  color: #666666;
}

.settings__section {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
}

.settings__sectionTitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #111111;
}

.settings__sectionDescription {
  font-size: 0.95rem;
  color: #666666;
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

.settings__subsectionTitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem 0;
  color: #111111;
}

.settings__usersList {
  margin-bottom: 2rem;
}

.settings__usersTable {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.1);
}

.settings__usersTable thead {
  background: rgba(17, 17, 17, 0.05);
}

.settings__usersTable th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: #111111;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.settings__usersTable td {
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  color: #333333;
  border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

.settings__usersTable tbody tr:last-child td {
  border-bottom: none;
}

.settings__usersTable tbody tr:hover {
  background: rgba(17, 17, 17, 0.02);
}

.settings__userActions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.settings__userActionButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  border: none;
  background: rgba(17, 17, 17, 0.05);
  color: #666666;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.settings__userActionButton:hover {
  background: rgba(17, 17, 17, 0.12);
  color: #111111;
  transform: translateY(-1px);
}

.settings__userActionButton:active {
  transform: translateY(0);
}

.settings__userActionButton .material-icons-outlined {
  font-size: 1.1rem;
}

.settings__userActionButton--edit:hover {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}

.settings__userActionButton--delete:hover {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.settings__userRole {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.settings__userRole--admin {
  background: rgba(17, 17, 17, 0.1);
  color: #111111;
}

.settings__userRole--regular {
  background: rgba(17, 17, 17, 0.05);
  color: #666666;
}

.settings__modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  width: 100%;
  max-width: 600px;
}

.settings__modal::backdrop {
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(4px);
}

.settings__modalCard {
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 12px 48px rgba(17, 17, 17, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.settings__modalCard .settings__form {
  padding: 2rem;
}

.settings__modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.settings__modalTitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #111111;
}

.settings__modalClose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #666666;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
}

.settings__modalClose:hover {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
}

.settings__modalClose .material-icons-outlined {
  font-size: 1.4rem;
}


.settings__promptSection {
  margin-bottom: 2.5rem;
}

.settings__promptLabel {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: #111111;
  margin-bottom: 0.5rem;
}

.settings__promptDescription {
  font-size: 0.85rem;
  color: #666666;
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.settings__promptTextarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings__promptTextarea:focus {
  outline: none;
  border-color: rgba(17, 17, 17, 0.3);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.settings__promptTextarea--json {
  font-size: 0.85rem;
  line-height: 1.5;
}

.settings__button {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.settings__button--primary {
  background: #111111;
  color: #ffffff;
}

.settings__button--primary:hover,
.settings__button--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.18);
  outline: none;
}

.settings__button--secondary {
  background: rgba(17, 17, 17, 0.08);
  color: #111111;
}

.settings__button--secondary:hover,
.settings__button--secondary:focus-visible {
  background: rgba(17, 17, 17, 0.14);
  outline: none;
}

.settings__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.settings__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.settings__formGroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings__formGroup > label:not(.settings__checkboxLabel) {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111111;
}

.settings__input {
  padding: 0.75rem;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.settings__input:focus {
  outline: none;
  border-color: rgba(17, 17, 17, 0.3);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.settings__formActions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.settings__checkboxLabel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
  color: #111111;
  width: 100%;
  text-align: left;
}

.settings__checkboxLabel span {
  flex: 1;
}

.settings__checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: #111111;
  flex-shrink: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .settings__main {
    flex-direction: column;
  }

  .settings__sidebar {
    width: 100%;
  }

  .settings__nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .settings__navItem {
    white-space: nowrap;
  }
}
