/* HoneyMelon Lab. The layout is drawn for a window 1848 pixels wide (the design mock). The root font size is
   16px at that width and scales with the window, so a length of N design pixels is written as N/16 rem.
   Hairlines and shadows stay in px. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: block;
  src: url("manrope.woff2") format("woff2"); }

:root {
  --honeymelon: #f0fb69;            /* the HoneyMelon wordmark colour */
  --ink: #16211B; --ink-2: #2B3832; --leaf: #2F8F5B; --leaf-soft: #E8F2EB; --honey: #E0A526;
  --line: #E4E8E3; --hair: #EEF1ED; --paper: #FFFFFF; --page: #F2F4F1; --muted: #76827B;
  --Dash-Fill-Interactive-Strong: #2F8F5B; --Dash-Stroke-Strong: #E4E8E3; --Dash-Text-Strong: #16211B;
  --bodyh: calc(100vh - 5.625rem);      /* the window minus the header (62) and the page padding (28) */
}
html { font-size: clamp(10px, 0.8658vw, 20px); }      /* 16px when the window is 1848px wide, the width of the design */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--page); font-family: "Manrope", sans-serif; font-size: 0.90625rem; color: var(--ink); overflow: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; font-feature-settings: "tnum" 1; }
a { color: var(--leaf); text-decoration: none; }
button, input { font-family: inherit; }
.page { height: 100vh; display: flex; flex-direction: column; }

