.ef-dikter-shell {
  --ef-ease: cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.ef-dikter-paper {
  background: var(--bg-linen);
  border-radius: 20px;
  padding: 22px 24px;
  min-height: 152px;
  display: flex;
  align-items: flex-start;
  font-size: 20px;
  line-height: 31px;
  color: var(--text-ink);
  transition: opacity 180ms var(--ef-ease);
}

[data-theme="dark"] .ef-dikter-paper {
  background: #1d2821;
  color: #f0f3ed;
}

.ef-dikter-paper.is-clearing {
  opacity: 0;
}

.ef-dikter-text {
  width: 100%;
  transition: opacity 150ms var(--ef-ease);
}

.ef-dikter-text.is-swapping {
  opacity: 0.35;
}

.ef-after-pending {
  background: rgba(215, 229, 212, 0.56);
  border-radius: 5px;
  padding: 1px 4px;
}

.ef-after-review {
  background: rgba(196, 220, 192, 0.48);
  border-radius: 5px;
  padding: 1px 4px;
  transition: background-color 200ms ease;
}

[data-theme="dark"] .ef-after-pending {
  background: rgba(130, 174, 141, 0.22);
}

[data-theme="dark"] .ef-after-review {
  background: rgba(130, 174, 141, 0.28);
}

.ef-dw {
  display: inline-block;
  animation: efWordIn 150ms var(--ef-ease) both;
}

@keyframes efWordIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ef-caret {
  display: inline-block;
  width: 2px;
  height: 19px;
  background: #4a7a68;
  vertical-align: -3px;
  margin-left: 2px;
  animation: efBlink 0.9s steps(1) infinite;
}

@keyframes efBlink {
  50% { opacity: 0; }
}

.ef-after-result-slot {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ef-after-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 3px 6px 3px 11px;
  border-radius: 999px;
  border: 1px solid #d6dfd1;
  background: #fffefa;
  color: #26241f;
  box-shadow: 0 4px 14px rgba(32, 50, 38, 0.09);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms var(--ef-ease), visibility 0s linear 150ms;
}

#ef-after-result[data-show="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 150ms var(--ef-ease), visibility 0s;
}

.ef-after-res-chk {
  width: 13px;
  height: 13px;
  flex: none;
  color: #506957;
}

#ef-after-result[data-undone="true"] .ef-after-res-chk {
  display: none;
}

.ef-after-res-sep {
  width: 1px;
  height: 13px;
  flex: none;
  margin-inline: 2px;
  background: #d6dfd1;
}

.ef-after-res-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4e5f53;
  font-size: 13px;
  font-weight: 600;
  min-height: 26px;
  padding: 2px 9px;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color 140ms ease, color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ef-after-res-btn:hover {
    background: #eaf0e9;
    color: #26241f;
  }
}

[data-theme="dark"] #ef-after-result {
  background: #1f2722;
  border-color: #3a4a3f;
  color: #f3f6f0;
}

[data-theme="dark"] .ef-after-res-chk,
[data-theme="dark"] .ef-after-res-btn {
  color: #a9cfb4;
}

[data-theme="dark"] .ef-after-res-sep {
  background: #3a4a3f;
}

.ef-pill-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ef-lookc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 4px;
  border-radius: 999px;
  background: #fffefb;
  border: 1px solid #d5dfd1;
  box-shadow: 0 8px 22px rgba(26, 48, 37, 0.12);
}

[data-theme="dark"] .ef-lookc {
  background: #1d2821;
  border-color: rgba(245, 244, 239, 0.12);
  color: #f0f3ed;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.ef-lookc-lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eeefea;
  color: #3f352d;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ef-lookc-flag svg {
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(63, 53, 45, 0.16);
}

.ef-lookc-chev {
  width: 12px;
  height: 12px;
  color: #6d645d;
  flex: none;
}

[data-theme="dark"] .ef-lookc-lang {
  background: #27362d;
  color: #f0f3ed;
}

[data-theme="dark"] .ef-lookc-chev {
  color: #b4bfb6;
}

.ef-lookc-after {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #96ab96;
  background: #dfe8d5;
  color: #26241f;
  cursor: pointer;
  flex: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.ef-lookc-after[data-after-state="off"] {
  background: #eeefea;
  border-color: transparent;
  color: #3f352d;
}

@media (hover: hover) and (pointer: fine) {
  .ef-lookc-after:hover {
    background: #d4e1c9;
    border-color: #7c947e;
  }
}

.ef-after-ico,
.ef-lookc-after > svg:first-child {
  width: 16px;
  height: 16px;
  display: block;
  flex: none;
}

.ef-after-chev {
  width: 11px;
  height: 11px;
  flex: none;
  color: #4a534a;
  transition: transform 150ms var(--ef-ease);
}

.ef-lookc-after[aria-expanded="true"] .ef-after-chev {
  transform: rotate(180deg);
}

[data-theme="dark"] .ef-lookc-after {
  background: #2c4133;
  border-color: #7ea188;
  color: #f0f3ed;
}

[data-theme="dark"] .ef-lookc-after[data-after-state="off"] {
  background: #27362d;
  border-color: transparent;
  color: #b4bfb6;
}

[data-theme="dark"] .ef-after-chev {
  color: #c7d6ca;
}

.ef-lookc-mic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #eeefea;
  color: #4a7a68;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  touch-action: manipulation;
  transition: background-color 160ms var(--ef-ease), color 160ms var(--ef-ease);
}

