/* Approved interface standards, 2026-09-08.
   Add .boh-interface to the page content and load this file after page CSS.
   Adopted by authenticated Targets, Plan, Detail, and the standards specimens. */
:root {
    --interface-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --interface-body-size: 15px;
    --interface-link-size: 13px;
    --interface-control-height: 36px;
    --interface-radius: 18px;
    --interface-control-padding: 7px 18px;
}

body:has(.boh-interface) .boh-interface,
body:has(.boh-interface) .want-accept-overlay,
body:has(.boh-interface) .toll-bench-header {
    --font-body: var(--interface-font);
    --font-heading: var(--interface-font);
    --font-serif: var(--interface-font);
    --font-mono: var(--interface-font);
    font-family: var(--interface-font);
    font-size: var(--interface-body-size);
    line-height: 1.55;
}

body:has(.boh-interface) .boh-interface :where(h1, h2, h3, h4, p, span, a, button, label, li, blockquote, dt, dd, div, summary, text, input, textarea) {
    font-family: var(--interface-font);
    font-style: normal;
}

body:has(.boh-interface) .target-trajectory__title {
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.035em;
}

body:has(.boh-interface) .tp-plan__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.02em;
}

body:has(.boh-interface) .us-title,
body:has(.boh-interface) .want-replies__title,
body:has(.boh-interface) .tb-plan__section-label,
body:has(.boh-interface) .tp-terms__title,
body:has(.boh-interface) .tp-access__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.015em;
    text-transform: none;
}

body:has(.boh-interface) .us-bullets,
body:has(.boh-interface) .us-detail,
body:has(.boh-interface) .us-agent-message__bubble,
body:has(.boh-interface) .tp-terms__lines,
body:has(.boh-interface) .tp-access__empty,
body:has(.boh-interface) .want-replies__empty,
body:has(.boh-interface) .us-action__txt,
body:has(.boh-interface) .tb-serif {
    font-size: var(--interface-body-size);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: normal;
    text-transform: none;
}

body:has(.boh-interface) .target-trajectory__caption {
    font-size: var(--interface-link-size);
    font-weight: 400;
    letter-spacing: normal;
}

body:has(.boh-interface) .tb-bar .chip,
body:has(.boh-interface) .tb-bar .meta,
body:has(.boh-interface) .tp-ctx__cap-label,
body:has(.boh-interface) .tp-ctx__cap-number {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .055em;
}

body:has(.boh-interface) .toll-tabs {
    position: sticky;
    top: 68px;
    z-index: var(--z-sticky);
    gap: 0;
    padding: 0;
    background: var(--surface-app);
    isolation: isolate;
}

body:has(.boh-interface) .toll-tab {
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    letter-spacing: normal;
}

body:has(.boh-interface) .toll-tab iconify-icon {
    display: none;
}

body:has(.boh-interface) .tb-btn,
body:has(.boh-interface) .tp-btn,
body:has(.boh-interface) .want-accept__confirm,
body:has(.boh-interface) .ob-btn,
body:has(.boh-interface) .boh-tipbtn,
body:has(.boh-interface) .wants-filter__toggle,
body:has(.boh-interface) .interface-primary,
body:has(.boh-interface) .toll-bench-header-action {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--interface-control-height);
    height: auto;
    padding: var(--interface-control-padding);
    border-radius: var(--interface-radius);
    font-family: var(--interface-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: normal;
    text-transform: none;
}

body:has(.boh-interface) .tp-plan__sub--toggle,
body:has(.boh-interface) .tb-plan__full-link,
body:has(.boh-interface) .tp-btn--ghost,
body:has(.boh-interface) .tb-btn--ghost,
body:has(.boh-interface) .wants-list__more-btn,
body:has(.boh-interface) .tp-info__more-summary,
body:has(.boh-interface) .ob-btn--ghost,
body:has(.boh-interface) .interface-link,
body:has(.boh-interface) .want-accept__cancel {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    height: auto;
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--interface-font);
    font-size: var(--interface-link-size);
    font-weight: 400;
    line-height: 20px;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}

body:has(.boh-interface) .tp-plan__sub--toggle:hover,
body:has(.boh-interface) .tb-plan__full-link:hover,
body:has(.boh-interface) .tp-btn--ghost:hover,
body:has(.boh-interface) .tb-btn--ghost:hover,
body:has(.boh-interface) .want-accept__cancel:hover {
    color: var(--text-primary);
    background: transparent;
}

body:has(.boh-interface) .tb-plan__full-link {
    align-self: flex-start;
    margin-top: 4px;
}

