/* Wrachat current design. Component layout and active theme; edit this file directly. */
:root {
  --ink: #123c38;
  --muted: #647873;
  --teal: #146957;
  --lime: #d4ef83;
  --paper: #f8f9f3;
  --line: #dce5db;
  --white: #fff;
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input {
  font: inherit;
}

button,a,input {
  -webkit-tap-highlight-color: transparent;
}

button,.btn {
  cursor: pointer;
}

button:disabled {
  opacity: .65;
  cursor: wait;
}

a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible {
  outline: 3px solid #8cb535;
  outline-offset: 4px;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 90px;
}

.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px;
}

.nav {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -1px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px 12px 12px 3px;
  background: var(--teal);
  display: grid;
  place-items: center;
  color: white;
  font-size: 21px;
  letter-spacing: -3px;
  padding-right: 3px;
}

.nav-links,.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  font-size: 14px;
  font-weight: 550;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 21px;
  background: var(--teal);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.35;
  transition: transform .18s,background .18s;
}

.btn:hover {
  background: #0b5142;
  transform: translateY(-2px);
}

.btn.light {
  background: var(--lime);
  color: var(--ink);
}

.btn.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.nav-login {
  font-weight: 650;
  font-size: 14px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
}

.dot {
  height: 7px;
  width: 7px;
  background: #548323;
  border-radius: 50%;
  display: inline-block;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.hero h1 {
  font-size: clamp(42px,4.65vw,64px);
  line-height: 1.09;
  font-weight: 700;
  letter-spacing: -3.4px;
  margin: 0 0 25px;
}

.hero h1 span {
  color: var(--teal);
}

.hero-copy>p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 435px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 29px 0 24px;
}

.small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.checks {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
}

.checks span:before {
  content: '✓';
  color: var(--teal);
  margin-right: 6px;
}

.scene {
  position: relative;
  padding: 35px 22px;
  background: #e6eede;
  border-radius: 42% 42% 28% 24%;
  min-width: 0;
}

.chat-card {
  position: relative;
  border-radius: 17px;
  background: white;
  box-shadow: 0 22px 55px #24483415;
  border: 1px solid #dde6dc;
  transform: rotate(-2deg);
  overflow: hidden;
  margin: 0 12px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 19px;
  border-bottom: 1px solid #edf1ec;
}

.avatar {
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  font-weight: 750;
}

.chat-head strong {
  font-size: 13px;
  display: block;
}

.online {
  font-size: 10px;
  color: #6e7f76;
  margin-top: 3px;
}

.chat-head .dots {
  margin-left: auto;
  letter-spacing: 2px;
}

