@font-face {
    font-family: Instrument;
    src: url('fonts/instrumentsans.woff2') format('woff2');
    font-display: swap;
    font-weight: 400 700
}

@font-face {
    font-family: Bricolage;
    src: url('fonts/bricolagegrotesque.woff2') format('woff2');
    font-display: swap;
    font-weight: 400 800
}

:root {
    --bg: #f5f7f5;
    --paper: #fff;
    --ink: #192e2a;
    --muted: #586b65;
    --line: #dce4df;
    --pine: #142f2b;
    --blue: #234dc4;
    --sky: #edf2ff;
    --green: #e4efe8;
    --cream: #f7edda;
    --rose: #f6e9e5;
    --rail: 242px
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.48 Instrument, system-ui, sans-serif
}

h1,
h2,
h3,
p,
dl,
dd {
    margin: 0
}

h1,
h2,
h3,
.brand,
.wordmark,
.stat b {
    font-family: Bricolage, system-ui, sans-serif
}

h1 {
    font-size: clamp(2.1rem, 3.7vw, 3.5rem);
    letter-spacing: -.055em;
    line-height: 1.03;
    text-wrap: balance
}

h2 {
    font-size: 1.28rem;
    letter-spacing: -.035em;
    line-height: 1.2
}

h3 {
    font-size: 1.1rem;
    letter-spacing: -.025em
}

a {
    color: var(--blue);
    text-underline-offset: 3px
}

a:hover {
    text-decoration: underline
}

button,
.button,
.ghost {
    font: 650 .9rem/1.2 Instrument, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 1px solid transparent;
    border-radius: .55rem;
    min-height: 40px;
    padding: .65rem 1rem;
    cursor: pointer;
    text-decoration: none;
    background: var(--blue);
    color: white
}

button:hover,
.button:hover {
    filter: brightness(1.08);
    text-decoration: none
}

.ghost {
    background: white;
    border-color: var(--line);
    color: var(--ink)
}

:focus-visible {
    outline: 3px solid #577eef;
    outline-offset: 3px
}

.skip {
    position: fixed;
    left: 1rem;
    top: -100px;
    z-index: 20;
    background: white;
    padding: .5rem
}

.skip:focus {
    top: 1rem
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail);
    background: var(--pine);
    color: #ecf4ef;
    padding: 1.8rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 6;
    overflow: auto
}

.brand {
    font-weight: 800;
    letter-spacing: -.065em;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    line-height: 1.25;
    margin: 0 .6rem
}

.brand span {
    color: #a9c6b5
}

.brand i {
    display: inline-block;
    margin-right: .8rem;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 3px solid #b5d2ff;
    position: relative
}

.brand i:after {
    content: '';
    width: 8px;
    height: 3px;
    position: absolute;
    background: #b5d2ff;
    transform: rotate(48deg);
    bottom: -4px;
    right: -6px
}

.scope,
.profile {
    display: flex;
    gap: .65rem;
    align-items: center
}

.scope {
    border: 1px solid #3a534b;
    padding: .72rem;
    margin: 1.8rem .15rem 1.25rem;
    border-radius: .7rem;
    background: #1c3831
}

.scope-mark,
.avatar {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: .55rem;
    font-weight: 750
}

.scope-mark {
    background: #cee1c6;
    color: #24402e
}

.sidebar small {
    display: block;
    color: #c0d0c7;
    font-size: .77rem
}

.sidebar b {
    font-size: .89rem
}

.navlabel,
.overline {
    font-size: .73rem;
    font-weight: 720;
    letter-spacing: .105em;
    text-transform: uppercase
}

.navlabel {
    display: block;
    color: #abc1b3;
    margin: .9rem .75rem .45rem
}

.navlink {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .63rem .78rem;
    color: #dae7df;
    text-decoration: none;
    border-radius: .45rem;
    margin: .12rem 0;
    min-height: 40px
}

.navlink:hover {
    background: #254338;
    text-decoration: none
}

.navlink.selected {
    background: #d9ebd6;
    color: #193a28;
    font-weight: 700
}

.profile {
    border-top: 1px solid #3a5149;
    margin-top: auto;
    padding: .95rem .25rem 0
}

