:root {
  color-scheme: light;
  --ink: #1b2c28;
  --muted: #78827b;
  --green: #234d43;
  --green-dark: #183b34;
  --mint: #e7efe7;
  --paper: #f5f4ed;
  --white: #fffefb;
  --line: #e8e7df;
  --orange: #e6a66f;
  --shadow: 0 14px 40px rgb(34 51 42 / 7%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #050505;
  color: var(--ink);
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.phone-frame {
  width: min(100vw, 430px);
  min-height: 100vh;
  background: #f5f4ed;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

html.telegram-webapp,
html.telegram-webapp body {
  background: #f5f4ed;
}

html.telegram-webapp .status-bar,
html.telegram-webapp .topbar {
  display: none;
}

html.telegram-webapp .phone-frame {
  width: 100%;
  min-height: 100vh;
}

html.telegram-webapp .app-shell {
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(30px, env(safe-area-inset-bottom));
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 24px 0 24px;
  background: #020202;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.signal,
.wifi {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
  border-radius: 2px;
  background:
    linear-gradient(to top, rgba(255,255,255,0.98) 0 20%, rgba(255,255,255,0) 20% 100%);
  opacity: .9;
}

.wifi {
  width: 18px;
  height: 18px;
  background: transparent;
  border: 2px solid transparent;
  border-top-color: rgba(255,255,255,0.98);
  border-radius: 50%;
  transform: rotate(180deg);
}

.battery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
}

.app-shell {
  width: 100%;
  padding: 0 18px 30px;
  background: #f5f4ed;
}

.topbar, .brand, .streak-pill, .section-heading, .progress-title, .word-card-top,
.word-card-actions, .filters, .search-box, .pronounce-button, .save-button,
.card-detail-heading {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0 10px;
}

.close-button, .menu-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 28, 26, 0.06);
  color: var(--ink);
  cursor: pointer;
  font: 700 32px/1.2 Arial, sans-serif;
}

.close-button {
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-2px);
}

.app-title-wrap {
  flex: 1;
  text-align: center;
  margin: 0;
}

.app-title-wrap h1,
.app-title-wrap p {
  margin: 0;
}

.app-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.app-title-wrap p {
  color: #788177;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  background: rgba(18, 28, 26, 0.06);
}

