* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 32px;
    height: 56px;
    padding: 0 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    gap: 4px;
    height: 100%;
}

.nav-tab {
    position: relative;
    height: 100%;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--speed) var(--ease);
}

.nav-tab:hover,
.nav-tab.active {
    color: var(--text);
}

.nav-tab.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.page-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
}

.page-note {
    margin: 0;
    color: var(--muted);
}

body.signed-out .main-nav,
body.signed-out .header-tools {
    display: none;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.panel-body {
    padding: 16px 18px;
}

.btn,
.btn-quiet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition:
        background var(--speed) var(--ease),
        border-color var(--speed) var(--ease),
        opacity var(--speed) var(--ease);
}

.btn {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--on-accent);
}

.btn:hover {
    opacity: 0.88;
}

.btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.btn-quiet {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
}

.btn-quiet:hover {
    border-color: var(--muted);
}

.btn-small {
    padding: 5px 10px;
    font-size: 13px;
}

.icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.user-name {
    font-weight: 600;
}

.sign-in {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 56px - 88px);
}

.sign-in-panel {
    width: 100%;
    max-width: 380px;
}

.sign-in-panel .panel-body {
    padding: 28px 26px;
}

.sign-in-icon {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--accent);
}

.sign-in-icon .icon {
    width: 24px;
    height: 24px;
}

.sign-in-form {
    margin-top: 20px;
}