.chat-body {
  padding: 20px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.day {
  text-align: center;
  font-size: 9px;
  letter-spacing: 1px;
  color: #94a099;
}

.bubble {
  max-width: 84%;
  padding: 12px 15px;
  border-radius: 12px 12px 12px 2px;
  background: #f1f4ed;
  font-size: 12px;
  line-height: 1.65;
}

.bubble.mine {
  align-self: flex-end;
  border-radius: 12px 12px 2px 12px;
  background: var(--teal);
  color: #fff;
}

.bubble small {
  display: block;
  opacity: .6;
  font-size: 9px;
  text-align: right;
  margin-top: 6px;
}

.fake-compose {
  margin: 0 17px 17px;
  border: 1px solid #e7ebe4;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 11px;
  color: #909d94;
}

.send-icon {
  background: var(--teal);
  padding: 5px 9px;
  border-radius: 6px;
  color: white;
}

.float-badge {
  position: absolute;
  background: white;
  box-shadow: 0 9px 32px #24483413;
  z-index: 1;
  border: 1px solid #e7eddf;
  border-radius: 12px;
  font-size: 11px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.float-badge.top {
  top: 4px;
  right: 0;
  transform: rotate(3deg);
}

.float-badge.bottom {
  bottom: 13px;
  left: -15px;
  transform: rotate(-3deg);
}

.badge-icon {
  background: var(--lime);
  border-radius: 9px;
  padding: 8px;
  font-size: 17px;
}

.float-badge b {
  display: block;
  margin-bottom: 2px;
}

.spark {
  position: absolute;
  right: -9px;
  bottom: 78px;
  font-size: 42px;
  color: #809e4f;
}

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.strip span {
  color: var(--muted);
}

.strip b {
  font-weight: 600;
}

.section {
  padding: 86px 28px;
}

.section h2 {
  font-size: 38px;
  letter-spacing: -1.7px;
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 650;
}

.section-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 500px;
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 35px;
}

.section-top .section-lead {
  max-width: 345px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.feature {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 27px;
}

.feature .icon {
  height: 43px;
  width: 43px;
  display: grid;
  place-items: center;
  background: #ecf2e5;
  border-radius: 12px;
  font-size: 21px;
  margin-bottom: 27px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 12px;
}

.feature p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}

.steps-panel {
  background: #eaf0e3;
  border-radius: 23px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 65px;
}

.steps {
  display: grid;
  gap: 28px;
}

.step {
  display: flex;
  gap: 20px;
}

.step-num {
  font-size: 12px;
  border: 1px solid #cdd9c6;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step h3 {
  font-size: 15px;
  margin: 3px 0 8px;
}

.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.faq {
  max-width: 750px;
  margin: 0 auto;
}

.faq h2 {
  text-align: center;
  margin-bottom: 34px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

details p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.cta {
  text-align: center;
  background: var(--ink);
  color: white;
  border-radius: 24px;
  padding: 52px 24px;
}

.cta h2 {
  font-size: 38px;
  letter-spacing: -1.5px;
  margin: 0 0 15px;
}

.cta p {
  color: #b9cec5;
  font-size: 14px;
  margin: 0 0 25px;
}

footer.shell {
  padding-top: 40px;
  padding-bottom: 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 30px;
}

.footer-links {
  display: flex;
  gap: 25px;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-story {
  padding: 48px 10%;
  background: #e7efdf;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 35px;
  position: relative;
  overflow: hidden;
}

.auth-story h1 {
  font-size: clamp(35px,3.5vw,51px);
  letter-spacing: -2px;
  line-height: 1.13;
  max-width: 400px;
  margin: 0 0 22px;
}

.auth-story p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  max-width: 360px;
}

.story-note {
  font-size: 12px;
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 35px;
}

.story-note .avatar {
  background: #d4e4c6;
  color: var(--ink);
}

.auth-main {
  padding: 45px 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.auth-form {
  width: 100%;
  max-width: 385px;
}

.back {
  font-size: 12px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 38px;
}

.auth-form h2 {
  font-size: 31px;
  letter-spacing: -1px;
  margin: 0 0 10px;
}

.auth-form>p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dbe3db;
  border-radius: 9px;
  background: #fcfdfa;
  color: var(--ink);
  font-size: 14px;
}

.field input:focus {
  border-color: var(--teal);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 80px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 7px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 11px;
  padding: 8px;
}

.field .small {
  margin: 6px 0 0;
  font-size: 11px;
}

.full {
  width: 100%;
}

.form-error {
  color: #9c2c2c;
  font-size: 13px;
  line-height: 1.7;
  min-height: 1px;
  margin: 12px 0;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  margin-top: 25px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--teal);
  font-weight: 650;
}

.auth-footer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 35px;
  text-align: center;
}

.mini-chat {
  max-width: 345px;
  background: #fff;
  border: 1px solid #d6e2cf;
  border-radius: 16px;
  padding: 21px;
  margin-top: 28px;
  box-shadow: 0 15px 35px #4861380a;
}

.mini-chat .bubble {
  margin-top: 14px;
}

.welcome {
  max-width: 730px;
  margin: 60px auto;
  background: white;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.welcome h1 {
  font-size: 32px;
  letter-spacing: -1px;
}

.code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--paper);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
}

.hidden {
  display: none!important;
}

