/* Blockwright: colours, fonts and sizes only from the kit tokens (--bk-*, _content/Bedko.Web/bedko.css) */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bk-page); color: var(--bk-ink); font-family: var(--bk-font-ui); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: var(--bk-blue); }
main { max-width: 960px; margin: 0 auto; padding: 8px 16px 64px; }

/* top bar: wordmark left, sections and the avatar menu right; the sections wrap under the brand on a phone */
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; background: var(--bk-page); border-bottom: 1px solid var(--bk-line); padding: 10px 16px; font-size: 15px; }
nav .brand { color: var(--bk-ink); font-weight: 600; letter-spacing: -0.01em; margin-right: auto; text-decoration: none; display: flex; align-items: center; gap: 10px; }
nav .brand .bedko-logo { width: auto; height: 28px; }
nav .brand-divider { width: 1px; height: 22px; background: var(--bk-line); }
nav .brand-icon { width: 24px; height: 24px; border-radius: 6px; }
nav .tab { display: flex; align-items: center; gap: 6px; color: var(--bk-soft); text-decoration: none; min-height: var(--bk-touch); }
nav .tab.active { color: var(--bk-ink); }
@media (max-width: 720px) {
    nav .brand .bedko-logo, nav .brand-divider { display: none; }
    nav .tab span:not(.avatar) { display: none; }
    nav .brand { flex-basis: 100%; }
}
.navmore { position: relative; }
.navmore summary { list-style: none; cursor: pointer; }
.navmore summary::-webkit-details-marker { display: none; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bk-raised); color: var(--bk-ink); font-weight: 600; font-size: 14px; }
.navmore-menu { position: absolute; right: 0; top: 100%; z-index: 10; display: flex; flex-direction: column; gap: 4px; min-width: 200px; padding: 10px 12px; background: var(--bk-surface); border: 1px solid var(--bk-line); border-radius: var(--bk-radius-card); }
.navmore-who { color: var(--bk-faint); font-size: 13px; padding-bottom: 4px; }
button.link { background: none; border: 0; padding: 6px 0; color: var(--bk-soft); font: inherit; cursor: pointer; text-align: left; }
button.link:hover { color: var(--bk-ink); }
.navmore-link { display: flex; align-items: center; gap: 8px; color: var(--bk-soft); text-decoration: none; padding: 6px 0; }
.navmore-link:hover, .navmore-link.active { color: var(--bk-ink); }
.navmore-link .bk-icon { width: 16px; height: 16px; }

.notice { background: var(--bk-surface); border-left: 3px solid var(--bk-amber); padding: 8px 12px; border-radius: var(--bk-radius); }
.done { background: var(--bk-surface); border-left: 3px solid var(--bk-green); padding: 8px 12px; border-radius: var(--bk-radius); }
.failed { background: var(--bk-surface); border-left: 3px solid var(--bk-red); padding: 8px 12px; border-radius: var(--bk-radius); }
.page-title { font-size: 20px; font-weight: 600; margin: 16px 0 12px; }
.empty { color: var(--bk-faint); }
a.bk-button { text-decoration: none; }
code { font-family: var(--bk-font-mono); font-size: 14px; overflow-wrap: anywhere; }

/* bk-card, bk-row, bk-row-label, bk-button and bk-field come from the kit (bedko-components.css) */
.grid { width: 100%; border-collapse: collapse; margin-top: 8px; }
.grid th, .grid td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--bk-line); vertical-align: top; }
.grid th { color: var(--bk-soft); font-weight: 500; font-size: 13px; }
.grid td.mono { font-family: var(--bk-font-mono); font-size: 13px; }
.scroll { overflow-x: auto; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.inline .bk-field { flex: 1 1 200px; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 12px; }
.form-grid label { display: block; font-size: 12px; color: var(--bk-soft); margin-bottom: 2px; }
.form-grid .bk-field { width: 100%; }
textarea.bk-field { width: 100%; min-height: 120px; font-family: var(--bk-font-mono); font-size: 14px; }
.state-on { color: var(--bk-green); }
.state-off { color: var(--bk-red); }
.muted { color: var(--bk-soft); font-size: 14px; }
form > .bk-button { margin-bottom: 16px; }
