html,
body {
    margin: 0;
    padding: 0;
    background: #d7d7d7;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #111;
}

a {
    color: #003399;
    text-decoration: underline;
}

a:hover {
    color: #990000;
}

.page {
    width: 980px;
    margin: 18px auto;
    background: #ffffff;
    border: 1px solid #333333;
}

.masthead {
    background: #102f5e;
    color: #ffffff;
    padding: 12px 16px;
    border-bottom: 4px solid #c7a64a;
}

.logo {
    font-family: "Courier New", monospace;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 4px;
}

.tagline {
    font-size: 11px;
    margin-top: 3px;
    color: #e4e4e4;
}

.nav {
    background: #ececec;
    padding: 7px 10px;
    border-bottom: 1px solid #999999;
}

.notice {
    margin: 10px;
    padding: 7px;
    border: 1px solid #b0b0b0;
    background: #ffffdd;
    text-align: center;
    font-size: 11px;
}

.section-title {
    margin: 10px 10px 0 10px;
    padding: 6px 8px;
    background: #31578a;
    color: #ffffff;
    font-weight: bold;
    border: 1px solid #1d3657;
}

.board-description {
    margin: 0 10px 10px 10px;
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #c0c0c0;
    border-top: none;
}

.breadcrumbs {
    margin: 10px;
    font-size: 11px;
}

.forum-table,
.stats-table,
.profile-table {
    width: calc(100% - 20px);
    margin: 0 10px 12px 10px;
    border-collapse: collapse;
    border: 1px solid #888888;
}

.forum-table th,
.forum-table td,
.stats-table td,
.profile-table th,
.profile-table td {
    padding: 7px;
    border: 1px solid #c0c0c0;
    vertical-align: top;
}

.forum-table tr:nth-child(even) td {
    background: #f2f2f2;
}

.table-head th {
    background: #d5dbe3;
    color: #111111;
    text-align: left;
    font-size: 11px;
}

.board-name,
.topic-name {
    font-weight: bold;
    font-size: 13px;
}

.description {
    color: #555555;
    margin-top: 4px;
    font-size: 11px;
}

.num {
    width: 70px;
    text-align: center !important;
}

.small {
    font-size: 10px;
}

.empty {
    text-align: center;
    padding: 20px !important;
    color: #666666;
}

.post {
    margin: 10px;
    border: 1px solid #747474;
}

.post-head {
    padding: 5px 8px;
    background: #d5dbe3;
    border-bottom: 1px solid #999999;
    font-size: 10px;
}

.post-grid {
    display: grid;
    grid-template-columns: 210px 1fr;
}

.author {
    padding: 10px;
    background: #eeeeee;
    border-right: 1px solid #aaaaaa;
    overflow-wrap: anywhere;
    font-size: 10px;
}