@media(max-width:800px) {
  .nav-links {
    display: none;
  }

  .hero {
    gap: 35px;
    padding-top: 40px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 580px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .scene {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  .section-top {
    display: block;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .section-top .section-lead {
    max-width: none;
  }

  .section {
    padding: 55px 28px;
  }

  .steps-panel {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 27px;
  }

  .strip {
    flex-wrap: wrap;
    justify-content: center;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-story {
    padding: 24px 28px;
  }

  .auth-story>div:not(:first-child),.auth-story>p {
    display: none;
  }

  .auth-main {
    padding: 30px 25px 45px;
  }

  .footer-top {
    align-items: start;
    flex-direction: column;
  }

  .welcome {
    margin: 30px 20px;
    padding: 25px;
  }

}

@media(max-width:440px) {
  .shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .nav {
    gap: 10px;
    height: 78px;
  }

  .nav-actions {
    gap: 14px;
  }

  .nav .btn {
    padding: 11px 13px;
    font-size: 12px;
  }

  .logo {
    font-size: 23px;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-actions .btn {
    padding: 13px 15px;
  }

  .checks {
    gap: 9px;
    font-size: 10px;
  }

  .section h2,.cta h2 {
    font-size: 30px;
  }

  .float-badge.bottom {
    left: -4px;
  }

  .scene {
    padding: 30px 9px;
  }

  .hero {
    padding-bottom: 50px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

}

:root,html[data-theme=light] {
  --bg: #f5f8ff;
  --panel: #fff;
  --line: #e2eaf5;
  --text: #10254d;
  --muted: #627695;
  --cyan: #2563eb;
  --gold: #2563eb;
  --shell-panel: #fff;
  --shell-input: #f7faff;
  --shell-border: #e2eaf5;
  --shell-accent: #2563eb;
  --shell-text: #10254d;
  --shell-muted: #627695;
  --ocean-tint: #eaf3ff;
  --ocean-shadow: 0 4px 24px #163d7210;
}

html[data-theme=dark] {
  --bg: #101b2e;
  --panel: #18263b;
  --line: #30435c;
  --text: #e9f2ff;
  --muted: #aec0da;
  --shell-panel: var(--panel);
  --shell-input: #101b2e;
  --shell-border: var(--line);
  --shell-text: var(--text);
  --shell-muted: var(--muted);
  --ocean-tint: #233b60;
  --ocean-shadow: none;
}

body {
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}

button,input,select,textarea {
  font: inherit;
}

button:focus-visible,a:focus-visible {
  outline: 3px solid #93baff;
  outline-offset: 3px;
}

button {
  min-height: 40px;
}

.logo,.logo.small,.logo-mark {
  background: #2563eb;
  color: white;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  letter-spacing: -3px;
  font-weight: 900;
}

.brand b {
  letter-spacing: -.5px;
  font-size: 19px;
  text-transform: none;
}

.brand small {
  font-size: 11px;
}

.dashboard.workspace-layout {
  padding-top: 68px;
  grid-template-columns: 220px 300px minmax(0,1fr) 220px;
}

.workspace-layout.with-subnav {
  grid-template-columns: 220px 200px minmax(0,1fr);
}

.workspace-layout .primary-sidebar {
  padding: 26px 15px;
  background: var(--panel);
}

.primary-sidebar .brand {
  position: fixed;
  top: 18px;
  left: 22px;
  padding: 0;
  z-index: 62;
}

.primary-sidebar>nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: auto;
}

.primary-sidebar>nav button {
  min-height: 46px;
  color: var(--muted);
  font-size: 13px!important;
}

.primary-sidebar nav button:before {
  color: #7b92b6!important;
}

nav button:hover,nav button.nav-active,.workspace-layout #workspaceSubnav button.nav-active {
  background: var(--ocean-tint)!important;
  color: var(--cyan)!important;
  border-color: transparent!important;
}

.primary-sidebar nav button.nav-active:before {
  color: var(--cyan)!important;
}

.sidebar-account {
  font-size: 12px;
}

.ocean-topbar {
  position: fixed;
  top: 0;
  left: 220px;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 30px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}

.ocean-search {
  max-width: 480px;
  flex: 1;
  border: 0;
  background: var(--shell-input);
  padding: 11px 16px;
  border-radius: 9px;
  color: var(--muted);
  text-align: left;
  font-size: 12px;
}

.ocean-status {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.ocean-status:before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #1cba80;
  border-radius: 50%;
  margin-right: 7px;
}

.ocean-account {
  width: 36px;
  min-width: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--ocean-tint);
  color: var(--cyan);
  font-weight: 700;
}

.workspace-layout #management>header {
  border: 0;
  padding: 36px 36px 12px;
  min-height: 108px;
  display: flex;
  align-items: center;
  height: auto;
}

.workspace-layout #manageTitle {
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1px;
}

.workspace-layout #manageSubtitle {
  font-size: 13px;
}

.workspace-layout .manage-content {
  padding: 20px 36px 36px;
  width: 100%;
  max-width: 1450px;
}

.workspace-layout .overview-cards {
  gap: 18px;
}