.sign-in-btn {
    justify-content: center;
    width: 100%;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.panel-note {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    transition: border-color var(--speed) var(--ease);
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.error-list {
    margin: 0;
    padding-left: 18px;
    color: var(--bad);
    font-weight: 600;
}

.form-errors:empty {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.modal-box.wide {
    max-width: 820px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 18px;
    border-bottom: 1px solid var(--line);
}

.modal-body {
    padding: 16px 18px;
    overflow-y: auto;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
}

body.modal-open {
    overflow: hidden;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 50;
    display: none;
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    transform: translateX(-50%);
}

.toast.show {
    display: block;
}

.toast.good {
    border-color: var(--good);
    color: var(--good);
}

.toast.bad {
    border-color: var(--bad);
    color: var(--bad);
}

.toast.busy {
    border-color: var(--warn);
}

@media (max-width: 800px) {
    .app-header {
        flex-wrap: wrap;
        height: auto;
        gap: 0 12px;
        padding: 6px 16px 0;
    }

    .brand {
        padding: 8px 0;
    }

    .header-tools {
        order: 2;
    }

    .main-nav {
        order: 3;
        width: 100%;
        height: 42px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-tab {
        flex: 0 0 auto;
        padding: 0 12px;
        white-space: nowrap;
    }

    .nav-tab.active::after {
        left: 12px;
        right: 12px;
    }

    .user-name {
        display: none;
    }

    .user-menu {
        padding-left: 0;
        border-left: 0;
    }

    .page {
        padding: 20px 16px 48px;
    }

    .sign-in {
        min-height: calc(100vh - 140px);
    }
}


.page-head {
    margin-bottom: 18px;
}

.sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 18px;
}

.sub-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 0;
    border-radius: var(--pill);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition:
        background var(--speed) var(--ease),
        color var(--speed) var(--ease);
}

.sub-tab:hover {
    color: var(--text);
    background: var(--surface-2);
}

.sub-tab.active {
    background: var(--accent);
    color: var(--on-accent);
}

.count {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: var(--pill);
    background: var(--surface-2);
    color: var(--text);
    font-size: 12px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.sub-tab.active .count {
    background: var(--on-accent);
    color: var(--accent);
}

.panel-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.inline-form .field {
    flex: 1 1 240px;
    max-width: 360px;
}

.btn-danger {
    border-color: var(--bad);
    background: var(--bad);
    color: #1a0b0b;
}

.icon-btn {
    display: inline-flex;
    padding: 6px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color var(--speed) var(--ease);
}

.icon-btn:hover {
    color: var(--text);
}

.icon-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.badge {
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge.good {
    color: var(--good);
    border-color: var(--good);
}

.badge.bad {
    color: var(--bad);
    border-color: var(--bad);
}

.badge.warn {
    color: var(--warn);
    border-color: var(--warn);
}

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 36px 12px;
    color: var(--muted);
}

.empty .icon {
    width: 32px;
    height: 32px;
}

.empty p {
    margin: 0;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.list-table th,
.list-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.list-table th {
    position: sticky;
    top: 0;
    background: var(--surface);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.list-table tbody tr:last-child td {
    border-bottom: 0;
}

.list-table tbody tr:hover td {
    background: var(--surface-2);
}

.list-table .num {
    text-align: right;
}

.list-table tr.row-muted td {
    color: var(--muted);
}

.list-table td.row-actions {
    text-align: right;
    white-space: nowrap;
}

.row-actions .icon-btn,
.row-actions .btn-quiet {
    vertical-align: middle;
}

.list-count {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

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


.page-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.board-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.tool-input,
.status-select {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    transition: border-color var(--speed) var(--ease);
}

.tool-input:focus,
.status-select:focus,
.status-select:hover {
    border-color: var(--accent);
    outline: none;
}

.board-tools .tool-input {
    flex: 1 1 200px;
    max-width: 300px;
}

.project-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition:
        border-color var(--speed) var(--ease),
        transform var(--speed) var(--ease);
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.project-card[data-priority="urgent"] {
    border-color: rgba(255, 107, 107, 0.55);
}

.card-cover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
}

.card-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-empty .icon {
    width: 36px;
    height: 36px;
    color: var(--line);
}

.card-cover .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(17, 19, 21, 0.85);
}

.card-body {
    padding: 12px 14px 4px;
}

.card-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 14px 12px;
    font-size: 12px;
    color: var(--muted);
}

.card-due,
.card-counts {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-due.late {
    color: var(--bad);
    font-weight: 600;
}

.card-counts {
    margin-left: auto;
}

.card-meta .icon,
.card-foot .icon {
    width: 14px;
    height: 14px;
}

.badge.status {
    color: var(--tone);
    border-color: var(--tone);
}

.badge[data-status="new"] {
    --tone: var(--st-new);
}

.badge[data-status="approved"] {
    --tone: var(--st-approved);
}

.badge[data-status="scheduled"] {
    --tone: var(--st-scheduled);
}

.badge[data-status="in_progress"] {
    --tone: var(--st-progress);
}

.badge[data-status="vendor"] {
    --tone: var(--st-vendor);
}

.badge[data-status="done"] {
    --tone: var(--st-done);
}

.badge[data-status="declined"] {
    --tone: var(--st-declined);
}

.badge[data-priority="high"] {
    color: var(--warn);
    border-color: var(--warn);
}

.badge[data-priority="urgent"] {
    color: var(--bad);
    border-color: var(--bad);
}

.form-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px 18px;
}

.field-wide {
    grid-column: 1 / -1;
}

.optional {
    font-weight: 400;
    opacity: 0.8;
}

.segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.segmented label {
    cursor: pointer;
}

.segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented span {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition:
        border-color var(--speed) var(--ease),
        color var(--speed) var(--ease);
}

.segmented input:checked + span {
    border-color: var(--accent);
    color: var(--accent);
}

.segmented input[value="high"]:checked + span {
    border-color: var(--warn);
    color: var(--warn);
}

.segmented input[value="urgent"]:checked + span {
    border-color: var(--bad);
    color: var(--bad);
}

.segmented input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.dropzone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--speed) var(--ease);
}

.dropzone:hover {
    border-color: var(--accent);
}

.dropzone .icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.dropzone input {
    display: none;
}

.dropzone-title {
    font-size: 14px;
    font-weight: 600;
}

.dropzone-note {
    font-weight: 400;
    color: var(--muted);
}

.photo-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.photo-list:empty {
    display: none;
}

.thumb {
    position: relative;
    width: 84px;
    height: 84px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    display: inline-flex;
    padding: 3px;
    border: 0;
    border-radius: var(--pill);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
}

.thumb-remove .icon {
    width: 12px;
    height: 12px;
}


.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent);
}

.project-head {
    margin-bottom: 20px;
}

.project-head .page-note {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    margin: 0 0 14px;
    font-size: 13px;
}

.details dt {
    color: var(--muted);
}

.details dd {
    margin: 0;
    text-align: right;
}