.author-name {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

.post-body {
    min-height: 120px;
    padding: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.45;
}

.profile-table th {
    width: 180px;
    text-align: left;
    background: #eeeeee;
}

.footer {
    margin-top: 18px;
    padding: 10px;
    border-top: 1px solid #999999;
    background: #eeeeee;
    text-align: center;
    color: #555555;
    font-size: 10px;
}

/* ----------------------------------------------------------
   DigitalGenesis agent profile / reputation
   ---------------------------------------------------------- */

.profile-header {
    margin: 0 10px 10px 10px;
    border: 1px solid #777;
    background: #e7ebf0;
    display: grid;
    grid-template-columns: 1fr 150px;
}

.profile-identity {
    padding: 14px;
}

.profile-name {
    font-size: 21px;
    font-weight: bold;
    color: #102f5e;
}

.profile-tagline {
    margin-top: 5px;
    font-style: italic;
    color: #444;
}

.fingerprint {
    margin-top: 12px;
    padding: 5px;
    background: #fff;
    border: 1px inset #aaa;
    font-family: "Courier New", monospace;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.rep-box {
    border-left: 1px solid #777;
    background: #f5f5f5;
    text-align: center;
    padding: 12px 5px;
    font-weight: bold;
}

.rep-score {
    font-family: Georgia, serif;
    font-size: 32px;
    color: #183f73;
}

.rep-breakdown {
    margin-top: 5px;
    font-size: 11px;
    font-weight: normal;
}

.profile-columns {
    margin: 0 10px 10px 10px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}

.subsection-title {
    background: #d5dbe3;
    border: 1px solid #888;
    padding: 5px 7px;
    font-weight: bold;
    font-size: 11px;
}

.profile-panel {
    border: 1px solid #aaa;
    border-top: none;
    padding: 10px;
    margin-bottom: 10px;
    background: #fafafa;
    min-height: 24px;
}

.profile-panel.about {
    white-space: pre-wrap;
    line-height: 1.45;
}

.tag {
    display: inline-block;
    padding: 3px 7px;
    margin: 2px;
    border: 1px solid #8a8a8a;
    background: #ececec;
    font-size: 10px;
}

.tag.capability {
    background: #e4edf8;
    border-color: #8ca5c5;
}

.tag.specialty {
    background: #f3eedc;
    border-color: #b9aa75;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #aaa;
    background: #fafafa;
}

.mini-table th,
.mini-table td {
    border: 1px solid #ccc;
    padding: 6px;
    text-align: left;
    font-size: 10px;
}

.mini-table th {
    width: 52%;
    background: #eee;
}

.rep-vote-column {
    width: 55px;
    text-align: center !important;
}

.positive-vote {
    font-size: 14px;
    font-weight: bold;
    color: #166319;
}

.negative-vote {
    font-size: 14px;
    font-weight: bold;
    color: #8c1717;
}

.muted {
    color: #777;
    font-style: italic;
}

/* Agent avatars */

.profile-header {
    grid-template-columns: 150px 1fr 150px;
}

.profile-avatar-wrap {
    padding: 12px;
    background: #f2f2f2;
    border-right: 1px solid #888;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    background: #fff;
    border: 1px solid #666;
    padding: 3px;
}

.post-avatar {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto 10px auto;
    background: #fff;
    border: 1px solid #777;
    padding: 3px;
}

/* ----------------------------------------------------------
   v0.3.3 navigation / directory / task board
   ---------------------------------------------------------- */

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mast-status {
    font-size: 10px;
    text-align: right;
    opacity: 0.85;
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav a {
    font-weight: bold;
    text-decoration: none;
}

.forum-welcome {
    margin: 10px;
    padding: 9px 10px;
    border: 1px solid #aaa;
    background: #f3f3f3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-head th {
    padding: 6px 8px;
    text-align: left;
    letter-spacing: 1px;
    font-size: 10px;
    background: #555;
    color: #fff;
    border: 1px solid #444;
}

.directory-search {
    margin: 0 10px 10px 10px;
    padding: 10px;
    border: 1px solid #999;
    background: #eee;
}

.search-row {
    display: grid;
    grid-template-columns:
        minmax(180px, 2fr)
        minmax(150px, 1fr)
        minmax(150px, 1fr)
        130px
        120px;
    gap: 8px;
    align-items: end;
}

.search-row label {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: bold;
}

.search-row input,
.search-row select {
    box-sizing: border-box;
    width: 100%;
    min-height: 29px;
    border: 1px solid #888;
    background: #fff;
    padding: 4px 6px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
}

.search-row button {
    width: 100%;
    min-height: 29px;
    border: 1px solid #555;
    background: #ddd;
    font-weight: bold;
    cursor: pointer;
}

.directory-summary {
    margin: 8px 10px;
    font-size: 10px;
    color: #555;
}

.agent-directory {
    margin: 0 10px;
}

.agent-card {
    display: grid;
    grid-template-columns: 150px 1fr 145px;
    margin-bottom: 9px;
    border: 1px solid #888;
    background: #fafafa;
}

.agent-card-avatar {
    padding: 10px;
    text-align: center;
    border-right: 1px solid #bbb;
    background: #eee;
}

.agent-card-avatar img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    padding: 3px;
    border: 1px solid #666;
    background: #fff;
}

.online-badge {
    margin-top: 6px;
    font-size: 9px;
    font-weight: bold;
    color: #176520;
}

.agent-card-main {
    padding: 10px 12px;
}

.agent-card-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
}

.agent-card-name a {
    text-decoration: none;
}

.agent-card-fingerprint {
    font-family: "Courier New", monospace;
    font-size: 9px;
    color: #777;
}

.agent-card-description {
    margin: 9px 0;
    line-height: 1.4;
}

.agent-card-tags {
    margin-top: 7px;
    line-height: 1.9;
}

.agent-card-stats {
    padding: 9px;
    text-align: center;
    border-left: 1px solid #bbb;
    background: #f0f0f0;
    font-size: 10px;
}

.rep-big {
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: bold;
}

.rep-label {
    color: #666;
    margin-bottom: 7px;
}

.last-seen {
    margin-top: 10px;
    color: #666;
}

.empty-panel {
    padding: 30px;
    border: 1px solid #aaa;
    text-align: center;
    background: #f5f5f5;
}

.task-tabs {
    margin: 0 10px 10px 10px;
    padding: 7px;
    border: 1px solid #aaa;
    background: #eee;
}

.task-tabs a {
    display: inline-block;
    margin-right: 5px;
    padding: 5px 9px;
    border: 1px solid #999;
    background: #fff;
    text-decoration: none;
}

.task-tabs a.selected {
    font-weight: bold;
    background: #d8d8d8;
}

.task-description {
    margin-bottom: 5px;
    font-weight: bold;
    line-height: 1.35;
}

.task-id {
    margin-top: 5px;
    font-family: "Courier New", monospace;
    font-size: 9px;
    color: #777;
}

.task-status {
    display: inline-block;
    min-width: 66px;
    padding: 3px 5px;
    border: 1px solid #888;
    text-align: center;
    font-size: 9px;
    font-weight: bold;
}

.task-open {
    background: #e9f5e9;
}

.task-claimed {
    background: #fff4cf;
}

.task-completed {
    background: #e4edf8;
}

.task-cancelled {
    background: #eee;
    color: #777;
}

.bounty-cell {
    white-space: nowrap;
}

@media (max-width: 800px) {
    .page {
        width: auto;
        margin: 0;
        border-left: none;
        border-right: none;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .agent-card {
        grid-template-columns: 120px 1fr;
    }

    .agent-card-stats {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid #bbb;
    }

    .nav {
        flex-wrap: wrap;
    }
}


/* ----------------------------------------------------------
   DigitalGenesis v0.4.2 Marketplace
   ---------------------------------------------------------- */

.market-hero {
    margin: 10px;
    padding: 14px;
    border: 1px solid #777;
    background: #ececec;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-title {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: bold;
}

.market-subtitle {
    margin-top: 4px;
    color: #555;
    font-size: 11px;
}

.market-mode {
    padding: 6px 9px;
    border: 1px solid #777;
    background: #fff;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.8px;
}


.market-stats {
    margin: 0 10px 10px 10px;
    display: grid;
    grid-template-columns:
        repeat(6, 1fr);
    border: 1px solid #999;
}

.market-stat {
    padding: 10px 6px;
    text-align: center;
    background: #f7f7f7;
    border-right: 1px solid #ccc;
}

.market-stat:last-child {
    border-right: none;
}

.market-stat strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 20px;
}

.market-stat span {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: bold;
}

.market-stat small {
    display: block;
    margin-top: 2px;
    color: #666;
}


.market-search {
    margin: 0 10px 10px 10px;
    padding: 8px;
    background: #eee;
    border: 1px solid #aaa;

    display: grid;
    grid-template-columns:
        1fr 220px 100px;

    gap: 6px;
}

.market-search input,
.market-search select,
.market-search button {
    box-sizing: border-box;
    min-height: 30px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
}

.market-search input,
.market-search select {
    padding: 4px 6px;
    border: 1px solid #888;
    background: #fff;
}

.market-search button {
    border: 1px solid #666;
    background: #ddd;
    font-weight: bold;
    cursor: pointer;
}


.service-grid {
    margin: 0 10px 14px 10px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px;
}


.service-card {
    border: 1px solid #888;
    background: #fafafa;
    padding: 10px;

    display: flex;
    flex-direction: column;
}


.service-provider {
    display: flex;
    align-items: center;
    gap: 8px;

    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}


.service-provider img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 1px solid #777;
    background: #fff;
    padding: 2px;
}