.workspace-layout .overview-cards article {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 23px;
  margin: 0;
  box-shadow: var(--ocean-shadow);
  border-radius: 14px;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--ocean-tint);
  color: var(--cyan);
  flex-shrink: 0;
}

.metric-icon svg {
  width: 22px;
  height: 22px;
}

.overview-cards span {
  font-size: 12px;
}

.overview-cards strong {
  font-size: 32px;
  margin: 5px 0;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.2;
}

.overview-cards small {
  font-size: 11px;
}

.ocean-overview-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.workspace-layout .workspace-card {
  padding: 23px;
  box-shadow: var(--ocean-shadow);
  margin-bottom: 0;
  background: var(--panel);
}

.workspace-layout .workspace-card h2 {
  font-size: 14px;
  letter-spacing: -.2px;
}

.workspace-layout #management .workspace-card .ocean-text-button {
  background: transparent;
  color: var(--cyan);
  font-size: 11px;
  min-height: 32px;
  padding: 0;
}

.ocean-range {
  font-size: 10px;
  color: var(--muted);
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.ocean-chart {
  height: 240px;
  display: flex;
  gap: 12px;
  padding: 25px 2px 0;
}

.ocean-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 25px;
  font-size: 10px;
  color: var(--muted);
}

.ocean-bars {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  background: repeating-linear-gradient(to top,transparent 0,transparent 47px,var(--line) 48px,transparent 49px);
  border-bottom: 1px solid var(--line);
}

.ocean-day {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}

