@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;450;500;550;600;650;700;750;800;900&display=swap');
:root {
  --paper: #fbf8f3;
  --white: #fff;
  --ink: #263730;
  --muted: #7c857f;
  --accent: #416954;
  --accent-light: #e9f0e9;
  --coral: #db795f;
  --line: #e6e8e2;
  --notice-height: 0px;
  --font: 'Heebo', Arial, 'Noto Sans Hebrew', sans-serif;
  color-scheme: light;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
svg {
  vertical-align: middle;
  flex-shrink: 0;
}
button svg {
  pointer-events: none;
}
button {
  border: 0;
  background: none;
}
input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 12px 14px;
  min-width: 0;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #41695413;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #a9bfae;
  outline-offset: 3px;
}
::selection {
  background: #dbe7db;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
p {
  line-height: 1.75;
}
button {
  line-height: 1.4;
}
img {
  max-width: 100%;
}
.skip-link {
  position: fixed;
  top: -60px;
  right: 15px;
  z-index: 2000;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.initial-loading {
  height: 100dvh;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.brand-mark {
  font-size: 32px;
  font-weight: 800;
}
.brand-symbol {
  width: 29px;
  height: 29px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  transform: rotate(-8deg);
}
.brand-symbol i {
  display: block;
  background: currentColor;
  border-radius: 5px;
}
.brand-symbol i:last-child {
  border-bottom-left-radius: 1px;
  transform: translateY(3px);
}
.brand-period {
  color: var(--coral);
}
.wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  min-height: 46px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #315440;
  transform: translateY(-1px);
}
.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn.secondary:hover {
  background: #f4f5ef;
}
.btn.text {
  background: transparent;
  color: var(--accent);
  padding: 10px 8px;
}
.btn.danger {
  background: #b24d43;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--avatar-bg, #e6e7df);
  color: #4b534b;
  font-size: 13px;
  font-weight: 650;
}
.avatar.small {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  font-size: 11px;
}
.avatar.large {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  font-size: 21px;
}
.demo-notice {
  height: 30px;
  background: #edf1e9;
  color: #5c6d5f;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid #dfe6d8;
}
.demo-notice .notice-dot {
  width: 5px;
  height: 5px;
  background: #b7775c;
  border-radius: 50%;
}
.demo-notice button {
  font-size: 12px;
  text-decoration: underline;
  padding: 0 4px;
}
.app-modal {
  border: 1px solid #e5e7df;
  border-radius: 22px;
  padding: 28px;
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100dvh - 60px);
  overflow: auto;
  color: var(--ink);
  background: white;
  box-shadow: 0 24px 100px #17251c30;
  direction: rtl;
}
.app-modal::backdrop {
  background: #25362d65;
  backdrop-filter: blur(5px);
}
.app-modal h2 {
  font-size: 23px;
  margin-bottom: 10px;
}
.app-modal h3 {
  font-size: 19px;
}
.app-modal label {
  display: block;
  margin: 15px 0 6px;
  font-weight: 550;
}
.app-modal input:not([type='checkbox']):not([type='radio']),
.app-modal textarea,
.app-modal select {
  width: 100%;
}
.app-modal .modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
}
.app-modal .modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.app-modal .hint {
  color: var(--muted);
  font-size: 13px;
}
#toast-region {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #293e32;
  color: white;
  box-shadow: 0 8px 35px #17251c20;
  max-width: calc(100vw - 30px);
  padding: 13px 22px;
  border-radius: 12px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  text-align: center;
}
#toast-region.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.form-error {
  color: #a33e36;
  font-size: 14px;
  margin: 10px 0;
  background: #fff2ed;
  border-radius: 9px;
  padding: 11px;
  line-height: 1.6;
}
.form-error:empty {
  display: none;
}
.helper {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
.loading-spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-layout {
  min-height: calc(100dvh - var(--notice-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.auth-story {
  background: #edf1e8;
  padding: 50px clamp(35px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid #d6dfce;
  border-radius: 50%;
  bottom: -300px;
  right: -180px;
}
.auth-story h1 {
  font-size: clamp(32px, 3.3vw, 51px);
  line-height: 1.25;
  letter-spacing: -1.5px;
  max-width: 390px;
  margin: 55px 0 22px;
}
.auth-story h1 em {
  font-style: normal;
  color: var(--accent);
}
.auth-story p {
  font-size: 18px;
  color: #6c786b;
  max-width: 370px;
}
.auth-mini {
  background: #fffdf8;
  border-radius: 20px;
  padding: 23px;
  box-shadow: 0 20px 50px #45553b0a;
  max-width: 380px;
  transform: rotate(-3deg);
  margin: 30px 0;
  display: flex;
  gap: 14px;
}
.auth-mini strong {
  display: block;
  margin-bottom: 7px;
}
.auth-mini p {
  font-size: 15px;
  margin: 0;
}
.auth-story-footer {
  font-size: 12px;
  color: #7b8778;
  padding-top: 30px;
}
.auth-form-area {
  padding: 50px 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card .eyebrow {
  font-size: 13px;
  color: var(--coral);
  font-weight: 650;
  letter-spacing: 0.1px;
  margin-bottom: 17px;
}
.auth-card h2 {
  font-size: 31px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}
.auth-card .intro {
  color: var(--muted);
  margin-bottom: 27px;
}
.auth-card label {
  display: block;
  font-weight: 550;
  font-size: 14px;
  margin-bottom: 7px;
}
.auth-card input {
  width: 100%;
  height: 50px;
}
.auth-card .field {
  margin-bottom: 19px;
}
.auth-card .btn {
  width: 100%;
  margin-top: 12px;
}
.auth-card .auth-bottom {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 25px 0;
}
.auth-card .auth-bottom a {
  color: var(--accent);
  font-weight: 600;
}
.auth-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 35px;
}
.auth-progress i {
  height: 4px;
  width: 36px;
  background: #e7eae3;
  border-radius: 5px;
}
.auth-progress i.current {
  background: var(--accent);
}
.auth-back {
  margin-bottom: 22px;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-left: 50px;
}
.password-wrap button {
  position: absolute;
  left: 7px;
  top: 6px;
}
.org-address {
  display: flex;
  direction: ltr;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  overflow: hidden;
  background: #f8f9f5;
}
.org-address span {
  font-size: 14px;
  padding: 0 13px;
  color: var(--muted);
}
.org-address input {
  direction: ltr;
  border: 0;
  border-radius: 0;
  background: white;
}
.ready-check {
  width: 72px;
  height: 72px;
  background: #eaf1e8;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 23px;
}
.ready-link {
  background: #f5f7f1;
  padding: 14px 15px;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  direction: ltr;
  margin: 25px 0;
}
.ready-link code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.ready-link button {
  color: var(--accent);
  flex-shrink: 0;
}
.auth-details {
  font-size: 13px;
  line-height: 1.65;
  color: #75816e;
  padding: 12px 15px;
  background: #f2f5ed;
  border-radius: 10px;
}
.auth-checklist {
  padding: 0;
  list-style: none;
  color: #61715d;
}
.auth-checklist li {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 15px 0;
  font-size: 15px;
}
.auth-success {
  text-align: right;
}
.center-screen {
  min-height: calc(100dvh - var(--notice-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--paper);
}
.center-card {
  max-width: 470px;
  background: white;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--line);
}
.center-card h1 {
  font-size: 28px;
}
.center-card p {
  color: var(--muted);
}
@media (max-width: 800px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 25px 25px 30px;
    min-height: 0;
  }
  .auth-story h1 {
    font-size: 30px;
    margin: 30px 0 0;
    max-width: none;
  }
  .auth-story > div > p,
  .auth-mini,
  .auth-story-footer {
    display: none;
  }
  .auth-form-area {
    padding: 30px 24px;
  }
  .wordmark {
    font-size: 25px;
  }
  .auth-card h2 {
    font-size: 27px;
  }
  .auth-progress {
    margin-bottom: 25px;
  }
  .demo-notice {
    font-size: 11px;
  }
  .auth-story h1 br {
    display: none;
  }
  .center-card {
    padding: 28px;
  }
  .app-modal {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.brand-symbol {
  display: inline-flex;
  transform: none;
  width: 36px;
  height: 36px;
}
.brand-symbol svg {
  width: 100%;
  height: 100%;
}
.chat-brand-symbol {
  display: flex !important;
  transform: none !important;
  width: 32px !important;
  height: 32px !important;
  --brand-cutout: #416954;
}
.chat-brand-symbol svg {
  width: 32px;
  height: 32px;
}
.auth-recovery-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: underline;
  font-size: 14px;
  margin-top: 16px;
  padding-block: 8px;
}
