@font-face {
    font-family: Inter;
    src: local('Inter')
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #f7f7f6;
    color: #2f2e2b;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent
}

button,
a {
    touch-action: manipulation
}

button {
    cursor: pointer
}

a {
    color: inherit;
    text-decoration: none
}

button {
    color: inherit
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #b4673f;
    outline-offset: 4px
}

button:disabled {
    opacity: .45;
    cursor: not-allowed
}

svg.icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
    vertical-align: middle
}

.skip {
    position: fixed;
    left: 260px;
    top: -70px;
    z-index: 999;
    background: #fff;
    padding: 14px
}

.skip:focus {
    top: 10px
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 232px;
    background: #2a2926;
    color: #e6e5e3;
    padding: 38px 22px 20px;
    z-index: 10;
    display: flex;
    flex-direction: column
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    font-weight: 650;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: 1.5px
}

.brand-symbol {
    font-family: Georgia, serif;
    font-size: 43px;
    font-weight: 400;
    color: #d8b38e;
    line-height: 1
}

.brand-360 {
    font-size: 12px;
    color: #d8b38e;
    letter-spacing: 0;
    margin-left: 4px;
    vertical-align: top
}

.brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 3.2px;
    font-weight: 400;
    margin-top: 8px;
    color: #bdbbb6
}

.workspace-label {
    font-size: 9px;
    letter-spacing: 1.9px;
    color: #a9a59f;
    margin: 52px 12px 14px
}

nav {
    display: flex;
    flex-direction: column;
    gap: 6px
}

nav a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 6px;
    color: #c3c0bc;
    font-size: 13px;
    transition: .15s
}

nav a:hover {
    background: #373531;
    color: #fff
}

nav a.active {
    background: #484540;
    color: #f6f4e9
}

nav a.active .icon {
    color: #d3ba85
}

nav .nav-count {
    margin-left: auto;
    background: #59554f;
    color: #f6ead0;
    padding: 1px 7px;
    font-size: 10px;
    border-radius: 4px
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 38px
}

.demo-box {
    padding: 16px 12px 18px;
    background: #34322f;
    border: 1px solid #47443f;
    border-radius: 8px
}

.demo-box strong {
    font-size: 10px;
    font-weight: 500
}

.demo-led {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d5b48a;
    margin-right: 5px
}

.demo-box p {
    font-size: 11px;
    line-height: 1.7;
    color: #bbb8b3;
    margin: 9px 0 0
}

.user {
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #4c4944;
    margin-top: 24px;
    padding: 22px 3px 0
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e4e3e1;
    color: #4f4c46;
    display: grid;
    place-items: center;
    flex: none;
    font-size: 12px;
    font-weight: 600
}

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

.user small {
    display: block;
    font-size: 9px;
    color: #b6b3ae;
    margin-top: 3px
}

.shell {
    margin-left: 232px
}

.topbar {
    height: 78px;
    border-bottom: 1px solid #e6e5e3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px;
    background: #fbfbfb
}

.breadcrumb {
    font-size: 11px;
    color: #716d65
}

.breadcrumb span {
    margin: 0 14px;
    color: #bebcb7
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 21px
}

.private-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #6a665f
}

.private-tag .icon {
    width: 13px;
    height: 13px
}

.top-date {
    font-size: 10px;
    color: #918d87
}

.small {
    width: 29px;
    height: 29px;
    font-size: 10px
}

main {
    padding: 34px 42px 48px;
    max-width: 1560px;
    margin: auto;
    min-height: calc(100vh - 130px)
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: -1.1px;
    font-weight: 570;
    margin-bottom: 10px
}

h2 {
    font-size: 18px;
    font-weight: 570;
    letter-spacing: -.4px;
    margin: 0
}

h3 {
    font-size: 16px;
    font-weight: 580;
    letter-spacing: -.25px
}

p {
    color: #817d77
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    font-weight: 550;
    color: #959088;
    margin-bottom: 10px
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px
}

.page-heading p {
    font-size: 12px;
    margin-bottom: 0
}

.heading-actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dedddb;
    background: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 550;
    min-height: 38px;
    white-space: nowrap
}

.btn .icon {
    width: 15px;
    height: 15px
}

.btn:hover {
    background: #f1f0ef
}

.btn.primary {
    background: #59554f;
    color: #fff;
    border-color: #59554f;
    box-shadow: 0 2px 3px #3937340a
}

.btn.primary:hover {
    background: #46433f
}

.btn.subtle {
    border-color: transparent;
    background: transparent;
    color: #7f7a72
}

.btn.danger {
    color: #a04e36
}

.mini-label {
    font-size: 10px;
    border: 1px solid #dfdddb;
    color: #837e76;
    background: #f8f6ec;
    border-radius: 4px;
    padding: 3px 7px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 29px
}

.stat {
    background: #fff;
    border: 1px solid #e4e3e1;
    border-radius: 9px;
    padding: 18px 20px;
    text-align: left;
    position: relative;
    transition: .18s
}

.stat:hover {
    border-color: #b4b1ac;
    transform: translateY(-1px)
}

.stat-icon {
    position: absolute;
    right: 19px;
    top: 18px;
    color: #928e86;
    background: #f2f2f1;
    padding: 7px;
    border-radius: 6px;
    display: flex
}

.stat .icon {
    width: 16px;
    height: 16px
}

.stat-label {
    font-size: 11px;
    color: #79746c
}

.stat-number {
    display: block;
    font-size: 30px;
    line-height: 1.2;
    margin-top: 12px;
    font-weight: 520;
    letter-spacing: -1px
}

.stat-foot {
    font-size: 10px;
    color: #9c9890;
    display: block;
    margin-top: 7px
}

.stat-foot.accent {
    color: #b07a4c
}

.overview-panel {
    background: white;
    border: 1px solid #e2e1df;
    border-radius: 10px;
    overflow: hidden
}

.section-top {
    padding: 22px 24px 17px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center
}

.section-top h2 {
    display: flex;
    align-items: center;
    gap: 10px
}

.count {
    font-size: 10px;
    color: #78736b;
    background: #efefee;
    padding: 3px 7px;
    border-radius: 5px;
    font-weight: 500;
    letter-spacing: 0
}

.view-toggle {
    display: flex;
    padding: 3px;
    border: 1px solid #e5e3e1;
    border-radius: 6px;
    gap: 3px
}

.icon-btn {
    border: 0;
    background: transparent;
    border-radius: 4px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #918d85
}

.icon-btn .icon {
    width: 15px;
    height: 15px
}

.icon-btn[aria-pressed=true] {
    color: #58554f;
    background: #eeedeb
}

.filters {
    padding: 0 24px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.searchbox {
    flex: 1;
    min-width: 190px;
    position: relative
}

.searchbox>.icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 15px;
    height: 15px;
    color: #98948c
}

.searchbox input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e2e0de;
    background: #fcfcfb;
    border-radius: 6px;
    font-size: 11px;
    color: #45423e;
    min-height: 39px
}

.searchbox input::placeholder {
    color: #99958e
}

select {
    border: 1px solid #e2e0de;
    border-radius: 6px;
    background: #fff;
    padding: 9px 28px 9px 11px;
    font-size: 11px;
    color: #69655e;
    max-width: 220px;
    min-height: 39px
}

.chips {
    display: flex;
    gap: 7px;
    padding: 0 24px 18px;
    border-bottom: 1px solid #e9e8e6;
    overflow-x: auto;
    align-items: center
}

.chip {
    font-size: 10px;
    border: 1px solid transparent;
    background: #f5f5f4;
    border-radius: 5px;
    color: #8a857c;
    padding: 7px 11px;
    white-space: nowrap
}

.chip[aria-pressed=true] {
    background: #e9e8e6;
    border-color: #dbd9d6;
    color: #53504a
}

.chip span {
    margin-left: 6px;
    color: #938e86;
    font-size: 9px
}

.clear-btn {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #8d7255;
    font-size: 10px;
    text-decoration: underline;
    white-space: nowrap;
    padding: 8px
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px;
    padding: 22px 24px
}

.project-card {
    border: 1px solid #e3e1df;
    border-radius: 8px;
    overflow: hidden;
    transition: .2s;
    display: block;
    background: #fff;
    text-align: left
}

.project-card:hover {
    border-color: #b2afa9;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px #34322e10
}

.cover {
    height: 142px;
    background: #e3e2e0;
    position: relative;
    overflow: hidden
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.7);
    transition: .4s
}

.project-card:nth-child(2) .cover img {
    object-position: 70% 30%
}

.project-card:nth-child(3) .cover img {
    object-position: 20% 30%
}

.project-card:hover .cover img {
    transform: scale(1.035)
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0000000a 40%, #1e1d1b40)
}

.cover .badge {
    position: absolute;
    top: 11px;
    left: 11px;
    box-shadow: 0 2px 6px #00000008
}

.cover .code {
    position: absolute;
    bottom: 10px;
    left: 14px;
    color: white;
    font-size: 8px;
    letter-spacing: 1.3px;
    font-weight: 600
}

.cover .cover-files {
    position: absolute;
    right: 10px;
    bottom: 9px;
    color: #fff;
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 9px
}

.cover-files .icon {
    width: 12px;
    height: 12px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    background: #efeeed;
    color: #66625c;
    padding: 4px 7px;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap
}

.badge:before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor
}

.badge.suspensa,
.badge.alta {
    background: #fff0e3;
    color: #b16f3d
}

.badge.planeada {
    background: #f0f1f4;
    color: #788193
}

.badge.concluida,
.badge.resolvida {
    background: #efefee;
    color: #625e57
}

.badge.media {
    background: #f8f2dc;
    color: #a18436
}

.badge.baixa {
    background: #eef2f6;
    color: #6c8294
}

.card-body {
    padding: 16px 16px 11px
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px
}

.card-title h3 {
    margin-bottom: 4px;
    font-size: 16px
}

.card-title>.icon {
    width: 17px;
    color: #9f9a93
}

.card-kind {
    font-size: 10px;
    color: #8b867e;
    margin-bottom: 12px
}

.location {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 10px;
    color: #9d9992;
    margin-bottom: 16px
}

.location .icon {
    width: 12px;
    height: 12px
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #908c84;
    margin-bottom: 6px
}

.progress-label b {
    color: #66625b;
    font-weight: 550
}

.progress {
    height: 4px;
    background: #eeedec;
    border-radius: 4px;
    overflow: hidden
}

.progress>i {
    height: 100%;
    display: block;
    background: #959189;
    border-radius: 4px
}

.suspended .progress>i {
    background: #c9a27b
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    color: #8f8a82;
    font-size: 9px;
    gap: 8px
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px
}

.card-meta .icon {
    width: 11px;
    height: 11px
}

.pending {
    color: #aa7b4e !important
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #edeceb;
    padding: 11px 15px;
    font-size: 9px;
    color: #99958d
}

.card-footer .person {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #817c73
}

.tiny-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eeedec;
    display: grid;
    place-items: center;
    font-size: 7px;
    color: #8e8981
}

.panel-bottom {
    display: flex;
    justify-content: space-between;
    padding: 14px 24px;
    background: #fcfcfc;
    border-top: 1px solid #edecea;
    font-size: 10px;
    color: #97928a
}

.table-wrap {
    padding: 0 24px;
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    text-align: left
}

th {
    font-size: 9px;
    color: #928d85;
    font-weight: 500;
    padding: 14px 12px;
    border-bottom: 1px solid #e6e5e3;
    white-space: nowrap
}

td {
    padding: 16px 12px;
    border-bottom: 1px solid #edeceb;
    color: #7c776f
}

td b {
    display: block;
    color: #3f3d39;
    font-size: 12px;
    font-weight: 550
}

tr:last-child td {
    border-bottom: 0
}

td .progress {
    margin-top: 5px;
    min-width: 80px
}

.table-link {
    display: block;
    min-width: 130px
}

.table-link:hover {
    text-decoration: underline
}

.below-grid {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    gap: 20px;
    margin-top: 24px
}

.small-panel {
    background: #fff;
    border: 1px solid #e3e1df;
    border-radius: 8px;
    padding: 21px 23px
}

.small-panel h2 {
    font-size: 14px
}

.small-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px
}

.text-link {
    font-size: 10px;
    color: #908b83;
    display: flex;
    align-items: center;
    gap: 5px
}

.text-link .icon {
    width: 12px;
    height: 12px
}

.activity-item {
    display: flex;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid #edecea;
    align-items: flex-start
}

.activity-item:last-child {
    border: 0;
    padding-bottom: 0
}

.activity-symbol {
    width: 28px;
    height: 28px;
    border: 1px solid #e5e3e1;
    border-radius: 7px;
    display: grid;
    place-items: center;
    color: #8f8a81;
    flex: none
}

.activity-symbol .icon {
    width: 13px;
    height: 13px
}

.activity-item strong {
    font-size: 10px;
    font-weight: 550;
    display: block;
    color: #59554f
}

.activity-item small {
    font-size: 9px;
    color: #9d9992;
    display: block;
    margin-top: 4px
}

.activity-item time {
    font-size: 9px;
    color: #a29e97;
    white-space: nowrap;
    margin-left: auto
}

.notice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #858078;
    background: #f6f4e9;
    border: 1px solid #e9e5d4;
    padding: 10px 14px;
    font-size: 10px;
    border-radius: 6px;
    margin-bottom: 22px
}

.notice .icon {
    width: 14px;
    height: 14px
}

.back-link {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: #878178;
    font-size: 11px;
    margin-bottom: 21px
}

.back-link .icon {
    width: 13px
}

.detail-hero {
    display: grid;
    grid-template-columns: 1fr 265px;
    background: #fff;
    border: 1px solid #e1dfdd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px
}

.detail-info {
    padding: 28px
}

.detail-info .badge {
    margin-left: 10px;
    vertical-align: middle
}

.detail-info h1 {
    font-size: 29px;
    margin-bottom: 6px
}

.detail-info p {
    font-size: 12px;
    margin-bottom: 20px
}

.detail-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 260px;
    filter: saturate(.7)
}

.detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 21px
}

.detail-metrics small {
    display: block;
    font-size: 9px;
    color: #959189;
    margin-bottom: 5px
}

.detail-metrics strong {
    font-size: 11px;
    color: #67635c;
    font-weight: 500
}

.detail-progress {
    max-width: 380px
}

.detail-description {
    font-size: 11px !important;
    line-height: 1.7
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e1dfdd;
    margin-bottom: 22px;
    gap: 27px;
    overflow-x: auto
}

.tab {
    background: none;
    border: none;
    font-size: 12px;
    color: #97938b;
    padding: 0 0 13px;
    border-bottom: 2px solid transparent;
    display: flex;
    gap: 7px;
    align-items: center;
    white-space: nowrap
}

.tab .icon {
    width: 15px;
    height: 15px
}

.tab[aria-selected=true] {
    color: #57534d;
    border-bottom-color: #78736b
}

.tab .count {
    font-size: 9px;
    padding: 1px 5px
}

.detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px
}

.detail-aside {
    background: #fff;
    border: 1px solid #e3e2e0;
    border-radius: 8px;
    padding: 22px;
    height: fit-content
}

.detail-aside h3 {
    font-size: 13px
}

.stage {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    color: #99958e;
    margin: 16px 0
}

.stage-dot {
    border: 1px solid #dddbd8;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 9px;
    flex: none
}

.stage.done {
    color: #8c877e
}

.stage.done .stage-dot {
    background: #eae9e7;
    border: 0
}

.stage.current {
    color: #5b5751;
    font-weight: 600
}

.stage.current .stage-dot {
    background: #716d66;
    color: #fff;
    border: 0
}

.aside-divider {
    height: 1px;
    background: #e8e7e6;
    margin: 22px 0
}

.timeline {
    position: relative
}

.timeline-item {
    position: relative;
    background: #fff;
    border: 1px solid #e1e0de;
    border-radius: 8px;
    margin: 0 0 15px;
    padding: 20px 22px
}

.timeline-item.unread {
    border-left: 3px solid #99958e
}

.timeline-top {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 10px;
    color: #938e86;
    flex-wrap: wrap
}

.timeline-top .source {
    display: flex;
    gap: 4px;
    align-items: center;
    color: #79746c;
    background: #f1f0ef;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 9px
}

.source .icon {
    width: 11px;
    height: 11px
}

.timeline-top time {
    margin-left: auto;
    color: #97938b;
    font-size: 9px
}

.timeline-item h3 {
    font-size: 13px;
    margin-bottom: 7px
}

.timeline-item p {
    font-size: 11px;
    line-height: 1.8;
    color: #88837b;
    margin-bottom: 12px
}

.timeline-tags {
    display: flex;
    align-items: center;
    gap: 7px
}

.tag {
    font-size: 9px;
    background: #f4f3f2;
    padding: 3px 7px;
    border-radius: 4px;
    color: #918c84
}

.new-dot {
    font-size: 9px;
    color: #8f8a82;
    display: flex;
    gap: 4px;
    align-items: center
}

.new-dot:before {
    content: '';
    height: 5px;
    width: 5px;
    background: #9c9891;
    border-radius: 50%
}

.read-btn {
    margin-left: auto;
    border: 0;
    background: none;
    color: #837e76;
    font-size: 9px;
    text-decoration: underline
}

.attachments {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0
}

.attachment {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #e3e1df;
    border-radius: 6px;
    font-size: 9px;
    background: #fbfbfb;
    padding: 5px 9px 5px 5px;
    color: #817c73;
    max-width: 240px;
    text-align: left
}

.attachment img {
    width: 40px;
    height: 34px;
    border-radius: 3px;
    object-fit: cover
}

.attachment>.icon {
    width: 22px;
    height: 24px;
    margin: 5px
}

.attachment:hover {
    background: #edecea
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px
}

.media-card {
    background: #fff;
    border: 1px solid #e0dfdd;
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    padding: 0
}

.media-thumb {
    height: 150px;
    background: #edeceb;
    display: grid;
    place-items: center;
    position: relative
}

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

.media-thumb>.icon {
    width: 32px;
    height: 32px;
    color: #959189
}

.media-thumb .media-overlay {
    position: absolute;
    border-radius: 50%;
    background: #fffE;
    color: #6e6a62;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center
}

.media-caption {
    padding: 15px
}

.media-caption strong {
    font-size: 11px;
    display: block;
    font-weight: 550
}

.media-caption small {
    font-size: 9px;
    color: #9a968e;
    display: block;
    margin-top: 6px
}

.media-card:hover {
    border-color: #a19d97
}

