#main.suggestions article {
    min-width: 0;
}

.suggestions-page {
    --suggestions-blue: #337ab7;
    --suggestions-border: #d9e0e7;
    --suggestions-muted: #6f7882;
}

#main article .suggestions-page > h1:first-child,
#main article .suggestions-page > h2:first-child {
    text-align: left;
    padding-left: 18px;
}

.suggestions-create-link {
    float: right;
    font: 14px Helvetica, sans-serif;
    margin-top: 1px;
}

.suggestions-toolbar {
    padding: 16px 16px 10px;
}

.suggestions-search {
    display: flex;
    gap: 8px;
}

.suggestions-search input {
    flex: 1;
}

.suggestions-search button {
    border: 1px solid #bfc8d1;
    border-radius: 4px;
    background: #f3f5f7;
    padding: 0 18px;
    cursor: pointer;
}

.suggestions-auth-note {
    margin: 10px 0 0;
    color: var(--suggestions-muted);
    font-size: 13px;
}

.suggestions-tabs {
    display: flex;
    overflow-x: auto;
    border-top: 1px solid var(--suggestions-border);
    border-bottom: 1px solid var(--suggestions-border);
    background: #f7f8fa;
}

.suggestions-tabs a {
    padding: 12px 11px;
    color: #30363d;
    white-space: nowrap;
    border-right: 1px solid var(--suggestions-border);
}

.suggestions-tabs a.is-active {
    background: white;
    box-shadow: inset 0 3px 0 #337ab7;
    font-weight: bold;
}

.suggestions-tabs b {
    color: #7d8790;
    font-size: 12px;
}

.suggestions-sort {
    padding: 11px 16px;
    text-align: right;
    color: var(--suggestions-muted);
    font-size: 12px;
    border-bottom: 1px solid var(--suggestions-border);
}

.suggestions-sort a {
    margin-left: 10px;
}

.suggestions-sort a.is-active {
    color: #222;
    font-weight: bold;
    text-decoration: underline;
}

.suggestion-row {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--suggestions-border);
}

.suggestion-row:last-child {
    border-bottom: 0;
}

.suggestion-score {
    flex: 0 0 58px;
    text-align: center;
}

.suggestion-score strong {
    display: block;
    font-size: 22px;
    color: #4b5259;
}

.suggestion-score > span {
    display: block;
    height: 4px;
    margin-top: 8px;
    background: #ee8585;
    border-radius: 3px;
    overflow: hidden;
}

.suggestion-score i {
    display: block;
    height: 100%;
    background: #5ca3d5;
}

.suggestion-row__content {
    flex: 1;
    min-width: 0;
}

.suggestion-row__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.suggestion-type,
.suggestion-status {
    display: inline-block;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 11px;
    line-height: 16px;
}

.suggestion-type {
    color: #49515a;
    background: #eef2f5;
}

.suggestion-status {
    color: #646b72;
    background: #ebedef;
    white-space: nowrap;
}

.suggestion-status--planned {
    background: #fff2c7;
    color: #806200;
}

.suggestion-status--in_progress {
    background: #ddebfa;
    color: #275d91;
}

.suggestion-status--completed {
    background: #dff1de;
    color: #397437;
}

.suggestion-status--rejected {
    background: #f6dfdf;
    color: #914040;
}

.suggestion-row h2 {
    margin: 7px 0 6px;
    font-size: 18px;
    line-height: 1.25;
}

.suggestion-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 16px;
    color: var(--suggestions-muted);
    font-size: 12px;
}

.suggestion-vote {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.suggestion-vote__button {
    border: 1px solid #d2d8de;
    border-radius: 5px;
    background: #f4f6f7;
    color: #5c6670;
    padding: 5px 8px;
    cursor: pointer;
}

.suggestion-vote__button b {
    margin-left: 3px;
}

.suggestion-vote__button:hover:not(:disabled),
.suggestion-vote__button.is-active {
    border-color: #75a9d0;
    background: #e4f1fa;
    color: #245f8d;
}

.suggestion-vote__button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.suggestions-empty {
    padding: 35px 16px;
    text-align: center;
    color: var(--suggestions-muted);
}

.suggestions-lead {
    color: var(--suggestions-muted);
}

.suggestion-form .control-label {
    display: block;
    margin: 16px 0 6px;
    font-weight: bold;
}

.suggestion-form textarea,
.suggestion-comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
}

.suggestion-form .help-block {
    margin: 5px 0;
    color: #a94442;
}

.suggestion-form__counter {
    margin-top: -12px;
    text-align: right;
    color: var(--suggestions-muted);
    font-size: 11px;
}

.suggestion-form__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.suggestion-detail__head {
    padding: 16px 18px;
    background: #f5f9ff;
    border-bottom: 1px solid var(--suggestions-border);
}

.suggestion-detail__head > div:first-child {
    color: var(--suggestions-muted);
    font-size: 12px;
}

.suggestion-detail__head h1 {
    margin: 10px 0;
    font-size: 25px;
}

.suggestion-detail__labels {
    display: flex;
    gap: 7px;
}

.suggestion-detail__body {
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.suggestion-detail__sources {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid var(--suggestions-border);
    border-radius: 4px;
    background: #f7f8fa;
    font-size: 13px;
}

.suggestion-detail__sources ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.suggestion-detail__sources li {
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.suggestion-detail__meta {
    margin-top: 18px;
    color: var(--suggestions-muted);
    font-size: 12px;
}

.suggestion-detail__voting {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--suggestions-border);
}

.suggestion-detail__voting .suggestion-vote {
    margin-top: 0;
}

.suggestion-detail__score {
    text-align: center;
}

.suggestion-detail__score strong {
    display: block;
    font-size: 24px;
}

.suggestion-detail__score span {
    color: var(--suggestions-muted);
    font-size: 10px;
}

#main article .suggestions-page > h2:first-child span {
    color: var(--suggestions-muted);
    font-size: 13px;
}

.suggestion-comment-form {
    margin-bottom: 22px;
}

.suggestion-comment-form button {
    margin-top: 8px;
}

.suggestion-comment {
    padding: 15px 0;
    border-top: 1px solid var(--suggestions-border);
}

.suggestion-comment__meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
}

.suggestion-comment__meta span,
.suggestion-comments__empty {
    color: var(--suggestions-muted);
    font-size: 12px;
}

.suggestion-comment__body {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media screen and (max-width: 600px) {
    .suggestions-create-link {
        display: block;
        float: none;
        margin-top: 8px;
    }

    .suggestions-search button {
        padding: 0 10px;
    }

    .suggestion-row {
        gap: 9px;
        padding: 13px 10px;
    }

    .suggestion-score {
        flex-basis: 42px;
    }

    .suggestion-score strong {
        font-size: 18px;
    }

    .suggestion-row__top,
    .suggestion-detail__voting {
        align-items: flex-start;
        flex-direction: column;
    }

    .suggestion-row__meta span:last-child {
        width: 100%;
    }
}
