:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2630;
  background: #f7f8fa;
}

body {
  margin: 0;
}

.auth-gate {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  background: #ffffff;
  border: 1px solid #d8dee7;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(29, 38, 48, 0.08);
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  max-width: 440px;
  padding: 28px;
  width: 100%;
}

.auth-brand h1 {
  font-size: 30px;
  margin: 0 0 4px;
}

.auth-brand p,
.auth-status,
.account-card p {
  color: #667085;
  margin: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 4px 0;
}

.auth-actions {
  display: grid;
  gap: 10px;
}

.auth-actions button {
  width: 100%;
}

.primary-action {
  background: #1662c4;
  border-color: #1662c4;
  color: #ffffff;
}

.auth-status {
  min-height: 20px;
}

.popup {
  width: 340px;
  background: #ffffff;
}

.sidepanel {
  background: #f5f8fb;
  min-width: 320px;
}

main {
  padding: 16px;
}

h1 {
  margin: 0 0 14px;
  font-size: 20px;
}

button,
a.source {
  border: 1px solid #ccd4df;
  border-radius: 6px;
  background: #ffffff;
  color: #1d2630;
  cursor: pointer;
  font: 600 15px/1.25 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 34px;
  padding: 9px 12px;
  text-decoration: none;
}

a.source {
  align-items: center;
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  text-align: center;
}

button:hover,
a.source:hover {
  background: #eef3f8;
}

a.source.disabled-source {
  border-color: #e2b9b9;
  color: #9f1d1d;
  cursor: not-allowed;
  pointer-events: none;
}

button:disabled,
button.muted {
  background: #e8edf3;
  border-color: #d3dce7;
  color: #8492a4;
  cursor: not-allowed;
}

button:disabled:hover,
button.muted:hover {
  background: #e8edf3;
}

button.danger {
  border-color: #e2b9b9;
  color: #9f1d1d;
}

button.danger:hover {
  background: #fff0f0;
}

button.listen.unavailable {
  border-color: #e2b9b9;
  color: #9f1d1d;
  cursor: not-allowed;
  pointer-events: none;
}

button.listen {
  min-width: 68px;
}

button.listen.is-paused {
  background: #e8edf3;
  border-color: #ccd4df;
  color: #1d2630;
  font-weight: 800;
}

button.translate.is-visible {
  background: #ffffff;
  border-color: #e2b9b9;
  color: #9f1d1d;
}

button.translate.is-visible:hover {
  background: #fff0f0;
}

button.primary {
  background: #1662c4;
  border-color: #1662c4;
  color: #ffffff;
  width: 100%;
}

button.primary.is-flashing {
  background: #9aa6b2;
  border-color: #9aa6b2;
  color: #ffffff;
}

.popup button:not(.primary) {
  margin-top: 8px;
  width: 100%;
}

#status {
  min-height: 42px;
  margin: 12px 0;
  color: #415163;
  font-size: 13px;
  line-height: 1.4;
}

.panel-shell {
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  min-height: 100vh;
  padding: 14px 24px;
}

.panel-header {
  border-bottom: 1px solid #d9e3ee;
  padding-bottom: 10px;
}

.panel-header h1 {
  margin: 0;
}

.panel-header p {
  color: #607083;
  font-size: 12px;
  margin: 3px 0 0;
}

.authorize-row {
  display: grid;
}

.panel-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.panel-controls .primary {
  width: auto;
}

.panel-controls button:last-child {
  min-width: 82px;
}

.is-hidden {
  display: none !important;
}

button.wide {
  width: 100%;
}

.panel-status {
  background: #ffffff;
  border: 1px solid #d9e3ee;
  border-radius: 8px;
  box-sizing: border-box;
  color: #35465a;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  max-height: 96px;
  min-height: 58px;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 10px;
  scrollbar-width: thin;
  white-space: normal;
}

.panel-settings {
  align-self: end;
  background: #ffffff;
  border: 1px solid #d9e3ee;
  border-radius: 8px;
  margin-top: auto;
  padding: 12px;
}

.settings {
  border-top: 1px solid #e1e6ed;
  margin-top: 12px;
  padding-top: 12px;
}

label {
  display: block;
  color: #4c5b6b;
  font-size: 12px;
  margin-bottom: 8px;
}

