
/* ===== Synaptix home page ===== */
html{
  scroll-behavior:smooth;
}

.home-hero{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f6f5f2;
}

.hero-grid{
  position:relative;
  z-index:2;
  width:min(1400px, 92vw);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center;
}

.hero-brand{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.hero-brand-name{
  font-size:clamp(72px, 9vw, 120px);
  line-height:.95;
  font-weight:300;
  color:#0d0d0d;
  letter-spacing:-.045em;
}

.hero-copy{
  display:flex;
  justify-content:flex-end;
}

.hero-slogan{
  margin:0;
  text-align:right;
  font-size:clamp(48px, 6.4vw, 96px);
  line-height:1.08;
  font-weight:300;
  letter-spacing:-.04em;
  color:#101010;
}

.hero-ring-wrap{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:1;
}

.hero-burst-scene{
  position:relative;
  width:min(94vw, 1480px);
  height:min(86vw, 980px);
}

.sentence-burst{
  position:absolute;
  inset:0;
  animation-timing-function:linear;
  animation-iteration-count:infinite;
  transform-origin:center center;
}

.burst-left{
  animation-name:burstSpinLeft, burstDriftLeft;
  animation-duration:340s, 36s;
}

.burst-right{
  animation-name:burstSpinRight, burstDriftRight;
  animation-duration:390s, 42s;
}

.sentence-fragment{
  position:absolute;
  left:0;
  top:0;
  transform-origin:0 50%;
  white-space:nowrap;
  line-height:1;
  letter-spacing:-.015em;
  color:rgba(20,20,20,.82);
  text-shadow:0 1px 0 rgba(255,255,255,.32);
  user-select:none;
}

.sentence-fragment > span{
  display:inline-block;
  transform:translateX(var(--distance,0px));
  font-size:clamp(13px, 1.15vw, 22px);
  transform-origin:left center;
}

.sentence-fragment.rtl > span{
  direction:rtl;
  unicode-bidi:plaintext;
}

.sentence-fragment.depth-near{opacity:.92}
.sentence-fragment.depth-mid{opacity:.74}
.sentence-fragment.depth-far{opacity:.54}

@keyframes burstSpinLeft{
  from{transform:rotate(-6deg)}
  to{transform:rotate(354deg)}
}

@keyframes burstSpinRight{
  from{transform:rotate(8deg)}
  to{transform:rotate(-352deg)}
}

@keyframes burstDriftLeft{
  0%,100%{translate:0 0}
  30%{translate:-8px 10px}
  65%{translate:10px -14px}
}

@keyframes burstDriftRight{
  0%,100%{translate:0 0}
  35%{translate:10px -8px}
  70%{translate:-12px 12px}
}

.scroll-to-morph{
  position:absolute;
  left:50%;
  bottom:34px;
  transform:translateX(-50%);
  z-index:3;
  text-decoration:none;
  color:#111;
  border:1.5px solid #111;
  border-radius:999px;
  padding:12px 24px;
  font-size:16px;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(6px);
}

.scroll-to-morph:hover{
  background:#111;
  color:#fff;
}

#morphologySection{
  scroll-margin-top:0;
}

@media(max-width:980px){
  .hero-grid{
    grid-template-columns:1fr;
    gap:24px;
  }
  .hero-brand{justify-content:center}
  .hero-copy{justify-content:center}
  .hero-slogan{text-align:center}
  .hero-burst-scene{
    width:min(100vw, 900px);
    height:min(100vw, 900px);
  }
  .sentence-fragment > span{
    font-size:clamp(11px, 1.8vw, 16px);
  }
}


:root{
  --bg:#f7f6f3;
  --ink:#111111;
  --muted:#7b7770;
  --line:#dedbd3;
  --soft:#efede7;
  --blue:#3d6df2;
  --green:#15947c;
  --orange:#d88924;
  --purple:#8d5cf6;
}

*{box-sizing:border-box}