.filter-bar {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.filter-bar .searchbox {
    max-width: 400px
}

.file-chips {
    padding: 0 0 18px;
    border-bottom: 0
}

.empty {
    padding: 50px 20px;
    text-align: center;
    grid-column: 1/-1
}

.empty>.icon {
    width: 30px;
    height: 30px;
    color: #a5a19a
}

.empty h3 {
    margin: 12px 0 6px;
    font-size: 15px
}

.empty p {
    font-size: 12px
}

.occurrence {
    background: #fff;
    border: 1px solid #e2e0de;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    align-items: flex-start
}

.occurrence>.icon {
    color: #b9a47c;
    margin-top: 2px;
    width: 17px
}

.occurrence-body {
    flex: 1
}

.occurrence-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start
}

.occurrence-heading h3 {
    font-size: 13px;
    margin-bottom: 6px
}

.occurrence p {
    font-size: 11px;
    color: #938f87;
    margin-bottom: 12px
}

.occurrence-meta {
    display: flex;
    gap: 17px;
    font-size: 9px;
    color: #96928a;
    flex-wrap: wrap
}

.occurrence-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px
}

.occurrence-actions select {
    font-size: 10px;
    padding: 5px 26px 5px 8px;
    min-height: 31px
}

.occurrence.resolved {
    opacity: .7
}

.due-now {
    color: #b58c57 !important
}

.scope-line {
    font-size: 11px;
    color: #918c84;
    margin-bottom: 18px
}

.scope-line a {
    text-decoration: underline
}

.export-line {
    display: flex;
    gap: 8px
}

.toast {
    position: fixed;
    bottom: 28px;
    left: calc(50% + 80px);
    transform: translate(-50%, 30px);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    background: #3b3935;
    color: #efefee;
    padding: 13px 21px;
    border-radius: 8px;
    box-shadow: 0 6px 30px #0002;
    font-size: 12px;
    transition: .2s;
    max-width: 90vw
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

dialog {
    border: 1px solid #dbd9d6;
    border-radius: 12px;
    box-shadow: 0 30px 100px #18171640;
    padding: 0;
    color: #44413d;
    background: #fbfbfa;
    max-width: calc(100% - 32px)
}

dialog::backdrop {
    background: #1d1c1add;
    backdrop-filter: blur(3px)
}

.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: white;
    border-bottom: 1px solid #e3e1df;
    gap: 15px
}

.dialog-head h2 {
    font-size: 15px
}

.dialog-head .icon-btn {
    padding: 8px
}

.media-dialog {
    width: 850px
}

.media-preview {
    background: #252422;
    min-height: 200px;
    display: grid;
    place-items: center
}

.media-preview img {
    max-height: 60vh;
    max-width: 100%;
    object-fit: contain
}

.media-preview video {
    width: 100%;
    max-height: 60vh
}

.media-preview audio {
    width: 80%;
    margin: 60px 20px
}

.media-preview iframe {
    width: 100%;
    height: 60vh;
    border: 0;
    background: #fff
}

.media-note {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between
}

.media-note p {
    font-size: 11px;
    margin: 0;
    color: #8d887f
}

.form-dialog {
    width: 490px
}

.form-body {
    padding: 22px
}

.form-body label {
    display: block;
    font-size: 11px;
    color: #817c73;
    margin-bottom: 15px
}

.form-body input,
.form-body textarea,
.form-body select {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 6px;
    border: 1px solid #dad9d6;
    border-radius: 5px;
    padding: 10px;
    background: #fff;
    color: #4f4c47;
    font-size: 12px
}

.form-body textarea {
    min-height: 110px;
    resize: vertical
}

.form-body .notice {
    margin-bottom: 18px
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px
}

.inline-help {
    font-size: 10px;
    color: #918d85;
    margin-top: 9px
}

footer {
    border-top: 1px solid #e5e4e2;
    padding: 20px 42px;
    display: flex;
    gap: 15px;
    font-size: 9px;
    letter-spacing: 1px;
    color: #8c877f
}

footer span {
    letter-spacing: 0;
    color: #a4a09a
}

footer span:last-child {
    margin-left: auto
}

.mobile-only {
    display: none
}

@media(min-width:1600px) {
    .cover {
        height: 185px
    }

    .project-grid {
        gap: 24px
    }

    .card-body {
        padding: 20px
    }

    .topbar {
        padding: 0 55px
    }

    main {
        padding: 40px 55px
    }

    .sidebar {
        width: 245px
    }

    .shell {
        margin-left: 245px
    }
}

@media(max-width:1180px) {
    .sidebar {
        width: 200px;
        padding: 30px 15px
    }

    .shell {
        margin-left: 200px
    }

    .topbar {
        padding: 0 25px
    }

    main {
        padding: 28px 25px
    }

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

    .stats {
        gap: 9px
    }

    .stat {
        padding: 16px
    }

    .stat-icon {
        right: 12px;
        top: 13px
    }

    .stat-label {
        font-size: 10px
    }

    .detail-columns {
        grid-template-columns: minmax(0, 1fr) 220px
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .demo-box strong {
        font-size: 9px
    }

    .cover {
        height: 164px
    }
}

@media(max-width:820px) {
    .sidebar {
        width: 74px;
        padding: 26px 10px
    }

    .brand {
        padding: 0;
        justify-content: center
    }

    .brand-symbol {
        font-size: 35px
    }

    .brand>span:last-child,
    .workspace-label,
    .sidebar-bottom,
    nav a>span {
        display: none
    }

    nav {
        margin-top: 38px
    }

    nav a {
        justify-content: center;
        padding: 13px 0
    }

    nav a .icon {
        width: 21px;
        height: 21px
    }

    .shell {
        margin-left: 74px
    }

    main {
        padding: 26px 22px
    }

    .topbar {
        padding: 0 22px
    }

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

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

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

    .detail-aside {
        order: -1
    }

    .detail-aside .stages {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap
    }

    .detail-aside .aside-divider,
    .detail-aside .detail-description,
    .detail-aside h3:last-of-type {
        display: none
    }

    .detail-hero {
        grid-template-columns: 1fr 190px
    }

    .detail-info {
        padding: 22px
    }

    .detail-cover {
        min-height: 280px
    }

    .heading-actions .btn {
        font-size: 10px
    }

    .page-heading {
        align-items: flex-start
    }

    .top-date {
        display: none
    }

    footer {
        padding: 20px 22px
    }

    footer #footer-sync {
        display: none
    }

    .toast {
        left: 50%
    }
}

@media(max-width:580px) {
    body {
        font-size: 13px
    }

    .sidebar {
        position: fixed;
        inset: auto 0 0;
        width: 100%;
        height: 66px;
        padding: 5px 14px;
        background: #2a2926;
        border-top: 1px solid #494742;
        z-index: 30
    }

    .sidebar>.brand {
        display: none
    }

    nav {
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        gap: 8px;
        height: 100%
    }

    nav a {
        flex: 1;
        flex-direction: column;
        padding: 7px 4px;
        gap: 3px;
        border-radius: 5px;
        font-size: 9px
    }

    nav a>span:first-of-type {
        display: inline
    }

    nav .nav-count {
        display: none
    }

    .shell {
        margin-left: 0
    }

    .topbar {
        height: 58px;
        padding: 0 18px
    }

    .breadcrumb {
        font-size: 10px
    }

    .breadcrumb span {
        margin: 0 7px
    }

    .topbar-right {
        gap: 8px
    }

    .private-tag {
        font-size: 9px
    }

    .topbar-right>.avatar {
        display: none
    }

    main {
        padding: 24px 16px 30px
    }

    .page-heading {
        display: block;
        margin-bottom: 22px
    }

    h1 {
        font-size: 28px
    }

    .page-heading p {
        font-size: 11px
    }

    .heading-actions {
        margin-top: 18px;
        justify-content: flex-start
    }

    .stats {
        gap: 9px;
        margin-bottom: 22px
    }

    .stat {
        padding: 15px
    }

    .stat-icon {
        padding: 5px;
        top: 12px;
        right: 12px
    }

    .stat-label {
        font-size: 10px
    }

    .stat-number {
        font-size: 28px;
        margin-top: 8px
    }

    .stat-foot {
        font-size: 9px
    }

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

    .section-top {
        padding: 19px 15px 15px
    }

    .section-top h2 {
        font-size: 17px
    }

    .filters {
        padding: 0 15px 14px;
        gap: 8px
    }

    .filters .searchbox {
        min-width: 100%;
        flex-basis: 100%
    }

    .filters select {
        flex: 1;
        min-width: 0;
        font-size: 10px;
        max-width: 100%
    }

    .chips {
        padding: 0 15px 15px;
        gap: 5px
    }

    .chip {
        padding: 7px 9px;
        font-size: 10px
    }

    .chips .clear-btn {
        margin-left: 0
    }

    .project-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 16px
    }

    .cover {
        height: 184px
    }

    .card-body {
        padding: 18px
    }

    .card-title h3 {
        font-size: 18px
    }

    .card-kind,
    .location {
        font-size: 11px
    }

    .progress-label,
    .card-meta,
    .card-footer {
        font-size: 10px
    }

    .card-footer {
        padding: 12px 18px
    }

    .panel-bottom {
        padding: 14px 15px;
        font-size: 9px
    }

    .below-grid {
        gap: 16px;
        margin-top: 18px
    }

    .small-panel {
        padding: 18px
    }

    .notice {
        font-size: 10px;
        align-items: flex-start
    }

    .detail-hero {
        grid-template-columns: 1fr
    }

    .detail-cover {
        height: 170px;
        min-height: 0;
        grid-row: 1
    }

    .detail-info {
        padding: 21px
    }

    .detail-info h1 {
        font-size: 28px
    }

    .detail-metrics {
        gap: 10px
    }

    .detail-metrics strong {
        font-size: 10px
    }

    .detail-metrics small {
        font-size: 8px
    }

    .tabs {
        gap: 22px
    }

    .tab {
        font-size: 11px;
        gap: 5px
    }

    .detail-aside {
        padding: 18px
    }

    .detail-aside .stages {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px
    }

    .stage {
        margin: 6px 0;
        font-size: 10px
    }

    .timeline-item {
        padding: 17px
    }

    .timeline-top time {
        margin-left: 0;
        flex-basis: 100%
    }

    .attachments {
        gap: 6px
    }

    .attachment {
        max-width: 100%;
        font-size: 9px
    }

    .media-grid {
        gap: 10px
    }

    .media-thumb {
        height: 120px
    }

    .media-caption {
        padding: 12px
    }

    .media-caption strong {
        font-size: 10px
    }

    .file-chips {
        padding: 0 0 16px
    }

    .filter-bar {
        gap: 7px
    }

    .filter-bar .searchbox {
        flex-basis: 100%;
        max-width: none
    }

    .filter-bar select {
        flex: 1;
        max-width: 100%
    }

    .occurrence {
        padding: 16px;
        gap: 10px
    }

    .occurrence-heading {
        flex-wrap: wrap
    }

    .occurrence-heading h3 {
        font-size: 12px
    }

    .occurrence-meta {
        gap: 9px
    }

    .dialog-head {
        padding: 14px 16px
    }

    .dialog-head h2 {
        font-size: 13px
    }

    .media-note {
        display: block;
        padding: 16px
    }

    .media-note .btn {
        margin-top: 13px
    }

    .media-preview audio {
        width: 90%;
        margin: 50px 10px
    }

    footer {
        padding: 17px 16px 86px;
        gap: 10px;
        font-size: 8px
    }

    .toast {
        bottom: 81px;
        width: max-content;
        max-width: 92%;
        font-size: 11px
    }

    .skip {
        left: 16px
    }

    .topbar .private-tag .icon {
        width: 12px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important
    }
}

.footer-reset {
    border: 0;
    background: none;
    padding: 0;
    font-size: 10px;
    text-decoration: underline;
    color: #706c64;
    cursor: pointer
}

.card-kind,
.location,
.card-meta,
.card-footer,
.stat-foot,
.progress-label,
.panel-bottom,
.timeline-item p,
.timeline-top,
.scope-line,
.media-caption small {
    color: #77726a
}

.project-card:nth-child(2) .cover img {
    transform: scale(1.15)
}

.project-card:nth-child(3) .cover img {
    transform: scale(1.25);
    object-position: left center
}

.project-card:nth-child(4) .cover img {
    object-position: center bottom
}

.project-card:nth-child(5) .cover img {
    filter: saturate(.25);
    transform: scale(1.1)
}

.project-card:nth-child(6) .cover img {
    object-position: right center
}

.detail-info .badge {
    font-size: 9px;
    letter-spacing: 0
}

@media(max-width:580px) {
    footer {
        flex-wrap: wrap
    }

    footer span:last-child {
        flex-basis: 100%;
        margin-left: 0
    }
}

/* Identidade Magni 360: logótipo original, preto, branco e dourado. */
:root {
    --magni-gold: #c59b47;
    --magni-ink: #1c1b19;
    --magni-gold-dark: #85621f;
    --magni-sand: #f3ecdf;
    --magni-display: 'Barlow Semi Condensed', 'Arial Narrow', -apple-system, 'Segoe UI', sans-serif
}

body {
    background: #f7f7f5;
    color: #232323
}

.sidebar {
    background: var(--magni-ink);
    padding-top: 26px;
    color: #eee
}

.brand {
    padding: 9px 7px;
    background: #fff;
    border-radius: 6px;
    display: block;
    line-height: 0
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto
}

.workspace-label {
    margin-top: 35px;
    color: #a3a09a
}

nav a {
    color: #bbb8b2
}

nav a:hover {
    background: #282624;
    color: #fff
}

nav a.active {
    background: #332c20;
    color: #f3d39a
}

nav a.active .icon {
    color: var(--magni-gold)
}

nav .nav-count {
    background: var(--magni-gold);
    color: #211b11
}

.demo-box {
    background: #23211e;
    border-color: #393329
}

.demo-box p {
    color: #bcb6ab
}

.demo-led {
    background: var(--magni-gold)
}

.user {
    border-color: #393630
}

.user small {
    color: #aaa59e
}

.avatar {
    background: #f3e6cc;
    color: #775315
}

.topbar {
    background: #fff
}

.mobile-brand {
    display: none
}

.btn.primary {
    background: var(--magni-gold);
    border-color: var(--magni-gold);
    color: #241b0b;
    box-shadow: 0 2px 3px #3322000b
}

.btn.primary:hover {
    background: #dda037;
    border-color: #dda037
}

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline-color: #b67d20
}

.stat:hover,
.project-card:hover,
.media-card:hover {
    border-color: #d9b46f
}

.stat-icon {
    background: #faf3e7;
    color: #a77a2b
}

.stat-number {
    color: #202020
}

.stat-foot.accent {
    color: #976821
}

.count {
    background: var(--magni-sand);
    color: #825b19
}

.chip[aria-pressed=true] {
    background: #fbefd7;
    border-color: #ecd4a5;
    color: #805612
}

.icon-btn[aria-pressed=true] {
    background: #fbefd7;
    color: #8e621b
}

.progress {
    background: #f1ede5
}

.progress>i {
    background: var(--magni-gold)
}

.progress-label b {
    color: #805612
}

.suspended .progress>i {
    background: #c99960
}

.tiny-avatar {
    background: #f7efdf;
    color: #87662e
}

.card-title h3 {
    color: #222
}

.pending {
    color: #96621f !important
}

.activity-symbol {
    color: #a57625;
    background: #fffaf0;
    border-color: #eee0c6
}

.activity-item strong {
    color: #45413b
}

.badge.em-curso {
    background: #eef3eb;
    color: #506b40
}

.badge.concluida,
.badge.resolvida {
    background: #eaf3ef;
    color: #427766
}

.badge.suspensa,
.badge.alta {
    background: #fff0e3;
    color: #9d5625
}

.badge.planeada {
    background: #f0f1f4;
    color: #69738a
}

.badge.media {
    background: #fbefd7;
    color: #876118
}

.badge.baixa {
    background: #eef2f6;
    color: #566e82
}

.tab[aria-selected=true] {
    color: #8a5c12;
    border-bottom-color: var(--magni-gold)
}

.detail-metrics strong {
    color: #61513b
}

.stage.done {
    color: #796a50
}

.stage.done .stage-dot {
    background: #faf0d9
}

.stage.current {
    color: #885d16
}

.stage.current .stage-dot {
    background: var(--magni-gold);
    color: #241b0b
}

.timeline-item.unread {
    border-left-color: var(--magni-gold)
}

.timeline-top .source {
    background: #f7f1e6;
    color: #826637
}

.new-dot {
    color: #8d6726
}

.new-dot:before {
    background: var(--magni-gold)
}

.attachment {
    color: #75603c
}

.attachment:hover {
    background: #faf1df
}

.media-thumb {
    background: #f5f0e7
}

.media-thumb>.icon {
    color: #b79860
}

.media-thumb .media-overlay {
    color: #936420
}

.media-preview {
    background: #1c1b19
}

.toast {
    background: #24211b;
    color: #fff4dc
}

.footer-reset {
    color: #88601a
}

.notice {
    background: #faf5e9;
    color: #786844;
    border-color: #e9dfc5
}

.mini-label {
    background: #faf5e9;
    color: #827044
}

.table-link b {
    color: #28241d
}

.due-now {
    color: #9b6221 !important
}

@media(max-width:1180px) {
    .sidebar {
        padding-top: 24px
    }
}

@media(max-width:820px) {
    .sidebar {
        padding: 20px 8px
    }

    .brand {
        padding: 4px 2px;
        border-radius: 4px
    }

    .brand-logo {
        width: 100%
    }

    .mobile-brand {
        display: block;
        width: 87px;
        line-height: 0;
        flex: none;
        margin-right: 17px
    }

    .mobile-brand img {
        width: 100%;
        height: auto;
        display: block
    }

    .topbar {
        justify-content: flex-start
    }

    .topbar-right {
        margin-left: auto
    }

    .breadcrumb {
        font-size: 10px
    }

    .breadcrumb span {
        margin: 0 7px
    }
}

@media(max-width:580px) {
    .sidebar {
        padding: 5px 14px;
        background: var(--magni-ink);
        border-top-color: #35312a
    }

    .topbar {
        height: 72px;
        padding: 7px 16px;
        gap: 12px
    }

    .mobile-brand {
        width: 93px;
        margin-right: 0
    }

    .breadcrumb {
        display: none
    }

    .topbar-right {
        margin-left: auto
    }

    .topbar .private-tag {
        font-size: 9px
    }

    .sidebar>.brand {
        display: none
    }
}

.work-stages {
    border: 1px solid #e3e0d9;
    background: white;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 28px
}

.work-stages-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px
}

.work-stages-heading h2 {
    font-size: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap
}

.work-stages-heading p {
    font-size: 12px;
    color: #787269;
    margin: 8px 0 0
}

.work-stages-heading .eyebrow {
    color: #947032
}

.work-stages-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0
}

.work-stage {
    display: flex;
    gap: 13px;
    align-items: center;
    min-height: 86px;
    padding: 17px 15px;
    background: #fafaf8;
    border: 1px solid #e9e6df;
    border-radius: 7px
}

.work-stage-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eeece7;
    color: #7c776d;
    display: grid;
    place-items: center;
    font-size: 12px;
    flex: none
}