.details .late {
    color: var(--bad);
    font-weight: 600;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entry {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.entry-main {
    flex: 1;
    min-width: 0;
}

.entry-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.entry-head b,
.entry-line b {
    color: var(--text);
}

.entry-body {
    margin: 8px 0 0;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.entry-tools {
    display: inline-flex;
    gap: 10px;
}

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.link-btn:hover {
    color: var(--accent);
}

.entry-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.entry-photo {
    width: 96px;
    height: 96px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    cursor: zoom-in;
}

.entry-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-photo:hover {
    border-color: var(--accent);
}

.entry-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    font-size: 13px;
    color: var(--muted);
}

.line-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin: 0 11px;
    border-radius: 50%;
    background: var(--tone, var(--line));
}

.line-dot[data-status="new"] {
    --tone: var(--st-new);
}

.line-dot[data-status="approved"] {
    --tone: var(--st-approved);
}

.line-dot[data-status="scheduled"] {
    --tone: var(--st-scheduled);
}

.line-dot[data-status="in_progress"] {
    --tone: var(--st-progress);
}

.line-dot[data-status="vendor"] {
    --tone: var(--st-vendor);
}

.line-dot[data-status="done"] {
    --tone: var(--st-done);
}

.line-dot[data-status="declined"] {
    --tone: var(--st-declined);
}

.comment-box .photo-picker .dropzone {
    padding: 12px 14px;
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.viewer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.viewer-img {
    flex: 1;
    min-width: 0;
    max-height: 70vh;
    object-fit: contain;
}

.viewer-count {
    margin-top: 8px;
    text-align: center;
}

@media (max-width: 900px) {
    .project-layout {
        grid-template-columns: 1fr;
    }

    .project-layout aside {
        order: -1;
    }
}


.stat-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.stat-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color var(--speed) var(--ease),
        transform var(--speed) var(--ease);
}

.stat-tile::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--line);
}

.stat-tile:hover {
    border-color: var(--muted);
    transform: translateY(-1px);
}

.stat-tile.good::before {
    background: var(--good);
}

.stat-tile.warn::before {
    background: var(--warn);
}

.stat-tile.bad::before {
    background: var(--bad);
}

.stat-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    display: inline-flex;
    padding: 6px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--accent);
}

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

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat-tile.warn .stat-value {
    color: var(--warn);
}

.stat-tile.bad .stat-value {
    color: var(--bad);
}

.stat-note {
    font-size: 12px;
    color: var(--muted);
}

.strip {
    display: flex;
    gap: 3px;
    height: 12px;
    overflow: hidden;
    border-radius: var(--pill);
}

.strip-part {
    min-width: 6px;
    background: var(--tone);
}

.strip-part[data-status="new"] {
    --tone: var(--st-new);
}

.strip-part[data-status="approved"] {
    --tone: var(--st-approved);
}

.strip-part[data-status="scheduled"] {
    --tone: var(--st-scheduled);
}

.strip-part[data-status="in_progress"] {
    --tone: var(--st-progress);
}

.strip-part[data-status="vendor"] {
    --tone: var(--st-vendor);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 12px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.legend-item .line-dot {
    margin: 0;
}

.legend-item b {
    color: var(--text);
}

.legend-item:hover {
    color: var(--text);
}

.overview-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
    align-items: start;
}

.mini-list,
.bar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
    font-size: 13px;
    text-decoration: none;
}

.mini-list li:last-child .mini-row {
    border-bottom: 0;
}

.mini-row:hover b {
    color: var(--accent);
}

.mini-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.4;
}

.activity-text {
    min-width: 0;
    line-height: 1.6;
}

.mini-age {
    flex: 0 0 auto;
    color: var(--muted);
    white-space: nowrap;
}

.mini-tags {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.bar-row {
    display: grid;
    grid-template-columns: 150px 1fr 28px;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 7px 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.bar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}

.bar-track {
    height: 8px;
    overflow: hidden;
    border-radius: var(--pill);
    background: var(--surface-2);
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: var(--pill);
    background: var(--accent);
    transition: width 0.4s var(--ease);
}

.bar-row:hover .bar-fill {
    opacity: 0.8;
}

.bar-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 500px) {
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-value {
        font-size: 26px;
    }

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

    .bar-row {
        grid-template-columns: 110px 1fr 24px;
    }
}