html, body{
  margin:0;
  min-height:100%;
  background:var(--bg);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

button, textarea{
  font:inherit;
}

.morph-app{
  min-height:100vh;
  padding:34px 42px 64px;
}

.topbar{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  margin-bottom:14vh;
}

.brand{
  color:var(--ink);
  text-decoration:none;
  font-size:30px;
  font-weight:700;
  letter-spacing:-.04em;
}

.nav{
  grid-column:2;
  font-size:22px;
  letter-spacing:-.02em;
}

.nav-current{
  border-bottom:1.5px solid var(--ink);
}

.microscope{
  width:min(920px, 92vw);
  margin:0 auto;
  text-align:center;
}

.input-label{
  display:block;
  margin-bottom:18px;
  font-size:22px;
  color:var(--muted);
  letter-spacing:-.02em;
}

.word-input{
  width:100%;
  min-height:72px;
  resize:none;
  overflow:hidden;
  border:0;
  border-bottom:2px solid var(--ink);
  background:transparent;
  outline:0;
  padding:4px 12px 12px;
  text-align:center;
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:54px;
  line-height:1.1;
  color:var(--ink);
}

.word-input::placeholder{
  color:#c9c5bd;
}

.result-panel{
  margin:52px auto 0;
  text-align:center;
}

.result-panel.empty{
  margin-top:38px;
}

.empty-state{
  color:var(--muted);
  line-height:1.45;
  font-size:16px;
}

.summary-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  font-size:16px;
  color:#262626;
  margin-bottom:28px;
}

.summary-line b{
  font-weight:700;
}

.confidence{
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 11px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
}

.confidence.high{color:var(--green);border-color:rgba(21,148,124,.32)}
.confidence.likely{color:var(--blue);border-color:rgba(61,109,242,.28)}
.confidence.possible{color:var(--orange);border-color:rgba(216,137,36,.35)}
.confidence.guess{color:var(--muted)}

.word-display{
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:44px;
  line-height:1.2;
  margin-bottom:26px;
}

.breakdown{
  direction:rtl;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin:22px 0 34px;
}

.plus{
  color:#a09b93;
  font-size:28px;
  line-height:1.6;
}

.morph-piece{
  border:0;
  background:transparent;
  padding:0 4px 8px;
  cursor:pointer;
  color:var(--ink);
  border-bottom:3px solid #c7c3bb;
  min-width:48px;
}

.morph-piece:hover,
.morph-piece.active{
  transform:translateY(-1px);
}