.menu-button span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1d2d2a;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 0 2px 0 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(180deg, #1a5146 0%, #224e42 100%);
  color: white;
  font: 800 22px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.brand-dot { color: #bc7a4f; }

.streak-pill {
  margin-left: auto;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  color: #5b6b61;
  font-size: 11px;
  font-weight: 700;
}

.streak-spark { color: #3da15d; font-size: 14px; }

.welcome { padding: 28px 2px 16px; }
.eyebrow {
  margin: 0 0 10px;
  color: #7e877f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
h1, h2, h3, p { margin-top: 0; }
h2 {
  margin: 0;
  color: var(--ink);
  font: 800 clamp(31px, 7vw, 56px)/1.02 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.065em;
}
h3 {
  margin: 0;
  color: var(--ink);
  font: 800 29px/1.14 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.065em;
}
h2 span { color: #7a8d88; }
.section-heading h3 { margin: 0; }
.welcome-copy {
  max-width: 420px;
  margin: 14px 0 0;
  color: #6b766e;
  font-size: 14px;
  line-height: 1.5;
}

.progress-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px 10px;
  overflow: hidden;
  padding: 17px 18px 15px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 18px;
  background: linear-gradient(115deg, #e8efe7, #f1f0e5);
}
.progress-copy { z-index: 1; }
.progress-title { gap: 9px; color: #4a5d51; font-size: 12px; font-weight: 700; }
.progress-title strong {
  display: grid;
  min-width: 25px;
  height: 22px;
  place-items: center;
  padding: 0 7px;
  border-radius: 8px;
  background: white;
  color: var(--green);
  font-size: 11px;
}
.progress-copy p { margin: 5px 0 0; color: #879087; font-size: 10px; }
.progress-icon {
  align-self: center;
  color: #91a28e;
  font-size: 27px;
  transform: rotate(12deg);
}
.progress-track {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 9px;
  background: rgb(71 99 79 / 12%);
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #527965;
  transition: width 350ms ease;
}

.main-tabs {
  position: sticky;
  z-index: 3;
  top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 18px 0 0;
  padding: 5px;
  border: 1px solid #e8e8df;
  border-radius: 15px;
  background: rgb(255 254 250 / 94%);
  box-shadow: 0 6px 20px rgb(34 51 42 / 5%);
  backdrop-filter: blur(12px);
}
.main-tab {
  display: flex;
  min-height: 47px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #78827a;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.main-tab > span:first-child { font-size: 17px; line-height: 1; }
.main-tab.active { background: #eaf0e8; color: var(--green); }
.tab-view[hidden] { display: none; }
.word-section { padding-top: 26px; }
.tab-view h2 { margin: 6px 0 0; }
.tab-intro {
  max-width: 430px;
  margin: 8px 0 17px;
  color: #778178;
  font-size: 12px;
  line-height: 1.6;
}
.personal-word-form {
  margin: 18px 0 12px;
  padding: 15px;
  border: 1px solid #e6e9df;
  border-radius: 16px;
  background: var(--white);
}
.notification-settings-form {
  display: grid;
  gap: 10px;
  margin: 18px 0 12px;
  padding: 15px;
  border: 1px solid #e6e9df;
  border-radius: 16px;
  background: var(--white);
}
.notification-settings-form label {
  color: #43584a;
  font-size: 12px;
  font-weight: 700;
}
.notification-settings-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #e2e6dd;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.notification-settings-form input:focus {
  border-color: #9bae9c;
  box-shadow: 0 0 0 3px rgb(65 112 83 / 8%);
}
.notification-settings-form button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.notification-settings-form button:disabled { opacity: .6; }
.personal-word-form label {
  display: block;
  margin-bottom: 9px;
  color: #43584a;
  font-size: 12px;
  font-weight: 700;
}
.personal-word-controls {
  display: flex;
  gap: 8px;
}
.personal-word-controls input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #e2e6dd;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
.personal-word-controls input:focus {
  border-color: #9bae9c;
  box-shadow: 0 0 0 3px rgb(65 112 83 / 8%);
}
.personal-word-controls button {
  flex: 0 0 auto;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.personal-word-controls button:disabled { opacity: .6; }
.personal-word-hint {
  margin: 8px 0 0;
  color: #899187;
  font-size: 10px;
  line-height: 1.5;
}
.new-word-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 12px;
  color: #899187;
  font-size: 10px;
}
.new-word-divider::before,
.new-word-divider::after {
  height: 1px;
  flex: 1;
  background: #e3e5dc;
  content: "";
}
.section-heading { justify-content: space-between; margin-bottom: 15px; }
.section-heading .eyebrow { margin-bottom: 5px; }
h2 { margin: 0; font: 800 23px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -1px; }
.result-count { color: #99a097; font-size: 11px; }

.search-box {
  height: 47px;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid #e8e8df;
  border-radius: 13px;
  background: rgb(255 254 250 / 80%);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.search-box:focus-within { border-color: #9bae9c; box-shadow: 0 0 0 3px rgb(65 112 83 / 8%); }
.search-box svg {
  width: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #8c958d;
  stroke-linecap: round;
  stroke-width: 1.7;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.search-box input::placeholder { color: #a4a8a0; }
.search-box kbd {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid #ecece4;
  border-radius: 5px;
  color: #a2a69f;
  font: 10px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.filters { gap: 7px; overflow-x: auto; padding: 13px 0 15px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-chip {
  min-height: 33px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid #e6e7dd;
  border-radius: 999px;
  background: transparent;
  color: #68746b;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.filter-chip.active { border-color: var(--green); background: var(--green); color: white; }
.saved-filter span { margin-right: 4px; font-size: 13px; }

.game-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 15px;
  border: 1px solid #e5e9dd;
  border-radius: 16px;
  background: linear-gradient(115deg, #edf2e8, #f8f2e7);
}
.game-promo[hidden], .quiz-view[hidden], .swipe-game-view[hidden], #word-browse[hidden] { display: none; }
.game-promo-copy { display: flex; align-items: center; gap: 11px; }
.game-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 13px;
  background: #dce8d9;
  color: #52745c;
  font-size: 20px;
}
.game-promo-copy strong { color: #334d3c; font-size: 12px; }
.game-promo-copy p { margin: 4px 0 0; color: #828b7e; font-size: 10px; }
.game-start, .quiz-next {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.game-start span { margin-left: 4px; }
.game-start:disabled { opacity: .5; cursor: wait; }
.game-start { min-height: 42px; }
.swipe-game-promo { background: linear-gradient(115deg, #f1eee3, #eaf1ed); }
.swipe-game-icon { background: #e4e9dc; }
.new-word-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  box-shadow: 0 8px 20px rgb(33 79 67 / 15%);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}
.new-word-button:active { background: var(--green-dark); transform: scale(.99); }
.new-word-button:disabled { cursor: wait; opacity: .72; }
.new-word-button.loading span { animation: sparkle 900ms ease-in-out infinite alternate; }
@keyframes sparkle { to { transform: rotate(45deg) scale(1.2); } }
.new-word-status { margin-top: 12px; }
.new-word-result { display: grid; gap: 12px; margin-top: 13px; }
.quiz-view {
  margin-bottom: 22px;
  padding: 15px;
  border: 1px solid #e6e9df;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-margin-top: 15px;
}
.swipe-game-view {
  margin-bottom: 22px;
  padding: 15px;
  border: 1px solid #e6e9df;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-margin-top: 15px;
}
.swipe-game-status { margin: 0 0 12px; }
.swipe-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  border: 1px solid #e5e9dd;
  border-radius: 20px;
  background: linear-gradient(145deg, #fffefa, #f1f4eb);
  box-shadow: 0 12px 30px rgb(34 51 42 / 8%);
  text-align: center;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.swipe-card:active { cursor: grabbing; }
.swipe-card-right { border-color: #9cbea0; background: #edf6eb; }
.swipe-card-left { border-color: #e4aaa0; background: #fff0ec; }
.swipe-card-label {
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf2e8;
  color: #647a65;
  font-size: 10px;
  font-weight: 700;
}
.swipe-card-word {
  margin: 20px 0 0;
  color: #203d32;
  font-size: clamp(32px, 9vw, 44px);
  letter-spacing: -1px;
}
.swipe-card .quiz-pronounce { margin: 12px 0; }
.swipe-reveal {
  padding: 8px 12px;
  border: 1px solid #e6ece3;
  border-radius: 10px;
  background: #fffefa;
  color: #52745c;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.swipe-answer { margin-top: 13px; }
.swipe-answer[hidden] { display: none; }
.swipe-translation {
  margin: 0 0 6px;
  color: #294d3f;
  font-size: 19px;
  font-weight: 750;
}
.swipe-example {
  max-width: 420px;
  margin: 0;
  color: #78827a;
  font-size: 11px;
  line-height: 1.5;
}
.swipe-hint {
  margin: 16px 0 0;
  color: #92998e;
  font-size: 10px;
}
.swipe-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.swipe-action {
  min-height: 44px;
  padding: 7px 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}
.swipe-action:disabled { cursor: wait; opacity: .6; }
.swipe-action-unknown { border-color: #efd5ce; background: #fff0ec; color: #a35342; }
.swipe-action-save { border-color: #dce5d8; background: #f0f4ec; color: #42674c; }
.swipe-action-know { border-color: #cfe2d2; background: #eaf4e9; color: #376444; }
.swipe-result { padding: 22px 4px; text-align: center; }
.swipe-result h2 { margin: 0 0 8px; color: #294d3f; font-size: 21px; }
.swipe-result p { margin: 0 0 14px; color: #78827a; font-size: 12px; line-height: 1.6; }
.swipe-result .quiz-next { margin-top: 0; }
.quiz-back {
  padding: 3px 0 13px;
  border: 0;
  background: transparent;
  color: #718174;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.quiz-progress-copy { display: flex; justify-content: space-between; color: #7d887d; font-size: 10px; font-weight: 700; }
.quiz-progress-track { height: 5px; overflow: hidden; margin: 9px 0 20px; border-radius: 9px; background: #edf0e9; }
.quiz-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #63836b; transition: width 180ms ease; }
.quiz-card { text-align: center; }
.quiz-category {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f4eee2;
  color: #927047;
  font-size: 9px;
  font-weight: 700;
}
.quiz-category.known { background: #edf3eb; color: #54745a; }
.quiz-prompt { margin: 14px 0 3px; color: #8b948a; font-size: 11px; }
.quiz-word { margin: 0; color: #203d32; font-size: clamp(29px, 8vw, 38px); letter-spacing: -1px; }
.quiz-pronounce {
  margin: 9px 0 17px;
  padding: 7px 10px;
  border: 1px solid #e6ece3;
  border-radius: 9px;
  background: #f5f8f2;
  color: #52745c;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quiz-option {
  min-height: 47px;
  padding: 9px 8px;
  border: 1px solid #e7e9e1;
  border-radius: 12px;
  background: #fffefa;
  color: #526055;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 150ms ease, background 150ms ease;
}
.quiz-option:active { transform: scale(.98); }
.quiz-option:disabled { cursor: default; }
.quiz-option.correct { border-color: #9cbea0; background: #edf6eb; color: #376444; }
.quiz-option.incorrect { border-color: #e4aaa0; background: #fff0ec; color: #a04f41; }
.quiz-feedback { margin: 13px 0 10px; color: #47704f; font-size: 11px; font-weight: 600; line-height: 1.5; }
.quiz-feedback.incorrect { color: #a35342; }
.quiz-next { width: 100%; min-height: 42px; margin-top: 8px; }
.quiz-result { padding: 12px 2px 3px; text-align: center; }
.quiz-result h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.quiz-result p { margin: 0 0 15px; color: #7a857a; font-size: 12px; }
.quiz-review-heading {
  margin: 20px 0 5px;
  color: #334d3c;
  font-size: 15px;
  letter-spacing: -.03em;
}
.quiz-result .quiz-review-hint { margin: 0 0 10px; font-size: 11px; }
.quiz-review-list { display: grid; gap: 7px; margin-bottom: 12px; text-align: left; }
.quiz-review-item {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid #e8eae1;
  border-radius: 11px;
  background: #fffefa;
  cursor: pointer;
}
.quiz-review-copy { display: grid; gap: 3px; min-width: 0; }
.quiz-review-copy strong { color: #294438; font-size: 12px; }
.quiz-review-copy span { color: #7a857a; font-size: 10px; }
.quiz-review-checkbox {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  accent-color: var(--green);
  cursor: pointer;
}
.quiz-result .quiz-save-status { margin: 9px 0 0; color: #47704f; font-size: 11px; }
.quiz-result .quiz-save-status.error { color: #a35342; }
.quiz-result .quiz-next { margin-top: 9px; }
.quiz-result .quiz-next { max-width: 260px; }

.word-list { display: grid; gap: 11px; }
.word-card {
  position: relative;
  padding: 16px;
  border: 1px solid rgb(231 232 223 / 90%);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 5px 18px rgb(43 58 45 / 3%);
  animation: card-in 320ms both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.word-card-top { justify-content: space-between; margin-bottom: 11px; }
.word-meta, .card-labels { display: flex; align-items: center; gap: 6px; }
.level-tag, .topic-tag {
  padding: 5px 8px;
  border-radius: 7px;
  background: #edf2eb;
  color: #58715d;
  font-size: 9px;
  font-weight: 700;
}
.topic-tag { background: #f5f3ec; color: #8d8777; font-weight: 600; }
.pos-label { color: #a0a49c; font-size: 9px; }
.word-headline { display: flex; align-items: center; gap: 9px; }
.word-headline h3 {
  margin: 0;
  color: #203d32;
  font: 800 25px/1.12 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -1px;
}
.pronounce-button {
  width: 34px;
  height: 34px;
  justify-content: center;
  border: 1px solid #e6ece3;
  border-radius: 11px;
  background: #f5f8f2;
  color: var(--green);
  cursor: pointer;
}
.pronounce-button:active { transform: scale(.95); }
.pronounce-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.translation { margin: 5px 0 0; color: #748077; font-size: 13px; }
.word-card-actions { justify-content: space-between; gap: 10px; margin-top: 15px; }
.example-button {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #66836f;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.save-button {
  min-height: 33px;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid #e8e8df;
  border-radius: 10px;
  background: white;
  color: #748077;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.save-button.saved { border-color: #e0eadf; background: #edf4ec; color: #456b50; }
.save-button:disabled { opacity: .6; cursor: wait; }
.save-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.example {
  margin: 12px 0 0;
  padding: 11px 12px;
  border-left: 2px solid #a7bba3;
  border-radius: 0 9px 9px 0;
  background: #f5f7f1;
  color: #5d6e61;
  font-size: 11px;
  line-height: 1.6;
}
.example[hidden] { display: none; }
.status-card {
  padding: 21px 14px;
  border: 1px dashed #dce1d7;
  border-radius: 14px;
  color: #7a857a;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}
.status-card[hidden] { display: none; }
.status-card.error { color: #a35342; }
.footer-note {
  margin: 18px 4px 0;
  color: #9a9e95;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 560px) {
  .app-shell { padding-top: 24px; }
  .welcome { padding-top: 46px; }
  .word-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