.ocean-bar {
  width: 65%;
  max-width: 38px;
  min-height: 2px;
  background: linear-gradient(#98c5ff,#4284fa);
  border-radius: 5px 5px 0 0;
}

.ocean-day small {
  font-size: 10px;
  color: var(--muted);
  height: 22px;
  white-space: nowrap;
  background: var(--panel);
}

.ocean-legend {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 20px;
}

.ocean-legend:before {
  content: '●';
  color: #4284fa;
  margin-right: 7px;
}

.ocean-recent {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.ocean-recent button {
  display: flex;
  gap: 10px;
  text-align: left;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  color: var(--text);
  width: 100%;
}

.ocean-recent button:last-child {
  border: 0;
}

.ocean-recent .avatar {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  background: var(--ocean-tint);
  color: var(--cyan);
}

.ocean-person {
  min-width: 0;
  flex: 1;
}

.ocean-person b {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ocean-person small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ocean-badge {
  font-size: 10px;
  color: #2261bd;
  background: var(--ocean-tint);
  padding: 3px 7px;
  border-radius: 12px;
  white-space: nowrap;
}

.ocean-badge.closed {
  color: #16744d;
  background: #e5f7ed;
}

.ocean-empty {
  padding: 65px 15px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.workspace-layout input:not([type=checkbox]):not([type=color]),.workspace-layout textarea,.workspace-layout select {
  background: var(--shell-input);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  max-width: 100%;
}

.workspace-layout .settings-form,.workspace-layout .manage-form,.workspace-layout .command-help,.workspace-layout .switch-row {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}

.workspace-layout label,.workspace-layout .settings-form label {
  color: var(--text);
}

.workspace-layout .settings-form button,.workspace-layout .composer button,.workspace-layout #close,.workspace-layout .manage-form button {
  background: var(--cyan);
  color: #fff;
}

.workspace-layout .secondary {
  background: var(--ocean-tint);
  color: var(--cyan);
  border-color: var(--line);
}

.workspace-layout .inbox,.workspace-layout .chat>header,.workspace-layout .note-row,.workspace-layout .composer,.workspace-layout .details-panel {
  background: var(--panel);
  color: var(--text);
}

.workspace-layout .thread {
  background: var(--bg);
}

.workspace-layout .msg span {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}

.workspace-layout .msg.mine span {
  background: var(--cyan);
  color: #fff;
  border: 0;
}

.workspace-layout .msg.bot span {
  background: var(--ocean-tint);
  color: var(--text);
  border-color: var(--line);
}

.workspace-layout .conversation:hover,.workspace-layout .conversation.selected {
  background: var(--ocean-tint);
}

.workspace-layout .avatar {
  background: var(--ocean-tint);
  color: var(--cyan);
}

.workspace-layout .conversation-list {
  height: calc(100dvh - 217px);
}

.workspace-layout table {
  width: 100%;
  border-collapse: collapse;
}

.workspace-layout td,.workspace-layout th {
  border-color: var(--line);
  overflow-wrap: anywhere;
}

.workspace-layout .management {
  overflow-x: hidden;
}

.workspace-layout .settings-form {
  max-width: 800px;
}

.workspace-layout #workspaceSubnav {
  padding-top: 26px;
}

.ocean-mobile-nav {
  display: none;
}

.ocean-chat-back {
  display: none;
}

.workspace-layout .chat {
  height: 100%;
  min-height: 0;
}

.workspace-layout .messages {
  background: var(--bg);
}

@media(max-width:1100px) {
  .dashboard.workspace-layout {
    grid-template-columns: 190px 270px minmax(0,1fr);
  }

  .workspace-layout.with-subnav {
    grid-template-columns: 190px 180px minmax(0,1fr);
  }

  .ocean-topbar {
    left: 190px;
  }

  .workspace-layout .manage-content {
    padding: 20px;
  }

  .workspace-layout #management>header {
    padding: 28px 20px 10px;
  }

  .ocean-overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-cards article {
    gap: 10px!important;
    padding: 17px!important;
  }

  .metric-icon {
    width: 34px;
    height: 34px;
  }

}

@media(max-width:700px) {
  .dashboard.workspace-layout {
    display: block;
    padding-top: 60px;
    height: 100dvh;
    overflow: auto;
    padding-bottom: 72px;
  }

  .ocean-topbar {
    left: 0;
    height: 60px;
    padding: 0 16px 0 58px;
  }

  .ocean-search {
    background: transparent;
    color: var(--text);
    font-weight: 750;
    padding: 0;
    font-size: 18px;
  }

  .ocean-search:after {
    content: 'Wrachat';
  }

  .ocean-search span {
    display: none;
  }

  .ocean-status {
    font-size: 10px;
  }

  .ocean-account {
    width: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  #mobileMenu {
    left: 14px;
    right: auto;
    top: 12px;
    z-index: 65;
    background: var(--panel);
    color: var(--text);
    border: 0;
    width: 34px;
    height: 36px;
  }

  .workspace-layout .primary-sidebar .brand {
    position: static;
    margin-bottom: 20px;
  }

  .workspace-layout.nav-open .primary-sidebar {
    display: flex;
    top: 60px;
    bottom: 66px;
    width: 245px;
    padding-top: 20px;
    z-index: 60;
    box-shadow: 10px 0 60px #163d7230;
  }

  .workspace-layout #management {
    min-height: calc(100dvh - 130px);
    overflow: visible;
    padding-bottom: 12px;
  }

  .workspace-layout #management>header {
    padding: 24px 18px 10px;
    min-height: auto;
    gap: 8px;
  }

  .workspace-layout #manageTitle {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -.7px;
  }

  .workspace-layout #manageSubtitle {
    font-size: 12px;
  }

  .workspace-layout .manage-content {
    padding: 15px 16px;
  }

  .workspace-layout .overview-cards {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }

  .workspace-layout .overview-cards article {
    padding: 15px!important;
    display: block;
    margin: 0;
    min-width: 0;
  }

  .metric-icon {
    margin-bottom: 12px;
  }

  .overview-cards strong {
    font-size: 28px;
  }

  .overview-cards article:last-child {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
  }

  .overview-cards article:last-child .metric-icon {
    margin-bottom: 0;
  }

  .ocean-overview-grid {
    gap: 15px;
    margin-top: 15px;
  }

  .workspace-layout .workspace-card {
    padding: 17px;
  }

  .ocean-chart {
    height: 200px;
    gap: 8px;
  }

  .ocean-bars {
    gap: 8px;
  }

  .ocean-day small {
    font-size: 9px;
  }

  .ocean-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom));
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    background: var(--panel);
    border-top: 1px solid var(--line);
    z-index: 55;
  }

  .ocean-mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    justify-content: center;
    font-size: 10px;
    background: transparent;
    color: var(--muted);
    border: 0;
    min-width: 56px;
  }

  .ocean-mobile-nav svg {
    width: 20px;
    height: 20px;
  }

  .ocean-mobile-nav button[aria-current=page] {
    color: var(--cyan);
    font-weight: 700;
  }

  .workspace-layout #workspaceSubnav {
    padding: 15px 12px;
    position: relative;
    top: auto;
  }

  .workspace-layout #workspaceSubnav h2 {
    display: none;
  }

  .workspace-layout.with-subnav #management {
    min-height: 0;
  }

  .workspace-layout .inbox {
    height: calc(100dvh - 126px);
  }

  .workspace-layout .conversation-list {
    height: calc(100dvh - 277px);
  }

  .workspace-layout .thread {
    inset: 60px 0 66px;
    z-index: 45;
  }

  .workspace-layout .chat>header {
    padding: 12px;
    gap: 8px;
  }

  .ocean-chat-back {
    display: block;
    border: 0;
    background: var(--ocean-tint);
    color: var(--cyan);
    min-width: 34px;
    font-size: 22px;
  }

  .workspace-layout .chat>header>div:first-of-type {
    flex: 1;
    min-width: 0;
  }

  .workspace-layout .chat>header h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workspace-layout .chat>header .secondary {
    padding: 8px;
    min-height: 40px;
  }

  .workspace-layout .note-row {
    display: flex;
    gap: 5px;
    padding: 8px;
  }

  .workspace-layout .note-row input {
    min-width: 0;
    flex: 1;
  }

  .workspace-layout .note-row button {
    font-size: 10px;
    padding: 5px;
  }

  .workspace-layout .widget-editor {
    display: block;
  }

  .workspace-layout .settings-form {
    width: 100%;
    min-width: 0;
  }

  .workspace-layout .manage-form {
    display: flex;
    flex-wrap: wrap;
  }

  .workspace-layout .manage-form>* {
    min-width: 0;
    max-width: 100%;
  }

  .workspace-layout .color-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .workspace-layout .manage-content pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .workspace-layout .manage-content table {
    font-size: 11px;
  }

  .workspace-layout .manage-content th,.workspace-layout .manage-content td {
    padding: 8px 4px;
  }

  .workspace-layout .manage-content .form-actions {
    flex-wrap: wrap;
  }

  input,select,textarea {
    font-size: 16px!important;
  }

}

