:root {
  --openwell-ink: #11324b;
  --openwell-teal: #078f9e;
  --openwell-line: #d6e9ec;
}

#header-menu {
  height: auto;
  min-height: 76px;
  border-bottom: 1px solid var(--openwell-line);
  box-shadow: none;
}

.openwell-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--openwell-ink);
  font: 26px/1.2 Georgia, "Times New Roman", serif;
  white-space: nowrap;
}

.openwell-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.openwell-actions,
.openwell-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.openwell-actions {
  margin-right: 24px;
}

.openwell-actions a,
.openwell-mobile-actions a,
.openwell-hero a {
  border: 1px solid var(--openwell-line);
  border-radius: 999px;
  color: var(--openwell-ink);
  text-decoration: none;
  transition: border-color .18s, background-color .18s, color .18s;
}

.openwell-actions a {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
}

.openwell-actions a:hover,
.openwell-mobile-actions a:hover,
.openwell-hero a:hover {
  border-color: var(--openwell-teal);
  background: #e7f6f6;
  color: #056b75;
}

.openwell-mobile-actions {
  display: none;
}

.openwell-hero {
  padding: clamp(34px, 5vw, 72px) clamp(24px, 4vw, 64px);
  border: 1px solid var(--openwell-line);
  border-radius: 22px;
  background: linear-gradient(135deg, #f1fbfb 0%, #fff 70%);
  color: var(--openwell-ink);
}

.openwell-hero p {
  margin: 0 0 18px;
  color: #327d87;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.openwell-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(27px, 3.2vw, 46px);
  line-height: 1.25;
  font-weight: 700;
}

.openwell-hero > span {
  display: block;
  max-width: 650px;
  color: #557481;
  font-size: 15px;
  line-height: 1.8;
}

.openwell-hero > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.openwell-hero a {
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 650;
}

.openwell-hero a:first-child {
  border-color: var(--openwell-teal);
  background: var(--openwell-teal);
  color: white;
}

.openwell-hero a:first-child:hover {
  background: #087782;
}

.openwell-latest {
  margin: 42px 0 22px;
  color: var(--openwell-ink);
}

.openwell-latest-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.openwell-latest-heading p {
  margin: 0 0 6px;
  color: #327d87;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.openwell-latest-heading h2 {
  margin: 0 0 7px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
}

.openwell-latest-heading span {
  color: #557481;
  font-size: 13px;
}

.openwell-latest-heading > a {
  flex: none;
  color: var(--openwell-teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.openwell-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.openwell-article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px 28px;
  border: 1px solid var(--openwell-line);
  border-radius: 17px;
  background: #fff;
  color: var(--openwell-ink);
  text-decoration: none;
  transition: border-color .18s, transform .18s;
}

.openwell-article:hover {
  border-color: var(--openwell-teal);
  transform: translateY(-2px);
}

.openwell-article > span {
  color: #327d87;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.openwell-article h3 {
  margin: 11px 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.openwell-article p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 20px;
  color: #557481;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.openwell-article strong {
  margin-top: auto;
  color: var(--openwell-teal);
  font-size: 13px;
}

.openwell-chat {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 56px);
  margin: 42px 0 30px;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid var(--openwell-line);
  border-radius: 22px;
  background: #f7fbfb;
  color: var(--openwell-ink);
}

.openwell-chat-intro p {
  margin: 4px 0 20px;
  color: #337d87;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

.openwell-chat-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.3;
}

.openwell-chat-intro span {
  display: block;
  color: #547380;
  font-size: 14px;
  line-height: 1.8;
}

.openwell-chat-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid #d5e5e9;
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 30px rgba(17, 50, 75, .04);
}

.openwell-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 440px;
  min-height: 110px;
  overflow: auto;
  margin-bottom: 18px;
}