.profile>a {
    color: #eff7f1;
    text-decoration: none
}

.profile .avatar {
    border-radius: 50%;
    background: #47685a;
    color: #fff
}

.profile form {
    margin-left: auto
}

.signout {
    background: transparent;
    padding: .5rem;
    color: #e1eee6
}

.shell {
    margin-left: var(--rail)
}

.topbar {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 62px;
    padding: .7rem clamp(1rem, 3.2vw, 3rem);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .88rem
}

.topbar>svg {
    width: 13px
}

.topbar strong {
    color: var(--ink);
    overflow-wrap: anywhere
}

.quiet,
.textlink,
.panelhead a {
    font-weight: 650;
    font-size: .88rem
}

.public-link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none
}

.public-link svg {
    width: 14px
}

.mobile-nav {
    display: none
}

#main {
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(1.2rem, 3vw, 2.75rem)
}

.heading,
.row,
.panelhead,
.lanehead,
.item,
.actions,
.labels {
    display: flex;
    align-items: center;
    gap: 1rem
}

.heading,
.row,
.panelhead,
.item {
    justify-content: space-between
}

.heading {
    margin-bottom: 1.65rem;
    flex-wrap: wrap
}

.overline {
    color: #48705c;
    margin-bottom: .55rem
}

.sub {
    color: var(--muted);
    margin-top: .6rem
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin: 0 0 1.2rem
}

.stat {
    padding: 1.05rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: .85rem;
    color: var(--ink);
    text-decoration: none
}

.stat:hover,
.record:hover,
.dealcard:hover {
    border-color: #87a398;
    text-decoration: none
}

.stat-icon,
.tinyicon,
.iconlink {
    width: 39px;
    height: 39px;
    flex: none;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #28553e
}

.s2 .stat-icon {
    background: var(--sky);
    color: var(--blue)
}

.s3 .stat-icon {
    background: var(--cream);
    color: #795818
}

.s4 .stat-icon {
    background: #eeeafa;
    color: #69518a
}

.stat small {
    color: var(--muted);
    font-size: .84rem
}

.stat b {
    display: block;
    font-size: 2rem;
    line-height: 1.09;
    letter-spacing: -.055em
}

.overview-grid,
.duo {
    display: grid;
    gap: 1.1rem;
    align-items: start
}

.overview-grid {
    grid-template-columns: minmax(0, 1.48fr) minmax(0, .92fr)
}

.duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem
}

.stack,
.reading {
    display: grid;
    gap: 1.1rem;
    align-content: start;
    min-width: 0
}

.panel,
.editor,
.record,
.brief,
.loginbox {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: .85rem;
    min-width: 0
}

.panel {
    overflow: hidden
}

.panelhead {
    padding: 1.15rem 1.25rem .95rem;
    border-bottom: 1px solid var(--line)
}

.panelhead .overline {
    margin: 0 0 .2rem
}

.iconlink {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: var(--bg)
}

.tinyicon {
    width: 30px;
    height: 30px;
    background: var(--cream);
    color: #86611f
}

.feature {
    margin: 1.05rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    overflow: hidden;
    border-radius: .62rem;
    background: #eef3e9;
    min-height: 176px
}

.feature img {
    height: 100%;
    width: 100%;
    min-height: 176px;
    object-fit: cover
}

.feature>div {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: .4rem
}

.feature h3 {
    font-size: clamp(1.24rem, 2vw, 1.75rem);
    line-height: 1.1
}

.feature h3 a {
    color: var(--ink);
    text-decoration: none
}

.feature p {
    color: var(--muted)
}

.feature small {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem
}

.feature svg {
    width: 14px
}

.feature.plain {
    grid-template-columns: 1fr
}

.pill {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    line-height: 1.25;
    border-radius: 99px;
    padding: .29rem .6rem;
    background: #e4eee5;
    color: #305339;
    font-size: .76rem;
    font-weight: 680
}

.pill.neutral,
.pill.normal {
    background: #edf1ee;
    color: #475b51
}

.pill.high {
    background: var(--cream);
    color: #744e10
}

.pill.urgent {
    background: var(--rose);
    color: #822d23
}