.work-stage strong {
    font-size: 13px;
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.5
}

.work-stage div>span {
    font-size: 10px;
    color: #80796b;
    display: block;
    margin-top: 5px
}

.work-stage.em-curso {
    border-color: #ddb46a;
    background: #fff8e9;
    box-shadow: inset 3px 0 var(--magni-gold)
}

.work-stage.em-curso .work-stage-number {
    background: var(--magni-gold);
    color: #292012
}

.work-stage.em-curso div>span {
    color: #946412;
    font-weight: 550
}

.work-stage.concluida .work-stage-number {
    background: #e8eee3;
    color: #637652
}

.work-stages-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 10px;
    color: #857c6e;
    border-top: 1px solid #efebe3;
    padding-top: 16px;
    margin-top: 20px
}

.stage-modal {
    width: 800px;
    max-height: 90vh;
    overflow: auto
}

.stage-modal .dialog-head {
    position: sticky;
    top: 0;
    z-index: 1
}

.stage-modal .dialog-head .eyebrow {
    margin-bottom: 5px
}

.stage-editor-help {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 22px
}

.stage-editor-row {
    display: grid;
    grid-template-columns: 23px minmax(120px, 1fr) 130px 90px;
    align-items: center;
    gap: 10px;
    border: 1px solid #e4ded1;
    border-radius: 7px;
    padding: 14px 12px;
    margin-bottom: 10px;
    background: #fff
}

.stage-editor-row label {
    margin: 0;
    color: #79715f;
    font-size: 10px
}

.stage-editor-row input,
.stage-editor-row select {
    margin-top: 5px;
    border-color: #ddd4c3;
    color: #332d23
}

.stage-edit-number {
    font-size: 12px;
    color: #96733a
}

.stage-editor-actions {
    display: flex;
    gap: 3px;
    align-self: end;
    margin-bottom: 3px
}

.stage-editor-actions .icon-btn {
    padding: 6px;
    color: #826835
}

.stage-editor-actions .icon-btn:hover {
    background: #fff1d6
}

.stage-progress-edit {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
    border-top: 1px solid #e9e3d8;
    padding-top: 19px
}

.stage-progress-edit label {
    margin: 0;
    color: #76684f
}

.stage-progress-edit p {
    font-size: 11px;
    line-height: 1.7;
    margin: 10px 0 0;
    color: #8c8271
}

.work-description .detail-description {
    display: block !important
}

.work-description h3 {
    display: block !important
}

.work-description .mini-label {
    white-space: normal;
    display: inline-block
}

@media(max-width:1180px) {
    .work-stages-list {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:580px) {
    .work-stages {
        padding: 19px 16px
    }

    .work-stages-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 18px
    }

    .work-stages-heading h2 {
        font-size: 19px;
        gap: 8px
    }

    .work-stages-heading .btn {
        width: 100%
    }

    .work-stages-list {
        grid-template-columns: 1fr;
        gap: 9px
    }

    .work-stage {
        min-height: 74px;
        padding: 14px
    }

    .work-stage strong {
        font-size: 13px
    }

    .work-stage div>span {
        font-size: 11px
    }

    .work-stages-foot {
        flex-direction: column;
        gap: 5px
    }

    .stage-editor-row {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 8px;
        padding: 12px
    }

    .stage-editor-row .stage-name-label {
        grid-column: 2
    }

    .stage-editor-row label:not(.stage-name-label) {
        grid-column: 2;
        grid-row: 2
    }

    .stage-editor-actions {
        grid-column: 2;
        justify-content: flex-end;
        margin: 0
    }

    .stage-editor-actions .icon-btn {
        min-width: 36px;
        min-height: 34px;
        border: 1px solid #eee5d4
    }

    .stage-progress-edit {
        grid-template-columns: 1fr;
        gap: 0
    }

    .stage-progress-edit label input {
        max-width: 150px
    }
}
/* =====================================================================
   Magni 360 — acrescentos do painel real
   ===================================================================== */
