:root {
  --yh-blue: #0b5cff;
  --yh-blue-dark: #073fbd;
  --yh-orange: #ff9818;
  --yh-ink: #14213d;
  --yh-muted: #65738b;
  --yh-surface: #ffffff;
  --yh-canvas: #f4f7fb;
  --yh-line: #dfe6f1;
  --yh-navy: #07142d;
  --yh-electric: #1769ff;
}

body {
  background: #f5f7fb !important;
}

.yh-theme-toggle {
  position: fixed;
  top: 13px;
  right: 158px;
  z-index: 2147480500;
  min-width: 86px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d9e2ef;
  border-radius: 13px;
  color: #17233b;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(13, 43, 90, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font: 800 11px/1 inherit;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.yh-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: #9fb9e8;
}

.yh-theme-toggle span {
  font-size: 18px;
  line-height: 1;
}

/* YantraHub symbol system */
.brand-mark {
  background: transparent url("/assets/yantrahub-symbol.png") center / contain no-repeat !important;
  border-radius: 0 !important;
  color: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
}

.site-header .brand-mark {
  width: 42px !important;
  height: 42px !important;
}

.footer-brand .brand-mark {
  width: 34px !important;
  height: 34px !important;
}

.site-header {
  border-bottom-color: rgba(14, 91, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 32px rgba(7, 28, 66, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand > span:last-child {
  color: var(--yh-ink);
  font-weight: 850;
}

.brand > span:last-child::after {
  content: ".in";
  color: var(--yh-orange);
  font-size: 0.58em;
  margin-left: 2px;
  vertical-align: top;
}

.hero {
  isolation: isolate;
  overflow: visible !important;
  color: #fff;
  background:
    radial-gradient(circle at 13% 18%, rgba(47, 117, 255, 0.48), transparent 34%),
    radial-gradient(circle at 88% 74%, rgba(255, 143, 23, 0.28), transparent 31%),
    linear-gradient(135deg, #06132d 0%, #0a234d 58%, #102f67 100%) !important;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  right: -90px;
  bottom: -190px;
  background: url("/assets/yantrahub-symbol.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-8deg);
}

.hero h1 span {
  background-image: linear-gradient(100deg, #76a7ff, #ffffff 50%, #ffad42) !important;
}

.hero .eyebrow {
  color: #d9e7ff !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(12px);
}

.hero-copy > h1 {
  max-width: 780px;
  color: #fff !important;
  text-wrap: balance;
}

.hero-lead {
  max-width: 710px !important;
  color: #c7d5eb !important;
  font-size: clamp(16px, 1.5vw, 19px) !important;
}

.hero-panel {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 28px 75px rgba(0, 8, 25, 0.32) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-panel p,
.hero-panel small,
.hero-panel .panel-meter span,
.hero-panel .panel-meter small {
  color: #bfcde2 !important;
}

.hero-panel .quality-list > div {
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.hero-panel .quality-list strong,
.hero-panel h2 {
  color: #fff !important;
}

.trust-row span {
  color: #c9d7ec !important;
}

.hero-search {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 24px 65px rgba(0, 8, 26, 0.34) !important;
}

.hero-search.yh-smart-finder {
  position: relative;
  min-height: 82px;
  padding: 27px 18px 10px 54px !important;
  overflow: visible !important;
  z-index: 40;
}

.hero-search.yh-smart-finder::before {
  content: "WHAT DO YOU WANT TO DO?";
  position: absolute;
  top: 13px;
  left: 54px;
  color: #1769ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.hero-search.yh-smart-finder > svg {
  position: absolute;
  left: 20px;
  top: 39px;
  color: var(--yh-electric) !important;
}

.hero-search.yh-smart-finder input {
  height: 42px;
  color: #10203e !important;
  font-size: 15px !important;
  font-weight: 650;
}

.hero-search.yh-smart-finder input::placeholder {
  color: #71809a !important;
  font-weight: 500;
}

.hero-search.yh-smart-finder .search-hint {
  margin-top: 7px;
  color: #31568d !important;
  background: #edf4ff !important;
}

.yh-smart-results {
  position: fixed;
  z-index: 2147481000;
  max-height: min(430px, 58vh);
  padding: 9px;
  overflow: auto;
  border: 1px solid #dce5f3;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 28px 70px rgba(4, 18, 47, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px) scale(0.99);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.yh-smart-results.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.yh-smart-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 10px;
  color: #6b7890;
  font-size: 10px;
}

.yh-smart-results-head strong {
  color: #14213d;
  font-size: 11px;
  letter-spacing: .02em;
}

.yh-smart-results button {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 0;
  border-radius: 13px;
  color: #17233b;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.yh-smart-results button:hover,
.yh-smart-results button.is-selected {
  background: #f0f5ff;
}

.yh-smart-result-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 11px;
  color: #1769ff;
  background: #edf4ff;
  box-shadow: 0 5px 16px rgba(25, 74, 158, 0.12);
}

.yh-smart-result-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
}

.yh-smart-result-icon > span {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.08em;
}

.yh-smart-result-icon.coral,
.yh-smart-result-icon.pdf {
  color: #ef5b4f;
  background: #fff0ed;
}

.yh-smart-result-icon.violet,
.yh-smart-result-icon.image {
  color: #7d55d9;
  background: #f2edff;
}

.yh-smart-result-icon.mint,
.yh-smart-result-icon.text {
  color: #148866;
  background: #e8faf4;
}

.yh-smart-result-icon.blue,
.yh-smart-result-icon.developer {
  color: #1769ff;
  background: #edf4ff;
}

.yh-smart-result-icon.amber,
.yh-smart-result-icon.calculator {
  color: #c87900;
  background: #fff5db;
}

.yh-smart-result-icon.steel,
.yh-smart-result-icon.engineering {
  color: #526882;
  background: #edf1f6;
}

.yh-smart-result-icon.rose,
.yh-smart-result-icon.utility {
  color: #d44e79;
  background: #ffedf3;
}

.yh-smart-result-copy {
  min-width: 0;
}

.yh-smart-result-copy strong,
.yh-smart-result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yh-smart-result-copy strong {
  color: #13203a;
  font-size: 12px;
}

.yh-smart-result-copy small {
  margin-top: 3px;
  color: #718099;
  font-size: 10px;
}

.yh-smart-result-category {
  padding: 5px 8px;
  border-radius: 999px;
  color: #2453a1;
  background: #eaf2ff;
  font-size: 9px;
  font-weight: 800;
}

.yh-smart-results button > b {
  color: #ff8a18;
  font-size: 16px;
}

.yh-smart-empty {
  display: grid;
  gap: 5px;
  padding: 24px 16px;
  color: #77859a;
  text-align: center;
}

.yh-smart-empty strong {
  color: #15223b;
  font-size: 13px;
}

.yh-smart-empty span {
  font-size: 10px;
}

.quick-section,
.tools-section {
  background: #f5f7fb !important;
}

.quick-card,
.tool-card,
.category-card {
  border-color: #e2e8f2 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 32px rgba(12, 40, 84, 0.055);
}

.section-kicker {
  color: var(--yh-blue) !important;
  letter-spacing: .16em !important;
}

.filter-tabs {
  padding: 6px !important;
  border: 1px solid #dfe7f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(15, 44, 91, .05);
}

.filter-tabs button {
  border-radius: 11px !important;
}

.filter-tabs button.active {
  color: #fff !important;
  background: linear-gradient(105deg, #1769ff, #0a50d8) !important;
  box-shadow: 0 8px 18px rgba(23, 105, 255, .22);
}

.quick-card:hover,
.tool-card:hover {
  border-color: rgba(11, 92, 255, 0.35) !important;
  box-shadow: 0 18px 44px rgba(21, 73, 165, 0.13) !important;
}

.tool-card {
  position: relative;
  overflow: hidden;
}

.tool-card::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  right: -15px;
  bottom: -15px;
  background: url("/assets/yantrahub-symbol.png") center / contain no-repeat;
  opacity: 0;
  transform: rotate(-12deg) scale(0.85);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.tool-card:hover::after {
  opacity: 0.09;
  transform: rotate(-5deg) scale(1);
}

@media (max-width: 720px) {
  .yh-theme-toggle {
    top: 11px;
    right: 62px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
  }

  .yh-theme-toggle b {
    display: none;
  }

  .hero-search.yh-smart-finder {
    min-height: 78px;
    padding-left: 47px !important;
  }

  .hero-search.yh-smart-finder > svg {
    left: 16px;
  }

  .hero-search.yh-smart-finder::before {
    left: 47px;
  }

  .yh-smart-results button {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
  }

  .yh-smart-result-category {
    display: none;
  }
}

/* Light and dark appearance modes */
html[data-yh-theme="dark"] {
  color-scheme: dark;
  --yh-ink: #e7edf7;
  --yh-muted: #9aa9bf;
  --yh-surface: #111d30;
  --yh-canvas: #091321;
  --yh-line: #283750;
}

html[data-yh-theme="dark"] body,
html[data-yh-theme="dark"] #root,
html[data-yh-theme="dark"] main {
  color: #e7edf7;
  background: #091321 !important;
}

html[data-yh-theme="dark"] .yh-theme-toggle {
  color: #f4f7fc;
  background: rgba(16, 29, 49, 0.96);
  border-color: #34445e;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

html[data-yh-theme="dark"] .site-header {
  background: rgba(9, 19, 33, .92) !important;
  border-color: #24334a !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
}

html[data-yh-theme="dark"] .brand > span:last-child,
html[data-yh-theme="dark"] .desktop-nav button,
html[data-yh-theme="dark"] .desktop-nav a,
html[data-yh-theme="dark"] .mobile-nav button,
html[data-yh-theme="dark"] .mobile-nav a {
  color: #e5edf9 !important;
}

html[data-yh-theme="dark"] .mobile-nav {
  background: #101c2f !important;
  border-color: #293850 !important;
}

html[data-yh-theme="dark"] .header-cta {
  color: #fff !important;
}

html[data-yh-theme="dark"] .quick-section,
html[data-yh-theme="dark"] .category-section,
html[data-yh-theme="dark"] .tools-section {
  background: #091321 !important;
}

html[data-yh-theme="dark"] .section-heading h2,
html[data-yh-theme="dark"] .section-heading p,
html[data-yh-theme="dark"] .quick-card strong,
html[data-yh-theme="dark"] .tool-card strong,
html[data-yh-theme="dark"] .category-card strong {
  color: #e8eef8 !important;
}

html[data-yh-theme="dark"] .section-heading p,
html[data-yh-theme="dark"] .quick-card small,
html[data-yh-theme="dark"] .tool-card p,
html[data-yh-theme="dark"] .tool-card-bottom,
html[data-yh-theme="dark"] .category-card > span:not(.category-icon) {
  color: #99a8be !important;
}

html[data-yh-theme="dark"] .quick-card,
html[data-yh-theme="dark"] .tool-card,
html[data-yh-theme="dark"] .category-card,
html[data-yh-theme="dark"] .filter-tabs,
html[data-yh-theme="dark"] .small-search {
  color: #e8eef8 !important;
  background: #111d30 !important;
  border-color: #283750 !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
}

html[data-yh-theme="dark"] .small-search input {
  color: #e8eef8 !important;
  background: transparent !important;
}

html[data-yh-theme="dark"] .filter-tabs button {
  color: #aebbd0 !important;
}

html[data-yh-theme="dark"] .yh-smart-results {
  color: #e8eef8;
  background: rgba(14, 25, 43, .99);
  border-color: #30405a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

html[data-yh-theme="dark"] .yh-smart-results-head,
html[data-yh-theme="dark"] .yh-smart-result-copy small {
  color: #93a3ba;
}

html[data-yh-theme="dark"] .yh-smart-results-head strong,
html[data-yh-theme="dark"] .yh-smart-result-copy strong,
html[data-yh-theme="dark"] .yh-smart-empty strong {
  color: #edf3fc;
}

html[data-yh-theme="dark"] .yh-smart-results button {
  color: #edf3fc;
}

html[data-yh-theme="dark"] .yh-smart-results button:hover,
html[data-yh-theme="dark"] .yh-smart-results button.is-selected {
  background: #1a2a43;
}

html[data-yh-theme="dark"] .yh-smart-result-icon {
  background: #17263d;
  box-shadow: none;
}

html[data-yh-theme="dark"] .yh-smart-result-category {
  color: #a9c6ff;
  background: #18325d;
}

html[data-yh-theme="dark"] .yh-story-contact {
  background:
    radial-gradient(circle at 12% 18%, rgba(24, 105, 255, .14), transparent 31%),
    radial-gradient(circle at 88% 80%, rgba(255, 142, 20, .1), transparent 29%),
    #091321;
  border-color: #233148;
}

html[data-yh-theme="dark"] .yh-about-card {
  color: #e8eef8;
  background: #111d30;
  border-color: #283750;
}

html[data-yh-theme="dark"] .yh-about-card > p,
html[data-yh-theme="dark"] .yh-about-points span {
  color: #9aa9bf;
}

html[data-yh-theme="dark"] .yh-about-points span {
  background: #16243a;
  border-color: #293950;
}

html[data-yh-theme="dark"] .yh-about-points b {
  color: #ecf2fb;
}

html[data-yh-theme="dark"] footer {
  background: #07101d !important;
  border-color: #233148 !important;
}

html[data-yh-theme="dark"] .workspace-backdrop,
html[data-yh-theme="dark"] .workspace {
  color: #e8eef8;
  background: #091321 !important;
}

html[data-yh-theme="dark"] .workspace-header,
html[data-yh-theme="dark"] .workspace-footer,
html[data-yh-theme="dark"] .workspace-body {
  color: #e8eef8;
  background: #111d30 !important;
  border-color: #283750 !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

html[data-yh-theme="dark"] .workspace-header h2,
html[data-yh-theme="dark"] .workspace-body h3,
html[data-yh-theme="dark"] .workspace-body strong,
html[data-yh-theme="dark"] .tool-field label {
  color: #edf3fc !important;
}

html[data-yh-theme="dark"] .workspace-header p,
html[data-yh-theme="dark"] .workspace-body p,
html[data-yh-theme="dark"] .workspace-footer {
  color: #9aa9bf !important;
}

html[data-yh-theme="dark"] .privacy-note {
  color: #8fd3bb !important;
  background: #102d27 !important;
  border-color: #235444 !important;
}

html[data-yh-theme="dark"] .file-picker {
  color: #e8eef8;
  background: linear-gradient(145deg, #111f36, #1a2030) !important;
  border-color: #45648f !important;
}

html[data-yh-theme="dark"] .tool-field input,
html[data-yh-theme="dark"] .tool-field select,
html[data-yh-theme="dark"] .tool-textarea {
  color: #edf3fc !important;
  background: #0c1728 !important;
  border-color: #33445f !important;
}

html[data-yh-theme="dark"] .result-panel {
  color: #dfe9f7 !important;
  background: #10203a !important;
  border-color: #29466d !important;
}

html[data-yh-theme="dark"] .close-workspace {
  color: #edf3fc !important;
  background: #17263d !important;
  border-color: #34445e !important;
}

/* True full-screen tool workspace */
body:has(.workspace-backdrop) {
  overflow: hidden;
}

.workspace-backdrop {
  display: block !important;
  padding: 0 !important;
  background: var(--yh-canvas) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: hidden !important;
}

.workspace {
  width: 100% !important;
  height: 100dvh !important;
  max-height: none !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
  background: var(--yh-canvas) !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
}

.workspace-pdf-editor {
  width: 100% !important;
}

.workspace-header {
  flex: 0 0 auto;
  align-items: center !important;
  gap: 15px !important;
  min-height: 86px;
  padding: 14px clamp(18px, 3vw, 46px) !important;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--yh-line);
  box-shadow: 0 6px 24px rgba(20, 41, 77, 0.06);
  position: relative;
  z-index: 5;
}

.workspace-header::before {
  content: "";
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  background: url("/assets/yantrahub-symbol.png") center / contain no-repeat;
}

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

.workspace-category {
  color: var(--yh-blue) !important;
  font-size: 10px !important;
}

.workspace-header h2 {
  color: var(--yh-ink);
  margin: 3px 0 !important;
  font-size: clamp(22px, 2.3vw, 30px) !important;
}

.workspace-header p {
  max-width: 760px;
  color: var(--yh-muted) !important;
}

.workspace-header-actions {
  flex: 0 0 auto;
}

.share-workspace,
.close-workspace {
  min-height: 42px !important;
  border-radius: 12px !important;
}

.share-workspace {
  color: var(--yh-blue) !important;
  background: #eef4ff !important;
  border-color: #cbdcff !important;
}

.close-workspace {
  width: 42px !important;
  height: 42px !important;
  border-color: #dce3ed !important;
}

.close-workspace:hover {
  color: #fff;
  background: var(--yh-ink) !important;
  border-color: var(--yh-ink) !important;
}

.privacy-note {
  flex: 0 0 auto;
  width: min(1120px, calc(100% - 36px));
  margin: 18px auto 0 !important;
  padding: 11px 15px !important;
  border: 1px solid #cde4dc !important;
  border-radius: 12px !important;
  background: #effaf6 !important;
  color: #2d705c !important;
}

.workspace-body {
  width: min(1120px, calc(100% - 36px));
  margin: 18px auto !important;
  padding: clamp(24px, 3.5vw, 42px) !important;
  border: 1px solid var(--yh-line);
  border-radius: 24px;
  background: var(--yh-surface);
  box-shadow: 0 18px 50px rgba(20, 52, 106, 0.08);
  align-content: start;
  flex: 1 1 auto;
  overflow: auto;
}

.workspace-body.pdf-editor-body {
  width: calc(100% - 28px);
  max-width: none;
  margin: 14px auto !important;
  padding: 0 !important;
  overflow: hidden;
}

.pdf-editor-frame {
  width: 100% !important;
  height: calc(100dvh - 188px) !important;
  min-height: 540px;
  border-radius: 22px;
}

.workspace-footer {
  flex: 0 0 auto;
  padding: 12px clamp(18px, 3vw, 46px) !important;
  background: #fff !important;
  border-top: 1px solid var(--yh-line) !important;
}

.workspace-footer::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-right: -4px;
  background: url("/assets/yantrahub-symbol.png") center / contain no-repeat;
}

/* Cleaner Sejda-style controls */
.file-picker {
  min-height: 220px !important;
  border: 2px dashed #a9c5fb !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #f7faff, #fffaf4) !important;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.file-picker:hover {
  border-color: var(--yh-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(11, 92, 255, 0.1);
}

.file-picker > svg {
  color: var(--yh-blue);
}

.file-picker strong {
  font-size: 17px !important;
}

.primary-tool-button {
  min-height: 48px;
  border-radius: 13px !important;
  background: linear-gradient(110deg, var(--yh-blue), #1954d4) !important;
  box-shadow: 0 10px 22px rgba(11, 92, 255, 0.22);
}

.primary-tool-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 92, 255, 0.3);
}

.tool-field input,
.tool-field select,
.tool-textarea {
  border-radius: 12px !important;
  border-color: #ccd7e7 !important;
  background: #fbfcfe !important;
}

.tool-field input:focus,
.tool-field select:focus,
.tool-textarea:focus {
  border-color: var(--yh-blue) !important;
  box-shadow: 0 0 0 4px rgba(11, 92, 255, 0.1) !important;
  outline: none;
}

.result-panel {
  border: 1px solid #cfe0ff !important;
  border-radius: 16px !important;
  background: #f6f9ff !important;
}

.tool-message.success-message {
  border-color: #bde8d8 !important;
  background: #effaf6 !important;
}

/* About YantraHub + tool idea contact */
.yh-story-contact {
  padding: 88px 0;
  scroll-margin-top: 78px;
  background:
    radial-gradient(circle at 12% 18%, rgba(11, 92, 255, 0.1), transparent 31%),
    radial-gradient(circle at 88% 80%, rgba(255, 142, 20, 0.13), transparent 29%),
    #f7f9fc;
  border-top: 1px solid #e5eaf2;
}

.yh-story-contact-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 22px;
  align-items: stretch;
}

.yh-about-card,
.yh-contact-card {
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 22px 60px rgba(23, 44, 82, 0.11);
}

.yh-about-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dfe6f1;
}

.yh-about-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -85px;
  bottom: -90px;
  border: 34px solid rgba(11, 92, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.yh-about-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0b5cff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.yh-about-brand img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.yh-about-card h2,
.yh-contact-card h2 {
  margin: 22px 0 14px;
  letter-spacing: -0.045em;
  line-height: 1.08;
  font-size: clamp(31px, 3.4vw, 46px);
}

.yh-about-card > p {
  margin: 0;
  color: #627086;
  font-size: 14px;
  line-height: 1.75;
}

.yh-about-points {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.yh-about-points span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  color: #69758a;
  background: #f8faff;
  border: 1px solid #e6ebf4;
  border-radius: 13px;
  font-size: 11px;
}

.yh-about-points b {
  color: #172133;
  font-size: 13px;
}

.yh-contact-card {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(11, 92, 255, 0.23), transparent 45%),
    #111c31;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.yh-contact-kicker {
  color: #ffad49;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.yh-contact-card h2 {
  max-width: 650px;
  margin-top: 12px;
  font-size: clamp(29px, 3vw, 42px);
}

.yh-contact-card > p:not(.yh-contact-status) {
  margin: 0 0 24px;
  color: #b8c4d7;
  font-size: 13px;
  line-height: 1.65;
}

.yh-contact-form,
.yh-contact-form label {
  display: grid;
  gap: 8px;
}

.yh-contact-form {
  gap: 14px;
}

.yh-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.yh-contact-form label {
  color: #dfe7f4;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.yh-contact-form input,
.yh-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  outline: none;
  color: #172133;
  background: #fff;
  padding: 12px 14px;
  font: 500 13px/1.45 inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.yh-contact-form input {
  height: 45px;
}

.yh-contact-form textarea {
  resize: vertical;
  min-height: 108px;
}

.yh-contact-form input:focus,
.yh-contact-form textarea:focus {
  border-color: #78a4ff;
  box-shadow: 0 0 0 4px rgba(88, 143, 255, 0.18);
}

.yh-contact-form button {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(110deg, #ff8e19, #ff694e);
  box-shadow: 0 12px 28px rgba(255, 111, 58, 0.22);
  font: 800 12px/1 inherit;
  cursor: pointer;
}

.yh-contact-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.yh-contact-form small {
  color: #8f9db2;
  font-size: 9px;
  line-height: 1.5;
}

.yh-contact-email {
  display: inline-flex;
  margin-top: 17px;
  color: #9fc0ff;
  font-size: 11px;
  font-weight: 700;
}

.yh-contact-status {
  min-height: 17px;
  margin: 8px 0 0 !important;
  color: #6de0b9 !important;
  font-size: 10px !important;
}

.desktop-nav .yh-about-nav,
.desktop-nav .yh-contact-nav {
  color: #526079;
  font-size: 11px;
  font-weight: 650;
}

.desktop-nav .yh-about-nav:hover,
.desktop-nav .yh-contact-nav:hover {
  color: #0b5cff;
}

@media (max-width: 720px) {
  .workspace-header {
    min-height: 76px;
    gap: 10px !important;
    padding: 10px 13px !important;
  }

  .workspace-header::before {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .workspace-header p {
    display: none;
  }

  .workspace-header h2 {
    font-size: 19px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .workspace-category {
    font-size: 8px !important;
  }

  .privacy-note {
    width: calc(100% - 22px);
    margin-top: 11px !important;
  }

  .workspace-body {
    width: calc(100% - 22px);
    margin: 11px auto !important;
    padding: 20px 15px !important;
    border-radius: 17px;
  }

  .workspace-body.pdf-editor-body {
    width: calc(100% - 12px);
    margin: 6px auto !important;
    padding: 0 !important;
  }

  .pdf-editor-frame {
    height: calc(100dvh - 155px) !important;
    min-height: 460px;
    border-radius: 14px;
  }

  .file-picker {
    min-height: 180px !important;
  }

  .workspace-footer {
    padding: 10px 14px !important;
  }

  .yh-story-contact {
    padding: 58px 0;
  }

  .yh-story-contact-grid,
  .yh-contact-row {
    grid-template-columns: 1fr;
  }

  .yh-about-card,
  .yh-contact-card {
    padding: 25px 20px;
    border-radius: 21px;
  }

  .yh-about-card h2,
  .yh-contact-card h2 {
    font-size: 31px;
  }
}