.item,
.message,
.blockrow,
.pad,
.empty {
    padding: 1rem 1.25rem
}

.item,
.message,
.blockrow {
    border-bottom: 1px solid var(--line)
}

.item:last-child,
.message:last-child,
.blockrow:last-child {
    border-bottom: 0
}

.item {
    color: var(--ink);
    text-decoration: none
}

.item:hover {
    background: #f7f9f6;
    text-decoration: none
}

.item b,
.timeline b,
.dealcard b {
    display: block
}

.item small,
.message small,
.timeline small,
.record small,
.dealcard small,
.blockrow small {
    display: block;
    color: var(--muted);
    font-size: .82rem
}

.item small+b {
    margin-top: .2rem
}

.item b+small {
    margin-top: .2rem
}

.timeline {
    padding: .7rem 1.25rem;
    display: flex;
    gap: .7rem;
    align-items: flex-start
}

.timeline i {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #64997c;
    margin-top: .45rem
}

.timeline b {
    font-size: .88rem;
    font-weight: 600
}

.timeline small {
    margin-top: .15rem
}

.empty,
.laneempty {
    color: var(--muted)
}

input,
select,
textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    font: inherit;
    background: white;
    border: 1px solid #adbdb4;
    border-radius: .46rem;
    padding: .55rem .7rem;
    min-height: 40px;
    color: var(--ink)
}

textarea {
    resize: vertical
}

input[type=checkbox] {
    display: inline;
    width: 19px;
    height: 19px;
    min-height: 0;
    vertical-align: middle
}

input[type=hidden] {
    display: none
}

.check {
    display: flex;
    gap: .55rem;
    align-items: center
}

.editor,
.brief,
.loginbox {
    padding: 1.35rem
}

.editor {
    max-width: 780px
}

.editor>p,
.pad form,
.pad>p,
.blockrow form,
.editor>label,
.editor>textarea,
.editor>input,
.editor>select,
.loginbox form p,
.pad form p,
.pad p {
    margin-bottom: .85rem
}

.editor>label,
.check,
label {
    font-weight: 620
}

.editor label:not(.check) {
    display: block;
    margin-bottom: .25rem
}

input:disabled,
select:disabled {
    background: #edf1ef
}

.actions,
.labels {
    flex-wrap: wrap;
    gap: .45rem
}

.flash,
.errorlist {
    padding: .65rem .9rem;
    background: var(--cream);
    border-radius: .45rem
}

.flash {
    margin-bottom: 1rem
}

.errorlist {
    color: #8a332c
}

.helptext,
.helptext ul {
    display: block;
    color: var(--muted);
    font-size: .82rem
}

.searchbar {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap
}

.searchbar input {
    max-width: 22rem;
    flex: 1 1 12rem
}

.searchbar select {
    max-width: 13rem
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 1rem
}

.record {
    display: block;
    text-decoration: none;
    color: var(--ink);
    padding: 1.22rem
}

.record h2 {
    margin: .7rem 0 .2rem
}

.record p,
.brief,
.message p,
.blockrow p {
    line-height: 1.65
}

.record small,
.record p {
    color: var(--muted)
}

.record small {
    margin-top: .55rem
}

.brief {
    margin-bottom: 1.1rem
}

.message p,
.blockrow p,
.blockrow form {
    margin-top: .7rem
}

.message.internal {
    background: #faf2df
}

.message small {
    margin-top: .18rem
}

.board {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    align-items: start;
    gap: .65rem;
    overflow-x: auto;
    padding-bottom: .8rem
}

.lane {
    background: #ebefec;
    border: 1px solid var(--line);
    border-radius: .65rem;
    padding: .6rem
}

.lanehead {
    gap: .35rem;
    padding: .28rem .1rem .7rem
}

.lanehead h2 {
    font: 680 .9rem Instrument, sans-serif
}

.lanehead i {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #7797b0
}

.lane:nth-child(2) i {
    background: #a48b59
}

.lane:nth-child(3) i {
    background: #8272ab
}

.lane:nth-child(4) i {
    background: #579577
}

.lane:nth-child(5) i {
    background: #b87e75
}