[hidden] { display: none !important }
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--magni-ink) }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 12px; padding: 30px 28px 26px; box-shadow: 0 20px 60px #0006 }
.login-logo { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 auto 22px }
.login-card h1 { font-size: 22px; margin: 0 0 6px; text-align: center }
.login-sub { text-align: center; color: #817c73; font-size: 13px; margin: 0 0 20px }
.login-msg { background: var(--magni-sand); border: 1px solid #efd9ad; color: #6e4b10; border-radius: 6px; padding: 10px 12px; font-size: 12px; margin: 0 0 16px }
.login-card .form-body { padding: 0 }
.login-card .form-body input { font-size: 15px; padding: 12px }
.btn.wide { width: 100%; justify-content: center; padding-top: 12px; padding-bottom: 12px; font-size: 14px }
.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--magni-gold-dark); font-size: 12px; text-decoration: underline; cursor: pointer }
.logout-btn { margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 1px solid #393630; color: #bcb6ab; border-radius: 6px; padding: 8px 10px; font-size: 12px }
.logout-btn:hover { color: #fff; border-color: #5a554c }
.logout-btn .icon { width: 15px; height: 15px }
.refresh-btn .icon { width: 16px; height: 16px }
button.avatar { border: 0; cursor: pointer }
.cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2a2723, #3b342a); color: var(--magni-gold) }
.cover-placeholder span { font-size: 40px; font-weight: 700; letter-spacing: 2px; opacity: .9 }
.detail-cover.cover-placeholder { min-height: 260px }
.detail-cover.cover-placeholder span { font-size: 64px }
.cover img[data-path]:not([src]), .detail-cover[data-path]:not([src]), .attachment img:not([src]), .media-thumb img:not([src]) { visibility: hidden }
.pre { white-space: pre-wrap; word-break: break-word }
.muted-pad { color: #959189; padding: 16px 4px; font-size: 12px; margin: 0 }
.muted { color: #aaa59e }
.activity-btn { width: 100%; border-left: 0; border-right: 0; border-top: 0; background: none; text-align: left }
.small-label { font-size: 10px; color: #8d9a7f }
.inactive-row td { opacity: .55 }
.btn.small { padding: 5px 9px; font-size: 11px }
.btn.small .icon { width: 14px; height: 14px }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px }
.form-body textarea.short { min-height: 60px }
.form-body .check-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #4f4c47; margin-bottom: 8px }
.form-body .check-line input { display: inline-block; width: auto; margin: 0; flex: none }
.check-list { border: 1px solid #e3e2e0; border-radius: 6px; padding: 10px 12px; margin: 4px 0 16px }
.check-list legend { font-size: 11px; color: #817c73; padding: 0 4px }
.check-grid { max-height: 220px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding-top: 6px }
.check-grid .check-line { margin-bottom: 6px }
.file-drop { border: 1.5px dashed #d2cfc9; border-radius: 8px; padding: 18px 14px; text-align: center; cursor: pointer; display: flex !important; flex-direction: column; align-items: center; gap: 6px; color: #6d6a64 !important }
.file-drop:hover { border-color: var(--magni-gold); background: #fffaf1 }
.file-drop input { margin-top: 8px !important; border: 0 !important; padding: 0 !important; background: none !important; font-size: 11px !important }
.empty.loading { padding: 80px 0; text-align: center; color: #959189 }
.form-body .notice { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45 }
@media (max-width: 580px) {
  .form-grid, .check-grid { grid-template-columns: 1fr }
  .login-card { padding: 24px 18px }
}
.topbar-right { display: flex; align-items: center; gap: 10px }
@media (max-width: 820px) { .topbar-right .avatar.small { display: inline-flex !important; align-items: center; justify-content: center } }
.badge.assistencia { background: #eaf1f6; color: #3d6680 }
.badge.assistencia:before { background: #5b8db0 }
.stage-editor-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px }
.import-btn { cursor: pointer; margin: 0 !important; font-size: 12px !important; color: inherit !important; display: inline-flex !important; align-items: center; gap: 6px }
.budget-list { max-height: 50vh; overflow: auto; border: 1px solid #e3e2e0; border-radius: 6px; padding: 6px 10px; margin-bottom: 14px }
.budget-row { justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0efed; margin: 0 !important }
.budget-row:last-child { border-bottom: 0 }
.budget-name { flex: 1 }
.budget-meta { color: #959189; font-size: 11px; white-space: nowrap }
.detail-metrics { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important }
.work-stages-foot { flex-wrap: wrap; gap: 8px }
.check-list .check-line { align-items: flex-start; line-height: 1.4 }
.check-list .check-line input[type=radio] { margin-top: 3px }
/* Secções recolhíveis (etapas, documentos) */
.folds { display: grid; gap: 10px; margin: 18px 0 26px }
.fold { background: #fff; border: 1px solid #e3e2e0; border-radius: 10px; overflow: hidden }
.fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; user-select: none }
.fold > summary::-webkit-details-marker { display: none }
.fold > summary:hover { background: #fbfaf8 }
.fold-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--magni-sand); color: var(--magni-gold-dark); display: inline-flex; align-items: center; justify-content: center; flex: none }
.fold-icon .icon { width: 16px; height: 16px }
.fold-title { font-weight: 600; font-size: 14px; color: #232323; white-space: nowrap }
.fold-summary { flex: 1; font-size: 12px; color: #817c73; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.fold-alert { color: #b3452f; font-weight: 600 }
.fold-arrow { font-size: 22px; line-height: 1; color: #959189; transition: transform .2s; flex: none }
.fold[open] .fold-arrow { transform: rotate(90deg) }
.fold-body { padding: 4px 18px 18px; border-top: 1px solid #f0efed }
.fold-actions { display: flex; justify-content: flex-end; padding: 12px 0 }
.fold-actions:empty { display: none }
.fold .work-stages-list { margin-top: 4px }
.doc-group h4 { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #959189; margin: 14px 0 6px }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f3f2f0 }
.doc-row:last-child { border-bottom: 0 }
.doc-open { flex: 1; display: flex; align-items: center; gap: 10px; background: none; border: 0; text-align: left; padding: 0; min-width: 0 }
.doc-open .icon { color: var(--magni-gold-dark); flex: none }
.doc-open span { display: flex; flex-direction: column; min-width: 0 }
.doc-open b { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.doc-open small { color: #959189; font-size: 11px }
.doc-open:hover b { text-decoration: underline }
.doc-valid { font-size: 11px; color: #6d8a5f; white-space: nowrap }
.badge.media:before { background: #d18f1f }
@media (max-width: 580px) {
  .fold > summary { flex-wrap: wrap; padding: 12px 14px }
  .fold-summary { flex-basis: 100%; order: 3; white-space: normal; padding-left: 42px }
  .fold-body { padding: 4px 14px 14px }
}
/* Cabeçalho da obra mais compacto, para a cronologia aparecer mais cedo */
.detail-hero { margin-bottom: 0; grid-template-columns: 1fr 220px }
.detail-info { padding: 20px 24px }
.detail-info p { margin-bottom: 12px }
.detail-metrics { padding-top: 12px }
.detail-cover, .detail-cover.cover-placeholder { min-height: 170px !important }
.detail-cover.cover-placeholder span { font-size: 48px }
.back-link { margin-bottom: 14px }
.folds + .page-heading { margin-top: 0 }
@media (max-width: 820px) { .detail-hero { grid-template-columns: 1fr } .detail-cover, .detail-cover.cover-placeholder { min-height: 140px !important; max-height: 180px } }
@media (max-width: 580px) { .fold-arrow { margin-left: auto } }
.team-sub { margin-top: 36px }
.unknown-box { align-items: flex-start }
.unknown-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px }
.unknown-item { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #efd9ad; border-radius: 6px; padding: 5px 6px 5px 10px; font-size: 12px }
.unknown-item small { color: #959189 }

/* ---------- Veículos ---------- */
.plate { display: inline-flex; align-items: center; padding-right: 7px; border: 1.5px solid #1b1b1b; border-radius: 4px; background: #fff; font: 700 13px/1 "Arial Narrow", Arial, sans-serif; letter-spacing: 1px; color: #111; overflow: hidden; white-space: nowrap; height: 24px }
.plate i { font-style: normal; background: #1f4db3; color: #fff; font-size: 9px; display: flex; align-items: flex-end; align-self: stretch; padding: 0 4px 3px; margin-right: 7px; letter-spacing: 0 }
.stat-number.red { color: #b3261e }
.stat-number.small-num { font-size: 24px }
.prazos-panel { margin-top: 22px }
.prazo-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #f1efec }
.prazo-row:last-child { border-bottom: 0 }
.prazo-row.done { opacity: .72 }
.prazo-main { display: flex; align-items: center; gap: 12px; min-width: 0 }
.prazo-main a { line-height: 0 }
.prazo-main b { font-size: 13px }
.prazo-main small { display: block; color: #8a867f; font-size: 11px; margin-top: 3px }
.prazo-side { display: flex; align-items: center; gap: 8px; flex: none }
.btn.btn-pay { padding: 6px 10px; min-height: 0 }
.prazo-desc { color: #8a867f; font-size: 11px }
.vehicle-grid { padding: 0 24px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px }
.vehicle-card { display: block; background: #fff; border: 1px solid #ebe9e4; border-radius: 10px; padding: 16px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s }
.vehicle-card:hover { border-color: var(--magni-gold); box-shadow: 0 4px 16px rgba(0,0,0,.05) }
.vehicle-card.inactive { opacity: .6 }
.vehicle-card h3 { margin: 12px 0 3px; font-size: 15px }
.vehicle-card p { margin: 0; color: #8a867f; font-size: 12px }
.vehicle-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 12px; font-size: 11px; color: #6c6964 }
.vehicle-meta > span:first-child { display: inline-flex; align-items: center; gap: 5px }
.vehicle-meta svg { width: 14px; height: 14px }
.vehicle-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; background: #fff; border: 1px solid #ebe9e4; border-radius: 12px; padding: 18px; margin-bottom: 4px }
.vehicle-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; background: #f3f1ec }
.vehicle-photo.placeholder { display: flex; align-items: center; justify-content: center; color: #c9c3b8 }
.vehicle-photo.placeholder svg { width: 54px; height: 54px }
.vehicle-info h1 { margin: 12px 0 14px; font-size: 26px }
.vehicle-info .plate { height: 30px; font-size: 16px }
@media (max-width: 580px) { .vehicle-grid { padding: 0 14px 14px } }
@media (max-width: 820px) {
  .vehicle-hero { grid-template-columns: 1fr }
  .vehicle-photo { aspect-ratio: 16/9 }
  .prazo-row { flex-direction: column; align-items: flex-start }
  .prazo-side { flex-wrap: wrap }
}
.req-docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 8px }
.req-doc { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #ebe9e4; border-radius: 8px; background: #fff; text-align: left; font: inherit; color: inherit }
.req-doc b { display: block; font-size: 12px }
.req-doc small { color: #8a867f; font-size: 10px }
.req-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px }
.req-dot svg { width: 12px; height: 12px }
.req-doc.ok .req-dot { background: #e6f2e8; color: #2e7d45 }
.req-doc.missing .req-dot, .req-doc.expired .req-dot { background: #fbe6e3; color: #b3261e }
.req-doc.missing, .req-doc.expired { border-color: #f1cfc9; background: #fffaf9 }
button.req-doc:hover { border-color: var(--magni-gold) }
.docs-missing { color: #b3261e }
a.missing-row { color: inherit; text-decoration: none }
@media (max-width: 820px) { .req-docs { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.heading-actions { flex-wrap: wrap }
@media (max-width: 580px) { .heading-actions .btn { flex: 1 1 auto } }
/* Capas sem fotografia: nome da obra em vez do número */
.cover-placeholder { flex-direction: column; gap: 8px; padding: 16px; text-align: center; color: #3a332a; background: #efe6d6 }
.cover-placeholder svg { width: 30px; height: 30px; opacity: .55 }
.cover-placeholder b { font-size: 17px; line-height: 1.2; font-weight: 700; max-width: 92%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.detail-cover.cover-placeholder b { font-size: 24px }
.detail-cover.cover-placeholder svg { width: 40px; height: 40px }
.cover-placeholder.tone-0 { background: linear-gradient(135deg, #f3e3c3, #e9d2a6); color: #5a3f12 }
.cover-placeholder.tone-1 { background: linear-gradient(135deg, #dfe8e1, #c9d9cd); color: #264a34 }
.cover-placeholder.tone-2 { background: linear-gradient(135deg, #e1e6ef, #cbd3e2); color: #27364f }
.cover-placeholder.tone-3 { background: linear-gradient(135deg, #f2ddd3, #e7c6b6); color: #6a2f1a }
.cover-placeholder.tone-4 { background: linear-gradient(135deg, #e7e1ef, #d6cce4); color: #3f2d58 }
.cover-placeholder.tone-5 { background: linear-gradient(135deg, #e6ecd6, #d3ddbc); color: #3c4a1c }
/* Veículos: em nome de */
.vehicle-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.prop-tag { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 20px; background: #efeeed; color: #57534d }
.prop-tag.prop-empresa { background: var(--magni-sand); color: var(--magni-gold-dark) }
.prop-tag.prop-pessoal { background: #e3ecf8; color: #24518a }
.prop-tag.prop-leasing { background: #ece6f4; color: #563a80 }
.section-top .chips { margin: 0; padding: 0; border: 0; flex-wrap: wrap; justify-content: flex-end }
/* Galeria: fotografias enviadas juntas aparecem juntas, com scroll para o lado */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px 0 4px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: thin }
.gallery-item { flex: 0 0 auto; width: 170px; height: 170px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #f3f0ea; scroll-snap-align: start; cursor: zoom-in }
.gallery.single .gallery-item { width: 260px; height: 195px }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s }
.gallery-item:hover img { transform: scale(1.03) }
.gallery-video { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--magni-gold-dark); background: var(--magni-sand) }
.gallery-video svg { width: 32px; height: 32px }
.gallery-video small { font-size: 11px; font-weight: 600 }
.gallery-hint { font-size: 10px; color: #959189; margin-bottom: 4px }
.media-preview.has-nav { position: relative }
.media-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.18); font-size: 26px; line-height: 1; color: #222; display: flex; align-items: center; justify-content: center; padding-bottom: 3px }
.media-nav.prev { left: 10px } .media-nav.next { right: 10px }
.media-nav:disabled { opacity: .3 }
@media (max-width: 580px) { .gallery-item { width: 140px; height: 140px } .gallery.single .gallery-item { width: 100%; height: 220px } }
.timeline, .timeline-item, .detail-columns > *, .tab-panel { min-width: 0 }
.gallery { max-width: 100% }
.gallery-wrap { position: relative }
.gallery-arrow { position: absolute; top: calc(50% - 6px); transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: 22px; line-height: 1; padding-bottom: 3px; color: #222; opacity: 0; transition: opacity .15s }
.gallery-arrow.prev { left: 6px } .gallery-arrow.next { right: 6px }
.gallery-wrap:hover .gallery-arrow { opacity: 1 }
@media (hover: none) { .gallery-arrow { display: none } }

/* ===== Custos da obra (v13) ===== */
.cost-h { display: flex; align-items: center; gap: 8px; margin: 22px 0 8px; font-size: 12px; font-weight: 600; color: #59554f; letter-spacing: .2px }
.cost-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px }
.cost-kpi { border: 1px solid #e8e6e3; border-radius: 8px; padding: 12px 14px; background: #fff }
.cost-kpi small { display: block; font-size: 11px; color: #8c877f }
.cost-kpi strong { display: block; font-size: 22px; font-weight: 560; letter-spacing: -.6px; margin-top: 4px; color: #2f2e2b; font-variant-numeric: tabular-nums }
.cost-kpi span { display: block; font-size: 10px; color: #9c9890; margin-top: 3px }
.cost-kpi.alert { border-color: #ecc9bf; background: #fdf6f3 }
.cost-kpi.alert strong { color: #b3452f }
.cost-compare { border: 1px solid #e8e6e3; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 10px }
.cost-bar-row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; font-size: 12px; color: #6f6b64 }
.cost-bar-row b { text-align: right; color: #3f3d39; font-weight: 600; font-variant-numeric: tabular-nums }
.cost-bar { height: 8px; background: #efeeec; border-radius: 6px; overflow: hidden }
.cost-bar > i { display: block; height: 100%; background: #8f8a82; border-radius: 6px }
.cost-bar-row:nth-child(2) .cost-bar > i { background: #b4673f }
.cost-bar.warn > i { background: #b3452f !important }
.cost-bar.thin { height: 5px; min-width: 90px }
.cost-bar.thin + small { font-size: 10px; color: #8c877f }
.cost-verdict { margin: 2px 0 0; font-size: 12px }
.cost-ok { color: #4f7a52; font-weight: 500 }
.cost-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px }
.cost-type { background: #f8f7f5; border-radius: 8px; padding: 10px 12px }
.cost-type small { display: block; font-size: 10px; color: #8c877f }
.cost-type strong { display: block; font-size: 15px; font-weight: 580; margin-top: 2px; font-variant-numeric: tabular-nums }
.cost-type span { font-size: 10px; color: #9c9890 }
.cost-table-wrap { padding: 0; border: 1px solid #ecebe9; border-radius: 8px }
.cost-table th, .cost-table td { padding: 10px 12px }
.cost-table td { font-size: 12px }
.cost-table td b { font-size: 12px; display: inline }
.cost-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums }
.cost-table td.neg { color: #b3452f }
.cost-table tr.cost-total td { border-top: 1px solid #dcdad7; background: #faf9f7; color: #3f3d39 }
.cost-table tr.cost-loose td { background: #fdf8f1 }
.cost-desc { display: block; font-size: 10px; color: #9c9890; font-weight: 400; margin-top: 2px }
.cost-table .icon-btn { padding: 4px }
.cost-chart { margin: 0; border: 1px solid #ecebe9; border-radius: 8px; padding: 12px 12px 8px }
.cost-chart svg { width: 100%; height: auto; display: block }
.cost-chart figcaption { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8c877f; margin-top: 4px; flex-wrap: wrap }
.cc-grid { stroke: #efeeec; stroke-width: 1 }
.cc-tick { fill: #9c9890; font-size: 10px }
.cc-line { fill: none; stroke: #b4673f; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round }
.cc-area { fill: #b4673f; opacity: .09 }
.cc-dot { fill: #fff; stroke: #b4673f; stroke-width: 2 }
.cc-budget { stroke: #8f8a82; stroke-width: 1.4; stroke-dasharray: 5 4 }
.cc-budget-label { fill: #8c877f; font-size: 10px }
.cc-key { display: inline-block; width: 16px; height: 0; border-top: 2.4px solid #b4673f; margin-left: 6px }
.cc-key.budget { border-top: 1.6px dashed #8f8a82; margin-left: 14px }
@media (max-width: 820px) {
  .cost-kpis, .cost-types { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .cost-bar-row { grid-template-columns: 96px 1fr 40px }
}

/* Importação TOC e classificação (v14) */
.cost-sel{font:inherit;font-size:.82rem;padding:.3rem .4rem;border:1px solid var(--line,#d8d4cc);border-radius:8px;background:var(--surface,#fff);color:inherit;max-width:11rem}
.cost-sel.pc{border-color:#c98a1b;background:#fff7e6}
tr.cost-pc td{background:rgba(201,138,27,.06)}
.cost-type.pc strong{color:#a86a00}
.link-btn{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
.fold-actions{display:flex;gap:.5rem;flex-wrap:wrap}
@media (max-width:640px){.cost-sel{max-width:8rem}}

/* ------------------------------------------------------------------
   Horas: registo, mapa de férias, conflitos, relatórios, fecho
   ------------------------------------------------------------------ */
.hm-panel { padding-bottom: 8px }
.hm-tabs { padding-top: 18px }
.hm-count { background: #a04e36; color: #fff; border-radius: 9px; padding: 1px 6px; font-size: 9px }
.chip .hm-count { color: #fff; margin-left: 6px }
.hm-body { padding: 18px 0 8px }
.hm-alert { margin: 14px 24px 0; padding: 11px 14px; border: 1px solid #e6c9bf; background: #fbf1ed; color: #8a4130; border-radius: 6px; font-size: 11px; display: flex; gap: 12px; align-items: center; justify-content: space-between }
.hm-bar { display: flex; gap: 14px; align-items: flex-end; padding: 0 24px 16px; flex-wrap: wrap }
.hm-wrap { flex-wrap: wrap }
.hm-grow { flex: 1; min-width: 200px }
.hm-end { margin-left: auto }
.hm-pad { padding: 0 24px 12px; margin: 0 }
.hm-field { display: flex; flex-direction: column; gap: 6px; font-size: 10px; color: #837e76 }
.hm-field select, .hm-field input { max-width: none; min-width: 150px; font-size: 12px; min-height: 40px; border: 1px solid #e2e0de; border-radius: 6px; background: #fff; padding: 8px 10px; color: #4f4c47 }
.hm-dayctl { display: flex; gap: 6px; align-items: center }
.hm-dayctl .btn { padding: 8px 11px }
.hm-daynote { padding: 0 24px 14px; font-size: 12px; color: #6d6860 }
.hm-lock { display: inline-flex; gap: 5px; align-items: center; color: #8d7255; font-weight: 550 }
.hm-lock .icon { width: 13px; height: 13px }
.hm-reglist { display: flex; flex-direction: column; padding: 0 24px }
.hm-row { display: grid; grid-template-columns: minmax(170px, 1.2fr) 248px minmax(120px, 1fr) minmax(130px, .8fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #edeceb }
.hm-row.hm-hasval { background: linear-gradient(90deg, #f6f5f1, transparent 70%) }
.hm-who { display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: #8a857c }
.hm-who b { font-size: 12.5px; color: #3f3d39; font-weight: 550 }
.hm-hours { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #8a857c }
.hm-hours input { width: 78px; min-height: 42px; text-align: center; font-size: 15px; font-weight: 600; border: 1px solid #d9d7d3; border-radius: 6px; padding: 6px; background: #fff; color: #3f3d39 }
.hm-quick { min-width: 40px; min-height: 42px; border: 1px solid #dedddb; background: #f5f5f4; border-radius: 6px; font-size: 12px; font-weight: 600; color: #59554f }
.hm-quick:hover { background: #e9e8e6 }
.hm-quick:disabled, .hm-hours input:disabled { opacity: .5 }
.hm-note { border: 1px solid #e2e0de; border-radius: 6px; padding: 10px; font-size: 11px; min-height: 42px; background: #fcfcfb; width: 100% }
.hm-warn { font-size: 10px; min-height: 14px }
.hm-over { color: #a04e36; font-weight: 600; display: inline-flex; align-items: center; gap: 5px }
.hm-over .icon { width: 13px; height: 13px }
.hm-other { color: #8d7255 }
.hm-pill { display: inline-block; font-size: 9.5px; padding: 2px 7px; border-radius: 10px; background: #ecebe8; color: #5f5b54; width: fit-content }
.hm-foot { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; padding: 14px 24px; background: #fffffff2; border-top: 1px solid #e6e5e3; backdrop-filter: blur(4px) }
.hm-total { margin-right: auto; font-size: 11px; color: #6d6860 }
/* tipos de ausência */
.hm-t0, .hm-c.hm-t0 { background: #dcebd8; color: #3b6b34 }
.hm-t1, .hm-c.hm-t1 { background: #f3e1c4; color: var(--magni-gold-dark) }
.hm-t2, .hm-c.hm-t2 { background: #e4eaf5; color: #3c5a8c }
.hm-t3, .hm-c.hm-t3 { background: #f4d5cd; color: #9a3a26 }
.hm-t4, .hm-c.hm-t4 { background: #ead8ee; color: #6e3d7c }
.hm-t5, .hm-c.hm-t5 { background: #e6e4df; color: #5f5b54 }
/* mapa */
.hm-pernav { display: flex; align-items: center; gap: 8px }
.hm-pertitle { display: flex; flex-direction: column; min-width: 190px; text-align: center; font-size: 10px; color: #8a857c }
.hm-pertitle b { font-size: 14px; color: #3f3d39; font-weight: 600 }
.hm-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 24px 14px; font-size: 10px; color: #7c776f; align-items: center }
.hm-legend span { display: inline-flex; align-items: center; gap: 6px }
.hm-legend i { font-style: normal; font-weight: 600; font-size: 9px; padding: 2px 6px; border-radius: 4px }
.hm-fe-key { width: 12px; height: 12px; background: repeating-linear-gradient(45deg, #efe4d5, #efe4d5 3px, #f7efe3 3px, #f7efe3 6px); border-radius: 3px }
.hm-hint { color: #9a958d; margin-left: auto }
.hm-mapwrap { padding: 0 24px }
.hm-map { border-collapse: separate; border-spacing: 0; font-size: 10px; width: max-content; min-width: 100% }
.hm-map th, .hm-map td { padding: 0; border-bottom: 1px solid #edeceb; text-align: center }
.hm-map .hm-d { min-width: 21px; width: 21px; padding: 6px 0; font-size: 10px; color: #6d6860; font-weight: 550 }
.hm-map .hm-d span { display: block; font-size: 7px; color: #a29d95; font-weight: 400 }
.hm-sticky { position: sticky; left: 0; background: #fff; z-index: 2; text-align: left !important; min-width: 120px; padding: 8px 6px 8px 0 !important }
.hm-name { font-size: 11px; color: #3f3d39; font-weight: 550 }
.hm-name span { display: block; font-size: 9px; color: #a29d95; font-weight: 400 }
.hm-c { height: 34px; cursor: pointer; font-size: 8.5px; font-weight: 700; border-left: 1px solid #f3f2f0 }
.hm-c:hover { outline: 2px solid #59554f55; outline-offset: -2px }
.hm-we { background: #f6f5f3 }
.hm-fe { background: repeating-linear-gradient(45deg, #efe4d5, #efe4d5 3px, #f7efe3 3px, #f7efe3 6px) }
.hm-d.hm-today { box-shadow: inset 0 -2px #59554f }
.hm-c.hm-t0, .hm-c.hm-t1, .hm-c.hm-t2, .hm-c.hm-t3, .hm-c.hm-t4, .hm-c.hm-t5 { background-image: none }
.hm-map .hm-sum { min-width: 50px; padding: 0 6px; font-size: 11px; color: #6d6860; border-left: 1px solid #edeceb }
.hm-map th.hm-sum { font-size: 9px; color: #928d85; font-weight: 500; white-space: nowrap }
.hm-neg { color: #a04e36 }
/* conflitos */
.hm-check { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #6d6860 }
.hm-check input { width: auto !important; margin: 0 !important; min-height: 0 !important; display: inline-block !important }
.hm-inline { align-self: center; padding-top: 14px }
.hm-clist { padding: 0 24px }
.hm-crow { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.6fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #edeceb }
.hm-crow.hm-done { opacity: .6 }
.hm-cwho { display: flex; flex-direction: column; gap: 2px; font-size: 10px; color: #8a857c }
.hm-cwho b { font-size: 12.5px; color: #3f3d39; font-weight: 550 }
.hm-ctype { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #6d6860 }
.hm-tag { width: fit-content; font-size: 9.5px; font-weight: 600; padding: 2px 8px; border-radius: 10px }
.hm-tag-mais_de_8h { background: #f4d5cd; color: #9a3a26 }
.hm-tag-sem_registo { background: #f3e1c4; color: var(--magni-gold-dark) }
.hm-cact { display: flex; gap: 8px }
/* relatórios, tabelas */
.hm-seg { display: flex; gap: 6px }
.hm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; padding: 0 24px 18px }
.hm-stats div { border: 1px solid #e3e1df; border-radius: 8px; padding: 12px 14px; background: #fcfcfb }
.hm-stats span { display: block; font-size: 10px; color: #8a857c }
.hm-stats b { font-size: 20px; color: #3f3d39; font-weight: 600 }
.hm-two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: start }
.hm-two .table-wrap { padding: 0 0 0 24px }
.hm-two .table-wrap:last-child { padding: 0 24px 0 0 }
.hm-h3 { font-size: 12px; padding: 20px 24px 6px; margin: 0; color: #59554f }
.hm-tbl td, .hm-tbl th { padding: 11px 10px }
.hm-tbl .r { text-align: right }
.hm-sub { display: block; font-size: 9.5px; color: #a29d95; font-weight: 400 }
.hm-off { opacity: .55 }
.hm-bar-pct { height: 6px; background: #ecebe8; border-radius: 3px; overflow: hidden; min-width: 90px }
.hm-bar-pct i { display: block; height: 100%; background: #7b9a6c }
.hm-bar-pct.warn i { background: #c79a3c }
.hm-bar-pct.over i { background: #a04e36 }
@media (max-width: 820px) {
  .hm-row { grid-template-columns: 1fr auto; gap: 8px 12px }
  .hm-row .hm-note { grid-column: 1 / -1 }
  .hm-row .hm-warn { grid-column: 1 / -1; min-height: 0 }
  .hm-crow { grid-template-columns: 1fr; gap: 8px }
  .hm-two { grid-template-columns: 1fr }
  .hm-two .table-wrap, .hm-two .table-wrap:last-child { padding: 0 24px }
  .hm-hint { margin-left: 0; width: 100% }
  .hm-bar, .hm-legend, .hm-reglist, .hm-clist, .hm-foot, .hm-daynote, .hm-stats, .hm-mapwrap { padding-left: 14px; padding-right: 14px }
  .hm-field select, .hm-field input { min-width: 0; width: 100% }
  .hm-field { flex: 1 1 140px }
}

/* ---- v16: Assiduidade (ausências), Seguros, preço ao cliente ---- */
.hm-aus{min-height:42px;border:1px solid var(--line,#ddd);background:transparent;border-radius:8px;padding:6px 10px;font:inherit;font-size:.82rem;cursor:pointer;margin-left:0;white-space:nowrap}
.hm-aus:hover:not(:disabled){background:rgba(0,0,0,.05)}.hm-aus:disabled{opacity:.45;cursor:default}
.hm-rever{border:1px solid var(--line,#e2ddd3);border-radius:12px;padding:14px;margin-bottom:16px;background:rgba(193,154,59,.08)}
.hm-rever-empty{display:flex;flex-direction:column;gap:2px;background:transparent}
.hm-rever-head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;margin-bottom:10px}
.hm-rever-head .hm-sub{display:block;max-width:60ch}
.hm-rever-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--line,#e8e3d9)}
.hm-rever-who span{display:block;font-size:.82rem;opacity:.7}
.hm-rever-btns{display:flex;gap:6px}
.hm-rever-row select{padding:7px 8px;border-radius:8px;border:1px solid var(--line,#ccc);font:inherit}
.hm-over-txt{color:#b3261e}.hm-ok-txt{color:#2e7d32}
.sg-late{color:#b3261e;font-weight:600}.sg-soon{color:#9a6a00;font-weight:600}
.sg-row{display:grid;grid-template-columns:84px 1fr auto auto;gap:12px;align-items:center;padding:10px 4px;border-top:1px solid var(--line,#e8e3d9)}
.sg-row:first-of-type{border-top:0}
.sg-date b{display:block}.sg-date span{font-size:.8rem;opacity:.75}
.sg-main span{display:block;font-size:.82rem;opacity:.7}
.sg-val{font-weight:600;white-space:nowrap}
.sg-note{margin:0 0 14px}
.pf-global{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:10px 0}
.pf-global label{display:flex;flex-direction:column;gap:4px;font-size:.84rem}
.pf-global input,.pf-tbl input{padding:7px 8px;border:1px solid var(--line,#ccc);border-radius:8px;font:inherit;width:100%;max-width:110px;text-align:right}
.pf-totals{margin-top:12px}
@media (max-width:640px){
  .hm-rever-row{grid-template-columns:1fr}.hm-rever-btns{justify-content:flex-end}
  .sg-row{grid-template-columns:70px 1fr}.sg-val,.sg-row .btn{grid-column:2}
  .hm-aus{margin-left:0}
}
.ob-ch{border:1px solid var(--line,#e2ddd3);border-radius:12px;padding:12px;margin:12px 0}
.ob-ch-head{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.ob-ch-head input{flex:1;font-weight:600;padding:8px 10px;border:1px solid var(--line,#ccc);border-radius:8px;font:inherit}
.ob-ch-btns{display:flex;gap:4px}
.ob-lines{width:100%;border-collapse:collapse;font-size:.85rem}
.ob-lines th{font-weight:500;text-align:left;opacity:.65;padding:4px 4px;font-size:.75rem}
.ob-lines td{padding:3px 3px}
.ob-lines input{width:100%;padding:6px 7px;border:1px solid var(--line,#ddd);border-radius:7px;font:inherit;font-size:.85rem}
.ob-lines .ob-w{min-width:200px}.ob-lines .ob-s{width:64px}.ob-lines .ob-n{width:78px;text-align:right}
.ob-tot{margin-top:12px}
.pz-mg{display:flex;flex-direction:column;font-size:.7rem;opacity:.85;gap:2px}
.pz-mg input{width:84px;padding:6px 7px;border:1px solid var(--line,#ccc);border-radius:7px;font:inherit;font-size:.85rem;text-align:right}
.ob-ch-sum{font-size:.82rem;opacity:.75;margin:-2px 0 8px}
.pz-acts{white-space:nowrap}.pz-acts .btn{margin-left:4px;padding:6px 10px}
@media (max-width:640px){.pz-acts{white-space:normal}.ob-ch-head{flex-wrap:wrap}}
.ob-lines td.c{text-align:center}.ob-lines td.c input{width:auto}
.pz-ind b{font-size:1rem}.pz-kpis{margin:12px 0 0}

/* Hoje */
.hj-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap;margin-bottom:22px}
.hj-hero h1{font-size:34px;letter-spacing:-1px;margin:6px 0 4px}
.hj-hero p{margin:0;color:#79746c}
.hj-alerts{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-bottom:26px}
.hj-alert{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:12px;background:#fff;border:1px solid #e4e3e1;border-left:4px solid var(--magni-gold);border-radius:10px;padding:14px 16px;color:inherit;text-decoration:none;transition:.18s}
.hj-alert:hover{border-color:#b4b1ac;transform:translateY(-1px)}
.hj-ic{display:flex;color:#928e86;background:#f2f2f1;padding:7px;border-radius:7px}
.hj-ic .icon{width:16px;height:16px}
.hj-n{font-size:26px;font-weight:560;letter-spacing:-1px;line-height:1}
.hj-t b{display:block;font-size:13px;font-weight:560}
.hj-t small{display:block;color:#928e86;font-size:11px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hj-ok{grid-column:1/-1;display:flex;gap:14px;align-items:center;background:#f3f7f1;border:1px solid #dbe7d6;border-radius:10px;padding:16px 18px;color:#3f6b3a}
.hj-ok small{display:block;color:#6d8a68}
.hj-stats .stat{display:block;color:inherit;text-decoration:none}
.hj-chart .section-top{align-items:center}
.hj-sub{margin:3px 0 0;font-size:12px}
.hj-bars{padding:6px 24px 20px}
.hj-bar{display:grid;grid-template-columns:minmax(150px,230px) 1fr 86px minmax(130px,190px);gap:14px;align-items:center;padding:11px 0;border-top:1px solid #f0efed;color:inherit;text-decoration:none}
.hj-bar:first-child{border-top:0}
.hj-bar:hover .hj-bn{text-decoration:underline}
.hj-bn{font-weight:540;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hj-track{height:10px;background:#f2f2f1;border-radius:6px;overflow:hidden}
.hj-track i{display:block;height:100%;background:var(--magni-gold);border-radius:6px}
.hj-bv{text-align:right;font-size:12px;color:#79746c}
.hj-bv b{color:#2f2e2b;font-size:14px}
.hj-bp{font-size:11px;color:#928e86}
.hj-bp.warn{color:#b07a4c}
.hj-bp.over{color:#b3392f;font-weight:560}
@media (max-width:760px){.hj-hero h1{font-size:28px}.hj-bar{grid-template-columns:1fr 70px;row-gap:6px}.hj-track{grid-column:1/-1;order:3}.hj-bp{grid-column:1/-1;order:4}}

.hj-obras{margin-bottom:26px}
.hj-obras .section-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.hj-obras .section-top h2{margin:0}
.hj-obras .project-grid{margin:0;padding:0}.hj-obras .section-top{padding:0}

/* Seguros por email */
.sg-ents{margin-bottom:22px}
.sg-ent{padding:14px 18px;border-top:1px solid #f0efed}
.sg-ent:first-of-type{border-top:0}
.sg-ent-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:8px}
.sg-ent-head b{display:block}
.sg-ent-acts{display:flex;gap:8px;flex-shrink:0}
.sg-ent-row{display:grid;grid-template-columns:minmax(200px,1fr) 110px minmax(150px,200px) auto;gap:14px;align-items:center;padding:9px 0;border-top:1px dashed #ecebe9}
.sg-ent-row:first-of-type{border-top:0}
.sg-ent-main b{font-weight:560}
@media (max-width:760px){.sg-ent-row{grid-template-columns:1fr auto}.sg-ent-per{grid-column:1/-1}}

/* Subempreitadas */
.sb-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.sb-card{display:flex;flex-direction:column;gap:8px;text-align:left;background:#fff;border:1px solid #e8e4dd;border-radius:14px;padding:16px;cursor:pointer;font:inherit;color:inherit;min-width:0}
.sb-card:hover{border-color:#26282b}
.sb-card h3{margin:0;font-size:17px;line-height:1.2}
.sb-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.sb-num{font-weight:800;font-size:22px;letter-spacing:.02em}
.sb-chip{display:inline-block;padding:2px 9px;border-radius:99px;font-size:11px;font-weight:700;background:#f0eeea;color:#6b665e;white-space:nowrap}
.sb-chip.ok{background:#d8eedf;color:#27704b}.sb-chip.sub{background:#fbebc8;color:#8f5a00}.sb-chip.bad{background:#f7ddd8;color:#a8372a}
.sb-bar{height:6px;border-radius:3px;background:#e8e4dd;overflow:hidden}.sb-bar i{display:block;height:100%;background:#27704b}
.sb-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:2px 0 0}
.sb-stats dt,.sb-tile dt{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#8a857c}
.sb-stats dd{margin:2px 0 0;font-weight:700;font-size:13px;overflow-wrap:anywhere}
.sb-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0}
.sb-tile{background:#fff;border:1px solid #e8e4dd;border-radius:12px;padding:12px;min-width:0}
.sb-tile dd{margin:4px 0 0;font-weight:800;font-size:19px;overflow-wrap:anywhere}
.sb-tile small{display:block;color:#8a857c;font-size:11px;margin-top:3px}
.sb-tile.warn dd{color:#a8372a}
.sb-list{display:flex;flex-direction:column;gap:10px}
.sb-row{display:flex;justify-content:space-between;align-items:center;gap:14px;text-align:left;background:#fff;border:1px solid #e8e4dd;border-radius:12px;padding:13px 14px;cursor:pointer;font:inherit;color:inherit;width:100%}
.sb-row:hover{border-color:#26282b}.sb-r{text-align:right;font-weight:700}
.sb-tbl .sub{color:#8f5a00}.sb-tbl .obra{color:#1b5a9e}.sb-tbl .ok{color:#27704b}
.sb-in{width:84px;text-align:right;padding:6px 8px;border:1.5px solid #d8d3ca;border-radius:8px;font:inherit;font-weight:600}
.sb-in.sub{border-color:#e0b25a}.sb-in.verif{border-color:#7fa8d6}.sb-in.aprov{border-color:#6cb48c}
.sb-in:disabled{background:#f4f2ee;color:#6b665e}
.sb-diff td{background:#fff8e6}
.sb-edit{display:flex;flex-direction:column;gap:6px;max-height:50vh;overflow:auto;padding:2px}
.sb-edit-row{display:grid;grid-template-columns:1fr 120px;gap:8px}
.sb-edit-row input{padding:8px;border:1px solid #d8d3ca;border-radius:8px;font:inherit;min-width:0}
@media (max-width:600px){.sb-in{width:68px}.sb-edit-row{grid-template-columns:1fr 100px}}

/* Menu no telemóvel: 4 atalhos + "Mais" */
.more-sheet{display:none}
@media (max-width:580px){
  nav .nav-more{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 4px;border:0;border-radius:5px;background:none;color:#c3c0bc;font:inherit;font-size:9px;position:relative;cursor:pointer;min-width:0}
  nav .nav-more.active,nav .nav-more[aria-expanded=true]{background:#484540;color:#f6f4e9}
  nav .nav-more .icon{width:21px;height:21px}
  nav .nav-dot{position:absolute;top:6px;right:calc(50% - 18px);width:8px;height:8px;border-radius:50%;background:#d3ba85}
  nav a>span:first-of-type{font-size:9px}
  .more-sheet:not([hidden]){display:block;position:fixed;inset:0 0 calc(66px + env(safe-area-inset-bottom,0px)) 0;z-index:29;background:rgba(20,20,20,.45)}
  .more-card{position:absolute;left:10px;right:10px;bottom:8px;background:#2a2926;border:1px solid #494742;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 30px rgba(0,0,0,.4)}
  .more-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
  .more-grid a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 4px;border-radius:12px;background:#35332f;color:#e6e3dc;font-size:12px;text-align:center;position:relative}
  .more-grid a.active{background:#484540;color:#fff}
  .more-grid a .icon{width:24px;height:24px}
  .more-grid a .nav-count{position:absolute;top:6px;right:8px;margin:0}
  .more-logout{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #494742;background:none;color:#c3c0bc;border-radius:10px;padding:11px;font:inherit;font-size:13px}
  .more-logout .icon{width:16px;height:16px}
}

/* Seguros: o que precisa de atenção */
.sg-att{margin:18px 0 22px;padding:18px;background:#fff;border:1px solid #e8e4dd;border-radius:14px}
.sg-att-ok{background:#d8eedf;border-color:#b6dcc3;color:#27704b}
.sg-att-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.sg-att-head h2{margin:0;font-size:20px}
.sg-att-grp{margin-top:16px}
.sg-att-grp h3{margin:0;font-size:14px;letter-spacing:.04em;text-transform:uppercase}
.sg-att-grp>.hm-sub{margin:2px 0 8px;font-size:12px}
.sg-att-row{display:grid;grid-template-columns:190px 1fr auto;gap:12px;align-items:center;padding:10px 12px;border-radius:10px;margin-top:6px;background:#faf9f6;border-left:5px solid #d8d3ca}
.sg-att-row.late{background:#fdf0ed;border-left-color:#c8402f}
.sg-att-row.soon{background:#fff8e6;border-left-color:#e0a21a}
.sg-att-row.dados{background:#f1eefb;border-left-color:#7a4dff}
.sg-att-main{min-width:0}.sg-att-main b{display:block}
.sg-att-acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.sg-b{display:inline-block;padding:3px 10px;border-radius:99px;font-size:11px;font-weight:700;line-height:1.3;background:#f0eeea;color:#6b665e}
.sg-b.late{background:#c8402f;color:#fff}.sg-b.soon{background:#ffb400;color:#3a2a00}.sg-b.dados{background:#7a4dff;color:#fff}.sg-b.ok{background:#d8eedf;color:#27704b}
@media (max-width:700px){.sg-att-row{grid-template-columns:1fr}.sg-att-acts{justify-content:flex-start}}

/* Condições de pagamento (v35) */
.pag-tbl select,.pag-tbl input{padding:6px 8px;border:1px solid var(--line,#ccc);border-radius:8px;font:inherit;background:transparent;color:inherit}
.pag-tbl input{width:100%;min-width:100px;max-width:130px}
.pag-edit td:nth-child(2){min-width:240px}
.pag-tbl td:nth-child(2){min-width:220px}
.pag-tbl tfoot td{border-top:2px solid var(--line,#ccc)}
.pag-tbl .pag-datas{display:block;margin-top:4px;font-size:.78rem;opacity:.75}
.pag-tbl tr.pag-recebido td:first-child b{color:var(--green,#2f8a4c)}
.pag-tbl tr.pag-faturado td:first-child b{color:var(--amber,#b7791f)}
.pag-edit input{width:100%;padding:7px 8px;border:1px solid var(--line,#ccc);border-radius:8px;font:inherit;background:transparent;color:inherit}
.pag-edit td:nth-child(3) input{max-width:90px;text-align:right}

.check-grid[hidden] { display: none }
.check-list .check-grid[data-perm-list] { margin-top: 6px; border-top: 1px solid #eeede9 }
/* Seguros: automóveis pela matrícula */
.sg-car { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap }
.sg-car .plate { height: 22px; font-size: 12px }
.hm-tbl .sg-car + .hm-sub { margin-top: 3px }

/* v39 — Margens das obras */
.mg-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 14px }
.mg-bar .inline-help { margin: 0; flex: 1; min-width: 220px }
.mg-tbl td { vertical-align: top }
.mg-tbl tr.mg-risk td:first-child { box-shadow: inset 3px 0 0 #b3452f }
.mg-flag { display: block; font-size: 11px; color: #b3452f; font-weight: 600; line-height: 1.35 }
.mg-flag + .mg-flag { margin-top: 3px }
.mg-ok { font-size: 11px; color: #4f7a52 }
.mg-sem { margin-top: 12px }
.mg-alerts { border: 1px solid #ecc9bf; background: #fdf6f3; border-radius: 8px; padding: 10px 14px; margin: 0 0 14px }
.mg-alerts p { display: flex; gap: 8px; align-items: center; margin: 0; color: #b3452f; font-weight: 600; font-size: 13px }
.mg-alerts p + p { margin-top: 6px }
.mg-alerts .icon { width: 16px; height: 16px; flex: none }
.mg-form { margin-top: 16px; border-top: 1px solid #ecebe8; padding-top: 4px }
.mg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.mg-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #6f6a62 }
@media (max-width: 760px) { .mg-grid { grid-template-columns: 1fr } }
.mg-grid label { font-size: 11px; color: #817c73; gap: 0 }
.mg-grid input { display: block; width: 100%; margin-top: 6px; border: 1px solid #dad9d6; border-radius: 5px; padding: 10px; background: #fff; color: #4f4c47; font-size: 12px }

/* v40 · Trabalhos a mais */
.tm-tbl .btn.small{white-space:nowrap}
.tm-tbl td:first-child{min-width:200px}
.tm-tbl .tm-desc{max-width:340px;white-space:pre-line}
.tm-tbl .tm-nota{color:#9a6a00}
.tm-tbl .tm-fat{min-width:140px}
.badge.tm-b-sugerido{background:#fff0e3;color:#b16f3d}
.badge.tm-b-a-aguardar-cliente{background:#f8f2dc;color:#a18436}
.badge.tm-b-aprovado{background:#e7f3ea;color:#2f7a45}
.badge.tm-b-executado{background:#eef2f6;color:#4f6b82}
.badge.tm-b-rejeitado{background:#efefee;color:#8a857e;text-decoration:line-through}
.tm-tbl td:last-child{width:1%}.tm-tbl .btn.small{width:auto;min-width:max-content;padding:6px 12px}

/* Orçamentos ao cliente: circuito de revisão e envio */
.badge.em-revisao,.badge.pendente{background:#f8f2dc;color:#8f7630}
.badge.pronto-a-enviar,.badge.aprovado{background:#e9f1ea;color:#3f6b47}
.badge.alteracoes-pedidas,.badge.alteracoes{background:#fff0e3;color:#a4643a}
.badge.anulado{background:#efefee;color:#9a958d}
.pz-acts{white-space:normal}.pz-next{margin-top:6px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}.pz-next .btn{margin-left:0}
.pz-sub{color:#7a756d;margin-top:2px;max-width:48ch}
.pz-hist h3{font-size:.85rem;margin:18px 0 6px}
.pz-ev{list-style:none;margin:0;padding:0}.pz-ev li{padding:6px 0;border-bottom:1px solid #eee;font-size:12px}
/* v42 — Margens como vista dentro de Obras */
.mg-view { padding: 18px 24px 8px; border-top: 1px solid #ecebe8 }
@media (max-width: 580px) { .mg-view { padding: 14px 14px 6px } }

/* v43 · Marca da empresa sem logótipo, faixa da versão de teste e opiniões */
.brand-text {
    display: block;
    line-height: 1.25;
    font-size: 15px;
    font-weight: 700;
    color: var(--magni-ink);
    padding: 6px 4px;
    overflow-wrap: anywhere
}

.mobile-brand .brand-text {
    font-size: 13px;
    padding: 0
}

.test-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #fdf4e3;
    border-bottom: 1px solid #efd9ad;
    color: #5b4a2a;
    font-size: 13px;
    padding: 8px 42px
}

.test-op-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--magni-ink);
    border: 0;
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer
}

.test-op-btn .icon {
    width: 15px;
    height: 15px;
    stroke: currentColor
}

.op-stars {
    border: 0;
    padding: 0;
    margin: 0 0 14px
}

.op-stars legend {
    font-size: 13px;
    margin-bottom: 8px
}

.op-stars div {
    display: flex;
    gap: 8px
}

.op-stars label {
    cursor: pointer
}

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

.op-stars span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #ddd9cf;
    border-radius: 8px;
    font-weight: 700;
    background: #fff
}

.op-stars input:checked + span {
    background: var(--magni-ink);
    border-color: var(--magni-ink);
    color: #fff
}

.op-stars input:focus-visible + span {
    outline: 2px solid var(--magni-gold);
    outline-offset: 2px
}

@media (max-width: 580px) {
    .test-banner {
        padding: 8px 16px
    }
}

/* Perguntar à app (v44) */
.ask-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    background: var(--magni-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px 6px 10px;
    cursor: pointer
}

.ask-btn[hidden] { display: none }
.ask-btn .icon { width: 15px; height: 15px; stroke: currentColor }
.ask-body { display: flex; flex-direction: column; gap: 12px }

.ask-log {
    min-height: 180px;
    max-height: 52vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px
}

.ask-empty p { margin: 0 0 10px; color: #6a665f }
.ask-ex { display: flex; flex-wrap: wrap; gap: 6px }
.ask-ex .chip { text-align: left; white-space: normal }

.ask-q, .ask-a {
    max-width: 88%;
    padding: 9px 12px;
    border-radius: 12px;
    white-space: pre-wrap;
    line-height: 1.45
}

.ask-q { align-self: flex-end; background: var(--magni-ink); color: #fff; border-bottom-right-radius: 4px }
.ask-a { align-self: flex-start; background: #f1efea; color: #2f2e2b; border-bottom-left-radius: 4px }
.ask-a.err { background: #fbeceb; color: #8a2a22 }

.ask-dots { display: inline-flex; gap: 4px; padding: 4px 0 }
.ask-dots i { width: 6px; height: 6px; border-radius: 50%; background: #a8a398; animation: ask-dot 1s infinite ease-in-out }
.ask-dots i:nth-child(2) { animation-delay: .15s }
.ask-dots i:nth-child(3) { animation-delay: .3s }
@keyframes ask-dot { 0%, 80%, 100% { opacity: .3 } 40% { opacity: 1 } }

.ask-form { display: flex; gap: 8px; align-items: center }
.ask-form input { flex: 1; min-width: 0; font-size: 15px; padding: 11px 12px; border: 1px solid #ddd9cf; border-radius: 8px; background: #fff }
.ask-send { padding: 10px 12px }

.ask-mic {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ddd9cf;
    background: #fff;
    color: var(--magni-ink);
    cursor: pointer
}

.ask-mic .icon, .ask-send .icon { width: 18px; height: 18px; stroke: currentColor }
.ask-mic.on { background: #c0392b; border-color: #c0392b; color: #fff; animation: ask-pulse 1.2s infinite }
@keyframes ask-pulse { 0% { box-shadow: 0 0 0 0 rgba(192, 57, 43, .45) } 70% { box-shadow: 0 0 0 10px rgba(192, 57, 43, 0) } 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0) } }
.ask-voz { font-size: 12px; color: #6a665f; display: flex; align-items: center; gap: 6px }
.ask-voz .icon { width: 14px; height: 14px }

@media (max-width: 580px) {
    .ask-btn { padding: 7px }
    .ask-btn span { display: none }
}

/* v45: apagar fotos e registos (administração) */
.media-actions {
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px
}

.del-reg-btn {
    color: #a33
}

.timeline-tags .new-dot + .read-btn + .del-reg-btn {
    margin-left: 12px
}

/* v46: ecrã do orçamento maior, por passos, e considerações obrigatórias/facultativas */
.pz-modal{width:min(1240px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);font-size:14px}
.pz-modal .dialog-head h2{font-size:19px}
.pz-modal .form-body{padding:20px 24px 0}
.pz-modal .form-body label{font-size:13px;color:#5f5a52;font-weight:500}
.pz-modal .form-body input,.pz-modal .form-body textarea,.pz-modal .form-body select{font-size:14px;padding:10px 12px;border-radius:8px}
.pz-modal .form-body input:focus,.pz-modal .form-body textarea:focus,.pz-modal .form-body select:focus{outline:2px solid var(--magni-gold);outline-offset:0;border-color:var(--magni-gold)}
.pz-card{background:#fff;border:1px solid #e3e1df;border-radius:14px;padding:18px 20px 16px;margin:0 0 18px}
.pz-step{display:flex;align-items:baseline;gap:10px;font-size:17px;font-weight:600;color:#2c2a27;margin:0 0 14px}
.pz-step span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--magni-ink);color:#fff;font-size:14px;flex:none;align-self:center}
.pz-step small{font-size:13px;font-weight:400;color:#8a857c}
.pz-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0 16px}
.pz-grid .pz-wide{grid-column:span 2}
.pz-grid4{grid-template-columns:repeat(4,1fr)}
.pz-info{border:1px dashed #dcd8d1;border-radius:8px;padding:9px 12px;margin-bottom:15px;align-self:end;background:#fcfcfb}
.pz-info span{display:block;font-size:12px;color:#8a857c}.pz-info b{font-size:15px;color:#2c2a27}
.pz-hint{font-size:13px;color:#6f6a61;margin:0 0 14px;line-height:1.5}
.pz-modal .inline-help{font-size:12px;margin-top:10px;padding-top:0}
.pz-modal .ob-ch{background:#fcfcfb;padding:14px}
.pz-modal .ob-ch-head input{font-size:15px}
.pz-chn{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:7px;background:#efece6;font-size:13px;font-weight:600;color:#5f5a52}
.pz-modal .ob-ch-sum{font-size:13px;opacity:.85}
.pz-modal .ob-lines{font-size:14px}
.pz-modal .ob-lines th{font-size:12px;opacity:.75}
.pz-modal .ob-lines input{font-size:14px;padding:8px 9px;margin:0}
.pz-modal .ob-lines .ob-w{min-width:280px}.pz-modal .ob-lines .ob-n{width:90px}
.pz-modal .ob-lines td.pz-lt{white-space:nowrap;font-weight:500}
.pz-lbtn{white-space:nowrap}.pz-star{color:#b9b3a8;font-size:15px;line-height:1}.pz-star:hover{color:var(--magni-gold-dark)}
.pz-modal .pz-mg{font-size:12px}.pz-modal .pz-mg input{margin:0}
.pz-chacts{margin:6px 0 16px;flex-wrap:wrap}
.pz-modal .hm-stats{padding:0}.pz-modal .hm-stats span{font-size:12px}.pz-modal .hm-stats b{font-size:18px}
.pz-cs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px;margin-bottom:16px}
.pz-cs{border:1px solid #e3e1df;border-radius:10px;padding:12px 14px;background:#fcfcfb}
.pz-cs h4{font-size:14px;margin:0 0 8px;color:#2c2a27}
.pz-cs ul{list-style:none;margin:0;padding:0}
.pz-cs li{padding:6px 0;border-top:1px solid #efede9;font-size:13.5px;line-height:1.45;display:flex;gap:8px;align-items:flex-start}
.pz-cs li:first-child{border-top:0}
.pz-cs-note{font-size:12.5px;color:#8a857c;margin:0 0 6px;font-style:italic}
.pz-tag{flex:none;font-size:11px;font-weight:600;background:#2c2a27;color:#fff;border-radius:20px;padding:2px 8px;margin-top:1px}
.pz-obr{color:#4f4c47}
.pz-modal .form-body label.pz-opt,.pz-opt{display:flex;gap:10px;align-items:flex-start;margin:0;cursor:pointer;font-size:13.5px;color:#3f3d39;font-weight:400}
.pz-modal .form-body .pz-opt input,.pz-opt input{width:19px;height:19px;flex:none;margin:1px 0 0;padding:0;accent-color:var(--magni-gold-dark)}
.pz-count{display:inline-block;margin-left:6px;background:#fff3dc;color:var(--magni-gold-dark);border-radius:20px;padding:1px 10px;font-weight:600}
.pz-big small{font-weight:400;color:#8a857c}
.pz-prev{margin:4px 0 8px}.pz-prev summary{cursor:pointer;font-size:13px;color:var(--magni-gold-dark);font-weight:500;margin-bottom:8px}
.pz-prev pre{white-space:pre-wrap;font-family:inherit;font-size:13px;line-height:1.55;background:#fcfcfb;border:1px solid #e3e1df;border-radius:8px;padding:12px 14px;margin:0}
.linkish{background:none;border:0;padding:0;color:var(--magni-gold-dark);text-decoration:underline;cursor:pointer;font:inherit}
.pz-bar{position:sticky;bottom:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:0 -24px;padding:12px 24px;background:#fff;border-top:1px solid #e3e1df;box-shadow:0 -6px 18px #1817160f}
.pz-bar-tot{display:flex;gap:22px;flex-wrap:wrap}
.pz-bar-tot span{display:block;font-size:11.5px;color:#8a857c}.pz-bar-tot b{font-size:17px;color:#2c2a27}
.pz-bar-btns{display:flex;gap:8px}.pz-bar-btns .btn{padding:10px 16px;font-size:14px}
.pzm-head{display:flex;gap:12px;align-items:flex-end}.pzm-head label{flex:1}
.pzm-item{display:grid;grid-template-columns:1fr 150px auto;gap:8px;align-items:start;margin-bottom:8px}
.pzm-item textarea{min-height:44px!important;margin:0!important}.pzm-item select{margin:0!important}
.pzm-item.is-obr textarea{border-left:3px solid #2c2a27}
@media (max-width:820px){
  .pz-grid,.pz-grid4{grid-template-columns:1fr 1fr}.pz-grid .pz-wide{grid-column:span 2}
  .pz-modal .form-body{padding:14px 14px 0}.pz-card{padding:14px}.pz-bar{margin:0 -14px;padding:10px 14px}
  .pz-cs-grid{grid-template-columns:1fr}.pzm-item{grid-template-columns:1fr auto}.pzm-item select{grid-column:1}
}
@media (max-width:520px){.pz-grid,.pz-grid4{grid-template-columns:1fr}.pz-grid .pz-wide{grid-column:auto}.pz-bar-tot{gap:12px}.pz-bar-tot b{font-size:15px}}
.pz-prevbox{font-size:13px;line-height:1.5;background:#fcfcfb;border:1px solid #e3e1df;border-radius:8px;padding:6px 16px 12px}
.pz-prevbox h5{font-size:13.5px;margin:12px 0 4px;padding-bottom:3px;border-bottom:1px solid #e3e1df;color:#2c2a27}
.pz-prevbox p{margin:3px 0}.pz-prevbox p span{color:#8a857c;margin-right:2px}.pz-prevbox p.b{padding-left:18px}
.pz-modal .form-body textarea[name=consExtra]{min-height:70px}
@media (max-width:820px){.pz-modal .ob-ch-head{flex-wrap:wrap}.pz-modal .ob-ch-head input[data-pzc="title"]{flex:1 1 calc(100% - 40px)}}
/* v48: condições de pagamento — fase legível e coluna de valor em € */
.form-dialog:has(#pag-form){width:760px}
.pag-edit td:first-child input{min-width:120px}
.pag-edit td:nth-child(4) input{min-width:110px;max-width:130px;text-align:right}

/* v50: Fecho do mês */
.fx-state { font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e3e1df }
.fx-state .icon { width: 15px; height: 15px }
.fx-state.ready { background: #e6efe0; color: #3f6630; border-color: #c7dbbb }
.fx-state.open { background: #f7ecdc; color: var(--magni-gold-dark); border-color: #ead4b0 }
.fx-state.closed { background: #ecebe8; color: #59554f }
.fx-sec { padding: 6px 24px 18px; border-top: 1px solid #efeeec }
.fx-h2 { font-size: 15px; margin: 16px 0 8px; color: #2f2d2a; display: flex; align-items: center; gap: 8px }
.fx-h3 { font-size: 12px; margin: 14px 0 6px; color: #59554f }
.fx-sec .table-wrap { padding: 0 }
.fx-ok { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #3f6630; margin: 8px 0 }
.fx-ok .icon, .fx-sec .hm-alert .icon { width: 15px; height: 15px }
.fx-pad { padding: 4px 0 }
.fx-grp { border: 1px solid #e3e1df; border-radius: 8px; padding: 12px 14px; margin: 10px 0; background: #fcfcfb }
.fx-grp h3 { margin: 0; font-size: 13px; display: flex; align-items: center; gap: 8px }
.fx-grp > .hm-sub { margin: 2px 0 8px }
.fx-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) 2fr auto; gap: 10px 14px; align-items: center; padding: 9px 0; border-top: 1px solid #efeeec; font-size: 12px }
.fx-row:first-of-type { border-top: 0 }
.fx-who b, .fx-who span { display: block }
.fx-who span { font-size: 10.5px; color: #8a857c }
.fx-quote { font-weight: 600; white-space: pre-wrap; word-break: break-word }
.fx-det { color: #4a4743; word-break: break-word }
.fx-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center }
.fx-acts select { max-width: 160px }
.fx-done { opacity: .9 }
.fx-tag { display: inline-block; font-size: 9.5px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #f3e1c4; color: var(--magni-gold-dark); margin-right: 4px }
.fx-tag.ok { background: #e6efe0; color: #3f6630 }
.fx-chip { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 10px; background: #ecebe8; color: #4a4743; margin: 1px 0; white-space: nowrap }
.fx-obras { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px }
.fx-obra { border: 1px solid #e3e1df; border-radius: 8px; padding: 10px 12px }
.fx-obra h3 { font-size: 12.5px; margin: 0 0 6px }
.fx-obra h3 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap }
.fx-pdfobra { margin-left: auto; padding: 2px 8px; font-size: 11px; min-height: 0 }
.fx-mini td, .fx-mini th { padding: 6px 6px !important; font-size: 11.5px }
.fx-obs { white-space: pre-wrap; word-break: break-word; min-width: 220px }
.fx-obstbl .hm-sub { margin-top: 4px; color: var(--magni-gold-dark) }
.fx-concl ul { margin: 6px 0 12px; padding-left: 18px; font-size: 12.5px }
.fx-final { font-size: 18px; font-weight: 700; color: #2f2d2a; margin: 8px 0 12px }
.fx-anos { margin: 8px 24px 20px; border: 1px solid #e3e1df; border-radius: 8px }
.fx-anos summary { cursor: pointer; padding: 12px 14px; font-size: 12.5px; font-weight: 600 }
@media (max-width: 820px) {
  .fx-sec { padding-left: 14px; padding-right: 14px }
  .fx-anos { margin-left: 14px; margin-right: 14px }
  .fx-row { grid-template-columns: 1fr }
  .fx-acts { justify-content: flex-start }
  .hm-pernav { flex-wrap: wrap }
}

/* v52: Por faturar */
.f-nota .fx-tag { white-space: normal; margin-top: 3px }
.f-tbl td { vertical-align: middle }
.f-tbl { min-width: 760px }
.f-nota { color: #4a4743; min-width: 160px; max-width: 340px; word-break: break-word; font-size: 11.5px }
.f-in { width: 100%; min-width: 170px; font: inherit; font-size: 12px; padding: 7px 9px; border: 1px solid #d9d6d1; border-radius: 6px; background: #fff }
.f-acts { white-space: nowrap }
.f-acts .btn { margin-left: 4px }
.f-grp { padding: 10px 14px }
.f-grp-head { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap }
.f-tog { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; color: #232323; cursor: pointer; text-align: left }
.f-tog .fold-arrow { font-size: 20px }
.f-tog[aria-expanded="true"] .fold-arrow { transform: rotate(90deg) }
.f-grp-sum { flex: 1; font-size: 12px; color: #6f6a62; min-width: 180px }
.f-grp .table-wrap { margin-top: 8px }
.f-part { border-top: 1px solid #efeeec; padding-top: 10px; margin-top: 4px }
.f-cc { max-height: 55vh; overflow: auto }
.f-cc td { padding: 7px 10px }
@media (max-width: 700px) {
  .f-grp-head .fx-acts { width: 100%; justify-content: flex-start }
  .f-acts { white-space: normal }
}

.hm-golink { background: none; border: 0; padding: 0; font: inherit; color: var(--magni-gold-dark); text-decoration: underline; cursor: pointer }
.hm-golink:hover { color: #5c3b08 }
.f-check { padding-bottom: 12px }

/* v59: fecho do mês por passos, correções no próprio ecrã */
.fx-step { gap: 10px }
.fx-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #cfccc7; font-size: 12px; font-weight: 600; color: #3f3d39; background: #fff; flex: none }
.fx-num.ok { background: #e6efe0; border-color: #c7dbbb; color: #3f6630 }
.fx-num .icon { width: 14px; height: 14px }
.fx-fbar { padding: 0 0 8px }
.fx-left { justify-content: flex-start; margin-top: 8px }
.fx-row > .fx-obsin { grid-column: 1 / -1 }
.fx-obsin summary, .fx-conf > summary { cursor: pointer; font-size: 12px; color: #59554f; padding: 4px 0 }
.fx-conf > summary { font-size: 13px; font-weight: 600; color: #3f3d39; padding: 10px 0 }
.fx-conf[open] > summary { margin-bottom: 4px }
.fx-reglines { display: grid; gap: 8px }
.fx-regline { display: grid; grid-template-columns: minmax(0, 2fr) 80px minmax(0, 2fr); gap: 8px; align-items: end }
.fx-regline select, .fx-regline input { width: 100% }
.fx-regline .hm-sub { display: block; margin-bottom: 3px }
.fx-reghead { font-size: 10.5px; color: #8a857c; align-items: center }
@media (max-width: 640px) {
  .fx-regline { grid-template-columns: 1fr 80px }
  .fx-regline > input[name^="n"] { grid-column: 1 / -1 }
  .fx-reghead span:last-child { display: none }
}

/* v60: subempreiteiros na ficha da obra */
.cost-kpi.warn { border-color: #e9dcb8; background: #fbf8ef }
.cost-kpi.warn strong { color: #8a6a1f }
.mg-alerts p.warn { color: #8a6a1f }
.cost-table td .btn { padding: 4px 10px; font-size: 12px }
.sb-resumo { margin: 0 0 22px } .sb-resumo h2 { margin: 0 0 4px }

/* v61: ficha da obra com resumo, faixa de alertas e cartões por tema */
.ob-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0 12px }
.ob-kpi { display: grid; gap: 6px; align-content: start; text-align: left; background: #fff; border: 1px solid #e3e2e0; border-radius: 10px; padding: 14px 16px; transition: border-color .15s }
.ob-kpi:hover { border-color: #b9b3a8 }
.ob-kpi small { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #817c73; font-weight: 600 }
.ob-kpi strong { font-size: 24px; font-weight: 650; color: #232323; line-height: 1.15; font-variant-numeric: tabular-nums }
.ob-kpi strong em { font-style: normal; font-size: 14px; font-weight: 500; color: #817c73 }
.ob-kpi.crit strong { color: #a23b3b }
.ob-kpi-sub { font-size: 12px; color: #817c73 }
.ob-bar { display: block; height: 6px; border-radius: 99px; background: #efeeeb; overflow: hidden }
.ob-bar i { display: block; height: 100%; background: #2a2926; border-radius: 99px }
.ob-bar.ok i { background: #3f7a55 } .ob-bar.warn i { background: #9a7a1e } .ob-bar.crit i { background: #a23b3b }
.ob-attn { background: #fff; border: 1px solid #e3e2e0; border-radius: 10px; padding: 12px 16px; margin-bottom: 6px }
.ob-attn h3 { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #817c73; margin: 0 0 8px }
.ob-attn > div { display: flex; flex-wrap: wrap; gap: 8px }
.ob-attn-i { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 7px 11px; font-size: 13px; background: #f5edd2; color: #6e5612; text-align: left }
.ob-attn-i.crit { background: #f6e1e0; color: #9a3434 }
.ob-attn-i .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none }
.fold-group { margin: 22px 0 }
.fold-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px }
.fold-group-head h2 { font-size: 18px; margin: 0 }
.fold-group-head p { margin: 0; color: #817c73; font-size: 13px }
.fold-lock { font-size: 10.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #817c73; border: 1px solid #e3e2e0; border-radius: 99px; padding: 1px 8px }
.fold-group .folds { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0; align-items: start }
.fold-group .fold { transition: border-color .15s }
.fold-group .fold:hover { border-color: #b9b3a8 }
.fold-group .fold > summary { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; align-items: start; padding: 14px 34px 14px 16px; min-height: 86px }
.fold-group .fold > summary:hover { background: transparent }
.fold-group .fold-icon { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: #f0ebe3; color: #5f5444 }
.fold-group .fold-icon .icon { width: 18px; height: 18px }
.fold-group .fold-title { white-space: normal; font-size: 15px }
.fold-group .fold-summary { order: 0; flex-basis: auto; padding-left: 0; white-space: normal; font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.fold-group .fold-arrow { position: absolute; right: 14px; bottom: 12px; margin: 0 }
.fold-group .fold-flag > summary::after { content: ''; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: #c49a2c }
.fold-group .fold-flag.crit > summary::after { background: #a23b3b }
.fold-group .fold[open] { grid-column: 1 / -1; border-color: #2a2926 }
.fold-group .fold[open] > summary { min-height: 0 }
.fold-group .fold[open] .fold-summary { -webkit-line-clamp: unset; display: block }
.fold-group + .page-heading { margin-top: 8px }
@media (max-width: 580px) {
  .fold-group .fold > summary { padding: 12px 32px 12px 14px; min-height: 0 }
  .ob-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .ob-kpi strong { font-size: 20px }
}

/* v62: cabeçalho da obra compacto; as datas ficam numa linha por baixo do nome */
.detail-hero.ob-hero { grid-template-columns: 1fr 200px; margin-bottom: 0 }
.ob-hero .detail-info { padding: 18px 22px; display: grid; gap: 6px; align-content: center }
.ob-hero .detail-info h1 { margin: 0; font-size: 26px }
.ob-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13px; color: #817c73 }
.ob-meta b { color: #2f2e2b; font-weight: 600 }
.ob-hero .ob-where { margin: 0; font-size: 12px; color: #959189 }
.ob-hero .ob-where a { text-decoration: underline }
.ob-hero .detail-cover, .ob-hero .detail-cover.cover-placeholder { min-height: 120px !important; max-height: 150px; height: 100% }
.ob-hero .detail-cover.cover-placeholder span { font-size: 32px }
@media (max-width: 820px) {
  .detail-hero.ob-hero { grid-template-columns: 1fr }
  .ob-hero .detail-cover, .ob-hero .detail-cover.cover-placeholder { order: -1; min-height: 110px !important; max-height: 130px }
  .ob-hero .detail-cover.cover-placeholder { display: none }
}
/* v63 — Histórico do orçamento maior e resposta do cliente registada à mão */
dialog.pz-hist-modal{width:min(980px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);font-size:14px}
.pz-hist-modal .dialog-head h2{font-size:19px}
.pz-hist-modal .form-body{padding:18px 24px 0}
.pz-hist-modal .pz-hist h3{font-size:15px;margin:22px 0 8px;color:#2f2d2a}
.pz-hist-modal .hm-tbl{font-size:14px}
.pz-hist-modal .hm-tbl th{font-size:12px}
.pz-hist-modal .hm-sub{font-size:12.5px;color:#7a756d;margin-top:3px}
.pz-hist-modal .hm-alert{margin:12px 0 0;font-size:14px;line-height:1.45;display:block}
.pz-hist-modal .pz-ev li{font-size:14px;line-height:1.45;padding:10px 0}
.pz-hist-modal .pz-ev li .hm-sub{margin:0 0 3px}
.pz-hist-modal .form-footer{flex-wrap:wrap;gap:8px}
@media (max-width:640px){
  dialog.pz-hist-modal{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0}
  .pz-hist-modal .form-body{padding:14px 14px 0}
  .pz-hist-modal .table-wrap{overflow:visible;border:0}
  .pz-hist-modal .hm-tbl thead{display:none}
  .pz-hist-modal .hm-tbl,.pz-hist-modal .hm-tbl tbody,.pz-hist-modal .hm-tbl tr,.pz-hist-modal .hm-tbl td{display:block;width:100%}
  .pz-hist-modal .hm-tbl tr{border:1px solid #e3e1df;border-radius:10px;padding:8px 12px;margin-bottom:10px;background:#fff}
  .pz-hist-modal .hm-tbl td{padding:5px 0;border:0;text-align:left}
  .pz-hist-modal .hm-tbl td[data-l]:not([data-l=""])::before{content:attr(data-l);display:block;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#a29d95}
  .pz-hist-modal .hm-tbl td.pz-acts{display:flex;gap:6px;padding-top:8px}
  .pz-hist-modal .form-footer .btn{flex:1 1 100%;justify-content:center}
}
.pz-resp-tipos{border:0;margin:6px 0 14px;padding:0;display:grid;gap:10px}
.pz-resp-tipos legend{font-size:13px;font-weight:600;margin-bottom:8px;color:#3f3d39}
.pz-resp .pz-opt{padding:10px 12px;border:1px solid #e3e1df;border-radius:8px;background:#fff;display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.pz-resp .pz-opt:has(input:checked){border-color:#8b8478;background:#f6f5f2}
.pz-resp .pz-opt input{width:18px;height:18px;flex:none;margin:2px 0 0;padding:0}
.pz-resp .pz-opt .hm-sub{font-size:12px;color:#7a756d;margin-top:2px}
#form-dialog:has(.pz-resp){width:min(620px,calc(100vw - 24px))}
.pz-resp textarea{font-size:14px;min-height:120px}
.pz-hist-modal .badge{font-size:12.5px}
.pz-lv{display:block;font-size:11px;color:#5f5a52;margin-top:2px;white-space:nowrap}
.pz-next-step{display:grid;gap:10px;margin:12px 0 4px}.pz-next-step .btn{justify-content:flex-start;padding:12px 14px;font-size:14px}

/* v65: autorização de fotografias (dentro de Documentos oficiais) */
.af-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 4px; padding: 10px 12px; border: 1px solid #e6e3df; border-radius: 8px; background: #fbfaf9 }
.af-box.af-due { border-color: #d9c7a6; background: #fdf9f1 }
.af-box > span:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; min-width: 0 }
.af-box > span:first-child svg { width: 18px; height: 18px; grid-row: span 2; color: #6b6760 }
.af-box small { color: #77736c; font-size: 12px }
.af-acts { display: flex; gap: 6px; flex-wrap: wrap }
@media (max-width: 560px) { .af-acts { width: 100% } .af-acts .btn { flex: 1 } }
/* v66: formato da proposta (resumo por capítulos ou mapa de quantidades) */
.pz-fmt{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px 10px;margin:0 0 14px}
.pz-fmt>span{flex-basis:100%;font-size:13px;font-weight:600;color:#3a3833}
.pz-fmt label{flex:1 1 240px;display:flex;gap:9px;align-items:flex-start;border:1px solid #dcd8cf;border-radius:8px;padding:9px 11px;cursor:pointer;background:#fff}
.pz-fmt label:has(input:checked){border-color:#26282b;box-shadow:inset 0 0 0 1px #26282b}
.pz-fmt input{margin-top:3px}
.pz-fmt b{display:block;font-size:13.5px}
.pz-fmt small{display:block;font-size:12px;color:#6f6a61;line-height:1.4}


/* v67: identidade visual Magni Obras (grafite, dourado mate, Barlow nos títulos) */
h1, h2, .login-card h1 { font-family: var(--magni-display); letter-spacing: 0; font-weight: 600 }
h1 { font-size: 32px }
h2 { font-size: 20px }
.login-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 22px }
.login-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--magni-display); font-weight: 700; font-size: 28px; letter-spacing: .06em; text-transform: uppercase; line-height: 1 }
.login-brand .mk { width: 46px; height: 46px; flex: none; outline: 1px solid #ffffff22; border-radius: 12px }
.login-brand b { color: var(--magni-gold); font-weight: 700 }
.login-tag { margin: 0; color: #a39e94; font-size: 13px }
footer { font-family: var(--magni-display); font-size: 11px; letter-spacing: 1.5px; font-weight: 600; color: var(--magni-ink) }
footer span { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 400; font-size: 10px }

/* v70: peso e avanço das etapas; fases de pagamento ligadas às etapas */
.stage-modal { width: 900px }
.stage-editor-row { grid-template-columns: 23px minmax(120px, 1fr) 125px 92px 72px 90px }
.stage-editor-row .st-num input { text-align: right }
.stage-progress-edit { grid-template-columns: 1fr 200px; align-items: start }
.stage-progress-edit small { display: block; margin-top: 4px; font-size: 10px; color: #8c8271 }
.stage-sum { font-size: 13px; margin-bottom: 10px; color: #4b4336 }
.work-stage > div { flex: 1; min-width: 0 }
.work-stage div > span.st-mini { display: block; height: 4px; border-radius: 3px; background: #e6e1d6; margin: 6px 0 2px; overflow: hidden }
.st-mini i { display: block; height: 100%; background: var(--magni-gold, #c9a14a) }
.work-stage.concluida .st-mini i { background: #7d9a68 }
.pag-links { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px }
.pag-lk { font-size: .74rem; padding: 2px 7px; border-radius: 10px; background: #f3eee4; color: #7a6a4c; white-space: nowrap }
.pag-lk.ok { background: #e8eee3; color: #4f6b3e }
.pag-etapas { margin-top: 6px }
.pag-etapas summary { cursor: pointer; font-size: .8rem; color: #8a6a1f }
.pag-etapas-list { display: grid; gap: 4px; margin-top: 6px; max-height: 240px; overflow: auto; padding: 6px; border: 1px solid #ece5d6; border-radius: 8px; background: #fffdf8 }
.pag-edit .pag-et { display: grid; grid-template-columns: 18px 1fr 64px auto; gap: 6px; align-items: center; margin: 0; font-size: .82rem }
.pag-edit .pag-et input[type="checkbox"] { width: 16px; height: 16px; padding: 0; margin: 0 }
.pag-edit .pag-et input[name="etp"] { padding: 4px 6px; text-align: right }
.pag-edit .pag-et small { font-size: .72rem; opacity: .7 }
@media (max-width: 760px) {
    .stage-editor-row { grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) }
    .stage-editor-row .stage-name-label { grid-column: 2 / 4 }
    .stage-editor-row label:not(.stage-name-label) { grid-column: auto; grid-row: auto }
    .stage-editor-row label:has(.st-estado) { grid-column: 2 / 4 }
    .stage-editor-actions { grid-column: 2 / 4 }
    .stage-progress-edit { grid-template-columns: 1fr }
}
.pag-edit td:nth-child(2) { min-width: 280px }

/* v71: janela do orçamento da subempreitada maior, com total e exportação */
#form-dialog:has(.sb-edit-modal){width:min(900px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px)}
#form-dialog:has(.sb-edit-modal) .form-body{padding:18px 24px 0;font-size:15px}
#form-dialog:has(.sb-edit-modal) .sb-edit{max-height:calc(100vh - 400px);min-height:180px;gap:8px}
#form-dialog:has(.sb-edit-modal) .sb-edit-row{grid-template-columns:1fr 180px;gap:10px}
#form-dialog:has(.sb-edit-modal) .sb-edit-row input{padding:11px 12px;font-size:15px}
#form-dialog:has(.sb-edit-modal) .sb-edit-row input[type=number]{text-align:right}
.sb-edit-tools{display:grid;grid-template-columns:1fr 180px;gap:10px;padding:8px 14px 4px 2px}
.sb-edit-hd{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8a847a}.sb-edit-hd.num{text-align:right;padding-right:12px}
.sb-edit-total{display:flex;justify-content:space-between;align-items:baseline;margin-top:10px;padding:12px 16px 12px 14px;border-top:2px solid #2f2d2a;background:#f3f1ed;border-radius:0 0 8px 8px;font-size:15px;color:#2f2d2a}
.sb-edit-total strong{font-size:20px}
.sb-edit-exp{display:flex;gap:8px;margin-right:auto}.sb-edit-foot{flex-wrap:wrap}
@media (max-width:600px){#form-dialog:has(.sb-edit-modal) .form-body{padding:14px 14px 0}#form-dialog:has(.sb-edit-modal) .sb-edit-row,.sb-edit-tools{grid-template-columns:1fr 112px}#form-dialog:has(.sb-edit-modal) .sb-edit{max-height:calc(100vh - 470px)}.sb-edit-exp{width:100%;margin:0 0 4px}.sb-edit-exp .btn{flex:1}}

/* v72: marca MagniPrumo (azul-marinho #0E2C58, dourado #B89358, Outfit nos títulos). O logótipo de cada empresa continua no menu e nos documentos. */
:root {
    --magni-gold: #b89358;
    --magni-ink: #0e2c58;
    --magni-gold-dark: #7a5e2c;
    --magni-sand: #f4efe4;
    --magni-navy-deep: #0b1b33;
    --magni-display: 'Outfit', 'Montserrat', -apple-system, 'Segoe UI', sans-serif
}
body { background: #f6f7f9; color: #1d2433 }
.sidebar { background: var(--magni-ink); color: #eef1f5 }
.workspace-label { color: #8fa2bf }
nav a { color: #c3cede }
nav a:hover { background: #173a6e; color: #fff }
nav a.active { background: #1d4580; color: #ecdcb8 }
nav a.active .icon { color: var(--magni-gold) }
nav .nav-count { background: var(--magni-gold); color: var(--magni-navy-deep) }
.demo-box { background: #0b2349; border-color: #24467a }
.demo-box p { color: #b5c2d6 }
.user { border-color: #24467a }
.user small { color: #a7b5ca }
.avatar { background: #e6ebf3; color: var(--magni-ink) }
.logout-btn { border-color: #2a4b7d; color: #c3cede }
.logout-btn:hover { color: #fff; border-color: #4a6a9c }
.btn.primary { background: var(--magni-ink); border-color: var(--magni-ink); color: #fff; box-shadow: 0 2px 3px #0e2c5814 }
.btn.primary:hover { background: #16407a; border-color: #16407a }
.login-screen { background: radial-gradient(circle at 50% 0%, #17407a 0%, var(--magni-ink) 55%, var(--magni-navy-deep) 100%) }
.login-brand { display: block; line-height: 0 }
.login-brand img { display: block; width: 260px; max-width: 70vw; height: auto }
.login-tag { color: #c9b48a; letter-spacing: .04em }
.login-msg { border-color: #e4d6b8; color: #6b5226 }
h1, h2, .login-card h1 { font-weight: 600 }
footer { display: flex; align-items: center; gap: 10px; letter-spacing: 1.2px }
footer .foot-mk { width: 16px; height: 16px; border-radius: 4px; flex: none }
footer span:first-of-type { margin-left: 4px }
/* v72: logo MagniPrumo por baixo dos menus */
@media (min-width: 581px) { .sidebar { overflow-y: auto } }
.side-mp { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #24467a; line-height: 0; display: flex; justify-content: center }
.side-mp img { display: block; width: 128px; max-width: 100%; height: auto }
.sidebar-bottom { padding-top: 24px }
.more-mp { display: block; width: 120px; height: auto; margin: 4px auto 0 }
@media (max-width: 580px) {
    .side-mp { display: none }
    nav .nav-more { color: #c3cede }
    nav .nav-more.active, nav .nav-more[aria-expanded=true] { background: #1d4580; color: #fff }
    nav .nav-dot { background: var(--magni-gold) }
    .more-card { background: var(--magni-ink); border-color: #24467a }
    .more-grid a { background: #173a6e; color: #e6ebf3 }
    .more-grid a.active { background: #1d4580; color: #fff }
    .more-logout { border-color: #2a4b7d; color: #c3cede }
}
/* v72: menu mais compacto no computador, para o logo MagniPrumo caber em baixo */
@media (min-width: 581px) {
    .sidebar { padding-top: 20px; padding-bottom: 14px }
    .brand-logo { max-height: 64px; width: auto; max-width: 100%; margin: 0 auto }
    .workspace-label { margin: 20px 12px 8px }
    nav { gap: 2px }
    nav a { padding: 7px 14px }
    .sidebar-bottom { padding-top: 8px }
    .side-mp { margin-top: 12px; padding-top: 12px }
    .side-mp img { width: 104px }
}

/* v73: condições de pagamento em cartões largos; etapas em botões; total de venda das etapas ligadas */
.form-dialog.pag-modal, .form-dialog.pag-modal:has(#pag-form) { width: min(1120px, calc(100vw - 32px)); max-width: min(1120px, calc(100vw - 32px)) }
.pag-cards { display: grid; gap: 12px; margin: 14px 0 }
.pag-card { border: 1px solid #e4ded1; border-radius: 10px; background: #fff; padding: 14px 16px }
.pag-card-top { display: grid; grid-template-columns: 170px minmax(0, 1fr) 100px 140px 32px; gap: 12px; align-items: end }
.pag-card-top label { margin: 0; font-size: 11px; color: #79715f }
.pag-card-top input { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #ddd4c3; border-radius: 8px; font: inherit; font-size: 14px; color: #332d23; background: #fff }
.pag-f-num input { text-align: right }
.pag-f-del { align-self: end; margin-bottom: 4px }
.pag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px }
.pag-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 11px; border: 1px solid #e2dccf; border-radius: 999px; background: #faf8f4; color: #6f6656; font-size: 13px; cursor: pointer; user-select: none; line-height: 1.2 }
.pag-chip:hover { border-color: #c9b88f }
.pag-chip input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none }
.pag-chip-v { font-size: 11px; opacity: .65 }
.pag-chip-p { display: none; align-items: center; gap: 2px; font-size: 12px }
.pag-chip-p input { width: 52px; padding: 2px 4px; border: 1px solid #d8c69a; border-radius: 6px; text-align: right; font: inherit; font-size: 12px; background: #fff }
.pag-chip:has(input[type="checkbox"]:checked) { background: #fbf1dc; border-color: var(--magni-gold, #c59b47); color: #4b3a14; font-weight: 600 }
.pag-chip:has(input[type="checkbox"]:checked) .pag-chip-p { display: inline-flex }
.pag-chip:has(input[type="checkbox"]:focus-visible) { outline: 2px solid var(--magni-gold, #c59b47); outline-offset: 2px }
.pag-card-tot { margin: 10px 0 0; padding-top: 9px; border-top: 1px dashed #e9e3d8; font-size: 13px; color: #5d5446 }
.pag-card-tot .pag-menos { color: #8a6a1f }
.pag-links-tot { display: block; margin-top: 4px; font-size: .78rem; color: #6b604c }
@media (max-width: 760px) {
    .pag-card-top { grid-template-columns: 1fr 1fr 32px }
    .pag-f-fase { grid-column: 1 / 3 }
    .pag-f-mom { grid-column: 1 / 4; grid-row: 2 }
    .pag-f-del { grid-column: 3; grid-row: 1 }
}
#pag-form .pag-chip { display: inline-flex; margin: 0; gap: 6px; font-size: 13px; color: #6f6656 }
#pag-form .pag-chip:has(input[type="checkbox"]:checked) { color: #4b3a14 }
#pag-form .pag-chip-p input { margin: 0; height: 24px; width: 52px; padding: 2px 4px }
#pag-form .pag-card-top label { margin: 0 }

/* v74: logo final Magni Prumo software (azul-noite #01112D, verde-água #3A9C9A no lugar do dourado) */
:root {
    --magni-gold: #3a9c9a;
    --magni-gold-dark: #23706e;
    --magni-sand: #e8f3f2;
    --magni-navy-deep: #01112d
}
nav a.active { color: #bfe6e4 }
.login-screen { background: radial-gradient(circle at 50% 0%, #0f3260 0%, #071c3f 50%, #01112d 100%) }
.login-brand img { width: 300px }
.login-tag { color: #8ccfcc }
.login-msg { border-color: #b9dedc; color: #1f5f5d }
.side-mp img { width: 150px }
@media (min-width: 581px) { .side-mp img { width: 150px } }

/* ==================================================================
   v75: visual novo (maquetes de 04/11). Só aparência: grafite #1F2328 (menu e cartões escuros),
   verde-água #3A9C9A, fundo #F6F8FA; ícones do menu em quadrados; números
   grandes com minigráficos no Hoje; bolinhas de estado; gasto vs orçamento.
   ================================================================== */
:root {
    --magni-ink: #1f2328;
    --magni-navy-deep: #15181c;
    --magni-gold: #3a9c9a;
    --magni-gold-dark: #23706e;
    --magni-sand: #e8f3f2;
    --mp-bg: #f6f8fa;
    --mp-line: #e1e7ec;
    --mp-track: #e9eef2;
    --mp-muted: #5a6672;
    --mp-light: #8ccfcc;
    --mp-ok: #2f7d4f;
    --mp-warn: #c08a1e;
    --mp-risk: #b3412e;
    --magni-display: 'Barlow Semi Condensed', 'Outfit', 'Arial Narrow', -apple-system, 'Segoe UI', sans-serif
}
body { background: var(--mp-bg); color: #1f2328 }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--magni-gold) }

/* Menu */
.sidebar { background: var(--magni-ink) }
.brand { background: #fff; border-radius: 12px; padding: 10px 12px }
nav a { color: #e3eaf2; border-radius: 8px; padding: 6px 10px; gap: 12px }
nav a:hover { background: #2d323a; color: #fff }
nav a.active { background: #2d323a; color: #fff }
.nav-ic { width: 30px; height: 30px; border-radius: 8px; background: #2d323a; color: var(--magni-gold); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: .15s }
.nav-ic .icon { width: 16px; height: 16px; stroke-width: 2 }
nav a:hover .nav-ic { background: #3a4049; color: var(--mp-light) }
nav a.active .nav-ic, nav a.active .icon { background: var(--magni-gold); color: var(--magni-ink) }
nav .nav-count { background: var(--magni-gold); color: #fff; border-radius: 10px; font-weight: 600 }
.workspace-label { color: #9fb2c6 }
.side-mp { border-top-color: #2d323a; flex-direction: column; align-items: center; gap: 8px; line-height: 1.2 }
.side-mp-lbl { font-size: 11px; color: #9fb2c6; letter-spacing: .3px }
.logout-btn { border-color: #3a4049 }
@media (max-width: 580px) {
    nav a, nav .nav-more { flex-direction: column; gap: 3px; padding: 6px 2px }
    nav .nav-ic { width: 32px; height: 26px; background: transparent; color: #c3cede }
    nav a.active .nav-ic { background: var(--magni-gold); color: var(--magni-ink) }
    .more-card { background: var(--magni-ink) }
    .more-grid a { background: #2d323a }
    .more-grid a .nav-ic { background: transparent }
}

/* Títulos e cartões base */
h1, h2, .login-card h1 { font-family: var(--magni-display); font-weight: 700; letter-spacing: 0 }
.topbar { background: #fff; border-bottom-color: var(--mp-line) }
.btn.primary { background: var(--magni-ink); border-color: var(--magni-ink) }
.btn.primary:hover { background: #2d323a; border-color: #2d323a }
.overview-panel, .small-panel, .fold, .stat { border-color: var(--mp-line); border-radius: 16px }
.eyebrow { color: var(--mp-muted) }
.login-screen { background: radial-gradient(circle at 50% 0%, #2d323a 0%, #1f2328 55%, #15181c 100%) }
.login-tag { color: var(--mp-light) }
.progress, .ob-bar { background: var(--mp-track) }
.progress i { background: var(--magni-gold) }

/* Bolinhas de estado */
.health { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; background: #fff; color: #1f2328; border: 1px solid var(--mp-line); white-space: nowrap; vertical-align: middle; letter-spacing: 0; line-height: 1.4; font-family: Inter, -apple-system, 'Segoe UI', sans-serif }
.health i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--mp-ok) }
.health-warn i { background: var(--mp-warn) }
.health-risk i { background: var(--mp-risk) }
.health-ok { background: #e3eee6; border-color: #cfe2d5; color: #24603d }
.health-warn { background: #fbf1dc; border-color: #f0dfb8; color: #7a5410 }
.health-risk { background: #f8e3de; border-color: #efcdc4; color: #8a2f1e }
.health.on-cover { position: absolute; top: 12px; right: 12px; background: #fff; border-color: transparent; color: #1f2328; box-shadow: 0 1px 4px rgba(18,35,63,.18); z-index: 2 }
h1 .health { margin-left: 10px; font-size: 13px }
td .health { margin-top: 4px }

/* Cartões das obras */
.project-card { border-color: var(--mp-line); border-radius: 16px }
.project-card:hover { border-color: #b5d6d4; box-shadow: 0 6px 20px rgba(18,35,63,.08) }
.cover .code { background: var(--magni-ink); color: #fff; border-radius: 6px; padding: 3px 8px; letter-spacing: .8px }
.card-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 2px; padding-top: 10px; border-top: 1px solid var(--mp-track) }
.card-nums small { display: block; font-size: 11px; color: var(--mp-muted) }
.card-nums b { font-size: 15px; font-weight: 700; color: #1f2328; font-variant-numeric: tabular-nums }
.card-nums b.bad { color: var(--mp-risk) }

/* Hoje: números grandes com minigráficos */
.hj-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 28px }
.hj-kpi { background: #fff; border: 1px solid var(--mp-line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.hj-kpi-l { font-size: 13px; color: var(--mp-muted) }
.hj-kpi-v { font-family: var(--magni-display); font-size: 42px; font-weight: 700; line-height: 1.05; color: #1f2328; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.hj-kpi-s { font-size: 12px; color: var(--mp-muted); min-height: 18px }
.hj-kpi-s b { color: var(--mp-risk); font-weight: 600 }
.hj-kpi-s .up { color: var(--mp-ok); font-weight: 600 }
.hj-kpi-s .down { color: var(--mp-risk); font-weight: 600 }
.hj-kpi.dark { background: var(--magni-ink); border-color: var(--magni-ink) }
.hj-kpi.dark .hj-kpi-l, .hj-kpi.dark .hj-kpi-s { color: #c9d5e2 }
.hj-kpi.dark .hj-kpi-v { color: var(--mp-light) }
.hj-kpi.dark .hj-kpi-s b { color: #f3c3b8 }
.hj-spark { width: 100%; height: 40px; margin-top: auto; display: block }
.hj-spark polyline { fill: none; stroke: var(--mp-light); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round }
.hj-minibars { display: flex; align-items: flex-end; gap: 6px; height: 40px; margin-top: auto }
.hj-minibars i { flex: 1; background: #cfe6e4; border-radius: 3px }
.hj-minibars i.cur { background: var(--magni-gold) }
.hj-meter { position: relative; height: 10px; background: var(--mp-track); border-radius: 5px; margin: auto 0 14px }
.hj-meter i { display: block; height: 10px; border-radius: 5px; background: var(--magni-gold) }
.hj-meter.low i { background: var(--mp-risk) }
.hj-meter b { position: absolute; top: -5px; width: 2px; height: 20px; background: #1f2328; border-radius: 1px }
.hj-stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: auto 0 14px; background: var(--mp-track) }
.hj-stack i { display: block; height: 100% }
.hj-stack .s0 { background: #1f2328 } .hj-stack .s1 { background: #23706e } .hj-stack .s2 { background: #3a9c9a } .hj-stack .s3 { background: #8ccfcc } .hj-stack .s4 { background: #c4e2e0 }
.hj-h2 { font-size: 24px; margin: 0 0 12px }
.hj-hero h1 { font-size: 40px; letter-spacing: 0 }
.hj-hero p { color: var(--mp-muted) }

/* Hoje: avisos com número grande e ícone redondo */
.hj-alerts { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) }
.hj-alert { border: 1px solid var(--mp-line); border-left: 1px solid var(--mp-line); border-radius: 14px; padding: 14px; grid-template-columns: auto auto 1fr }
.hj-alert:hover { border-color: #b5d6d4 }
.hj-ic { width: 44px; height: 44px; border-radius: 50%; padding: 0; align-items: center; justify-content: center; background: #e8f3f2; color: #23706e }
.hj-ic .icon { width: 20px; height: 20px; stroke-width: 2 }
.hj-n { font-family: var(--magni-display); font-size: 30px; font-weight: 700; color: #1f2328; letter-spacing: 0 }
.hj-t b { color: #1f2328 }
.hj-t small { color: var(--mp-muted) }
.hj-track { background: var(--mp-track) }

/* Ficha da obra: resumo */
.ob-kpi { border-color: var(--mp-line); border-radius: 16px; position: relative; padding: 16px 18px }
.ob-kpi small { color: var(--mp-muted) }
.ob-kpi strong { font-family: var(--magni-display); font-size: 32px; font-weight: 700; color: #1f2328 }
.ob-kpi strong em { color: var(--mp-muted) }
.ob-kpi-sub { color: var(--mp-muted) }
.ob-kpi:has(.ob-ring) { padding-right: 92px }
.ob-ring { position: absolute; right: 18px; top: 50%; width: 60px; height: 60px; transform: translateY(-50%) }
.ob-ring circle { fill: none; stroke: var(--mp-track); stroke-width: 4 }
.ob-ring circle.v { stroke: var(--magni-gold); stroke-linecap: round }
.ob-kpi-dark { background: var(--magni-ink); border-color: var(--magni-ink) }
.ob-kpi-dark small, .ob-kpi-dark .ob-kpi-sub { color: #c9d5e2 }
.ob-kpi-dark strong { color: var(--mp-light) }
.ob-kpi-dark.crit strong { color: #f3a99a }
.ob-kpi-dark:hover { border-color: #23706e }

/* Gasto vs orçamento */
.gvo { display: grid; gap: 14px; margin: 4px 0 18px }
.gvo-row { display: flex; align-items: center; gap: 12px }
.gvo-ini { width: 40px; height: 40px; border-radius: 50%; background: #e8f3f2; color: #23706e; display: flex; align-items: center; justify-content: center; flex: none; font-weight: 700; font-size: 13px }
.gvo-main { flex: 1; min-width: 0; display: grid; gap: 6px }
.gvo-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; flex-wrap: wrap }
.gvo-top span { color: var(--mp-muted); font-variant-numeric: tabular-nums }
.gvo-track { position: relative; height: 10px; background: var(--mp-track); border-radius: 5px }
.gvo-track i { display: block; height: 10px; border-radius: 5px; background: var(--magni-gold) }
.gvo-track i.warn { background: var(--mp-warn) }
.gvo-track i.risk { background: var(--mp-risk) }
.gvo-track b, .gvo-leg b { position: absolute; top: -4px; width: 2px; height: 18px; background: #1f2328; border-radius: 1px }
.gvo-pc { width: 56px; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums }
.gvo-pc.warn { color: #7a5410 } .gvo-pc.risk { color: var(--mp-risk) }
.gvo-leg { position: relative; margin: 0; padding-left: 64px; font-size: 12px; color: var(--mp-muted) }
.gvo-leg b { position: static; display: inline-block; vertical-align: -3px; margin-right: 8px; height: 14px }
@media (max-width: 580px) {
    .hj-kpi-v { font-size: 34px }
    .gvo-leg { padding-left: 0 }
    .ob-kpi strong { font-size: 24px }
    .ob-kpi:has(.ob-ring) { padding-right: 70px }
    .ob-ring { width: 46px; height: 46px; right: 12px }
}
.hj-alert { grid-template-columns: auto auto minmax(0, 1fr) }
.hj-t { min-width: 0 }
.tab[aria-selected=true] { color: #1f2328; border-bottom-color: var(--magni-gold) }
.fold-icon, .fold-group .fold-icon { background: #e8f3f2; color: #23706e }
@media (max-width: 580px) {
    nav a>span.nav-ic, nav .nav-more>span.nav-ic { display: inline-flex; width: 26px; height: 24px; background: transparent !important; color: inherit !important }
    nav a>span.nav-ic .icon, nav .nav-more .nav-ic .icon { width: 21px; height: 21px; background: transparent !important; color: inherit !important }
    nav a>span:nth-of-type(2), nav .nav-more>span:nth-of-type(2) { display: inline; font-size: 9px }
    nav a { color: #c3cede }
    nav a.active { background: #2d323a; color: var(--mp-light) }
}
.stat-icon, .activity-symbol { background: #e8f3f2; color: #23706e; border-color: #cfe6e4 }
.count { background: #e8f3f2; color: #23706e }
.chip[aria-pressed=true] { background: var(--magni-ink); border-color: var(--magni-ink); color: #fff }
.chip[aria-pressed=true] span { background: var(--magni-gold); color: #fff }
.view-toggle .icon-btn[aria-pressed=true] { background: #e8f3f2; color: #1f2328; border-color: #cfe6e4 }
.stat { border-radius: 16px }
.stat-number { font-family: var(--magni-display); font-weight: 700; color: #1f2328 }
.chip[aria-pressed=true] span { padding: 0 7px; border-radius: 9px; margin-left: 4px }
.progress-label b { color: #1f2328 }
.user, .demo-box, .more-card { border-color: #3a4049 }
.demo-box { background: #2d323a }
@media (max-width: 580px) { nav .nav-more.active, nav .nav-more[aria-expanded=true] { background: #2d323a } }

/* v76 · Arranques */
.ar-bar { height: 7px; border-radius: 4px; background: #e4e7ea; overflow: hidden; }
.ar-bar i { display: block; height: 100%; background: #3A9C9A; }
.ar-res { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; font-size: 13.5px; }
.ar-res li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #eceef0; padding: 4px 0; }
.ar-res li span { color: #6b7079; }
.ar-res li b { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.badge.ar-b-por-preencher { background: #eceef0; color: #4b5058; }
.badge.ar-b-em-preenchimento { background: #e6f3f2; color: #24706e; }
.badge.ar-b-enviado { background: #fbf0dc; color: #8a5a10; }
.badge.ar-b-revisto { background: #e5f4e4; color: #2f6b3a; }
@media (max-width: 580px) { .ar-res { grid-template-columns: 1fr; } }
.ar-sub { display: block; font-size: 12px; color: #7d8491; margin-top: 2px; }
.ar-acts { display: flex; gap: 6px; justify-content: flex-end; }
.ar-acts .btn { width: auto; min-width: 0; white-space: nowrap; padding-left: 10px; padding-right: 10px; }

/* v77 · conta das empresas novas (Arranques) e aviso de conta em teste */
.ar-conta { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; justify-content:space-between; border:1px solid var(--line, #dfe3e8); border-radius:8px; padding:10px 12px; margin:12px 0; }
.ar-conta .ar-sub { display:block; }
.test-banner .test-acts { display:inline-flex; gap:8px; }
.test-banner a.test-op-btn { text-decoration:none; }

/* v83 caderno */
.cad-top{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 14px}
.cad-top input[type=search]{flex:1 1 260px;margin:0!important;max-width:420px}
.cad-lines td:nth-child(3) input{min-width:110px}
.cad-lines input.cad-sem{border-color:#c9a24a!important;background:#fffaf0}
.cad-semn{color:#8a5a00}
#cad-form tr[hidden],#cad-form section[hidden]{display:none!important}
@media (max-width:640px){.cad-lines td:nth-child(2) input{min-width:56px}}


/* v84: datas das etapas e linha do tempo */
dialog.stage-modal { width: min(1120px, calc(100vw - 24px)); max-width: none }
.stage-editor-row:has(.st-ini) { grid-template-columns: 23px minmax(120px, 1fr) 118px 84px 66px 136px 136px 90px }
.st-dt input { min-width: 0 }
dialog.lt-modal { width: min(1080px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px) }
.lt-body { padding-bottom: 0 }
.lt-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px }
.lt-kpi { border: 1px solid #e4e1db; border-radius: 10px; padding: 10px 12px; background: #fff }
.lt-kpi span { display: block; font-size: 12px; color: #77736b }
.lt-kpi b { display: block; font-family: var(--magni-display, inherit); font-size: 22px; margin-top: 2px; color: #1f2328 }
.lt-pbar { display: block !important; height: 5px; border-radius: 3px; background: #e6e3dd; margin-top: 6px; overflow: hidden }
.lt-pbar i { display: block; height: 100%; background: var(--magni-gold, #3A9C9A) }
.lt-chart { border: 1px solid #e4e1db; border-radius: 10px; padding: 8px 14px 10px; background: #fff }
.lt-row { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f0eee9 }
.lt-row:last-child { border-bottom: 0 }
.lt-axis { padding: 2px 0 6px; border-bottom: 1px solid #d9d5cd }
.lt-name b { display: block; font-size: 13.5px; color: #1f2328; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lt-name small { display: block; font-size: 12px; color: #77736b; margin-top: 2px }
.lt-track { position: relative; height: 18px }
.lt-axis .lt-track span { position: absolute; top: 0; font-size: 11.5px; color: #77736b; padding-left: 3px; border-left: 1px solid #d9d5cd; line-height: 18px; white-space: nowrap }
.lt-bar { position: absolute; top: 3px; height: 12px; border-radius: 4px; background: #d7ecea; border: 1px solid var(--magni-gold, #3A9C9A); overflow: hidden; box-sizing: border-box }
.lt-bar.est { border-style: dashed }
.lt-bar i { display: block; height: 100%; background: var(--magni-gold, #3A9C9A) }
.lt-hoje { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 1.5px dashed #a33; z-index: 1 }
.lt-hoje em { display: none }
.lt-row:nth-child(2) .lt-hoje em { display: block; position: absolute; top: -12px; left: 3px; font-size: 10.5px; font-style: normal; color: #a33 }
@media (max-width: 760px) {
    .stage-editor-row:has(.st-ini) { grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) }
    .lt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .lt-row { grid-template-columns: 1fr; gap: 4px }
    .lt-axis > div:first-child { display: none }
    .lt-hoje { top: 0; bottom: 0 }
    .lt-row:nth-child(2) .lt-hoje em { display: none }
}

/* v85 janela grande */
.pz-modal{width:calc(100vw - 32px)!important;max-width:1680px!important;height:calc(100vh - 32px);max-height:calc(100vh - 32px)!important}
.pz-modal .form-body{padding:22px 32px 0}
.pz-modal .ob-lines{width:100%}
.pz-modal .ob-lines .ob-w{min-width:340px;width:100%}
.pz-modal .ob-lines td:first-child{width:45%}
@media (max-width:820px){.pz-modal{width:100vw!important;height:100vh;max-height:100vh!important;border-radius:0}.pz-modal .form-body{padding:14px 14px 0}.pz-modal .ob-lines .ob-w{min-width:220px}}


/* v88: enviar fotos ao cliente pelo WhatsApp */
.wa-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 12px; border: 1px solid #3A9C9A; border-radius: 8px; background: #3A9C9A12; font-size: 13px }
.wa-bar.wa-bar-off { border-color: #e0dfdd; background: transparent; color: #6e6a62 }
.wa-bar small { color: #8a867e }
.wa-bar-acts { display: flex; gap: 6px; flex-wrap: wrap }
.wa-bar .btn.small { width: auto; height: auto; min-height: 30px; white-space: nowrap }
.media-card.wa-pick, .media-card.wa-on { cursor: pointer }
.media-card.wa-on { border: 2px solid #3A9C9A; box-shadow: 0 0 0 2px #3A9C9A33 }
.media-card.wa-no { opacity: .35; cursor: default }
.wa-check { position: absolute; top: 8px; left: 8px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: #0006; display: grid; place-items: center; color: #fff }
.media-card.wa-on .wa-check { background: #3A9C9A }
.wa-check .icon { width: 14px; height: 14px }
.wa-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px }
.wa-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: #edeceb; flex: none }