.openwell-chat-empty { margin: 14px 0; color: #69818b; font-size: 14px; }
.openwell-chat-message { max-width: 92%; padding: 12px 16px; border-radius: 15px; line-height: 1.7; }
.openwell-chat-message[data-role="user"] { align-self: flex-end; background: #e8f7f7; }
.openwell-chat-message[data-role="assistant"] { align-self: flex-start; background: #f0f5f7; }
.openwell-chat-message > b { display: block; margin-bottom: 5px; font-size: 12px; color: #197e88; }
.openwell-chat-message > div { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.openwell-chat-message ul { margin: 12px 0 0; padding-left: 20px; font-size: 13px; }
.openwell-chat-message a { color: #087e8f; text-decoration: underline; }
.openwell-chat-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.openwell-chat textarea { display: block; width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid #bdd8df; border-radius: 12px; background: #fff; color: var(--openwell-ink); font: inherit; line-height: 1.55; resize: vertical; }
.openwell-chat textarea:focus-visible, .openwell-chat select:focus-visible, .openwell-chat button:focus-visible { outline: 2px solid var(--openwell-teal); outline-offset: 2px; }
.openwell-chat-controls, .openwell-chat-controls > div { display: flex; align-items: center; gap: 10px; }
.openwell-chat-controls { justify-content: space-between; flex-wrap: wrap; margin-top: 12px; }
.openwell-chat-controls label { color: #587480; font-size: 13px; }
.openwell-chat-controls select { margin-left: 5px; padding: 8px 10px; border: 1px solid #c8dee3; border-radius: 8px; background: white; color: var(--openwell-ink); }
.openwell-chat-controls button { padding: 9px 15px; border: 1px solid var(--openwell-teal); border-radius: 9px; background: var(--openwell-teal); color: white; font-size: 13px; font-weight: 700; cursor: pointer; }
.openwell-chat-controls .openwell-chat-reset { border-color: #c8dee3; background: white; color: var(--openwell-ink); }
.openwell-chat-controls button:disabled { cursor: wait; opacity: .55; }
.openwell-chat-status { min-height: 18px; margin: 10px 0 0; color: #49747f; font-size: 12px; }
.openwell-chat-note { margin: 8px 0 0; color: #718791; font-size: 11px; line-height: 1.6; }

@media (max-width: 720px) {
  .openwell-chat { grid-template-columns: 1fr; margin-top: 24px; }
  .openwell-chat-panel { padding: 18px; }
  .openwell-chat-controls { align-items: stretch; }
  .openwell-chat-controls > div { width: 100%; }
  .openwell-chat-controls button { flex: 1; }
  .openwell-actions {
    display: none;
  }

  .openwell-mobile-actions {
    display: flex;
    padding: 16px 0;
  }

  .openwell-mobile-actions a {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
  }

  .openwell-latest-heading {
    align-items: start;
    flex-direction: column;
  }

  .openwell-latest-grid {
    grid-template-columns: 1fr;
  }

  .openwell-article {
    padding: 21px 23px;
  }
}

/* OpenWellM 首页：沿用 v39 的双模式侧栏，同时由 Halo 提供正式文章。 */
body.ow-home-page {
  background: #fff;
  color: var(--openwell-ink);
  overflow-x: hidden;
}
body.ow-home-page > header { display: none; }
body.ow-home-page > section.container { max-width: none; width: 100%; margin: 0; padding: 0; }
body.ow-home-page > section.container.grid { display: block; }
body.ow-home-page > section.container.grid > div { width: 100%; grid-column: auto; }
body.ow-home-page > footer { margin-left: 324px; }
.ow-home, .ow-home * { box-sizing: border-box; }
.ow-home [hidden] { display: none !important; }
.ow-home {
  display: grid;
  grid-template-columns: 324px minmax(0, 1fr);
  min-height: 100vh;
  background: #fff;
  color: #10324e;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
.ow-home a { color: inherit; text-decoration: none; }
.ow-home a:hover { color: #008b98; }
.ow-home button { font: inherit; cursor: pointer; }
.ow-home :is(a,button,input,textarea,select):focus-visible {
  outline: 2px solid #009eac;
  outline-offset: 3px;
}
.ow-home-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: 100vh;
  min-width: 0;
  overflow-y: auto;
  padding: 24px 18px 22px;
  border-right: 1px solid #d2e8ed;
  background: #fbfdfd;
  scrollbar-width: thin;
}
.ow-home-brand-row { display: flex; align-items: center; justify-content: space-between; }
.ow-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 56px;
  padding: 5px 14px;
  border: 1px solid #c8e5eb;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17,50,75,.05);
  font: 25px/1 Georgia, "Times New Roman", serif;
  white-space: nowrap;
}
.ow-home-brand img { width: 40px; height: 40px; object-fit: contain; }
.ow-home-rail-close { display: none; }
.ow-home-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 22px 0 25px;
  padding: 5px;
  border: 1px solid #cae5eb;
  border-radius: 18px;
  background: #e5f5f8;
}
.ow-home-modes :is(button,a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 49px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #657f90;
  font-weight: 700;
  text-decoration: none;
}
.ow-home-modes button[aria-pressed="true"] {
  background: #fff;
  color: #10324e;
  box-shadow: 0 5px 18px rgba(18,75,92,.09);
}
.ow-home-nav { display: flex; flex-direction: column; gap: 4px; }
.ow-home-nav p {
  margin: 0 0 9px;
  padding: 0 13px;
  color: #718a99;
  font-size: 12px;
  letter-spacing: .04em;
}
.ow-home-nav a, .ow-home-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #395a70;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}
.ow-home-nav a[aria-current="page"] {
  background: #e2f1ef;
  color: #007f8d;
  font-weight: 700;
}
.ow-home-nav a > span:first-child { width: 22px; flex: none; text-align: center; color: #088da0; font-size: 21px; }
.ow-home-nav button > span:first-child { width: 22px; flex: none; text-align: center; color: #088da0; font-size: 21px; }
.ow-home-chat-nav button { background: #e2f1ef; color: #007f8d; font-weight: 700; }
.ow-home-nav-group { display: flex; flex-direction: column; gap: 3px; margin: 15px 0 10px; padding-top: 17px; border-top: 1px solid #d6e9ec; }
.ow-home-nav-group a { min-height: 42px; }
.ow-home-nav-empty { padding: 8px 13px; color: #8296a2; font-size: 12px; }
.ow-home-nav .ow-home-nav-demo { margin-top: 10px; border: 1px solid #d6e9ec; background: #fff; }
.ow-home-nav-demo small { margin-left: auto; color: #688a98; font-size: 11px; }
.ow-home-rail-note {
  margin: auto 7px 0;
  padding-top: 26px;
  color: #6c8796;
  font-size: 12px;
  line-height: 1.8;
}
.ow-home-main { min-width: 0; padding: 45px clamp(26px, 4vw, 74px) 70px; }
.ow-home-mobile-bar { display: none; }
.ow-home-panel { min-width: 0; }
.ow-home-breadcrumb { display: flex; align-items: center; gap: 18px; color: #698295; font-size: 12px; }
.ow-home-breadcrumb b { color: #123552; }
.ow-home-breadcrumb > span:nth-child(2) { color: #a5bdc9; }
.ow-home-eyebrow { margin: 0; color: #448392; font-size: 11px; font-weight: 750; letter-spacing: .17em; }
.ow-home-masthead { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin: 65px 0 35px; }
.ow-home-masthead h1, .ow-home-chat-intro h1 {
  margin: 16px 0 8px;
  color: #10324e;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.045em;
}
.ow-home-masthead h1 span, .ow-home-chat-intro h1 span { color: #008b98; }
.ow-home-masthead > div > p:last-child { margin: 0; color: #6b8595; font-size: 15px; line-height: 1.8; }
.ow-home-search { width: min(370px, 36%); flex: none; }
.ow-home-search label { display: block; margin-bottom: 13px; color: #7290a0; font-size: 12px; }
.ow-home-search > div { display: flex; align-items: center; gap: 8px; min-height: 42px; border-bottom: 1px solid #94bac4; }
.ow-home-search > div > span { color: #608797; font-size: 23px; }
.ow-home-search input { width: 100%; min-width: 0; border: 0; background: transparent; color: #10324e; font-size: 14px; outline: 0; }
.ow-home-search button { flex: none; padding: 5px; border: 0; background: transparent; color: #008b98; font-size: 12px; font-weight: 700; }
.ow-home-fields { display: flex; align-items: center; gap: 28px; min-height: 74px; overflow-x: auto; border-top: 2px solid #123552; border-bottom: 1px solid #c9e1e6; white-space: nowrap; scrollbar-width: thin; }
.ow-home-fields a { align-self: stretch; display: flex; align-items: center; flex: none; border-bottom: 3px solid transparent; color: #607d8e; font-size: 14px; }
.ow-home-fields a[aria-current="page"] { border-color: #00a1af; color: #008b98; font-weight: 700; }
.ow-home-fields > span { margin-left: auto; color: #91a5b1; font-size: 11px; }
.ow-home-boundary { margin: 31px 0; padding: 14px 18px; border-left: 3px solid #00a7b5; background: #f0f8f8; color: #5d7888; font-size: 12px; line-height: 1.7; }
.ow-home-boundary b { margin-right: 12px; color: #008b98; }
.ow-home-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 245px); gap: clamp(25px, 3vw, 50px); align-items: start; }
.ow-home-content-primary { min-width: 0; }
.ow-home-section-label { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #183d5a; color: #386f7e; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.ow-home-section-label > span:last-child { color: #8fa8b5; font-size: 10px; }
.ow-home-feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 38%); gap: 30px; padding: 30px 0 36px; }
.ow-home-feature-copy > p:first-child { margin: 0 0 15px; color: #008b98; font-size: 12px; font-weight: 700; }
.ow-home-feature h2 { margin: 0 0 18px; font-size: clamp(25px, 2.3vw, 37px); font-weight: 800; line-height: 1.35; }
.ow-home-feature-excerpt { display: -webkit-box; overflow: hidden; margin: 0 0 22px; color: #668194; font-size: 14px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow-wrap: anywhere; }
.ow-home-read-link { color: #008b98 !important; font-size: 13px; font-weight: 700; }
.ow-home-feature-media { display: flex; align-items: center; justify-content: center; min-height: 220px; max-height: 330px; overflow: hidden; background: linear-gradient(135deg,#e2f2f3,#f3f6ef); color: #317483 !important; text-align: center; font: 26px/1.45 Georgia,serif; }
.ow-home-feature-media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.ow-home-latest { padding-top: 28px; border-top: 2px solid #153b57; }
.ow-home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 23px; }
.ow-home-section-heading h2 { margin: 10px 0 7px; font-size: clamp(25px,2.5vw,34px); font-weight: 800; }
.ow-home-section-heading p:last-child { margin: 0; color: #708a99; font-size: 12px; }
.ow-home-section-heading > a { flex: none; color: #008b98; font-size: 12px; font-weight: 700; }
.ow-home-article { display: grid; grid-template-columns: minmax(0,1fr) minmax(120px,27%); gap: 22px; padding: 23px 0; border-top: 1px solid #d3e5e9; }
.ow-home-article:first-child { border-top: 0; }
.ow-home-article > div > span { color: #008b98; font-size: 11px; font-weight: 700; }
.ow-home-article h3 { margin: 9px 0; font-size: 22px; line-height: 1.45; font-weight: 800; overflow-wrap: anywhere; }
.ow-home-article p { display: -webkit-box; overflow: hidden; margin: 0 0 13px; color: #688494; font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ow-home-article > div > a:last-child { color: #008b98; font-size: 12px; font-weight: 700; }
.ow-home-article-cover { display: block; max-height: 175px; overflow: hidden; background: #ecf6f7; }
.ow-home-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.ow-home-empty { padding: 20px; border: 1px dashed #c4dfe3; color: #7893a1; font-size: 13px; }
.ow-home-reading-guide { margin-top: 0; padding: 22px; border-top: 3px solid #9a6464; background: #f9f6f5; }
.ow-home-reading-guide h2 { margin: 16px 0 22px; font-size: 20px; line-height: 1.4; font-weight: 800; }
.ow-home-reading-guide ol { margin: 0 0 20px; padding-left: 22px; color: #6d8190; font-size: 12px; line-height: 2.2; }
.ow-home-reading-guide a { color: #008b98; font-size: 12px; font-weight: 700; }
.ow-home-reading-guide small { display: block; margin-top: 10px; color: #8b9ca4; font-size: 11px; line-height: 1.6; }
.ow-home-chat-layout { display: grid; grid-template-columns: minmax(220px,.85fr) minmax(0,1.15fr); gap: clamp(28px,5vw,90px); align-items: start; margin-top: 80px; }
.ow-home-chat-intro h1 { font-size: clamp(34px,3.6vw,54px); }
.ow-home-chat-intro > p:not(.ow-home-eyebrow) { max-width: 480px; color: #668494; font-size: 15px; line-height: 1.9; }
.ow-home-chat-intro > a { display: inline-block; margin-top: 20px; color: #008b98; font-size: 14px; font-weight: 700; }
.ow-home-chat-layout .openwell-chat-panel { padding: clamp(20px,3vw,36px); }
.ow-home-chat-layout .openwell-chat-messages { min-height: 210px; max-height: 460px; }
.ow-home-chat-layout .openwell-chat-message { max-width: 95%; }
.ow-home-chat-layout .openwell-chat-panel textarea {
  display: block;
  width: 100%;
  min-height: 126px;
  padding: 13px 14px;
  border: 1px solid #bdd8df;
  border-radius: 12px;
  background: #fff;
  color: var(--openwell-ink);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}
.ow-home-scrim { display: none; }
@media (max-width: 1180px) {
  .ow-home-content { grid-template-columns: minmax(0,1fr); }
  .ow-home-reading-guide { display: none; }
}
@media (max-width: 900px) {
  body.ow-home-page > footer { margin-left: 0; }
  .ow-home { display: block; }
  .ow-home-rail { position: fixed; z-index: 1002; left: 0; top: 0; width: min(324px,86vw); height: 100dvh; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 12px 0 32px rgba(17,50,75,.14); }
  .ow-home.ow-nav-open .ow-home-rail { transform: translateX(0); }
  .ow-home.ow-nav-open .ow-home-scrim { display: block; position: fixed; z-index: 1001; inset: 0; background: rgba(14,43,62,.42); }
  .ow-home-rail-close { display: block; margin-left: 10px; padding: 2px 9px; border: 1px solid #c9e2e7; border-radius: 10px; background: white; color: #123552; font-size: 25px; }
  .ow-home-main { padding: 0 clamp(20px,4vw,44px) 55px; }
  .ow-home-mobile-bar { position: sticky; z-index: 1000; top: 0; display: flex; align-items: center; gap: 12px; height: 68px; margin: 0 calc(-1 * clamp(20px,4vw,44px)) 25px; padding: 0 clamp(20px,4vw,44px); border-bottom: 1px solid #d2e8ed; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
  .ow-home-mobile-bar :is(button,a[href="/app/#chat"]) { padding: 7px 10px; border: 1px solid #cce5e9; border-radius: 10px; background: white; color: #123552; font-size: 14px; text-decoration: none; }
  .ow-home-mobile-bar button:first-child { font-size: 20px; }
  .ow-home-mobile-brand { margin-right: auto; font: 20px Georgia,serif; }
  .ow-home-masthead { margin-top: 36px; }
}
@media (max-width: 680px) {
  .ow-home-masthead { display: block; }
  .ow-home-masthead h1 { font-size: clamp(37px,10vw,54px); }
  .ow-home-search { width: 100%; margin-top: 32px; }
  .ow-home-fields { gap: 22px; min-height: 61px; }
  .ow-home-fields > span { display: none; }
  .ow-home-feature-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; }
  .ow-home-feature-media { max-height: 245px; min-height: 190px; }
  .ow-home-feature-media img { min-height: 190px; }
  .ow-home-article { grid-template-columns: minmax(0,1fr); }
  .ow-home-article-cover { max-height: 220px; }
  .ow-home-chat-layout { grid-template-columns: 1fr; gap: 22px; margin-top: 38px; }
  .ow-home-chat-layout .openwell-chat-messages { min-height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .ow-home-rail { transition: none; }
}

/* Ocean 文章、分类、搜索、归档与插件页面共用的导航壳。 */
body.ow-home-page .ow-theme-header { display: none !important; }
.ow-theme-header .ow-legacy-topbar,
.ow-theme-header .ow-legacy-banner { display: none !important; }
.ow-shell-rail, .ow-shell-rail * { box-sizing: border-box; }
.ow-shell-rail .ow-home-brand { color: #10324e; text-decoration: none; }
.ow-shell-rail .ow-home-nav a { color: #395a70; text-decoration: none; }
.ow-shell-rail {
  position: fixed;
  z-index: 900;
  left: 0;
  top: 0;
  width: 324px;
  height: 100vh;
  height: 100dvh;
}
.ow-shell-rail [hidden], .ow-theme-header [hidden] { display: none !important; }
.ow-shell-rail .ow-home-modes a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 49px;
  border-radius: 13px;
  color: #657f90;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.ow-shell-rail .ow-home-modes a[aria-current="page"] {
  background: #fff;
  color: #10324e;
  box-shadow: 0 5px 18px rgba(18,75,92,.09);
}
.ow-shell-rail .ow-home-nav a { text-decoration: none; }
.ow-shell-rail .ow-home-nav a[aria-current="page"] { background: #e2f1ef; color: #007f8d; font-weight: 700; }
.ow-shell-rail .ow-home-nav .ow-shell-submenu { min-height: 36px; padding-left: 45px; color: #647f90; font-size: 13px; }
.ow-shell-search { margin: 18px 0 9px; padding: 16px 12px; border-top: 1px solid #d6e9ec; }
.ow-shell-search label { display: block; margin-bottom: 9px; color: #718a99; font-size: 12px; }
.ow-shell-search > div { display: flex; align-items: center; border: 1px solid #c4dfe5; border-radius: 10px; background: #fff; }
.ow-shell-search input { width: 100%; min-width: 0; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: #10324e; font-size: 13px; }
.ow-shell-search button { flex: none; width: 38px; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: #008b98; font-size: 24px; }
.ow-shell-rail :is(a,button,input):focus-visible,
.ow-shell-mobile-bar :is(a,button):focus-visible { outline: 2px solid #009eac; outline-offset: 2px; }
.ow-shell-mobile-bar, .ow-shell-scrim { display: none; }
body.ow-shell-page { background: #fff; color: #10324e; }
body.ow-shell-page > section.container,
body.ow-shell-page > main.container {
  box-sizing: border-box;
  width: calc(100% - 324px);
  max-width: none;
  margin-left: 324px;
  margin-right: 0;
  padding-left: clamp(25px,4vw,68px);
  padding-right: clamp(25px,4vw,68px);
}
body.ow-shell-page > section.container.grid {
  margin-top: 0 !important;
  padding-top: 34px;
  padding-bottom: 60px;
}
body.ow-shell-page > main.container { margin-top: 0; padding-top: 34px; padding-bottom: 60px; }
body.ow-shell-page > section.container.grid > div { min-width: 0; }
body.ow-shell-page > footer { margin-left: 324px; }
@media (max-width: 1180px) {
  body.ow-shell-page > section.container.grid { display: block; }
  body.ow-shell-page > section.container.grid > div:first-child { width: 100%; }
  body.ow-shell-page > section.container.grid > div:nth-child(2) {
    display: block;
    width: 100%;
    margin-top: 32px;
    padding: 24px 0 0;
    border-top: 1px solid #d6e9ec;
  }
}
@media (max-width: 900px) {
  body.ow-shell-page > section.container,
  body.ow-shell-page > main.container {
    width: 100%;
    margin-left: 0;
    padding-left: clamp(18px,4vw,36px);
    padding-right: clamp(18px,4vw,36px);
  }
  body.ow-shell-page > section.container.grid,
  body.ow-shell-page > main.container { padding-top: 92px; }
  body.ow-shell-page > footer { margin-left: 0; }
  .ow-shell-rail {
    z-index: 1002;
    width: min(324px,86vw);
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 12px 0 32px rgba(17,50,75,.14);
  }
  body.ow-shell-nav-open .ow-shell-rail { transform: translateX(0); }
  body.ow-shell-nav-open .ow-shell-scrim { display: block; position: fixed; z-index: 1001; inset: 0; background: rgba(14,43,62,.42); }
  .ow-shell-mobile-bar {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 68px;
    margin: 0;
    padding: 0 clamp(18px,4vw,36px);
    border-bottom: 1px solid #d2e8ed;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
  }
  .ow-shell-mobile-chat { padding: 7px 10px; border: 1px solid #cce5e9; border-radius: 10px; color: #123552; font-size: 14px; text-decoration: none; }
  .ow-shell-mobile-bar .ow-home-mobile-brand { color: #10324e; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ow-shell-rail { transition: none; }
}

/* The theme and the app use the same substantial, local SVG stroke. */
.ow-site-icon { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ow-home-nav :is(a,button) > span:first-child { display: inline-grid; place-items: center; }
.ow-home-modes .ow-site-icon { width: 19px; height: 19px; }
.ow-home-search .ow-site-icon, .ow-shell-search .ow-site-icon { width: 21px; height: 21px; }
.ow-home-rail-close, .ow-home-mobile-bar button:first-child { align-items: center; justify-content: center; }
.ow-home-rail-close .ow-site-icon, .ow-home-mobile-bar button:first-child .ow-site-icon { width: 21px; height: 21px; }
.ow-home-mobile-bar button:first-child { display: inline-flex; }
.ow-shell-search button { display: inline-flex; align-items: center; justify-content: center; }