/* ---------- header ---------- */
.header { flex: none; height: 3.875rem; display: flex; align-items: center; padding: 0 1.375rem 0 1.25rem; background: var(--ink); color: #EEF2EE; }
.logo { height: 1.9375rem; display: block; }
.brand { margin-left: 1.125rem; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; color: #F4F7F4; white-space: nowrap; }
.brand b { font-weight: 800; color: var(--honeymelon); }
.strap { margin-left: 1.125rem; padding-left: 1.125rem; border-left: 1px solid #38453E; font-size: 0.90625rem; font-weight: 500; color: #9FB0A6; white-space: nowrap; }
.spacer { flex: 1; }
.libwrap { width: 23.25rem; flex: none; }
.pill { margin-left: 0.75rem; height: 2.375rem; display: flex; align-items: center; padding: 0 1.0625rem; border: 1px solid #3C4A43; border-radius: 1.1875rem;
  font-size: 0.875rem; font-weight: 600; color: #DCE6DE; white-space: nowrap; }
.pill:hover { background: #22302A; }
.pill.ghost { border-color: transparent; color: #9FB0A6; padding-right: 0.25rem; }
.pill.ghost:hover { background: none; color: #DCE6DE; }

/* ---------- dropdowns ---------- */
.dash-dropdown-wrapper { display: block; width: 100%; }
button.dash-dropdown { width: 100%; height: 2.625rem; background: var(--paper); border: 1px solid var(--line) !important; border-radius: 0.5625rem !important;
  font-family: inherit; font-size: 0.90625rem; font-weight: 600; color: var(--ink); cursor: pointer; outline: none !important; }
button.dash-dropdown:focus, button.dash-dropdown[data-state="open"] { border-color: #BFD8C8 !important; box-shadow: 0 0 0 0.1875rem rgba(47,143,91,0.12); }
.dash-dropdown-trigger { padding: 0 0.875rem !important; min-height: 0 !important; gap: 0.625rem !important; }
.dash-dropdown-placeholder { color: #8B968F !important; font-weight: 500; }
.dash-dropdown-trigger-icon { color: #4E5C54 !important; width: 1.25rem; height: 1.25rem; margin-right: -3px; }
.dash-dropdown-clear { color: #A3ADA6; width: 0.8125rem; height: 0.8125rem; }
button.tags .dash-dropdown-value-item::before { content: none !important; }
.dash-dropdown-value-count { display: none; }
.dash-dropdown-content { border: 1px solid var(--line) !important; border-radius: 0.625rem !important; font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 1.125rem 2.75rem -14px rgba(22,33,27,0.30); }
button.tags .dash-dropdown-clear { display: none; }
button.tags .dash-dropdown-value { display: flex; gap: 0.375rem; }
.optn { color: var(--muted); font-weight: 500; }
.tagx { display: none; }
.dash-dropdown-value .optn { display: none; }
.dash-dropdown-value .hm-tag { display: inline-flex; align-items: center; gap: 0.4375rem; height: 1.625rem; padding: 0 0.5rem 0 0.6875rem; border-radius: 0.4375rem;
  background: var(--leaf-soft); color: #1E6B41; font-weight: 700; font-size: 0.875rem; }
.dash-dropdown-value .tagx { display: inline-flex; align-items: center; justify-content: center; width: 0.8125rem; height: 0.8125rem; font-size: 1.25rem;
  font-weight: 500; line-height: 1; border-radius: 50%; cursor: pointer; }
.dash-dropdown-value .tagx:hover { background: #CFE5D6; }
.header button.dash-dropdown { height: 2.375rem; border-color: transparent !important; }
.dash-dropdown-value .n, .dash-dropdown-option .n { color: var(--muted); font-weight: 500; margin-left: 0.5625rem; }

/* ---------- body ---------- */
.body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1000fr) minmax(0, 806fr); gap: 0.875rem; padding: 0.875rem; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 0.75rem; overflow: hidden;
  box-shadow: 0 1px 2px rgba(22,33,27,0.04); }
.left { height: var(--bodyh); padding: 0 1.375rem; min-width: 0; }
.right { height: var(--bodyh); display: flex; flex-direction: column; gap: 0.875rem; overflow-y: auto; scrollbar-width: none; min-width: 0; }
.right::-webkit-scrollbar { display: none; }
.right > * { flex: none; }

/* ---------- workspace tabs ---------- */
.left .tab-parent { height: 100%; display: flex; flex-direction: column; overflow: visible; }
.left .tab-container.ws { flex: none; height: 3.5rem; display: flex; flex-direction: row; align-items: stretch; gap: 2.125rem;
  border-bottom: 1px solid var(--hair); }
.ws .tab { flex: none !important; width: auto !important; display: flex; align-items: center; padding: 0 !important; margin: 0 0 -1px !important;
  border: none !important; border-bottom: 2.5px solid transparent !important; background: transparent !important;
  font-size: 1rem; font-weight: 500; color: var(--muted) !important; cursor: pointer; }
.ws .tab:hover { color: var(--ink-2) !important; }
.ws .tab.tab-on { color: var(--ink) !important; font-weight: 700; border-bottom-color: var(--leaf) !important; }
.left .tab-content { flex: 1; min-height: 0; }
.pane { height: calc(var(--bodyh) - 3.625rem); }
.pane.discover { display: flex; flex-direction: column; }
.pane.scroll { overflow-y: auto; padding: 1rem 0.375rem 1.375rem 0; scrollbar-width: thin; }

/* ---------- the brief ---------- */
.filters { flex: none; display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 0.875rem; padding: 1rem 0 0; }
.ctl { min-width: 0; }
.ctl > label, .ctl > .lab { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin-bottom: 0.4375rem; }
.count { flex: none; height: 3.375rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.count .n { min-width: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count .n span { color: var(--muted); font-weight: 500; }
.count-r { flex: none; display: flex; align-items: center; gap: 1.5rem; }
a.csv { font-size: 0.875rem; font-weight: 600; color: var(--leaf); display: flex; align-items: center; gap: 0.4375rem; white-space: nowrap; }
a.csv::before { content: ""; width: 0.875rem; height: 0.875rem; background: center / contain no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1.5v8M3.8 6.6 7 9.8l3.2-3.2M2 12.3h10' fill='none' stroke='%232F8F5B' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
details.more { position: relative; }
details.more > summary { list-style: none; cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary:hover, details.more[open] > summary { color: var(--ink); }
.morebody { position: absolute; right: 0; top: calc(100% + 0.75rem); z-index: 30; width: 35rem; padding: 1.125rem 1.25rem; display: flex; flex-direction: column; gap: 1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 0.75rem; box-shadow: 0 1.375rem 3.125rem -16px rgba(22,33,27,0.36); }
.morebody .muted { margin-top: 0.3125rem; }
.presets { display: flex; flex-wrap: wrap; gap: 0.5rem; }
button.preset { height: 1.875rem; padding: 0 0.8125rem; border: 1px solid #E5D9A6; border-radius: 0.9375rem; background: #FCF8E4; color: #5C4E08; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
button.preset:hover { background: #F6EFC4; }

/* ---------- candidates ---------- */
.grid { display: grid; grid-template-columns: 7.75rem minmax(0, 1fr) 5.75rem 5.875rem 7rem 3.875rem; align-items: center; column-gap: 0.875rem; }
.thead { flex: none; height: 2.25rem; padding: 0 0.875rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.r { text-align: right; }
.thead .mwh { padding-right: 0.625rem; }
.rows { flex: 1; min-height: 0; margin: 0 -22px; overflow-y: auto; scrollbar-width: none; }
.rows::-webkit-scrollbar { display: none; }
.row { height: calc((var(--bodyh) - 14.438rem) / 8); min-height: 4.75rem; padding: 0 2.25rem; border-bottom: 1px solid var(--hair); position: relative; cursor: pointer; }
.row:hover { background: #F8FAF8; }
.row.sel { background: linear-gradient(90deg, #E3F0E7 0%, #EFF6F1 100%); }
.row.sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0.25rem; background: var(--leaf); }
.rows .hint { padding: 1.625rem 2.25rem; }
.mol { height: 100%; display: flex; align-items: center; justify-content: center; }
.mol img { width: 7.75rem; height: 4.75rem; display: block; }
.name { font-size: 1.0938rem; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 0.375rem; margin-top: 0.5rem; flex-wrap: nowrap; overflow: hidden; }
.chips.wrap { flex-wrap: wrap; }
.chip { flex: none; display: inline-flex; align-items: center; height: 1.5rem; padding: 0 0.5625rem; border-radius: 0.75rem; font-size: 0.78125rem; font-weight: 600;
  background: #EFF2EE; color: #415048; white-space: nowrap; }
.chip.struct { background: #ECECF6; color: #41417C; }
.chip.ref { background: #FBEADC; color: #9A4A0B; }
.chip.nat { background: var(--leaf-soft); color: #1E6B41; }
.chip.live { background: var(--leaf); color: #FFFFFF; }
.chip.early { background: var(--honey); color: var(--ink); }
.chip.dev { background: #3A6EA5; color: #FFFFFF; }
.chip.road { background: #8A938D; color: #FFFFFF; }
.mw { font-size: 1.0312rem; font-weight: 500; padding-right: 0.625rem; }
.none { font-size: 0.875rem; font-weight: 500; color: #A3ADA6; }
.match { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- the molecule window ---------- */
.hero { height: calc(var(--bodyh) - 21.375rem); background: radial-gradient(ellipse 62% 80% at 62% 46%, #FFFFFF 0%, #F6F9F6 52%, #E9EFEA 100%); }
.hero canvas, .map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero canvas { cursor: grab; touch-action: none; -webkit-mask-image: linear-gradient(#000 0%, #000 78%, rgba(0,0,0,0.25) 100%); mask-image: linear-gradient(#000 0%, #000 78%, rgba(0,0,0,0.25) 100%); }
.hero canvas:active { cursor: grabbing; }
.hero img.flat { display: none; position: absolute; left: 61.5%; top: 49%; width: 50%; height: 60%; transform: translate(-50%, -50%); object-fit: contain; pointer-events: none; }
.hero img.flat.on { display: block; }
.ptitle { position: absolute; left: 1.5rem; top: 1.25rem; max-width: 46%; pointer-events: none; }
.ptitle h2 { margin: 0; font-size: 1.6875rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.ptitle .chip { margin-top: 0.625rem; height: 1.625rem; font-size: 0.84375rem; }
.ptitle .chip:empty { display: none; }
.readout { position: absolute; left: 1.5rem; top: 7.75rem; display: flex; flex-direction: column; gap: 1.125rem; pointer-events: none; }
.readout div span { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin-bottom: 0.1875rem; }
.readout div b { display: block; font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.02em; }
.readout div b small { font-size: 0.8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 0.25rem; }
.seg { position: absolute; left: 1.5rem; bottom: 1.25rem; display: flex; padding: 0.25rem; border-radius: 1.375rem;
  background: rgba(255,255,255,0.82); border: 1px solid var(--line); box-shadow: 0 0.375rem 1.125rem -8px rgba(22,33,27,0.25); -webkit-backdrop-filter: blur(0.375rem); backdrop-filter: blur(0.375rem); }
.seg button { height: 2.125rem; display: flex; align-items: center; padding: 0 1.125rem; border: none; border-radius: 1.0625rem; background: none;
  font-size: 0.875rem; font-weight: 600; color: #5A6860; white-space: nowrap; cursor: pointer; }
.seg button.on { background: var(--ink); color: #F4F7F4; }
.seg button:disabled { opacity: 0.36; cursor: default; }
.vnote { position: absolute; left: 1.5rem; bottom: 5rem; max-width: 14.75rem; text-align: left; font-size: 0.75rem; font-weight: 500; line-height: 1.45; color: #7C8881; pointer-events: none; }

/* ---------- odour map ---------- */
.map { height: 20.5rem; }
.map canvas { cursor: default; }
.map .ptitle h2 { font-size: 1.1875rem; letter-spacing: -0.02em; }
.legend { position: absolute; left: 1.5rem; bottom: 1.125rem; display: flex; flex-direction: column; gap: 0.5625rem; font-size: 0.8125rem; font-weight: 600; color: #55635B; pointer-events: none; }
.legend .l { display: flex; align-items: center; gap: 0.5625rem; }
.legend .bar { width: 5.75rem; height: 0.5rem; border-radius: 0.25rem; background: linear-gradient(90deg, rgb(196,207,199) 0%, rgb(140,190,160) 22%, rgb(47,143,91) 55%, rgb(22,60,40) 100%); }
.legend .ring { width: 0.8125rem; height: 0.8125rem; border-radius: 50%; border: 2px solid #E08A2C; }
.maplabel { display: none; position: absolute; transform: translate(0, -50%); padding: 0 0.6875rem; height: 1.75rem; align-items: center; border-radius: 0.875rem;
  background: var(--ink); color: #F4F7F4; font-size: 0.84375rem; font-weight: 700; white-space: nowrap; pointer-events: none; max-width: 18.75rem; overflow: hidden; }

/* ---------- below the window: the open molecule and the candidates' properties ---------- */
.below { padding: 0 1.5rem 1.125rem; }
.panelhead { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.02em; padding: 1.125rem 0 0.625rem; }
.below h4 { margin: 1rem 0 0.3125rem; font-size: 0.875rem; font-weight: 700; }
img.molbig { display: block; width: 100%; max-height: 10.625rem; object-fit: contain; }
.cardname { margin: 0.375rem 0 2px; font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.02em; }
.foot { padding: 2px 0.375rem 1.125rem; font-size: 0.75rem; line-height: 1.5; color: #8A948E; }

/* ---------- the other workspaces ---------- */
.hint { font-size: 0.875rem; line-height: 1.55; color: #4E5A53; margin: 0 0 0.75rem; max-width: 58.75rem; }
.muted { font-size: 0.78125rem; line-height: 1.45; color: var(--muted); }
.subcount { font-size: 0.9375rem; font-weight: 700; margin: 0.75rem 0 2px; }
.frow { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: flex-end; margin: 0.75rem 0 0.5rem; }
.frow .ctl { flex: 1; min-width: 14.375rem; }
.result { background: #F3F8F4; border: 1px solid #D5E7DB; border-radius: 0.5625rem; padding: 0.75rem 0.9375rem; margin: 0.625rem 0; line-height: 1.7; font-size: 0.875rem; }
.pane h4 { margin: 1.25rem 0 0.375rem; font-size: 1rem; font-weight: 800; letter-spacing: -0.015em; }
.tablewrap { max-height: 40rem; overflow-y: auto; }
table.tbl { border-collapse: collapse; width: 100%; }
table.tbl th { position: sticky; top: 0; background: var(--paper); text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--line); padding: 0.5rem 0.625rem; z-index: 1; }
table.tbl td { border-bottom: 1px solid var(--hair); padding: 0.4375rem 0.625rem; vertical-align: middle; font-size: 0.875rem; }
table.tbl img.mol { width: 6.5rem; height: 4rem; display: block; }
.molname { font-weight: 700; }
button.open { height: 1.75rem; padding: 0 0.75rem; border: 1px solid #BFD8C8; border-radius: 0.875rem; background: var(--paper); color: var(--leaf); font-size: 0.78125rem; font-weight: 700; cursor: pointer; }
button.open:hover { background: var(--leaf); color: #FFFFFF; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.half { min-width: 0; }
.capgroup { margin: 1.25rem 0 0.5625rem; font-size: 1rem; font-weight: 800; letter-spacing: -0.015em; }
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr)); gap: 0.75rem; }
.cap { border: 1px solid var(--line); border-radius: 0.6875rem; padding: 0.8125rem 1rem; }
.cap h4 { margin: 0.5625rem 0 0.375rem; font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; }
.cap p { margin: 0.375rem 0; font-size: 0.84375rem; line-height: 1.55; }
.cap .next { color: #4E5A53; }
.caphead { display: flex; align-items: center; gap: 0.5625rem; }
.guide { font-size: 0.875rem; line-height: 1.6; max-width: 56.25rem; }
.guide pre { background: #F5F7F4; border: 1px solid var(--line); border-radius: 0.5625rem; padding: 0.75rem; overflow-x: auto; font-size: 0.78125rem; }
.smiles { font-family: ui-monospace, Menlo, monospace; font-size: 0.71875rem; color: var(--muted); word-break: break-all; }
.meta { font-size: 0.875rem; margin: 0.1875rem 0; }

@media (max-width: 900px) {
  body { overflow: auto; }
  .page { height: auto; }
  .body { grid-template-columns: 1fr; }
  .left, .right { height: auto; }
  .pane { height: 47.5rem; }
  .hero { height: 32.5rem; }
}