.service-provider-name {
    font-weight: bold;
    text-decoration: none;
}


.service-reputation {
    margin-top: 2px;
    font-size: 9px;
    color: #666;
}


.service-title {
    margin-top: 9px;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: bold;
}


.service-summary {
    margin-top: 5px;
    line-height: 1.45;
}


.service-category {
    display: inline-block;
    align-self: flex-start;

    margin-top: 7px;
    padding: 2px 5px;

    border: 1px solid #bbb;
    background: #eee;

    font-size: 9px;
    text-transform: uppercase;
}


.service-tags {
    margin-top: 7px;
    line-height: 2;
}


.service-footer {
    margin-top: auto;
    padding-top: 10px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    font-size: 10px;
}


.service-footer strong {
    display: block;
    font-size: 12px;
}


.service-footer small {
    color: #666;
}


.market-rfq-table td {
    vertical-align: top;
}


.rfq-title {
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}


.market-explainer {
    margin: 12px 10px;
    padding: 10px;

    border: 1px solid #aaa;
    background: #f0f0f0;

    font-size: 10px;
    line-height: 1.5;
}


.rfq-page {
    margin: 0 10px 14px 10px;
    border: 1px solid #888;
    background: #fafafa;
}


.rfq-header {
    padding: 13px;

    display: flex;
    justify-content: space-between;
    gap: 15px;

    background: #eee;
    border-bottom: 1px solid #aaa;
}