body:has(.boh-interface) .tp-plan__bar {
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 4px;
}

body:has(.boh-interface) .us-actions {
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

body:has(.boh-interface) .toll-bench-header {
    box-sizing: border-box;
    height: 68px;
    min-height: 68px;
}

body:has(.boh-interface) .toll-bench-header__title {
    font-family: var(--interface-font);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.025em;
}

body:has(.boh-interface) .tp-btn > iconify-icon,
body:has(.boh-interface) .tb-btn > iconify-icon,
body:has(.boh-interface) .tp-plan__sub--toggle > iconify-icon,
body:has(.boh-interface) .toll-bench-header-action iconify-icon {
    display: none;
}

body:has(.boh-interface) .tp-btn::after,
body:has(.boh-interface) .tb-btn::after,
body:has(.boh-interface) .tp-plan__sub--toggle::after {
    content: none;
}

body:has(.boh-interface) .toll-bench-header-action span {
    display: block;
    text-transform: lowercase;
}

body:has(.boh-interface) .toll-bench-header-action span::first-letter {
    text-transform: uppercase;
}

body:has(.boh-interface) .tp-btn:focus-visible,
body:has(.boh-interface) .tb-btn:focus-visible,
body:has(.boh-interface) .toll-tab:focus-visible,
body:has(.boh-interface) .tp-plan__sub--toggle:focus-visible,
body:has(.boh-interface) .tb-plan__full-link:focus-visible {
    outline: 3px solid var(--interactive-focus-ring);
    outline-offset: 3px;
}

@media (max-width: 767px) {
body:has(.boh-interface) .toll-tabs { top: 64px; }
body:has(.boh-interface) .toll-bench-header { height: 64px; min-height: 64px; }
}

body:has(.boh-interface) .boh-interface {
    --tb-card-radius: var(--interface-radius);
    --tb-sheet-radius: var(--interface-radius);
}
body:has(.boh-interface) .target-anchor__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.02em;
}
body:has(.boh-interface) :is(.target-anchor, .target-trajectory, .tp-terms, .tp-access, .want-results, .want-replies, .tb-detail-sheet) {
    border-radius: var(--interface-radius);
}
/* Attached sheets share a straight internal seam and rounded outside corners. */
body:has(.boh-interface) .tb-plan-sheet {
    border-radius: 0 0 var(--interface-radius) var(--interface-radius);
}
body:has(.boh-interface) .boh-interface :is(textarea, input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select) {
    border-radius: var(--interface-radius);
    font-family: var(--interface-font);
    font-size: var(--interface-body-size);
}
body:has(.boh-interface) :is(.tp-info__text, .tp-msg__body, .tp-reply__input) {
    font-size: var(--interface-body-size);
    font-weight: 400;
    line-height: 1.55;
}
body:has(.boh-interface) :is(.ob-btn, .boh-tipbtn) > iconify-icon {
    display: none;
}
/* A dropdown chevron communicates open/closed state; text CTAs have no decoration. */
body:has(.boh-interface) .tp-info__more-summary::after { content: none; }
body:has(.boh-interface) .tp-info__more-summary { list-style: none; }
body:has(.boh-interface) .tp-info__more-summary::-webkit-details-marker { display: none; }
body:has(.boh-interface) :is(.interface-primary, .interface-link):focus-visible {
    outline: 3px solid var(--interactive-focus-ring);
    outline-offset: 3px;
}
.interface-standards { padding: 24px; border: 1px solid var(--border-default); border-radius: var(--interface-radius); background: var(--surface-primary); margin-bottom: 32px; }
.interface-standards h2 { font-size: 24px; font-weight: 600; line-height: 1.25; }
.interface-standards h3 { font-size: 18px; font-weight: 600; }
.interface-standards p { font-size: 15px; line-height: 1.55; }
.interface-standards table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.interface-standards th, .interface-standards td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--border-default); }
.interface-standards__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 16px 0; }
.interface-standards .interface-primary { background: var(--accent-primary); color: var(--text-primary); border: 1px solid transparent; text-decoration: none; }
.interface-standards .interface-primary--secondary { background: transparent; border-color: var(--border-strong); }

body:has(.boh-interface) .tb-detail-sheet .tp-detail:not(.is--history) {
    border-radius: 0 0 var(--interface-radius) var(--interface-radius);
}
body:has(.boh-interface) :is(.tp-askmodal__sheet, .want-accept, .ob-failmodal__dialog) {
    border-radius: var(--interface-radius);
}