input,
select {
  box-sizing: border-box;
  border: 1px solid #ccd4df;
  border-radius: 6px;
  display: block;
  font: inherit;
  margin-top: 4px;
  padding: 8px;
  width: 100%;
}

select {
  appearance: none;
  background-color: #fbfcfe;
  background-image:
    linear-gradient(45deg, transparent 50%, #7a8492 50%),
    linear-gradient(135deg, #7a8492 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  border-color: #cfd6df;
  border-radius: 8px;
  color: #20242a;
  padding-right: 24px;
}

select:hover {
  background-color: #ffffff;
  border-color: #c5ceda;
}

select:focus,
select:focus-visible {
  background-color: #ffffff;
  border-color: #1662c4;
  box-shadow: 0 0 0 3px rgba(22, 98, 196, 0.14);
  outline: none;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #e1e6ed;
  display: flex;
  justify-content: space-between;
  padding: 16px 22px;
}

.clips {
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 920px;
  padding: 20px;
}

.clip-card {
  background: #ffffff;
  border: 1px solid #e1e6ed;
  border-radius: 8px;
  padding: 16px;
}

.clip-meta {
  color: #66778a;
  font-size: 13px;
  margin-bottom: 8px;
}

.clip-text {
  font-size: 20px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.word-token {
  border: 0;
  border-radius: 4px;
  display: inline;
  line-height: 1.2;
  min-height: auto;
  padding: 1px 2px;
  vertical-align: baseline;
}

.word-token.highlighted {
  background: #fff0a8;
  box-shadow: inset 0 -2px 0 #e3b900;
}

.word-token.pending-highlight {
  background: rgba(31, 42, 55, 0.08);
  box-shadow: inset 0 -2px 0 #667085;
}

.clip-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.translation {
  color: #25384d;
  font-size: 16px;
  line-height: 1.6;
  margin: 12px 0 0;
}

.learning-app {
  background: #f4f4f4;
  min-height: 100vh;
}

.notes-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.notes-sidebar {
  align-self: start;
  background: #ececec;
  border-right: 1px solid #d5d5d5;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  overflow: auto;
  padding: 18px 12px;
  position: sticky;
  top: 0;
}

.notes-brand {
  display: grid;
  gap: 12px;
  padding: 0 4px;
}

.notes-brand h1 {
  color: #202124;
  font-size: 24px;
  letter-spacing: 0;
  margin: 0;
}

.notes-brand button {
  min-height: 30px;
  padding: 6px 10px;
}

.notes-nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #30343a;
  display: flex;
  font-size: 15px;
  justify-content: space-between;
  min-height: 36px;
  padding: 8px 10px;
  text-align: left;
}

.nav-item:hover {
  background: #dedede;
}

.nav-item.active {
  background: #d8d8d8;
}

.nav-item span {
  color: #6d747d;
  font-size: 12px;
}

.notes-main {
  box-sizing: border-box;
  min-width: 0;
  padding: 0;
}

.view {
  display: none;
  min-height: 100vh;
}

.active-view {
  display: block;
}

.view-header {
  align-items: center;
  background: rgba(250, 250, 250, 0.92);
  border-bottom: 1px solid #dcdcdc;
  box-sizing: border-box;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 128px;
  padding: 20px 28px 16px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.view-header h2 {
  font-size: 28px;
  letter-spacing: 0;
  margin: 0;
}

.view-header p {
  color: #6c7480;
  font-size: 13px;
  margin: 4px 0 0;
}

.view-controls {
  align-items: center;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.view-controls-placeholder {
  flex: 0 1 460px;
  min-height: 82px;
  min-width: 360px;
}

.studio-cluster-controls {
  align-content: center;
  flex: 0 1 540px;
  min-height: 82px;
}

.cluster-summary {
  color: #66717f;
  font-size: 13px;
  height: 34px;
  line-height: 34px;
  white-space: nowrap;
}

.search-input {
  background: #ffffff;
  border: 1px solid #d2d7df;
  border-radius: 8px;
  box-sizing: border-box;
  color: #20242a;
  font: 14px/1.3 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  height: 40px;
  min-width: 260px;
  padding: 0 11px;
}

.segmented-control {
  align-items: center;
  background: #eef1f5;
  border: 1px solid #d2d7df;
  border-radius: 8px;
  box-sizing: border-box;
  display: inline-flex;
  height: 34px;
  padding: 3px;
}

.segmented-control button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  color: #66717f;
  font-size: 13px;
  height: 26px;
  min-height: 26px;
  padding: 0 8px;
}

.segmented-control button.active {
  background: #ffffff;
  color: #20242a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.sort-control,
.search-mode-control {
  align-items: center;
  align-self: center;
  color: #69727e;
  display: grid;
  font-size: 13px;
  grid-template-columns: max-content auto;
  column-gap: 8px;
  height: 34px;
  line-height: 34px;
  margin: 0;
  white-space: nowrap;
}

.control-label {
  align-items: center;
  display: inline-flex;
  height: 34px;
  line-height: 34px;
}

.search-mode-control .segmented-control {
  line-height: normal;
}

.sort-control select {
  display: block;
  font: 14px/34px Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  height: 34px;
  min-height: 34px;
  min-width: 132px;
  padding: 0 24px 0 9px;
  vertical-align: top;
  width: auto;
}

.clips-list,
.vocab-list,
.studio-list {
  box-sizing: border-box;
  display: grid;
  gap: 10px;
  margin: 0 auto;
  max-width: 980px;
  padding: 18px 28px 36px;
}

.header-action {
  font-size: 13px;
  height: 34px;
  min-height: 34px;
  padding: 0 10px;
}

.header-action.active {
  background: #e8edf4;
}

.filter-bar,
.bulk-bar {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 10px;
  margin: 0 auto;
  max-width: 980px;
  padding: 10px 28px 0;
}

.filter-spacer {
  flex: 1 1 auto;
}

.filter-bar label {
  align-items: center;
  color: #69727e;
  display: grid;
  font-size: 13px;
  grid-template-columns: max-content auto;
  column-gap: 8px;
  height: 34px;
  line-height: 34px;
  white-space: nowrap;
}

.filter-bar select {
  display: block;
  font: 14px/34px Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  height: 34px;
  min-width: 96px;
  padding: 0 24px 0 9px;
  width: auto;
}

#clipSourceFilter {
  min-width: 142px;
}

#clipVocabularyFilter {
  min-width: 134px;
}

#vocabLevelFilter {
  min-width: 118px;
}

.filter-bar .header-action {
  height: 34px;
  min-height: 34px;
  padding: 0 10px;
}

.bulk-bar {
  color: #66717f;
  font-size: 13px;
  justify-content: flex-end;
}

.bulk-bar button {
  font-size: 13px;
  height: 34px;
  min-height: 34px;
  padding: 0 10px;
}

.note-card {
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  padding: 15px 16px;
  position: relative;
}

.card-check {
  align-items: center;
  display: none;
  height: 28px;
  justify-content: center;
  left: 10px;
  position: absolute;
  top: 12px;
  width: 28px;
}

.card-check input {
  height: 16px;
  margin: 0;
  width: 16px;
}

.note-card.selecting {
  padding-left: 44px;
}

.note-card.selecting .card-check {
  display: inline-flex;
}

.learning-app .clip-card {
  border-radius: 8px;
  padding: 15px 16px;
}

.learning-app .clip-card.selecting {
  padding-left: 44px;
}

.learning-app .clip-card.clip-focus {
  border-color: #9bbcf1;
  box-shadow: 0 0 0 3px rgba(22, 98, 196, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.learning-app .clip-text {
  color: #1d242d;
  font-size: 20px;
  line-height: 1.6;
}

.learning-app .clip-actions {
  flex-wrap: wrap;
}

.learning-app .clip-actions button,
.learning-app .clip-actions a.source {
  font-size: 13px;
  min-height: 32px;
  padding: 6px 10px;
}

.studio-card {
  display: grid;
  gap: 14px;
}

.studio-setup {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-mode-card {
  cursor: pointer;
  display: grid;
  gap: 18px;
  min-height: 420px;
}

.studio-mode-card.is-selected {
  border-color: #b9c7d8;
  box-shadow: 0 0 0 3px rgba(22, 98, 196, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.studio-mode-header {
  display: grid;
  gap: 6px;
}

.studio-mode-kicker {
  color: #69727e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.studio-mode-header h3 {
  color: #1d242d;
  font-size: 22px;
  letter-spacing: 0;
  margin: 0;
}

.studio-mode-header p {
  color: #66717f;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.cluster-option-stack {
  display: grid;
  gap: 8px;
}

.cluster-size-option,
.cluster-custom-option {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d2d7df;
  border-radius: 8px;
  box-shadow: none;
  box-sizing: border-box;
  color: #1d242d;
  display: flex;
  font-size: 14px;
  font-weight: 650;
  height: 46px;
  justify-content: space-between;
  padding: 0 12px;
  text-align: left;
  width: 100%;
}

.cluster-size-option span,
.cluster-custom-option span {
  color: #66717f;
  font-size: 13px;
  font-weight: 600;
}

.cluster-size-option.is-selected,
.cluster-custom-option.is-selected {
  background: #eef4ff;
  border-color: #9db9e5;
}

.cluster-custom-input {
  border: 1px solid #d2d7df;
  border-radius: 7px;
  box-sizing: border-box;
  color: #1d242d;
  font: 14px/1 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  height: 30px;
  padding: 0 8px;
  text-align: right;
  width: 70px;
}

.cluster-custom-input:focus {
  border-color: #1662c4;
  outline: none;
}

.cluster-enter {
  align-self: end;
  font-size: 14px;
  height: 38px;
}

.studio-practice-topline {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.studio-status {
  color: #66717f;
  font-size: 14px;
}

.studio-exercise {
  display: grid;
  gap: 14px;
}

.studio-topline {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.studio-streak {
  color: #66717f;
  font-size: 13px;
}

.studio-card audio {
  width: 100%;
}

.studio-sentence {
  color: #1d242d;
  font-size: 22px;
  line-height: 1.55;
  margin: 0;
}

.studio-form {
  display: grid;
  gap: 14px;
}

.studio-inline-answer {
  background: #ffffff;
  border: 1px solid #b9c7d8;
  border-radius: 5px;
  box-shadow: 0 0 0 2px rgba(22, 98, 196, 0.08);
  box-sizing: border-box;
  color: #1d242d;
  display: inline-block;
  font: 600 20px/1.25 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0 5px;
  min-width: 96px;
  padding: 3px 7px;
  vertical-align: baseline;
  width: 8.5ch;
}

.studio-inline-answer:focus {
  border-color: #1662c4;
  outline: none;
}

.studio-choice-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.studio-exercise-prompt {
  display: block;
  color: #667085;
  font-size: 14px;
  margin-bottom: 10px;
}

.studio-sentence-line {
  display: block;
}

.studio-target-word {
  border-bottom: 2px solid #1d242d;
  font-weight: 650;
}

.studio-cloze-target {
  background: #e4e6e8;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  display: inline-block;
  min-width: 2.6em;
  padding: 0 4px;
}

.studio-sentence-translation {
  color: #667085;
  font-size: 15px;
  line-height: 1.45;
  margin-top: 10px;
}

.studio-choice {
  background: #ffffff;
  border: 1px solid #d2d7df;
  border-radius: 8px;
  box-shadow: none;
  color: #1d242d;
  font-size: 15px;
  justify-content: flex-start;
  min-height: 42px;
  padding: 9px 12px;
  text-align: left;
}

.studio-choice:hover {
  background: #f6f8fb;
}

.studio-choice.is-selected {
  background: #eef4ff;
  border-color: #9db9e5;
}

.studio-choice:disabled {
  opacity: 0.9;
}

.studio-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.studio-result-light {
  background: #c8ced6;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: inline-block;
  flex: 0 0 auto;
  height: 16px;
  margin-right: auto;
  width: 16px;
}

.studio-result-light.is-correct {
  background: #33a852;
}

.studio-result-light.is-incorrect {
  background: #d93025;
}

.studio-revoke {
  align-self: center;
  font-size: 15px;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
}

.studio-save {
  font-size: 13px;
  min-height: 32px;
  padding: 6px 10px;
}

.studio-feedback {
  color: #25384d;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.studio-feedback-actions {
  margin-top: 8px;
}

.vocab-card {
  display: grid;
  gap: 8px;
}

.vocab-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.vocab-title {
  background: transparent;
  border: 0;
  color: #1d242d;
  flex: 1 1 auto;
  font-size: 22px;
  justify-self: start;
  line-height: 1.2;
  min-height: auto;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.vocab-title-row {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
}

.vocab-level-badge {
  align-items: center;
  background: #f2f5f9;
  border: 1px solid #d9e0ea;
  border-radius: 999px;
  color: #4d5967;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  height: 22px;
  letter-spacing: 0;
  padding: 0 7px;
}

.vocab-level-badge[data-level="UNK"] {
  color: #7c8794;
}

.vocab-title:hover {
  background: transparent;
  color: #1662c4;
}

.vocab-meta {
  color: #737b86;
  font-size: 13px;
}

.remove-vocab {
  align-items: center;
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  text-align: center;
}

.vocab-dictionary {
  background: #f8fafc;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  color: #344154;
  display: grid;
  font-size: 13px;
  gap: 5px;
  line-height: 1.45;
  padding: 9px 10px;
}

.dictionary-header {
  align-items: center;
  color: #1d242d;
  display: flex;
  gap: 7px;
  font-weight: 700;
}

.dictionary-audio {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  height: 24px;
  justify-content: center;
  min-height: 24px;
  padding: 0;
  width: 24px;
}

.dictionary-line {
  align-items: baseline;
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dictionary-pos {
  color: #1662c4;
  flex: 0 0 auto;
  font-weight: 700;
}

.dictionary-definition {
  color: #66717f;
}

.vocab-sources {
  display: grid;
  gap: 6px;
}

.vocab-source {
  border-radius: 6px;
  box-sizing: border-box;
  color: #344154;
  display: block;
  font-size: 14px;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  padding: 7px 8px;
  text-decoration: none;
  width: 100%;
}

.vocab-source:hover {
  background: #f0f3f7;
}

.vocab-source-text {
  background: transparent;
  border: 0;
  color: #344154;
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  min-height: auto;
  overflow: hidden;
  overflow-wrap: normal;
  padding: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  width: 100%;
}

.vocab-source-text:hover {
  background: transparent;
}

.vocab-source-text mark {
  background: #fff19b;
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 #e0bd18;
  color: #121923;
  font-weight: 700;
  padding: 0 2px;
}

.vocab-source.expanded .vocab-source-text {
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: normal;
}

.vocab-source-link {
  background: transparent;
  border: 0;
  color: #1662c4;
  cursor: pointer;
  display: none;
  font-size: 13px;
  font-weight: 700;
  margin-top: 7px;
  min-height: auto;
  padding: 0;
  text-decoration: none;
}

.vocab-source-link.disabled-source {
  color: #8492a4;
  cursor: not-allowed;
  pointer-events: none;
}

.vocab-source-link:hover {
  text-decoration: underline;
}

.vocab-source.expanded .vocab-source-link {
  display: inline-block;
}

.vocab-more,
.empty-state,
#settingsStatus {
  color: #66717f;
  font-size: 13px;
  margin: 0;
}

.settings-card {
  background: #ffffff;
  border: 1px solid #dedede;
  border-radius: 8px;
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  margin: 18px auto 36px;
  max-width: 924px;
  padding: 18px;
  width: calc(100% - 56px);
}

.settings-card button {
  justify-self: start;
}

.account-card {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.account-card strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.account-card button {
  min-width: 92px;
}

@media (max-width: 760px) {
  .notes-shell {
    grid-template-columns: 1fr;
  }

  .notes-sidebar {
    border-bottom: 1px solid #d5d5d5;
    border-right: 0;
  }

  .notes-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .view-header {
    align-items: stretch;
    flex-direction: column;
    min-height: 0;
  }

  .search-input {
    min-width: 0;
    width: 100%;
  }

  .view-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .view-controls-placeholder {
    display: none;
  }

  .segmented-control,
  .header-action {
    width: 100%;
  }

  .segmented-control button {
    flex: 1 1 0;
  }

  .sort-control {
    justify-content: space-between;
  }

  .filter-bar,
  .bulk-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar label {
    justify-content: space-between;
  }

  .filter-spacer {
    display: none;
  }

  .studio-setup {
    grid-template-columns: 1fr;
  }

  .studio-mode-card {
    min-height: 0;
  }

  .studio-practice-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .studio-actions {
    justify-content: stretch;
  }

  .studio-actions button {
    width: 100%;
  }
}