.ocean-login {
  background: #fff;
  color: #10254d;
}

.ocean-login .auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ocean-login .auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 45px 60px;
  background: linear-gradient(135deg,#eaf4ff,#dceeff);
  color: #10254d;
  overflow: hidden;
  position: relative;
}

.ocean-login .auth-story .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  height: auto;
  background: none;
  color: #10254d;
  letter-spacing: -1px;
  text-decoration: none;
}

.ocean-login .logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  letter-spacing: -3px;
  font-size: 26px;
}

.ocean-login .auth-story h1 {
  font-size: clamp(36px,4.2vw,62px);
  line-height: 1.12;
  letter-spacing: -2px;
  max-width: 450px;
  position: relative;
  z-index: 1;
}

.ocean-login .auth-story p {
  color: #526c90;
  max-width: 390px;
  line-height: 1.8;
}

.ocean-login .auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
  background: #fff;
}

.ocean-login .auth-form {
  width: 100%;
  max-width: 370px;
}

.ocean-login .auth-form h2 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -.8px;
  text-align: center;
  margin: 24px 0 12px;
  color: #10254d;
}

.ocean-login .auth-form>p {
  text-align: center;
  color: #627695;
  font-size: 14px;
  margin-bottom: 32px;
}

.ocean-login .login-wordmark {
  text-align: center;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 14px 0;
  color: #10254d;
}

.ocean-login .login-wordmark .logo-mark {
  margin: 0 auto 10px;
  width: 52px;
  height: 52px;
  font-size: 35px;
}

.ocean-login .field label {
  color: #29436b;
  font-size: 12px;
  font-weight: 600;
}

.ocean-login input {
  background: #fff;
  border: 1px solid #d9e4f3;
  color: #10254d;
  border-radius: 9px;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.ocean-login .password-wrap {
  position: relative;
}

.ocean-login .password-wrap input {
  padding-right: 82px;
}

.ocean-login .password-toggle {
  color: #627695;
  background: transparent;
  border: 0;
  font-size: 11px;
}

.ocean-login #submitAuth {
  background: #2563eb;
  color: white;
  border: 0;
  min-height: 49px;
  border-radius: 9px;
  font-size: 14px;
  box-shadow: 0 5px 14px #2563eb20;
  width: 100%;
  margin-top: 18px;
}

.ocean-login .auth-switch,.ocean-login .auth-footer {
  text-align: center;
  color: #627695;
  font-size: 12px;
}

