/* Additions on top of design.css for the working product */
.shell { min-height: 100vh; }
.onboard { min-height: 100vh; }
@media (min-width: 721px) { .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
.brand-static { display: flex; align-items: center; gap: 10px; padding: 12px 10px; background: #24514B; color: white; border: 1px solid #53736B; border-radius: 10px; margin-bottom: 25px; }
.brand-static small { display: block; color: #C0D6CF; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.brand-static strong { display: block; font-size: 14px; }
.tag { font-size: 10px; font-weight: 650; letter-spacing: .4px; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--mint); color: var(--dark); margin-left: 8px; vertical-align: 2px; white-space: nowrap; }

/* Alert rules */
.rule-row { grid-template-columns: minmax(0, 1fr) auto; }
.rule-row.off .rule-text { opacity: .5; }
.rule-row small { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rule-controls { display: flex; align-items: center; gap: 12px; }
.mini-input { display: inline-flex; align-items: center; gap: 3px; min-height: 40px; padding: 0 10px; border: 1px solid #C8D5CD; border-radius: 8px; background: white; font-size: 13px; color: var(--muted); }
.mini-input input { width: 58px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; min-height: 36px; padding: 0; }
.mini-input:focus-within { outline: 3px solid #16A99E; outline-offset: 2px; }
.combo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.combo .cnd { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.combo .join { font-size: 10px; font-weight: 750; letter-spacing: 1px; color: var(--teal); }
.combo .mini-input { min-height: 32px; } .combo .mini-input input { min-height: 28px; width: 50px; }
.dest-btn { min-height: 40px; max-width: 210px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #C8D5CD; border-radius: 8px; background: white; font-size: 12px; font-weight: 600; }
.dest-btn .dl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-btn .more { color: var(--muted); font-weight: 400; }
.dest-btn.none { color: var(--amber); border-color: #E8CF9A; }
.dest-btn .icon { width: 14px; height: 14px; }
.field .dest-btn { max-width: none; width: 100%; min-height: 44px; justify-content: space-between; font-size: 14px; font-weight: 400; }
.pop { position: absolute; z-index: 40; width: 300px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px #0b292b33; padding: 10px; }
.pop input { width: 100%; font-size: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 7px; min-height: 42px; }
.pop-list { max-height: 270px; overflow-y: auto; }
.pop-group { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; padding: 9px 11px 4px; }
.pop-opt { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 7px; min-height: 42px; font-size: 13px; cursor: pointer; }
.pop-opt small { display: block; color: var(--muted); font-size: 10px; }
.pop-opt .who { flex: 1; min-width: 0; }
.pop-opt .tick { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid #A4B6AE; flex: none; display: grid; place-items: center; color: white; }
.pop-opt .tick .icon { width: 12px; height: 12px; stroke-width: 3; opacity: 0; }
.pop-opt[aria-selected="true"] .tick { background: var(--teal); border-color: var(--teal); }
.pop-opt[aria-selected="true"] .tick .icon { opacity: 1; }
.pop-opt.active, .pop-opt:hover { background: var(--mint); }
.pop-foot { border-top: 1px solid var(--line); margin-top: 7px; padding: 9px 6px 2px; font-size: 11px; color: var(--muted); }

/* Builder */
.condition.removable { grid-template-columns: 1fr 1fr 90px 44px; align-items: end; }
.icon-btn { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: white; color: var(--muted); font-size: 18px; line-height: 1; }
.icon-btn:hover { color: var(--red); }
.cond-join { font-size: 10px; font-weight: 750; letter-spacing: 1.2px; color: var(--teal); margin: -8px 0 -8px 4px; }

/* Brands, people, settings */
.brand-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.brand-card .card-foot .btn { margin-top: 0; flex: 1; }
.person .grow { flex: 1; min-width: 0; }
.person .grow p { overflow: hidden; text-overflow: ellipsis; }
.person select { margin-left: 0; min-height: 40px; max-width: 110px; }
.person .status { margin-left: 0; }
.danger-link { color: var(--red); }
.access-list { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.plan-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.plan-opt { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.plan-opt p { font-size: 12px; }
.ob-steps .stepnum .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.field .affix-note { font-weight: 400; color: var(--muted); }
dialog .person:last-of-type { border-bottom: 0; }
.pricing li:before { content: ''; display: inline-block; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg) translateY(-3px); margin-right: 12px; }

@media (max-width: 720px) {
  .rule-row { grid-template-columns: 1fr; }
  .rule-row > .toggle { grid-row: auto; grid-column: auto; }
  .rule-controls { flex-wrap: wrap; }
  .condition.removable { grid-template-columns: 1fr 1fr; }
  .plan-opts { grid-template-columns: 1fr; }
  .brand-static { margin: 0; justify-self: end; padding: 8px; }
}

/* Brand logos and wordmark-only logo */
.blogo { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.platform-icon .blogo { width: 17px; height: 17px; }
.dest-btn .blogo { width: 15px; height: 15px; }
.dest-btn .dl { flex: 1; text-align: left; }
.navlink .blogo { width: 18px; height: 18px; }
.plat-line { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.plat-line span { display: inline-flex; align-items: center; gap: 6px; }
.plat-line .blogo { width: 14px; height: 14px; }
.bot { font-weight: 750; font-size: 15px; }
.bot.human { background: #E4E9E4; color: #4D5F59; }
.logo { letter-spacing: -1.2px; }
#splash .logo { font-size: 40px; }

/* Sticky marketing header */
.market-nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
html { scroll-padding-top: 96px; }

/* Public footer + legal pages */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding: 26px 6%; background: #fff; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.site-footer .sf-brand { display: flex; align-items: baseline; gap: 12px; }
.site-footer .logo { font-size: 18px; color: var(--dark); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }
.site-footer nav a:hover { color: var(--teal); text-decoration: underline; }
.sf-legal { flex-basis: 100%; }
body.public { background: #fff; }
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: 40px; letter-spacing: -1.5px; }
.legal .lead { font-size: 17px; line-height: 1.65; margin-top: 16px; }
.legal .updated { font-size: 12px; margin-top: 14px; }
.legal section { margin-top: 40px; }
.legal h2 { font-size: 21px; margin-bottom: 12px; }
.legal h3 { font-size: 15px; margin: 22px 0 8px; }
.legal section p, .legal li { font-size: 15px; line-height: 1.7; color: #3B524D; }
.legal section p + p, .legal ul + p, .legal ol + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.legal code { background: var(--canvas); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 13px; }
.legal .table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.legal th { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: var(--canvas); }
.legal tr:last-child td { border-bottom: 0; }
.draft-banner { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 12px 16px; font-size: 13px; font-weight: 600; margin-bottom: 32px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.contact-grid h2 { font-size: 17px; margin-bottom: 6px; }
.contact-grid p { font-size: 14px; margin-top: 6px; }
.consent-note { font-size: 12px; color: var(--muted); }
.consent-note a { color: var(--teal); text-decoration: underline; }
@media (max-width: 720px) { .legal { padding: 40px 20px 72px; } .legal h1 { font-size: 32px; } .contact-grid { grid-template-columns: 1fr; } .site-footer { padding: 24px 20px; } }