.lanehead span {
    margin-left: auto;
    font-size: .78rem
}

.dealcard {
    display: block;
    background: white;
    border: 1px solid var(--line);
    border-radius: .55rem;
    padding: .7rem;
    margin-bottom: .45rem;
    text-decoration: none;
    color: var(--ink)
}

.dealcard strong {
    display: block;
    margin: .45rem 0;
    color: #2c5a3b
}

.dealcard p,
.laneempty {
    font-size: .85rem;
    color: var(--muted)
}

.laneempty {
    padding: .25rem
}

.item,
.message,
.record,
.timeline,
.feature,
.dealcard,
.blockrow,
.heading {
    overflow-wrap: anywhere
}

.reading {
    max-width: 780px
}

.public header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem clamp(1rem, 6vw, 5rem);
    background: white;
    border-bottom: 1px solid var(--line)
}

.wordmark {
    font: 800 1.65rem Bricolage, sans-serif;
    color: var(--pine);
    letter-spacing: -.06em;
    text-decoration: none
}

.loginbox {
    max-width: 460px;
    margin: 8vh auto;
    padding: 2rem
}

.loginbox h1,
.publicmain h1 {
    margin: .6rem 0 1.4rem
}

.loginbox h1 {
    font-size: 2.6rem
}

.publicmain {
    max-width: 1000px;
    padding: 2rem 1rem;
    margin: auto
}

.publicmain.reading {
    max-width: 740px
}

.publicmain article p {
    margin: 1em 0
}

dt {
    color: var(--muted)
}

dd {
    margin-bottom: 1rem
}

details summary {
    cursor: pointer
}

@media(max-width:1100px) {
    :root {
        --rail: 205px
    }

    .stat {
        padding: .8rem;
        gap: .5rem
    }

    .stat-icon {
        width: 31px;
        height: 31px
    }

    .overview-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr)
    }

    .feature {
        grid-template-columns: 1fr
    }

    .feature img {
        height: 138px;
        min-height: 0
    }

    .feature>div {
        min-height: 110px
    }
}

@media(max-width:800px) {
    :root {
        --rail: 0px
    }

    .sidebar {
        width: 245px;
        top: 56px;
        transform: translateX(-100%);
        visibility: hidden
    }

    .nav-open .sidebar {
        transform: none;
        visibility: visible;
        box-shadow: 7px 10px 23px #17392c30
    }

    .topbar {
        min-height: 56px;
        position: sticky;
        top: 0;
        z-index: 7
    }

    .mobile-nav {
        display: grid;
        background: var(--green);
        color: var(--ink);
        padding: .45rem;
        min-height: 36px
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .feature {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)
    }

    .feature img {
        height: 100%;
        min-height: 135px
    }

    .overview-grid,
    .duo {
        grid-template-columns: 1fr
    }
}

@media(max-width:520px) {
    .public-link {
        font-size: 0
    }

    .public-link svg {
        width: 19px
    }

    .heading {
        gap: .7rem
    }

    .feature {
        grid-template-columns: .8fr 1.2fr
    }

    .feature>div,
    .pad,
    .item,
    .message,
    .blockrow {
        padding: .8rem
    }

    .panelhead {
        padding: .88rem
    }

    .feature {
        margin: .7rem
    }

    .stats {
        gap: .5rem
    }

    .stat b {
        font-size: 1.65rem
    }

    .labels {
        justify-content: flex-end
    }

    .board {
        grid-template-columns: 1fr
    }

    .laneempty {
        padding: .15rem
    }

    .loginbox {
        margin: 1rem
    }

    .profile {
        margin-top: 1rem
    }

    .scope {
        margin: .9rem 0
    }

    .sidebar .navlabel {
        margin-top: .5rem
    }
}

.taskpanel,
.panel+.panel {
    margin-top: 1rem
}

.worklist {
    margin-top: 1.25rem
}

.worklist>.panel {
    margin-top: 0
}

.honey {
    position: absolute;
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden
}

.enquirybox {
    max-width: 580px
}

.decision-history { margin: .7rem 0; }
.decision-history p { border-inline-start: 2px solid var(--line); padding-inline-start: .75rem; }