.ocean-login .auth-footer {
  margin-top: 30px;
}

.ocean-login .back,.ocean-login a {
  color: #2563eb;
  font-size: 12px;
}

.ocean-login .auth-form details {
  margin: 16px 0;
  color: #627695;
  font-size: 12px;
}

.ocean-login .auth-form details .field {
  margin-top: 12px;
}

.ocean-login .chat-art {
  height: 200px;
  position: relative;
  max-width: 390px;
  margin: 30px 0;
}

.chat-art i {
  position: absolute;
  display: block;
  width: 190px;
  height: 135px;
  border-radius: 35px;
  background: #83b6ff66;
  transform: rotate(-8deg);
  left: 25px;
  top: 15px;
}

.chat-art i:after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 38px;
  border-top: 35px solid #83b6ff66;
  border-right: 30px solid transparent;
}

.chat-art i:nth-of-type(2) {
  left: 145px;
  top: 55px;
  background: #529afa40;
  transform: rotate(9deg);
}

.chat-art b {
  position: absolute;
  color: white;
  font-size: 56px;
  letter-spacing: 8px;
  left: 65px;
  top: 40px;
}

.ocean-login .story-note {
  border: 0;
  color: #526c90;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ocean-login .form-error {
  color: #ba2445;
}

.ocean-login .field {
  margin-bottom: 18px;
}

@media(max-width:700px) {
  .ocean-login .auth-page {
    display: block;
    min-height: 100dvh;
    background: linear-gradient(#fff 65%,#eaf4ff);
  }

  .ocean-login .auth-story {
    display: none;
  }

  .ocean-login .auth-main {
    min-height: 100dvh;
    background: transparent;
    padding: 35px 25px;
  }

  .ocean-login .auth-form {
    max-width: 390px;
  }

  .ocean-login .login-wordmark {
    margin-bottom: 42px;
  }

  .ocean-login .auth-form h2 {
    font-size: 27px;
  }

  .ocean-login .auth-footer {
    margin-top: 36px;
  }

}

.workspace-layout .brand .logo,.ocean-login .logo-mark {
  background: transparent;
  font-size: 0;
  letter-spacing: 0;
  border: 0;
  box-shadow: none;
}

.workspace-layout .brand .logo:before,.ocean-login .logo-mark:before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: url('/ocean-mark.svg') center/contain no-repeat;
}

.ocean-login .auth-story .logo {
  font-size: 0;
}

.ocean-login .auth-story .logo:after {
  content: 'Wrachat';
  font-size: 23px;
  letter-spacing: -1px;
}

.workspace-layout #manageClose {
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  border: 1px solid var(--line);
}

html[data-theme] .workspace-layout .primary-sidebar {
  background: var(--panel)!important;
}

html[data-theme] .workspace-layout .primary-sidebar nav button.nav-active,html[data-theme] .workspace-layout #workspaceSubnav button.nav-active {
  background: var(--ocean-tint)!important;
  color: var(--cyan)!important;
  border-color: transparent!important;
}

.workspace-layout #management .ocean-recent button {
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 0;
  font-weight: 400;
}

.workspace-layout #management .ocean-recent button:hover {
  background: var(--shell-input);
}

.workspace-layout #management:has(.overview-cards) #manageClose {
  display: none;
}

.workspace-layout #management>header>div {
  min-width: 0;
}

.workspace-layout #manageTitle {
  white-space: normal;
}

.workspace-layout #management button:not(.danger):not(.ocean-text-button):not([data-ocean-chat]) {
  background: var(--cyan);
  color: #fff;
  border-color: transparent;
}

.workspace-layout #management .secondary {
  background: var(--ocean-tint)!important;
  color: var(--cyan)!important;
  border: 1px solid var(--line)!important;
}

.workspace-layout .primary-sidebar>nav button:has(svg):before {
  display: none!important;
}

.workspace-layout .primary-sidebar>nav button svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 12px;
  flex-shrink: 0;
}

.ocean-search {
  padding-left: 16px;
}

.ocean-search:before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1.7px solid #879bb6;
  border-radius: 50%;
  margin-right: 14px;
  vertical-align: middle;
}

.ocean-search:focus-visible {
  outline: 2px solid var(--cyan);
}

@media(max-width:700px) {
  .ocean-search:before {
    display: none;
  }

}