.ef-lookc-mic > .ef-mic-svg,
.ef-lookc-mic > .ef-mic-bars {
  grid-area: 1 / 1;
}

.ef-lookc-mic .ef-mic-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ef-lookc-mic .ef-mic-svg svg {
  width: 18px;
  height: 18px;
}

.ef-lookc-mic .ef-mic-bars {
  display: none;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.ef-lookc-mic .ef-mic-bars i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  transform-origin: center;
}

.ef-lookc:is(.is-voice, .is-silence) .ef-lookc-mic {
  background: #4a7a68;
  color: #ffffff;
}

.ef-lookc:is(.is-voice, .is-silence) .ef-mic-svg {
  display: none;
}

.ef-lookc:is(.is-voice, .is-silence) .ef-mic-bars {
  display: inline-flex;
}

.ef-lookc.is-voice .ef-mic-bars i:nth-child(1) { height: 9px;  animation: efBarScale 0.5s ease-in-out infinite alternate -0.1s; }
.ef-lookc.is-voice .ef-mic-bars i:nth-child(2) { height: 18px; animation: efBarScale 0.5s ease-in-out infinite alternate -0.35s; }
.ef-lookc.is-voice .ef-mic-bars i:nth-child(3) { height: 13px; animation: efBarScale 0.5s ease-in-out infinite alternate -0.6s; }
.ef-lookc.is-voice .ef-mic-bars i:nth-child(4) { height: 7px;  animation: efBarScale 0.5s ease-in-out infinite alternate -0.2s; }

.is-paused .ef-lookc.is-voice .ef-mic-bars i,
.is-paused .ef-caret {
  animation-play-state: paused;
}

@keyframes efBarScale {
  from { transform: scaleY(0.28); }
  to   { transform: scaleY(1); }
}

[data-theme="dark"] .ef-lookc-mic {
  background: #27362d;
  color: #9ec2a7;
}

[data-theme="dark"] .ef-lookc:is(.is-voice, .is-silence) .ef-lookc-mic {
  background: #4a7a68;
  color: #ffffff;
}

#ef-after-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  z-index: 12;
  width: 280px;
  max-width: calc(100% - 8px);
  padding: 12px 13px;
  border: 1px solid #d6dfd1;
  border-radius: 18px;
  background: #fffefa;
  color: #26241f;
  box-shadow: 0 12px 28px rgba(32, 50, 38, 0.16);
  text-align: left;
}

.ef-after-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.ef-after-title {
  font-size: 14px;
  font-weight: 600;
  color: #26241f;
}

.ef-after-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f5b54;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ef-after-close svg {
  width: 15px;
  height: 15px;
}

.ef-after-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 0;
  padding: 0;
  margin: 0;
}

.ef-after-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13.5px;
  color: #26241f;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.ef-after-row.is-selected {
  background: #edf2e9;
  border-color: #c3d1be;
  font-weight: 600;
}

.ef-after-row svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: #26241f;
}

.ef-after-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid #8a9488;
  background: #fffefa;
  flex: none;
  cursor: pointer;
}

.ef-after-row input[type="radio"]:checked {
  border: 2px solid #4e5f53;
  background: radial-gradient(circle at center, #4e5f53 4px, #fffefa 4.5px) border-box;
}

.ef-after-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.ef-after-off {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  font-size: 13px;
  font-weight: 500;
  color: #424a40;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ef-after-apply {
  border: 0;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #5f7263;
  color: #fffefa;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

[data-theme="dark"] #ef-after-pop {
  background: #18221c;
  border-color: rgba(245, 244, 239, 0.14);
  color: #f0f3ed;
}

[data-theme="dark"] .ef-after-title,
[data-theme="dark"] .ef-after-row,
[data-theme="dark"] .ef-after-row svg {
  color: #f0f3ed;
}

[data-theme="dark"] .ef-after-row.is-selected {
  background: #25362b;
  border-color: #5f7e69;
}

[data-theme="dark"] .ef-after-close,
[data-theme="dark"] .ef-after-off {
  color: #b4bfb6;
}

.ef-after-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ef-after-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-linen);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-ink);
}

.ef-after-preview-item.is-active {
  background: var(--ef-card-sage);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.ef-after-preview-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ef-after-preview-left svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: none;
}

.ef-after-preview-note {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.ef-grammar-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ef-grammar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-main);
  font-size: 13px;
  color: var(--text-muted);
}

.ef-legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ef-legend-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

@media (max-width: 767px) {
  .ef-dikter-paper {
    padding: 16px;
    min-height: 132px;
    font-size: 17px;
    line-height: 27px;
  }
}
@media (max-width:480px){#ef-site-header .brand-link{min-width:0;flex:0 1 auto}#ef-site-header .ss-brand{min-width:0;max-width:100%}.ss-brand .rf-brand-lockup{height:28px;max-width:100%}}
@media (max-width:360px){#ef-site-header{--ef-pad-x:10px}#ef-site-header .nav-row{gap:6px}#ef-site-header .nav-actions{gap:2px}#ef-site-header .nav-actions .m5-nav-pill--primary{padding:0 9px;font-size:12px}.ss-brand .rf-brand-lockup{height:24px}}
