:root {
  color-scheme:light;
  --ink:#182c30;
  --muted:#75817f;
  --green:#176b59;
  --green-dark:#115241;
  --line:#e3e9e5;
  --paper:#fff;
  --background:#f6f8f6;
  --soft-green:#eef6f1;
  --radius:16px;
  font-family:"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--background);
  color:var(--ink);
  font-size:14px;
  -webkit-font-smoothing:antialiased
}
button,input {
  font:inherit
}
button,a,input {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
a {
  color:var(--green);
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
button:focus-visible,a:focus-visible {
  outline:3px solid #87bba6;
  outline-offset:4px
}
button:disabled {
  cursor:wait;
  opacity:.7
}
[hidden] {
  display:none!important
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  top:-80px;
  left:16px;
  padding:12px;
  background:var(--green);
  color:#fff;
  z-index:30;
  border-radius:6px
}
.skip-link:focus {
  top:12px
}
.site-header {
  background:#fff;
  border-bottom:1px solid var(--line)
}
.header-inner {
  max-width:1184px;
  margin:auto;
  padding:19px 32px;
  display:flex;
  justify-content:space-between;
  align-items:center
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:18px;
  font-weight:700;
  color:var(--ink);
  letter-spacing:.02em
}
.brand:hover {
  text-decoration:none
}
.brand-mark {
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:var(--green)
}
.brand-mark svg {
  width:25px;
  height:25px;
  stroke:white;
  stroke-width:1.5;
  fill:none;
  stroke-linejoin:round
}
.brand-caption {
  margin-left:16px;
  padding-left:16px;
  border-left:1px solid #dce4df;
  font-size:12px;
  color:var(--muted);
  font-weight:400;
  letter-spacing:.04em
}
.local-status {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  color:#5d746b
}
.status-dot {
  width:6px;
  height:6px;
  background:#428f6d;
  border-radius:50%
}
.status-divider {
  color:#a1b4a9;
  margin:0 1px
}
.page-shell {
  max-width:1184px;
  margin:auto;
  padding:24px 32px 22px
}
.intro {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:27px
}
.eyebrow {
  margin:0 0 11px;
  font-size:11px;
  letter-spacing:.14em;
  font-weight:600;
  color:var(--green)
}
.eyebrow span {
  margin:0 9px;
  color:#a7b6ac
}
.intro h1 {
  margin:0;
  font-size:30px;
  line-height:1.5;
  font-weight:650;
  letter-spacing:-.025em
}
.intro-description {
  margin:10px 0 0;
  color:#71807a;
  font-size:13px;
  line-height:1.8
}
.library-stats {
  display:flex;
  gap:12px;
  align-items:center;
  flex-shrink:0
}
.library-stats>div {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  min-width:0
}
.library-stats strong {
  font-size:20px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums
}
.library-stats>div>span {
  font-size:10px;
  color:var(--muted)
}
.stats-divider {
  height:27px;
  width:1px;
  background:#dce5de
}
.search-section {
  margin-bottom:22px;
  position:relative
}
.search-form {
  background:white;
  border:1px solid #cbd9d0;
  border-radius:12px;
  padding:6px;
  display:flex;
  position:relative;
  box-shadow:0 3px 13px #294a3610;
  transition:border-color .18s,box-shadow .18s
}
.search-form:focus-within {
  border-color:#57917a;
  box-shadow:0 0 0 3px #176b5910
}
.search-field {
  display:flex;
  align-items:center;
  flex:1;
  min-width:0;
  gap:13px;
  padding-left:15px
}
.search-icon {
  width:22px;
  height:22px;
  stroke:#74877c;
  stroke-width:1.6;
  flex-shrink:0
}
.search-field input {
  height:47px;
  outline:0;
  border:0;
  width:100%;
  min-width:0;
  background:transparent;
  color:var(--ink);
  font-size:16px
}
.search-field input::placeholder {
  color:#96a19a;
  font-size:14px
}
.search-shortcut {
  border:1px solid var(--line);
  background:#fafcfa;
  color:#8d9d93;
  min-width:23px;
  padding:1px 7px;
  font-size:12px;
  border-radius:5px;
  font-family:inherit;
  margin-right:8px
}
.clear-button {
  background:none;
  border:0;
  color:#8a9b90;
  font-size:23px;
  padding:0 8px;
  margin-right:5px;
  line-height:1
}
.clear-button:hover {
  color:var(--ink)
}
.search-button {
  border:0;
  background:var(--green);
  color:white;
  border-radius:8px;
  min-width:133px;
  padding:0 21px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  font-weight:600;
  transition:background .18s
}
.search-button:hover {
  background:var(--green-dark)
}
.search-button svg {
  width:18px;
  height:18px;
  stroke:currentColor;
  stroke-width:1.5
}
.search-message {
  margin:9px 2px 0;
  font-size:12px;
  line-height:1.6;
  color:var(--green);
  min-height:0
}
.search-message:empty {
  display:none
}
.search-message.error {
  color:#a44c38
}
.suggestions {
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 7px);
  margin:0;
  padding:6px;
  list-style:none;
  z-index:10;
  background:#fff;
  border:1px solid #d7e3da;
  border-radius:12px;
  box-shadow:0 15px 35px #153f2420;
  max-height:330px;
  overflow:auto
}
.suggestion-option {
  padding:11px 14px;
  border-radius:7px;
  display:flex;
  align-items:center;
  gap:13px;
  cursor:pointer
}
.suggestion-option:hover,.suggestion-option[aria-selected="true"] {
  background:#f0f6f1
}
.suggestion-word {
  font-size:15px;
  font-weight:600;
  min-width:96px
}
.suggestion-definition {
  flex:1;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  color:var(--muted);
  font-size:12px
}
.suggestion-level {
  font-size:10px;
  color:#729181;
  background:#f2f6f3;
  border:1px solid #e3ece4;
  border-radius:4px;
  padding:2px 6px
}
.results-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 354px;
  gap:22px;
  align-items:start
}
.word-card,.membership-card,.not-found-card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 2px 4px #1e463104
}
.word-card {
  padding:27px 30px 0
}
.card-kicker {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#8c9991;
  font-size:11px;
  letter-spacing:.06em
}
.card-actions {
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0
}
.included-label {
  display:flex;
  align-items:center;
  gap:5px;
  color:var(--green);
  font-size:10px;
  letter-spacing:0
}
.included-label>span {
  font-weight:700
}
.word-heading {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:17px;
  margin-top:16px
}
.word-heading h2 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:51px;
  letter-spacing:-.025em;
  font-weight:400;
  line-height:1.15;
  margin:0;
  overflow-wrap:anywhere
}
.category-tag {
  color:#658471;
  border:1px solid #dfebe0;
  background:#f7faf6;
  padding:4px 8px;
  border-radius:5px;
  font-size:10px;
  white-space:nowrap;
  margin-top:9px
}
.word-subtitle {
  font-size:12px;
  color:#728378;
  margin:10px 0 0;
  line-height:1.7
}
.definitions-section {
  margin-top:24px
}
.definitions-section h3 {
  font-size:11px;
  color:#8a978f;
  font-weight:400;
  margin:0 0 13px
}
.definitions {
  display:flex;
  flex-direction:column;
  gap:11px
}
.definition-row {
  display:flex;
  gap:13px;
  align-items:flex-start
}
.part-of-speech {
  background:#f2f5f2;
  border:1px solid #e5eae4;
  color:#63756a;
  font-family:Georgia,serif;
  font-style:italic;
  font-size:12px;
  line-height:20px;
  text-align:center;
  min-width:34px;
  padding:0 6px;
  border-radius:4px;
  margin-top:2px;
  flex-shrink:0
}
.definition-text {
  line-height:1.9;
  font-size:14px;
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.word-metrics {
  margin-top:26px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.metric-box {
  background:#f8faf7;
  border:1px solid #eaf0e7;
  border-radius:10px;
  padding:16px 17px
}
.metric-title {
  font-size:11px;
  color:#76877a
}
.metric-value {
  display:flex;
  align-items:baseline;
  gap:9px;
  margin-top:6px
}
.metric-value strong {
  font-size:27px;
  font-weight:550;
  letter-spacing:-.04em;
  line-height:1.4
}
.metric-value>span {
  font-size:11px;
  color:#7e8d81
}
.metric-box p {
  font-size:10px;
  line-height:1.7;
  margin:6px 0 0;
  color:#8d9b8f
}
.study-note {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:18px 0 23px;
  border:1px solid #e7ecdc;
  background:#fafbf4;
  padding:12px 14px;
  border-radius:8px
}
.study-note svg {
  width:18px;
  height:18px;
  stroke:#829060;
  stroke-width:1.4;
  flex-shrink:0;
  margin-top:1px
}
.study-note h3 {
  font-size:11px;
  font-weight:600;
  color:#68784e;
  margin:0 0 5px
}
.study-note p {
  font-size:11px;
  line-height:1.85;
  color:#8a9578;
  margin:0
}
.word-card-footer {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-height:50px;
  border-top:1px solid #eef1eb;
  font-size:10px;
  color:#9aa499
}
.word-card-footer a {
  font-size:10px;
  color:#668370;
  white-space:nowrap
}
.membership-header {
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  padding:24px 22px 17px
}
.membership-header h2 {
  font-size:15px;
  font-weight:650;
  margin:0
}
.membership-header p {
  font-size:11px;
  margin:7px 0 0;
  color:#7c8e7f
}
.membership-count {
  font-size:11px;
  white-space:nowrap;
  color:var(--green);
  background:#edf5ee;
  border:1px solid #dce9df;
  padding:5px 9px;
  border-radius:6px;
  font-variant-numeric:tabular-nums
}
.membership-list {
  list-style:none;
  margin:0;
  padding:0 13px
}
.membership-row {
  border:1px solid transparent;
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 10px;
  min-height:54px;
  margin-bottom:4px;
  border-radius:8px;
  color:#66786b
}
.membership-row.is-included {
  border-color:#e0ece3;
  background:#f2f8f2;
  color:var(--green)
}
.membership-indicator {
  width:21px;
  height:21px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  color:#b3bdb5;
  border:1px solid #e1e8df;
  border-radius:50%;
  font-size:10px;
  background:#fff
}
.is-included .membership-indicator {
  color:#fff;
  background:var(--green);
  border-color:var(--green);
  font-size:12px
}
.membership-main {
  flex:1;
  min-width:0
}
.membership-name {
  font-size:13px;
  font-weight:500;
  line-height:1.5
}
.membership-detail {
  font-size:11px;
  margin-top:3px;
  color:#76877a;
  font-variant-numeric:tabular-nums
}
.is-included .membership-detail {
  color:#61856d
}
.membership-state {
  font-size:10px;
  white-space:nowrap;
  color:#839184
}
.is-included .membership-state {
  color:#659274
}
.membership-note {
  border-top:1px solid #eef1eb;
  margin:17px 22px 0;
  padding:14px 0 17px;
  font-size:10px;
  line-height:1.8;
  color:#98a298
}
.recent-section {
  display:flex;
  align-items:center;
  gap:14px;
  margin:24px 2px 0;
  font-size:11px;
  color:#8a978e
}
.recent-words {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  flex:1
}
.recent-words button,.similar-words button {
  background:white;
  border:1px solid #dfe8df;
  border-radius:5px;
  color:#657c6b;
  font-size:11px;
  padding:4px 10px
}
.recent-words button:hover,.similar-words button:hover {
  background:#eaf3ec;
  border-color:#bbd3c1
}
.clear-history {
  padding:3px 0;
  border:0;
  background:none;
  font-size:10px;
  color:#98a298;
  white-space:nowrap
}
.clear-history:hover {
  color:var(--green)
}
.page-footer {
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  font-size:10px;
  color:#a2ada4;
  margin-top:28px;
  line-height:1.8
}
.page-footer a {
  color:#8e9e91
}
.footer-dot {
  margin:0 9px;
  color:#bac5bb
}
.not-found-card {
  min-height:535px;
  padding:57px 35px;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column
}
.empty-icon {
  width:64px;
  height:64px;
  border-radius:20px;
  background:#eef5ee;
  display:grid;
  place-items:center;
  margin-bottom:23px
}
.empty-icon svg {
  width:31px;
  height:31px;
  stroke:#7e9a81;
  stroke-width:1.3
}
.not-found-card h2 {
  font-size:22px;
  font-weight:600;
  line-height:1.5;
  margin:0 0 12px;
  overflow-wrap:anywhere;
  max-width:100%
}
.not-found-card>p:not(.eyebrow) {
  font-size:13px;
  line-height:1.9;
  color:#8a998e;
  max-width:350px
}
.similar-section {
  margin-top:19px
}
.similar-section h3 {
  font-size:11px;
  color:#9aa69c;
  font-weight:400;
  margin:0 0 12px
}
.similar-words {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center
}
.noscript-notice {
  background:#fff1db;
  color:#9b5e0e;
  padding:20px;
  text-align:center
}
#results[aria-busy="true"] .word-card {
  opacity:.55;
  transition:opacity .1s
}
@media(min-width:1440px) {
  .page-shell {
    padding-top:24px
  }
  .intro {
    margin-bottom:31px
  }
  .results-grid {
    gap:25px
  }
}
@media(max-width:1000px) {
  .results-grid {
    grid-template-columns:minmax(0,1fr) 315px;
    gap:16px
  }
  .word-card {
    padding:23px 22px 0
  }
  .page-shell {
    padding-left:24px;
    padding-right:24px
  }
  .header-inner {
    padding-left:24px;
    padding-right:24px
  }
  .intro h1 {
    font-size:27px
  }
  .membership-header {
    padding-left:19px;
    padding-right:19px
  }
}
@media(max-width:780px) {
  .page-shell {
    padding:20px 20px 22px
  }
  .intro {
    align-items:flex-start;
    gap:15px
  }
  .intro h1 {
    font-size:24px;
    line-height:1.5
  }
  .intro-description {
    font-size:12px;
    max-width:370px
  }
  .results-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .membership-list {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:5px 10px
  }
  .membership-note br {
    display:none
  }
  .membership-note {
    font-size:10px
  }
  .not-found-card {
    min-height:350px
  }
  .membership-row {
    min-height:58px
  }
  .word-card {
    padding:25px 25px 0
  }
  .brand-caption {
    display:none
  }
  .header-inner {
    padding:15px 20px
  }
  .word-card-footer {
    font-size:10px
  }
  .recent-section {
    align-items:flex-start
  }
  .recent-section>span {
    padding-top:5px;
    white-space:nowrap
  }
}
@media(max-width:480px) {
  .page-shell {
    padding:18px 16px 20px
  }
  .header-inner {
    padding:14px 16px
  }
  .brand {
    font-size:16px;
    gap:10px
  }
  .brand-mark {
    width:35px;
    height:35px;
    border-radius:9px
  }
  .brand-mark svg {
    width:22px;
    height:22px
  }
  .local-status {
    font-size:10px;
    gap:5px
  }
  .intro {
    display:block;
    margin-bottom:22px
  }
  .intro h1 {
    font-size:24px;
    letter-spacing:-.04em
  }
  .intro-description {
    font-size:12px;
    margin-top:8px
  }
  .library-stats {
    gap:8px
  }
  .library-stats strong {
    font-size:14px
  }
  .library-stats>div>span {
    font-size:9px
  }
  .stats-divider {
    height:18px
  }
  .search-field {
    gap:9px;
    padding-left:8px
  }
  .search-icon {
    width:19px;
    height:19px
  }
  .search-field input {
    height:43px;
    font-size:16px
  }
  .search-field input::placeholder {
    font-size:12px
  }
  .search-shortcut {
    display:none
  }
  .search-button {
    min-width:90px;
    padding:0 12px;
    font-size:12px;
    gap:6px
  }
  .search-button svg {
    width:15px;
    height:15px
  }
  .search-form {
    padding:5px
  }
  .clear-button {
    padding:0 5px;
    margin-right:3px
  }
  .search-section {
    margin-bottom:18px
  }
  .word-card {
    padding:22px 21px 0;
    border-radius:13px
  }
  .word-heading {
    gap:13px;
    margin-top:17px
  }
  .word-heading h2 {
    font-size:45px
  }
  .category-tag {
    font-size:9px;
    margin-top:7px
  }
  .definition-text {
    font-size:13px
  }
  .definitions-section {
    margin-top:22px
  }
  .word-metrics {
    gap:9px;
    margin-top:23px
  }
  .metric-box {
    padding:13px 12px
  }
  .metric-title {
    font-size:10px
  }
  .metric-value strong {
    font-size:25px
  }
  .metric-value>span {
    font-size:10px
  }
  .metric-box p {
    font-size:9px
  }
  .study-note {
    padding:11px 12px
  }
  .word-card-footer {
    min-height:50px;
    font-size:9px;
    gap:7px
  }
  .word-card-footer a {
    font-size:9px
  }
  .membership-header {
    padding:21px 20px 17px
  }
  .membership-list {
    display:block;
    padding:0 13px
  }
  .membership-row {
    min-height:53px;
    padding:10px 11px
  }
  .membership-name {
    font-size:12px
  }
  .membership-detail {
    font-size:10px
  }
  .membership-state {
    font-size:10px
  }
  .membership-note {
    margin-left:22px
  }
  .membership-count {
    font-size:11px
  }
  .membership-header h2 {
    font-size:15px
  }
  .suggestion-word {
    min-width:82px;
    font-size:14px
  }
  .suggestion-definition {
    font-size:11px
  }
  .suggestion-option {
    gap:10px;
    padding:11px 9px
  }
  .recent-section {
    gap:10px;
    flex-wrap:wrap
  }
  .recent-words {
    flex-basis:calc(100% - 60px)
  }
  .clear-history {
    margin-left:auto;
    margin-top:2px
  }
  .page-footer {
    display:block;
    font-size:9px;
    margin-top:23px
  }
  .page-footer>a {
    display:block;
    margin-top:5px
  }
  .not-found-card {
    padding:36px 23px;
    min-height:360px
  }
  .not-found-card h2 {
    font-size:20px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}


/* Personal notebooks */
.header-tools { display:flex; align-items:center; gap:24px; }
.app-tabs { display:flex; padding:4px; gap:3px; border:1px solid #e3eae4; border-radius:9px; background:#f5f8f5; }
.app-tabs button { background:transparent; border:0; border-radius:6px; color:#748477; padding:8px 16px; font-size:12px; white-space:nowrap; }
.app-tabs button[aria-selected="true"] { color:var(--green); background:white; box-shadow:0 1px 4px #243d2810; font-weight:600; }
.button-primary,.button-secondary { min-height:38px; padding:9px 16px; border-radius:7px; font-size:13px; font-weight:500; line-height:1.4; }
.button-primary { color:white; background:var(--green); border:1px solid var(--green); }
.button-primary:hover { background:var(--green-dark); }
.button-secondary { color:var(--green); background:#f7fbf7; border:1px solid #ccdfd1; }
.button-secondary:hover { background:#eaf4ec; }
.button-small { min-height:33px; padding:7px 12px; font-size:12px; }
.button-quiet { border:0; background:transparent; color:#748577; padding:8px 5px; font-size:12px; }
.button-quiet:hover { color:var(--green); }
.danger-text { color:#a06958; }
.danger-text:hover { color:#9f422e; }
.missing-word-button { margin-top:24px; }
.notebooks-intro { margin-bottom:27px; }
.notebooks-intro .button-primary { flex-shrink:0; }
.notebooks-intro h1 { font-size:28px; }
.notebooks-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:22px; align-items:start; min-height:480px; }
.notebooks-sidebar,.notebook-panel { background:white; border:1px solid var(--line); border-radius:var(--radius); }
.notebooks-sidebar { padding:21px 13px 15px; }
.notebooks-sidebar h2 { margin:0 10px 15px; font-size:13px; font-weight:600; }
.notebook-list { display:flex; flex-direction:column; gap:6px; }
.notebook-list-item { display:flex; align-items:center; gap:12px; justify-content:space-between; text-align:left; border:1px solid transparent; border-radius:8px; background:transparent; color:#607765; padding:12px 10px; width:100%; }
.notebook-list-item:hover { background:#f6f9f5; }
.notebook-list-item.is-selected { color:var(--green); background:#edf6ef; border-color:#dceade; }
.notebook-list-name { font-size:13px; line-height:1.65; overflow-wrap:anywhere; }
.notebook-list-count { font-size:11px; color:#7f9484; white-space:nowrap; }
.notebooks-storage-note { margin:21px 10px 0; border-top:1px solid #e9eee6; padding-top:15px; font-size:11px; line-height:1.85; color:#869587; }
.notebook-list-empty { color:#899a8a; font-size:12px; line-height:1.8; margin:6px 10px 4px; }
.notebook-empty { display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; min-height:360px; padding:35px 24px; }
.notebook-empty-symbol { background:#eef6ef; border:1px solid #e1ebe1; color:#71a17d; border-radius:17px; font-size:30px; font-weight:300; height:59px; width:59px; display:grid; place-items:center; margin-bottom:23px; }
.notebook-empty h2 { font-size:20px; font-weight:600; margin:0; }
.notebook-empty p { font-size:13px; color:#809082; line-height:1.85; margin:12px 0 24px; }
.notebook-detail-header { padding:24px 25px 20px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.notebook-detail-header h2 { font-size:22px; font-weight:600; line-height:1.5; margin:0; overflow-wrap:anywhere; }
.notebook-detail-header p { font-size:11px; margin:7px 0 0; color:#849383; }
.book-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; padding-top:2px; }
.notebook-filter-row { padding:0 25px 20px; border-bottom:1px solid #eaf0e7; }
.notebook-filter-row input { width:100%; border:1px solid #dce6dc; border-radius:7px; background:#fafcf9; padding:11px 13px; color:var(--ink); font-size:12px; outline:none; }
.notebook-filter-row input:focus { border-color:#75a183; box-shadow:0 0 0 3px #176b590c; }
.notebook-words { padding:0 25px; }
.notebook-entry { padding:23px 0; border-bottom:1px solid #e8eee5; }
.notebook-entry:last-child { border-bottom:0; }
.notebook-entry-heading { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.notebook-entry-word { font-family:Georgia,"Times New Roman",serif; font-size:27px; font-weight:400; line-height:1.3; margin:0; overflow-wrap:anywhere; }
.entry-level { border:1px solid #dfe9df; background:#f3f8f2; color:#6b8c72; border-radius:4px; font-size:10px; padding:2px 6px; }
.entry-frequency { color:#859483; font-size:11px; }
.entry-lookup { margin-left:auto; font-size:11px; }
.notebook-entry-meaning { color:#627264; font-size:13px; line-height:1.9; margin:10px 0 18px; overflow-wrap:anywhere; }
.notebook-entry-meaning.no-meaning { color:#8b9a8a; font-size:12px; }
.note-label { display:block; font-size:11px; color:#7a8c7d; }
.entry-note { display:block; width:100%; resize:vertical; min-height:76px; border:1px solid #dce6da; border-radius:7px; background:#fbfcf9; color:#3f5745; font-family:inherit; font-size:13px; line-height:1.8; padding:10px 12px; margin-top:8px; outline:none; }
.entry-note:focus { border-color:#71a181; box-shadow:0 0 0 3px #176b590b; }
.entry-note::placeholder { color:#9aaa9a; font-size:12px; }
.entry-footer { display:flex; align-items:center; gap:13px; margin-top:11px; }
.entry-note-status { margin-right:auto; font-size:11px; color:#869685; }
.book-empty-message { font-size:13px; color:#8a9a8b; text-align:center; padding:45px 24px; line-height:1.8; }
.app-dialog { width:min(480px,calc(100% - 32px)); max-height:90vh; overflow:auto; border:1px solid #dce6db; padding:27px; border-radius:16px; color:var(--ink); background:white; box-shadow:0 20px 80px #203c3326; }
.app-dialog::backdrop { background:#122d284d; backdrop-filter:blur(2px); }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:21px; }
.dialog-heading h2 { font-size:20px; font-weight:600; margin:0; }
.dialog-close { border:0; background:#f4f7f2; height:29px; width:29px; border-radius:7px; color:#7b8e7e; font-size:23px; line-height:1; }
.app-dialog label { display:block; margin:16px 0 8px; font-size:12px; color:#566c5b; }
.app-dialog input,.app-dialog select,.app-dialog textarea { width:100%; font:inherit; font-size:14px; color:var(--ink); background:#fbfdf9; border:1px solid #d5e1d4; border-radius:7px; padding:10px 11px; outline:none; }
.app-dialog input:focus,.app-dialog select:focus,.app-dialog textarea:focus { border-color:#75a484; box-shadow:0 0 0 3px #176b590d; }
.app-dialog textarea { resize:vertical; line-height:1.8; min-height:110px; }
.app-dialog input::placeholder,.app-dialog textarea::placeholder { color:#99a795; font-size:12px; }
.label-optional { color:#9ba694; font-size:10px; margin-left:5px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
.form-message { color:#a0503e; font-size:12px; line-height:1.8; margin:10px 0; }
.form-message:empty { display:none; }
.field-hint { font-size:11px; color:#869580; line-height:1.8; margin:9px 0 0; }
.notebook-toast { position:fixed; bottom:26px; left:50%; transform:translateX(-50%); z-index:25; max-width:calc(100% - 32px); width:max-content; border:1px solid #204d3e; background:#245542; color:white; padding:12px 20px; font-size:13px; line-height:1.7; border-radius:10px; box-shadow:0 8px 30px #1d3f3426; }
@media(max-width:1000px) {
  .header-tools { gap:18px; }
  .brand-caption { display:none; }
  .notebooks-layout { grid-template-columns:200px minmax(0,1fr); gap:16px; }
  .notebooks-intro h1 { font-size:25px; }
}
@media(max-width:780px) {
  .header-tools .local-status { display:none; }
  .notebooks-layout { grid-template-columns:minmax(0,1fr); }
  .notebooks-sidebar { padding:17px 13px; }
  .notebook-list { flex-direction:row; overflow:auto; padding-bottom:3px; }
  .notebook-list-item { width:auto; min-width:130px; max-width:250px; flex-shrink:0; }
  .notebooks-sidebar h2 { margin-bottom:12px; }
  .notebooks-storage-note { margin-top:12px; padding-top:11px; }
  .notebook-detail-header { padding:22px; }
}
@media(max-width:480px) {
  .header-tools { gap:8px; }
  .brand { font-size:14px; gap:8px; }
  .brand-mark { width:30px; height:30px; }
  .app-tabs { padding:3px; }
  .app-tabs button { padding:7px 8px; font-size:11px; }
  .notebooks-intro { display:flex; flex-wrap:wrap; gap:17px; }
  .notebooks-intro h1 { font-size:23px; }
  .notebooks-intro .button-primary { font-size:12px; padding:9px 13px; }
  .notebook-detail-header { padding:21px 19px 18px; }
  .notebook-detail-header h2 { font-size:20px; }
  .notebook-filter-row { padding:0 19px 18px; }
  .notebook-words { padding:0 19px; }
  .notebook-entry-word { font-size:25px; }
  .entry-frequency { font-size:10px; }
  .entry-footer { gap:8px; }
  .entry-footer .button-quiet { font-size:11px; }
  .app-dialog { padding:22px; }
  .button-small { font-size:11px; }
}

/* Hosted access and touch layouts */
html { -webkit-text-size-adjust:100%; }
.account-button { border:1px solid #cddfd1; background:#f4f9f3; color:var(--green); border-radius:7px; min-height:38px; padding:8px 12px; font-size:12px; white-space:nowrap; }
.account-button:hover { background:#e9f3e8; }
.login-description { font-size:13px; color:#778b79; line-height:1.9; margin:0 0 18px; }
.app-dialog { max-height:calc(100dvh - 32px); overscroll-behavior:contain; }
@media (max-width:600px) {
  body { min-width:320px; padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
  .header-inner { padding:12px 16px; gap:10px; }
  .header-tools { gap:12px; }
  .brand { font-size:15px; gap:8px; white-space:nowrap; }
  .brand-mark { width:32px; height:32px; }
  .brand-caption { display:none; }
  .header-tools .local-status { display:none; }
  .library-stats { gap:8px; }
  .library-stats strong { font-size:16px; }
  .library-stats>div>span { font-size:9px; }
  .stats-divider { height:23px; }
  .account-button { min-height:40px; padding:7px 9px; font-size:11px; }
  .app-tabs { position:fixed; bottom:calc(12px + env(safe-area-inset-bottom)); left:16px; right:16px; z-index:20; padding:5px; gap:5px; border-radius:13px; background:#fff; box-shadow:0 5px 28px #244d3429; }
  .app-tabs button { flex:1; min-height:44px; font-size:14px; padding:9px 15px; }
  .app-tabs button[aria-selected="true"] { background:#edf6ee; box-shadow:none; }
  .page-shell { padding:16px 14px 20px; }
  .results-grid { gap:16px; }
  .search-form { padding:5px; border-radius:10px; }
  .search-field input { min-height:46px; font-size:16px; }
  .search-field input::placeholder { font-size:13px; }
  .search-button { min-height:46px; min-width:92px; font-size:13px; padding:0 12px; }
  .clear-button { min-width:32px; min-height:44px; }
  .word-card { padding:19px 19px 0; }
  .card-actions { gap:10px; }
  .card-actions .button-small { min-height:42px; padding:9px 12px; font-size:12px; }
  .word-heading h2 { font-size:43px; }
  .definition-text { font-size:15px; line-height:1.95; }
  .part-of-speech { font-size:13px; }
  .word-subtitle { font-size:12px; }
  .metric-box p { font-size:11px; }
  .metric-title { font-size:12px; }
  .study-note p { font-size:12px; }
  .membership-name { font-size:14px; }
  .membership-detail,.membership-state,.membership-note { font-size:11px; }
  .word-card-footer a { display:inline-flex; align-items:center; min-height:44px; font-size:11px; }
  .recent-words button { min-height:38px; font-size:12px; }
  .clear-history { min-height:38px; font-size:11px; }
  .app-dialog { width:calc(100% - 24px); max-height:calc(100dvh - 24px); padding:20px; border-radius:13px; }
  .app-dialog input,.app-dialog select,.app-dialog textarea { font-size:16px; min-height:44px; }
  .app-dialog label { font-size:13px; }
  .dialog-close { width:40px; height:40px; }
  .dialog-actions .button-primary,.dialog-actions .button-secondary { min-height:44px; }
  .dialog-actions { position:sticky; bottom:-20px; background:white; padding:14px 0 4px; margin-top:12px; }
  .notebook-toast { bottom:calc(86px + env(safe-area-inset-bottom)); font-size:12px; }
  .notebooks-intro { align-items:flex-start; }
  .notebooks-intro h1 { font-size:23px; }
  .notebooks-intro .button-primary { min-height:44px; }
  .notebook-list-item { min-height:48px; }
  .notebook-detail-header { gap:14px; }
  .book-actions { width:100%; justify-content:flex-end; gap:12px; }
  .book-actions .button-quiet,.book-actions .button-primary { min-height:42px; }
  .notebook-filter-row input { font-size:16px; min-height:44px; }
  .entry-note { font-size:16px; min-height:96px; }
  .entry-footer { flex-wrap:wrap; }
  .entry-footer .button-secondary,.entry-footer .button-quiet { min-height:42px; }
  .entry-lookup { min-height:40px; }
  .entry-frequency { font-size:11px; }
  .notebook-entry-meaning { font-size:14px; }
  .notebook-entry-word { font-size:28px; }
  .page-footer { font-size:10px; line-height:2; }
}
@media (max-width:360px) {
  .header-inner { padding:12px 10px; gap:7px; }
  .header-tools { gap:8px; }
  .brand { font-size:14px; }
  .library-stats strong { font-size:14px; }
  .library-stats { gap:6px; }
  .account-button { padding:7px; }
}