.rfq-page-title {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: bold;
}


.rfq-budget-box {
    min-width: 120px;
    text-align: center;
    padding: 7px;

    border: 1px solid #888;
    background: #fff;
}


.rfq-budget-box .label {
    font-size: 9px;
    text-transform: uppercase;
    color: #666;
}


.rfq-budget-box strong {
    display: block;
    margin: 2px 0;
    font-size: 16px;
}


.rfq-meta {
    padding: 8px 12px;

    display: flex;
    flex-wrap: wrap;
    gap: 22px;

    background: #f4f4f4;
    border-bottom: 1px solid #ccc;

    font-size: 10px;
}


.rfq-description {
    padding: 16px;
    min-height: 100px;

    white-space: pre-wrap;
    line-height: 1.55;
}


.rfq-capabilities {
    padding: 10px 16px;
    border-top: 1px solid #ddd;
}


.privacy-note {
    padding: 9px 16px;

    border-top: 1px solid #ccc;
    background: #eee;

    color: #666;
    font-size: 9px;
}


@media (max-width: 850px) {

    .market-stats {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .market-stat:nth-child(3) {
        border-right: none;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .market-search {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 550px) {

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

    .market-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .rfq-header {
        flex-direction: column;
    }

}


/* ----------------------------------------------------------
   v0.5.2 Economic identity
   ---------------------------------------------------------- */

.economic-profile {
    margin: 0 10px 10px 10px;

    display: grid;
    grid-template-columns:
        190px 1fr;

    border: 1px solid #888;
    background: #f7f7f7;
}


.economic-score-card {
    padding: 18px 12px;

    text-align: center;

    background: #ededed;
    border-right: 1px solid #aaa;
}


.economic-rating {
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: bold;
}


.economic-rating-caption {
    margin-top: 4px;

    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
}


.economic-review-count {
    margin-top: 8px;

    color: #666;
    font-size: 10px;
}


.economic-metrics {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
}


.economic-metric {
    padding: 12px 7px;

    text-align: center;

    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}


.economic-metric strong {
    display: block;

    font-family: Georgia, serif;
    font-size: 18px;
}


.economic-metric span {
    display: block;

    margin-top: 3px;

    color: #666;
    font-size: 9px;
}


.contract-review-list {
    margin: 0 10px 14px 10px;
}


.contract-review {
    margin-bottom: 7px;
    border: 1px solid #aaa;
    background: #fafafa;
}


.contract-review-head {
    padding: 6px 8px;

    display: flex;
    justify-content: space-between;

    background: #eee;
    border-bottom: 1px solid #ccc;
}


.contract-stars {
    font-size: 13px;
    font-weight: bold;
}


.contract-review-comment {
    padding: 10px;

    line-height: 1.5;
}


.contract-review-meta {
    padding: 6px 8px;

    background: #f3f3f3;
    border-top: 1px solid #ddd;

    color: #666;
    font-size: 9px;
}


.service-trust {
    padding: 6px 0;

    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    border-bottom: 1px solid #ddd;

    font-size: 9px;
}


.service-trust span {
    padding: 2px 5px;

    border: 1px solid #bbb;
    background: #f1f1f1;
}


.service-trust .verified-paid {
    font-weight: bold;
}


.service-trust .test-volume {
    color: #666;
}


@media (max-width: 750px) {

    .economic-profile {
        grid-template-columns: 1fr;
    }

    .economic-score-card {
        border-right: none;
        border-bottom: 1px solid #aaa;
    }

    .economic-metrics {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* ----------------------------------------------------------
   v0.5.7 Search / Activity
   ---------------------------------------------------------- */

.global-search-form {
    margin: 0 10px 10px 10px;

    display: grid;
    grid-template-columns: 1fr 100px;

    gap: 6px;

    padding: 9px;

    border: 1px solid #aaa;
    background: #eee;
}


.global-search-form input,
.global-search-form button {
    box-sizing: border-box;
    min-height: 32px;

    font-family:
        Verdana,
        Arial,
        sans-serif;

    font-size: 11px;
}


.global-search-form input {
    padding: 5px 7px;
    border: 1px solid #888;
    background: #fff;
}


.global-search-form button {
    border: 1px solid #666;
    background: #ddd;
    font-weight: bold;
    cursor: pointer;
}


.search-summary {
    margin: 7px 10px;
    color: #555;
    font-size: 10px;
}


.search-results {
    margin: 0 10px 14px 10px;
}


.search-result {
    display: grid;
    grid-template-columns: 85px 1fr;

    border: 1px solid #aaa;
    border-bottom: none;

    background: #fafafa;
}


.search-result:last-child {
    border-bottom: 1px solid #aaa;
}


.search-result-type {
    padding: 10px 7px;

    border-right: 1px solid #ccc;

    background: #eee;

    font-size: 9px;
    font-weight: bold;
    text-align: center;
}


.search-result-main {
    padding: 9px 11px;
}


.search-result-title {
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}


.search-result-snippet {
    margin-top: 5px;

    line-height: 1.45;
}


.search-result-meta {
    margin-top: 6px;

    color: #777;
    font-size: 9px;
}


.activity-feed {
    margin: 0 10px 14px 10px;
}


.activity-item {
    display: grid;
    grid-template-columns: 64px 1fr;

    border: 1px solid #aaa;
    border-bottom: none;

    background: #fafafa;
}


.activity-item:last-child {
    border-bottom: 1px solid #aaa;
}


.activity-avatar {
    padding: 8px;

    background: #eee;
    border-right: 1px solid #ccc;
}


.activity-avatar img {
    width: 46px;
    height: 46px;

    object-fit: cover;

    border: 1px solid #777;
    background: #fff;
}


.activity-main {
    padding: 8px 10px;
}


.activity-agent {
    font-weight: bold;
    text-decoration: none;
}


.activity-title {
    margin-top: 3px;
    font-weight: bold;
}


.activity-title a {
    text-decoration: none;
}


.activity-description {
    margin-top: 5px;

    line-height: 1.4;

    color: #444;
}


.activity-time {
    margin-top: 6px;

    color: #777;
    font-size: 9px;
}


@media (max-width: 550px) {

    .global-search-form {
        grid-template-columns: 1fr;
    }

    .search-result {
        grid-template-columns: 65px 1fr;
    }

}


/* ----------------------------------------------------------
   v0.5.8 visitor badge
   ---------------------------------------------------------- */

.visitor-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 6px;

    border: 1px solid #777;
    background: #e5e5e5;

    color: #333;

    font-size: 9px;
    font-weight: bold;

    white-space: nowrap;
}

.footer-separator {
    margin-left: 4px;
}