.morph-piece.base,
.morph-piece.stem{border-bottom-color:var(--blue)}
.morph-piece.prefix{border-bottom-color:var(--purple)}
.morph-piece.suffix{border-bottom-color:var(--green)}
.morph-piece.connector{border-bottom-color:var(--orange)}
.morph-piece.zero{border-bottom-color:#999}

.piece-text{
  display:block;
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:38px;
  line-height:1.05;
}

.piece-label{
  display:block;
  margin-top:8px;
  direction:ltr;
  font-size:12px;
  letter-spacing:.04em;
  color:var(--muted);
  text-transform:uppercase;
}

.pattern-block{
  width:min(680px, 100%);
  margin:0 auto;
  display:grid;
  gap:16px;
  text-align:left;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:22px 0;
}

.pattern-block b{
  display:block;
  margin-top:4px;
  font-size:18px;
}

.pattern-block p{
  margin:4px 0 0;
  line-height:1.45;
}

.muted{
  display:block;
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
}

.piece-explanation{
  width:min(680px, 100%);
  margin:0 auto 22px;
  min-height:92px;
  border-radius:20px;
  background:rgba(255,255,255,.48);
  border:1px solid var(--line);
  padding:18px;
  text-align:left;
}

.explain-title{
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:28px;
  font-weight:800;
  line-height:1.1;
}

.explain-role{
  margin-top:5px;
  color:var(--blue);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.explain-romanization{
  margin-top:10px;
  color:#35322d;
  font-size:16px;
  font-weight:700;
}

.explain-romanization span{
  margin-right:8px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.piece-explanation p{
  margin:10px 0 0;
  line-height:1.45;
}

.warnings{
  width:min(680px, 100%);
  margin:22px auto 0;
  text-align:left;
  color:#4a3520;
  background:#fff7e8;
  border:1px solid #f3d7a5;
  border-radius:20px;
  padding:16px 18px;
}

.warning-title{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#9a5d07;
  margin-bottom:8px;
}

.warnings p{
  margin:6px 0;
  line-height:1.4;
}

.copy-anki{
  margin-top:26px;
  border:1.5px solid var(--ink);
  background:transparent;
  border-radius:999px;
  padding:11px 18px;
  cursor:pointer;
  font-weight:700;
}

.copy-anki:hover{
  background:var(--ink);
  color:var(--bg);
}

.copy-status{
  min-height:24px;
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
  white-space:pre-wrap;
}

@media(max-width:760px){
  .morph-app{padding:24px 18px 48px}
  .topbar{margin-bottom:10vh}
  .brand{font-size:26px}
  .nav{font-size:19px}
  .word-input{font-size:42px}
  .piece-text{font-size:31px}
  .summary-line{gap:10px}
  .pattern-block,.piece-explanation,.warnings{text-align:left}
}


/* ===== Requested fixes: Synapt'x, no long black line, Farsi keyboard ===== */
.hero-brand-name,
.brand{
  letter-spacing:-0.055em;
}

.word-input{
  border-bottom:0 !important;
  background:rgba(255,255,255,.38) !important;
  border-radius:22px !important;
  min-height:76px !important;
  padding:10px 18px 14px !important;
}

.word-input:focus{
  box-shadow:0 0 0 1px rgba(17,17,17,.12), 0 12px 40px rgba(0,0,0,.045) !important;
}

.result-panel.empty{
  display:none !important;
}

.farsi-keyboard{
  width:min(780px, 100%);
  margin:24px auto 0;
  display:grid;
  gap:8px;
  direction:rtl;
  user-select:none;
}

.key-row{
  display:flex;
  justify-content:center;
  gap:7px;
}

.key-row button{
  border:1px solid rgba(17,17,17,.10);
  background:rgba(255,255,255,.48);
  min-width:42px;
  height:42px;
  border-radius:12px;
  cursor:pointer;
  color:#151515;
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:22px;
  line-height:1;
  transition:transform .08s ease, background .12s ease, border-color .12s ease;
}

.key-row button:hover{
  background:rgba(255,255,255,.78);
  border-color:rgba(17,17,17,.2);
}

.key-row button:active{
  transform:translateY(1px);
}

.key-row.utility{
  direction:ltr;
  margin-top:2px;
}

.key-row.utility button{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  color:#35322d;
}

.key-row button.wide{
  min-width:104px;
  padding:0 14px;
}

@media(max-width:760px){
  .farsi-keyboard{
    gap:6px;
    margin-top:18px;
  }

  .key-row{
    gap:5px;
  }

  .key-row button{
    min-width:29px;
    height:36px;
    border-radius:9px;
    font-size:18px;
  }

  .key-row button.wide{
    min-width:72px;
    font-size:12px;
  }
}


/* Remove morphology-page top-left brand and keep header centered */
.brand-spacer{
  display:block;
}

#morphologySection .topbar{
  grid-template-columns:1fr auto 1fr;
}

#morphologySection .brand{
  display:none !important;
}


/* ===== Minimal Syntax Decoder ===== */
.nav{
  display:flex;
  align-items:center;
  gap:28px;
}
.nav-link{
  color:#77736b;
  text-decoration:none;
  font-size:22px;
}
.nav-link:hover{
  color:#111;
}

.syntax-app{
  min-height:100vh;
  padding:34px 42px 72px;
  background:#f7f6f3;
  color:#111;
}

.syntax-top{
  display:flex;
  justify-content:center;
  margin-bottom:13vh;
}

.syntax-nav{
  display:flex;
  gap:28px;
  align-items:center;
  font-size:22px;
}

.syntax-nav a{
  color:#77736b;
  text-decoration:none;
}

.syntax-nav a:hover{
  color:#111;
}

.syntax-nav span{
  color:#111;
  border-bottom:1.5px solid #111;
}

.syntax-decoder{
  width:min(980px, 92vw);
  margin:0 auto;
  text-align:center;
}

.sentence-input{
  width:100%;
  min-height:76px;
  resize:none;
  overflow:hidden;
  border:0;
  background:rgba(255,255,255,.38);
  border-radius:22px;
  outline:0;
  padding:10px 18px 14px;
  text-align:center;
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:44px;
  line-height:1.2;
  color:#111;
}

.sentence-input:focus{
  box-shadow:0 0 0 1px rgba(17,17,17,.12), 0 12px 40px rgba(0,0,0,.045);
}

.syntax-keyboard{
  margin-top:22px;
}

.syntax-result{
  width:min(920px, 100%);
  margin:48px auto 0;
}

.syntax-result.empty{
  display:none;
}

.chunk-row{
  direction:rtl;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin:0 auto 28px;
}

.syntax-chunk{
  border:0;
  background:transparent;
  cursor:pointer;
  padding:0 4px 9px;
  border-bottom:3px solid #c9c5bd;
  min-width:56px;
  color:#111;
}

.syntax-chunk:hover,
.syntax-chunk.active{
  transform:translateY(-1px);
}

.syntax-chunk.subject{border-bottom-color:#3d6df2}
.syntax-chunk.time{border-bottom-color:#8d5cf6}
.syntax-chunk.place{border-bottom-color:#d88924}
.syntax-chunk.object{border-bottom-color:#cc5a5a}
.syntax-chunk.verb{border-bottom-color:#15947c}
.syntax-chunk.connector{border-bottom-color:#77736b}
.syntax-chunk.other{border-bottom-color:#b7b2aa}

.chunk-text{
  display:block;
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:32px;
  line-height:1.12;
}

.chunk-label{
  display:block;
  direction:ltr;
  margin-top:8px;
  font-size:11px;
  letter-spacing:.08em;
  color:#77736b;
  text-transform:uppercase;
  font-weight:800;
}

.translation-block{
  width:min(760px, 100%);
  margin:0 auto;
  border-top:1px solid #dedbd3;
  border-bottom:1px solid #dedbd3;
  padding:22px 0;
  display:grid;
  gap:18px;
  text-align:left;
}

.translation-block .line-label{
  display:block;
  color:#77736b;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  margin-bottom:5px;
}

.translation-text{
  margin:0;
  font-size:18px;
  line-height:1.45;
}

.literal-order{
  direction:rtl;
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:23px;
  line-height:1.45;
}

.decode-steps{
  width:min(760px, 100%);
  margin:24px auto 0;
  text-align:left;
  display:grid;
  gap:10px;
}

.decode-step{
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-size:15px;
  line-height:1.45;
}

.step-num{
  color:#77736b;
  font-weight:800;
  min-width:24px;
}

.chunk-explanation{
  width:min(760px, 100%);
  margin:24px auto;
  text-align:left;
  border:1px solid #dedbd3;
  background:rgba(255,255,255,.48);
  border-radius:20px;
  padding:18px;
  min-height:88px;
}

.chunk-title{
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:29px;
  font-weight:800;
  line-height:1.1;
}

.chunk-role{
  margin-top:5px;
  color:#15947c;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.chunk-explanation p{
  margin:10px 0 0;
  line-height:1.45;
}

@media(max-width:760px){
  .syntax-app{padding:24px 18px 52px}
  .syntax-top{margin-bottom:9vh}
  .sentence-input{font-size:34px}
  .chunk-text{font-size:25px}
  .translation-block,.decode-steps,.chunk-explanation{text-align:left}
}


/* ===== Multi-page structure ===== */
.scroll-to-morph{
  font-weight:700;
  min-width:112px;
  text-align:center;
}

.tools-page{
  min-height:100vh;
  background:#f7f6f3;
  color:#111;
  padding:34px 42px 72px;
}

.tools-top{
  display:flex;
  justify-content:flex-start;
  align-items:center;
}

.tools-home{
  color:#111;
  text-decoration:none;
  font-size:30px;
  font-weight:400;
  letter-spacing:-.055em;
}

.tools-choice{
  width:min(920px, 92vw);
  margin:22vh auto 0;
  text-align:center;
}

.tools-choice h1{
  margin:0 0 42px;
  font-size:clamp(46px, 6vw, 82px);
  line-height:1;
  font-weight:300;
  letter-spacing:-.055em;
}

.tool-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.tool-card{
  min-height:230px;
  border:1px solid #dedbd3;
  border-radius:28px;
  padding:26px;
  text-align:left;
  text-decoration:none;
  color:#111;
  background:rgba(255,255,255,.36);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition:transform .16s ease, background .16s ease, border-color .16s ease;
}

.tool-card:hover{
  transform:translateY(-3px);
  background:rgba(255,255,255,.62);
  border-color:#c8c3ba;
}

.tool-kicker{
  color:#77736b;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:800;
}

.tool-card strong{
  display:block;
  font-size:42px;
  letter-spacing:-.04em;
  font-weight:400;
}

.tool-card span:last-child{
  color:#55514b;
  line-height:1.45;
}

.page-topbar{
  display:grid !important;
  grid-template-columns:1fr auto 1fr !important;
  align-items:center !important;
  margin-bottom:13vh !important;
}

.page-nav-link{
  color:#77736b;
  text-decoration:none;
  font-size:18px;
  justify-self:start;
}

.page-nav-link:hover{
  color:#111;
}

.standalone-page{
  min-height:100vh;
}

#morphologySection .nav,
#syntaxSection .syntax-nav{
  justify-self:center;
}

@media(max-width:760px){
  .tools-page{padding:24px 18px 52px}
  .tools-choice{margin-top:16vh}
  .tool-cards{grid-template-columns:1fr}
  .tool-card{min-height:190px}
  .page-topbar{
    grid-template-columns:1fr !important;
    gap:18px;
    text-align:center;
  }
  .page-nav-link{
    justify-self:center;
  }
}


/* ===== Local Review page ===== */
.tools-page .tool-cards{
  grid-template-columns:repeat(3, 1fr);
}

.review-app{
  min-height:100vh;
  padding:34px 42px 72px;
  background:#f7f6f3;
  color:#111;
}

.review-page{
  width:min(780px, 92vw);
  margin:0 auto;
  text-align:center;
}

.review-head h1{
  margin:0;
  font-size:clamp(52px, 7vw, 88px);
  line-height:1;
  font-weight:300;
  letter-spacing:-.055em;
}

.review-head p{
  color:#77736b;
  margin:14px 0 42px;
}

.review-card{
  min-height:310px;
  border:1px solid #dedbd3;
  border-radius:28px;
  background:rgba(255,255,255,.42);
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:18px;
}

.review-card.empty{
  color:#77736b;
}

.review-front{
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:clamp(42px, 7vw, 72px);
  line-height:1.15;
  direction:rtl;
}

.review-kind{
  color:#77736b;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:900;
}

.review-back{
  width:100%;
  text-align:left;
  display:grid;
  gap:14px;
}

.review-back strong{
  display:block;
  font-size:22px;
  font-weight:700;
}

.review-small-label{
  display:block;
  color:#77736b;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
  margin-bottom:4px;
}

.review-line{
  font-size:17px;
  line-height:1.45;
}

.review-persian{
  direction:rtl;
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:26px;
  line-height:1.35;
}

.review-actions,
.review-manage{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}

.review-actions button,
.review-manage button,
.import-label{
  border:1.5px solid #111;
  background:transparent;
  color:#111;
  border-radius:999px;
  padding:11px 18px;
  cursor:pointer;
  font-weight:800;
  font-size:14px;
}

.review-actions button:hover,
.review-manage button:hover,
.import-label:hover{
  background:#111;
  color:#f7f6f3;
}

.import-label input{
  display:none;
}

.save-study{
  margin-top:18px;
  border:1.5px solid #111;
  background:transparent;
  border-radius:999px;
  padding:10px 17px;
  cursor:pointer;
  font-weight:800;
}

.save-study:hover{
  background:#111;
  color:#f7f6f3;
}

.save-status{
  min-height:22px;
  color:#77736b;
  margin-top:8px;
  font-size:13px;
}

@media(max-width:900px){
  .tools-page .tool-cards{
    grid-template-columns:1fr;
  }
}


/* ===== Persian / Arabic language toggle ===== */
.language-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  border:1px solid #dedbd3;
  border-radius:999px;
  padding:4px;
  margin:0 auto 26px;
  background:rgba(255,255,255,.38);
}

.lang-btn{
  border:0;
  background:transparent;
  color:#77736b;
  border-radius:999px;
  padding:9px 15px;
  cursor:pointer;
  font-weight:800;
  font-size:13px;
}

.lang-btn.active{
  background:#111;
  color:#f7f6f3;
}

.lang-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dedbd3;
  border-radius:999px;
  padding:5px 10px;
  color:#77736b;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.root-display{
  direction:rtl;
  font-family:"Noto Naskh Arabic","Noto Sans Arabic","Geeza Pro",Tahoma,serif;
  font-size:24px;
  margin-top:6px;
}


/* Arabic parser fix polish */
.word-input,
.sentence-input{
  line-height:1.35 !important;
}

.morph-piece.stem .piece-label{
  letter-spacing:.06em;
}
