body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:9px;padding:11px 12px;background:#fff;color:var(--ink);box-sizing:border-box}label{display:block;font-size:12px;font-weight:700;color:var(--text);margin:14px 0}label input,label select,label textarea{margin-top:7px}input[type=checkbox]{width:auto;margin-right:7px}textarea{min-height:95px;resize:vertical}.check-label{display:flex;align-items:center;gap:6px;font-weight:500}.btn{border:1px solid var(--line);border-radius:9px;padding:11px 16px;background:#fff;color:var(--green);display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:12px;text-decoration:none}.btn.primary{background:var(--green);color:white;border-color:var(--green)}.btn.danger{color:#a63e31;border-color:#edc7c1}.btn.small{padding:7px 11px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.muted{color:var(--text);font-size:12px;line-height:1.7}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;text-transform:uppercase;color:var(--text)}.page-title h1{font:38px 'DM Serif Display',Georgia,serif;font-weight:400;margin:7px 0 12px;color:var(--ink)}.page-title p{color:var(--text);font-size:13px;margin:0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card h3{font-size:16px;margin:12px 0}.card p{font-size:13px;line-height:1.7;color:var(--text)}.card h2{font:25px 'DM Serif Display',Georgia,serif;font-weight:400;margin:0 0 12px}.stack{display:grid;gap:18px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.stat .number{font:34px 'DM Serif Display',Georgia,serif;margin:10px 0}.stat span{font-size:11px;color:var(--text)}.hero{background:var(--green);color:#fff;border-radius:18px;display:grid;grid-template-columns:1.4fr 1fr;overflow:hidden}.hero>div{padding:34px}.hero h2{font:36px 'DM Serif Display',Georgia,serif;margin:10px 0}.hero p{color:#dce5d7;font-size:13px;line-height:1.8}.hero img{width:100%;height:240px;object-fit:cover}.hero .eyebrow{color:var(--accent)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--text);background:#f3f5ee;padding:16px}td{padding:16px;border-top:1px solid #edf0e7;vertical-align:top}td strong{display:block;font-weight:700;margin-bottom:4px}td small{color:var(--text)}.toolbar{display:flex;gap:12px;margin:20px 0}.toolbar input{flex:2}.toolbar select{flex:1}.badge{display:inline-block;border-radius:20px;padding:5px 9px;font-size:10px;white-space:nowrap;background:var(--mist);color:var(--text)}.badge.green{background:#e4f1df;color:#37613a}.badge.amber{background:#fbf0d8;color:#8e6825}.badge.red{background:#f9e6e1;color:#9b4133}.empty{padding:48px 24px;text-align:center;color:var(--text)}.empty h3{color:var(--ink);font:24px 'DM Serif Display',Georgia,serif}.notice{padding:14px 16px;background:var(--mist);border:1px solid var(--line);border-radius:10px;font-size:12px;line-height:1.7;margin:16px 0}.notice.amber{background:#fff7e9;border-color:#ead9b7}.notice.danger{background:#fff0ed;color:#9b4133;border-color:#efd0c9}.statusbar{font-size:11px;padding:9px 18px;border-bottom:1px solid var(--line);background:#edf2e8;display:flex;gap:12px;justify-content:space-between;align-items:center}.statusbar.offline{background:#fff3dc}.profile{padding:16px 0;cursor:pointer}.sidebar{overflow:auto}.sidebar-bottom{margin-top:24px}.profile-tag{font-size:8px}.nav-link{padding:10px 14px}.nav-link .nav-symbol{font-size:17px;width:22px;text-align:center}.topbar .actions{font-size:11px}.shell main{padding:32px 38px;max-width:1560px;margin:auto}.page-footer{font-size:10px}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:var(--green);color:white;padding:56px;display:flex;flex-direction:column;justify-content:space-between}.login-art img{width:100%}.login-art h1{font:48px 'DM Serif Display',Georgia,serif;line-height:1.2;margin:50px 0 20px}.login-art p{color:#dce5d7;line-height:1.9;font-size:14px}.login-form{max-width:470px;width:100%;margin:auto;padding:40px;box-sizing:border-box}.login-form h2{font:36px 'DM Serif Display',Georgia,serif;margin:16px 0}.login-form .btn{justify-content:center}.login-form .full{width:100%}.login-footer{font-size:10px;letter-spacing:1px;color:var(--text);margin-top:35px}.loading{display:grid;place-content:center;min-height:85vh;text-align:center}.loading img{width:180px}.loading p{font-size:13px;color:var(--text)}#modal{padding:0;border:1px solid var(--line);border-radius:18px;width:min(760px,calc(100vw - 32px));max-height:90vh;color:var(--ink)}#modal::backdrop{background:#2d514370;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:24px 28px;border-bottom:1px solid var(--line)}.modal-head h2{font:26px 'DM Serif Display',Georgia,serif;margin:0}.modal-body{padding:6px 28px 28px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.span2{grid-column:1/-1}.close{border:0;background:var(--mist);border-radius:50%;width:32px;height:32px}.history-line{border-left:2px solid var(--line);padding:0 0 22px 18px;margin-left:8px}.history-line strong{font-size:12px;display:block}.history-line small{color:var(--text);font-size:10px}.history-line p{font-size:12px;color:var(--text)}.history-line details{font-size:11px}.history-line pre{white-space:pre-wrap;word-break:break-word}.two-cols{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.scope-list{max-height:220px;overflow:auto;background:#f3f5ee;padding:8px 15px;border-radius:10px}.backup-list .row{display:flex;justify-content:space-between;gap:15px;align-items:center;border-top:1px solid #edf0e7;padding:14px 0;font-size:12px}.mobile-menu{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:14px 22px;border-radius:10px;z-index:20;font-size:13px;max-width:90vw;box-shadow:0 8px 35px #0003;display:none}#toast.show{display:block}.conflict-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.conflict-grid pre{white-space:pre-wrap;word-break:break-word;font-size:11px;background:var(--mist);padding:12px}.pending-tag{color:#966527;font-size:10px}.sidebar .brand img{max-width:165px}.tag{font-size:10px;color:var(--text)}.nowrap{white-space:nowrap}.divider{border:0;border-top:1px solid var(--line);margin:25px 0}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}.hero h2{font-size:30px}.hero>div{padding:25px}.two-cols{grid-template-columns:1fr}.shell main{padding:24px}.login-art{padding:35px}.login-art h1{font-size:38px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);position:fixed;z-index:10;width:250px;height:100vh;background:#fff}.sidebar.open{transform:translateX(0)}.shell{margin-left:0!important}.mobile-menu{display:block}.topbar{padding:15px}.shell main{padding:22px 16px}.page-title h1{font-size:31px}.page-heading{align-items:flex-start}.hero{grid-template-columns:1fr}.hero img{display:none}.stats{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.toolbar input{flex-basis:100%}.login{grid-template-columns:1fr}.login-art{display:none}.login-form{padding:30px 24px}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.modal-head,.modal-body{padding-left:20px;padding-right:20px}.conflict-grid{grid-template-columns:1fr}.statusbar{align-items:flex-start}.page-footer{padding:18px}.backup-list .row{align-items:flex-start}.topbar .breadcrumbs>span{display:none}}

/* Condomínios: verde sálvia, marfim e apontamentos de areia. */
input[type=checkbox]{accent-color:var(--green)}
.brand img,.loading img,.login-form>img{filter:none;mix-blend-mode:normal}
.btn.primary:hover{background:var(--deep);border-color:var(--deep)}
.sidebar{background:#f4f6ee;border-right-color:#d9e1d2}
.workspace-label{display:flex;align-items:center;gap:9px;color:var(--green);font-size:10px;letter-spacing:.17em;padding-top:26px}
.workspace-label::before{content:'';width:18px;height:2px;background:var(--brass);flex-shrink:0}
.nav-link.active{background:#e2eadb;color:var(--deep);box-shadow:inset 3px 0 var(--brass)}
.nav-link:hover{background:#eaf0e3}
.avatar{background:#e0e8d9}
.hero{background:var(--sage);color:var(--deep);border:1px solid #d8e1d1;border-radius:14px}
.hero h2{color:var(--deep)}
.hero p{color:#52674e}
.hero .eyebrow{color:#526b4c}
.hero img{height:100%;min-height:240px;filter:saturate(.65);opacity:.9}
.hero>div{border-left:3px solid var(--brass)}
.login{background:#fafaf4;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100svh}
.login-art{position:relative;isolation:isolate;overflow:hidden;background:#e2eade;padding:clamp(38px,4.5vw,70px);gap:40px;color:var(--deep);border-right:1px solid #d6dfcf}
.login-art::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#e2eade 10%,#e2eadeef 38%,#e2eadeb8 100%),url('/assets/architecture.jpg') center/cover;opacity:1}
.login-art::after{content:'';position:absolute;inset:0 auto 0 0;width:5px;background:#91a184}
.login-brand{display:flex;align-items:flex-start;flex-direction:column;gap:22px}
.login-brand img{display:block;width:206px;max-width:100%;height:auto}
.login-product{font-size:11px;font-weight:700;letter-spacing:.24em;text-transform:uppercase;color:var(--deep);border-top:1px solid #a5916370;padding-top:17px;width:206px}
.login-intro{max-width:520px;padding:26px 0}
.login-intro .eyebrow{color:#566e4f;font-size:10px;letter-spacing:.2em;display:flex;align-items:center;gap:12px}
.login-intro .eyebrow::before{content:'';width:26px;height:2px;background:var(--brass)}
.login-art h1{font-size:clamp(36px,3.7vw,54px);line-height:1.15;letter-spacing:-.025em;margin:18px 0 25px;color:var(--deep)}
.login-art p{color:#4f654c;font-size:14px;line-height:1.9}
.login-art .login-legal{font-size:10px;line-height:1.8;color:#53684e;max-width:330px}
.login-form{max-width:490px;min-height:0;padding:50px 44px;color:var(--ink)}
.login-form h2{font-size:38px;line-height:1.15;letter-spacing:-.025em;margin:14px 0 17px;color:var(--deep)}
.login-form>.muted{line-height:1.8;margin-bottom:25px}
.login-form label{margin:17px 0;font-size:12px}
.login-form input{min-height:46px;border-color:#d3dccb;border-radius:8px;background:#ffffffd9}
.login-form input[type=checkbox]{min-height:0;accent-color:var(--green)}
.login-form .check-label{margin:20px 0 24px;gap:7px}
.login-form .full{min-height:46px;white-space:normal;line-height:1.5}
.login-form>p.muted{margin-top:20px;margin-bottom:0;font-size:11px}
.login-form>p.muted a{display:inline-block;color:var(--green);text-decoration:underline;text-decoration-color:#a3b399;text-underline-offset:4px;line-height:1.7}
.login-footer{margin-top:32px;padding-top:20px;border-top:1px solid #dbe1d2;color:#68765e;font-size:9px;letter-spacing:.17em}
.login-form .divider{margin:24px 0}
@media(max-width:1000px) and (min-width:761px){.login-art{padding:38px 30px}.login-form{padding:40px 30px}.login-art h1{font-size:38px}}
@media(max-width:760px){
 .login{grid-template-columns:1fr;align-content:start}
 .login-art{display:flex;min-height:150px;padding:26px max(26px,calc((100vw - 430px)/2));gap:0;border-right:0;border-bottom:1px solid #d6dfcf}
 .login-brand{flex-direction:row;align-items:center;justify-content:space-between;gap:26px;width:100%}
 .login-brand img{width:164px;max-width:52%}
 .login-product{width:auto;border-top:0;border-left:1px solid #a5916370;padding:12px 0 12px 24px;font-size:9px;letter-spacing:.18em}
 .login-intro,.login-art .login-legal{display:none}
 .login-form{max-width:490px;margin:0 auto;padding:35px 30px 30px}
 .login-form h2{font-size:34px}
 .login-form>.eyebrow{font-size:9px}
 .login-form>p.muted{font-size:11px}
 .sidebar{background:#f4f6ee}
}
@media(max-width:380px){.login-art{min-height:130px;padding:24px 22px}.login-brand{gap:16px}.login-product{font-size:8px;padding-left:16px;letter-spacing:.12em}.login-form{padding:30px 22px}.login-form h2{font-size:31px}}

/* Weekly reports retain the original wording and remain legible on mobile. */
.report-text{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:15px;line-height:1.8;padding:20px;background:var(--mist);border-radius:12px;max-height:65vh;overflow:auto}
.report-meta{border-bottom:1px solid var(--line);margin-bottom:18px}.toolbar select{min-width:160px;max-width:100%}.card details,.card>details{margin-top:18px}details.card summary{cursor:pointer;line-height:1.7}.sidebar nav{overflow-y:auto;min-height:0}.sidebar{display:flex;flex-direction:column}.sidebar-bottom{margin-top:auto}#wa-progress{margin:16px 0;font-weight:600}
@media(max-width:720px){.toolbar{flex-wrap:wrap}.toolbar input,.toolbar select{width:100%;min-width:0}.report-text{padding:14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Daily work: a compact overview and a shared file for each building. */
.daily-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0 24px}
.metric{display:flex;flex-direction:column;gap:10px;padding:22px 24px;border:1px solid var(--line);border-radius:12px;background:var(--paper);transition:border-color .15s,background .15s}
.metric:hover{background:var(--sage);border-color:var(--green)}.metric>span{font-size:12px;font-weight:600;color:var(--text)}.metric>strong{font-size:36px;line-height:1.15;font-weight:500}.metric>small{font-size:11px;color:var(--green)}.metric.red>strong{color:var(--red)}.metric.amber>strong{color:var(--amber)}
.daily-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px;margin-bottom:22px;align-items:start}.daily-grid.equal{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-grid>.card{min-width:0;height:100%;padding:24px}.daily-grid .table-wrap{border:0}.daily-grid .empty{padding:34px 16px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.section-heading h2{font-size:21px;line-height:1.3}.section-heading .text-link{flex-shrink:0;font-size:11px}.text-link{color:var(--deep);text-decoration:underline;text-decoration-color:#a8bba9;text-underline-offset:4px}.text-link:hover{color:var(--green)}.work-item{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;width:100%;border-top:1px solid var(--line);padding:16px 0}.work-item strong{font-size:13px;font-weight:600}.work-item small{font-size:11px;color:var(--text);margin-top:5px}.work-item:hover strong{text-decoration:underline}.work-item .badge{flex-shrink:0;font-size:10px}.review-alert{display:block;background:var(--amber-bg);color:var(--amber);padding:12px 14px;font-size:12px;border-radius:6px;margin-bottom:8px}.coverage>strong{display:block;font-size:38px;line-height:1.25;font-weight:500}.coverage>strong>small{display:inline;font-size:22px;color:var(--text)}.coverage p{margin:8px 0 16px}.daily-grid .muted{font-size:12px;line-height:1.8}.daily-grid p+.actions{margin-top:20px}
.filter-chips,.building-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 20px}.chip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:10px 16px;min-height:42px;font-size:12px}.chip.active{background:var(--green);border-color:var(--green);color:white}.chip>span{font-size:10px;border-radius:4px;background:#7c907b20;padding:1px 5px}.chip.active>span{background:#ffffff20}.chip:hover{border-color:var(--green)}.result-count{font-size:12px;color:var(--text);margin:12px 0 16px}.pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0 26px;font-size:12px;color:var(--text)}.pagination button:disabled{opacity:.4}.pagination .actions{gap:12px}.record-link{font-weight:700;text-decoration:underline;text-decoration-color:#b3c0ac;text-underline-offset:4px}.back-link{display:inline-block;font-size:12px;margin-bottom:18px}.building-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;background:var(--sage);border-radius:10px;padding:22px 24px;margin:20px 0}.building-meta>span{font-size:11px;color:var(--text)}.building-meta strong{display:block;font-size:15px;color:var(--ink);font-weight:600;margin-top:7px}.building-tabs{padding-bottom:16px;border-bottom:1px solid var(--line)}.building-notes{margin:20px 0}.building-notes summary{cursor:pointer}.building-notes p{white-space:pre-wrap;margin-top:12px}.message-card summary{cursor:pointer}.message-card summary strong{font-size:14px}.message-card summary small{font-size:11px;color:var(--text);margin:6px 0 10px}.message-excerpt{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.message-card .report-text{margin:18px 0}.report-meta>a{display:inline-block;margin:8px 0 16px}.table-wrap td{vertical-align:top}.table-wrap td>small{margin-top:5px}
@media(max-width:1200px){.daily-grid{grid-template-columns:minmax(0,1fr)}.daily-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.daily-grid.equal{grid-template-columns:minmax(0,1fr)}.daily-grid>.card{padding:20px}.daily-stats{gap:10px}.metric{padding:18px 16px}.metric>strong{font-size:31px}.building-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:20px}.pagination{flex-wrap:wrap}.pagination .actions{width:100%;justify-content:space-between}.pagination .actions>span{font-size:10px}.work-item{gap:10px}.work-item .badge{max-width:110px;white-space:normal;text-align:center}.page-heading .actions{flex-wrap:wrap}.section-heading h2{font-size:19px}}

.provider-directory{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden}
.provider-directory li{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1.15fr) auto;align-items:center;gap:18px;padding:15px 18px}
.provider-directory li+li{border-top:1px solid var(--line)}
.provider-directory li>div{display:grid;justify-items:start;gap:4px;min-width:0;overflow-wrap:anywhere}
.provider-directory strong{font-size:14px;color:var(--ink)}
.provider-directory small{color:var(--text)}
.provider-coverage,.provider-channels{font-size:12px}
.provider-channels a{color:var(--deep);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.provider-channels a:hover{text-decoration-color:currentColor}
@media(max-width:850px){.provider-directory li{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px 16px}.provider-directory li>.btn{justify-self:end}}
@media(max-width:480px){.provider-directory li{grid-template-columns:minmax(0,1fr) auto}.provider-directory .provider-identity{grid-column:1;grid-row:1}.provider-directory .provider-coverage,.provider-directory .provider-channels{grid-column:1/-1}.provider-directory li>.btn{grid-column:2;grid-row:1}}

/* Shared access language with Caixa LÓGICA; Condomínios keeps its sage workspace. */
.login-art{background:#285342;color:#fff;border:0}.login-art::before{display:none}.login-art::after{inset:auto -200px -360px auto;width:650px;height:650px;border-radius:50%;border:1px solid #ffffff16;background:none;box-shadow:0 0 0 50px #ffffff04,0 0 0 100px #ffffff03;z-index:-1}.login-brand img{width:270px}.login-product{color:#b8ccbf;border-color:#ffffff30}.login-art h1{color:#f7faf5}.login-art p,.login-art .login-legal,.login-intro .eyebrow{color:#b8ccbf}.login-intro .eyebrow::before{background:#a8b791}.login-offline-help{font-size:11px;line-height:1.6;color:#687a69;margin:-10px 0 18px}.login-form .check-label{align-items:flex-start;line-height:1.6}.login-form .check-label input{flex-shrink:0;margin-top:3px}
.sync-status{border-radius:24px!important;white-space:nowrap;min-height:34px;font-size:11px!important;gap:7px!important}.sync-status svg{flex-shrink:0}.sync-status.connected{color:#285342;background:#f0f6ef;border-color:#d7e4d5}.sync-status.local,.sync-status.working{color:#516c58;background:#f4f7f3}.sync-status.attention{color:#866324;background:#fcf8ee;border-color:#e7d6ae}.sync-status.working svg{animation:sync-spin 1.2s linear infinite}@keyframes sync-spin{to{transform:rotate(360deg)}}.topbar-account{flex-wrap:nowrap;gap:8px}.sync-summary{border-left:3px solid #63836b;padding:2px 0 2px 14px;margin:22px 0}.sync-summary.attention{border-color:#b5914d}.sync-summary strong{font-size:18px}.sync-summary p{font-size:13px;line-height:1.7}.save-status{border:1px solid #dce6d6;background:#f4f7f1;border-radius:10px;padding:14px 16px;margin-top:22px;display:grid;gap:6px}.save-status strong{font-size:13px;color:#285342}.save-status small{font-size:11px;line-height:1.6;color:#66796b}.save-status.saving{border-color:#acbfad}.save-status.saving strong::before{content:'';display:inline-block;width:11px;height:11px;border:2px solid #d4dfd0;border-top-color:#285342;border-radius:50%;margin-right:8px;animation:sync-spin 1s linear infinite}#connection-modal{padding:0;border:1px solid var(--line);border-radius:18px;width:min(470px,calc(100vw - 28px));max-height:90dvh;color:var(--ink)}#connection-modal::backdrop{background:#233f3766;backdrop-filter:blur(2px)}#connection-modal .modal-head h2{font-size:24px}#connection-modal input[readonly]{background:#f4f7f2;color:#63776b}#renew-error{color:#9b4133;font-size:12px;line-height:1.7}
@media(max-width:1000px){.topbar .breadcrumbs>span{display:none}.topbar{gap:12px}.topbar .breadcrumbs strong{font-size:12px}}
@media(max-width:760px){.topbar{padding:12px 15px;min-height:64px;height:auto;align-items:center}.topbar .breadcrumbs{flex:0}.topbar .breadcrumbs strong{display:none}.topbar-account{margin-left:auto}.topbar .account-button{border:0;font-size:10px;padding:7px}.topbar .logout-button{display:none}.sync-status{font-size:10px!important;padding:8px 10px!important}.login-brand img{width:200px}.login-art{min-height:130px}.login-product{color:#b8ccbf;border-color:#ffffff30}.save-status{padding:12px}.modal-actions{flex-wrap:wrap}.modal-actions .btn{justify-content:center}.login-form .check-label{font-size:12px}}
@media(prefers-reduced-motion:reduce){.sync-status.working svg,.save-status.saving strong::before{animation:none}}

[hidden]{display:none!important}

/* Case creation and chronological progress */
.case-created{margin:20px 0 6px;padding:16px 18px;background:#edf3e8;border:1px solid #dae4d4;border-radius:12px}.case-created strong{display:block;font-size:13px;margin-top:6px;color:var(--green)}.case-created-list{display:block;margin-top:7px;font-size:11px}.case-update{margin-top:20px;padding:18px;background:#f7f8f3;border:1px solid var(--line);border-radius:12px}.case-update h3{font-size:16px;margin:0}.case-update textarea{background:#fff}.case-history{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.timeline-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.timeline-heading h3{margin:6px 0;font:24px 'DM Serif Display',Georgia,serif}.case-timeline{list-style:none;margin:24px 0 0;padding:0 0 0 15px}.timeline-item{position:relative;padding:0 0 28px 23px;border-left:2px solid #dce4d6;font-size:12px;overflow-wrap:anywhere}.timeline-item:before{content:'';position:absolute;left:-6px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px #f3f6ef}.timeline-item.whatsapp:before{background:#799c68}.timeline-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--text);font-size:10px}.timeline-origin{font-weight:700;border-radius:12px;padding:4px 9px;background:#edf2e8;color:var(--green)}.timeline-item h4{font-size:14px;margin:12px 0 4px}.timeline-author{margin:0 0 12px;color:var(--text);font-size:11px}.timeline-text,.timeline-note{white-space:pre-wrap;line-height:1.75;margin:12px 0;background:#f7f8f4;padding:13px 15px;border-radius:9px}.timeline-note{border-left:3px solid #8caa7e}.timeline-item details{margin-top:12px}.timeline-item summary,.message-association summary{cursor:pointer;color:var(--green);font-size:12px;font-weight:700}.timeline-changes{margin:12px 0;border-top:1px solid var(--line)}.timeline-changes>div{padding:10px 0;border-bottom:1px solid var(--line)}.timeline-changes dt{font-size:10px;color:var(--text);font-weight:700;margin-bottom:5px}.timeline-changes dd{margin:0;display:flex;align-items:baseline;gap:9px;white-space:pre-wrap;line-height:1.6}.timeline-before{color:#737b72}.timeline-arrow{color:#8e9e84}.message-association{margin-top:18px}.message-options{max-height:280px;overflow:auto}.message-options label{display:flex;align-items:flex-start;font-weight:400;border-top:1px solid var(--line);padding-top:12px;line-height:1.6}.message-options input{flex:none;margin-top:3px}.message-options strong{display:block;font-size:11px;margin-bottom:4px}.message-options label>span{min-width:0;overflow-wrap:anywhere}.message-options label>span>span{display:block;white-space:pre-wrap;font-size:11px}@media(max-width:760px){.timeline-heading{display:block}.timeline-heading>.muted{font-size:10px}.case-update{padding:14px}.timeline-changes dd{flex-direction:column;gap:3px}.timeline-arrow{transform:rotate(90deg)}.timeline-item{padding-left:17px}.case-timeline{padding-left:8px}}

.case-created{display:flex;align-items:center;justify-content:space-between;gap:12px}.case-created .btn{flex:none}@media(max-width:420px){.case-created{align-items:flex-start;flex-direction:column}}

/* Individual WhatsApp updates; a separate dialog preserves the open editor. */
.notification-button{position:relative;gap:7px!important;border-radius:24px!important;white-space:nowrap}.notification-button.has-unread{background:#e8f1e4;color:#244d39;border-color:#a9c39c}.notification-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:20px;background:#3f6657;color:#fff;font-size:10px;font-weight:700}.notification-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eff4e9;border:1px solid #d3e1c7;border-left:4px solid #6f925e;border-radius:10px;padding:12px 16px;margin:16px 30px 0;color:#294e38;font-size:12px;line-height:1.6}.notification-banner .btn{flex-shrink:0}#modal-notification-alert{margin:0 0 18px}#notifications-dialog{border:1px solid var(--line);border-radius:18px;width:min(560px,calc(100vw - 28px));max-height:88dvh;padding:0;color:var(--ink);background:#fff}#notifications-dialog::backdrop{background:#233f3766;backdrop-filter:blur(2px)}#notifications-dialog .modal-head h2{font-size:25px}.notification-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.notification-list{list-style:none;margin:18px 0;padding:0;display:grid;gap:14px}.notification-item{border:1px solid var(--line);border-radius:12px;padding:16px;overflow-wrap:anywhere;font-size:12px;line-height:1.65}.notification-item.is-unread{border-color:#b3cba5;background:#f5f8f0;box-shadow:inset 3px 0 #779c65}.notification-item>strong{display:block;font-size:14px;margin-top:9px}.notification-item p{margin:7px 0}.notification-condo{font-weight:600;color:var(--green)}.notification-meta{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#60705d}.notification-meta>span{font-weight:700}.notification-excerpt{color:#596453;white-space:pre-wrap}.notification-item .actions{margin-top:13px}.notification-item>small{display:block;margin-top:10px;color:#6c705e}#notification-error{color:#943d30;font-size:12px}#notification-error:empty{display:none}
@media(max-width:760px){.notification-button-label{display:none}.notification-button{padding:8px!important;gap:4px!important}.notification-banner{margin:12px 15px 0;padding:10px 12px;align-items:flex-start}.notification-banner .btn{font-size:10px;padding:7px 9px}.notification-meta{flex-wrap:wrap}.notification-tools{flex-wrap:wrap}#notifications-dialog .modal-body{padding:18px}.notification-item{padding:13px}.notification-item .actions{flex-wrap:wrap}}

.case-whatsapp-alert {
  display: flex;
  align-items: center;
  gap: .45rem;
  max-width: 100%;
  min-height: 30px;
  margin: .4rem 0;
  padding: .25rem .65rem;
  border: 1px solid #adc6a2;
  border-radius: 1rem;
  background: #eef5e9;
  color: #284e39;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.case-whatsapp-alert::before {
  content: '';
  flex: none;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #487350;
}
.case-whatsapp-alert:hover { background: #e0eed9; }
.case-whatsapp-alert:focus-visible { outline: 2px solid #365d44; outline-offset: 3px; }

#case-comments { margin: 24px 0; border-top: 1px solid var(--line); padding-top: 20px; }
#case-comments h3 { margin: 0 0 12px; }
.case-thread { max-height: 21rem; overflow-y: auto; }
.case-thread ol { display: grid; gap: 10px; list-style: none; padding: 0; margin: 4px 0; }
.comment-bubble { width: fit-content; max-width: 92%; background: #f4f5f0; border-radius: 12px 12px 12px 3px; padding: 10px 14px; color: var(--ink); }
.comment-bubble.own { justify-self: end; background: #eaf2e6; border-radius: 12px 12px 3px 12px; }
.comment-bubble div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: .8rem; }
.comment-bubble time,.comment-bubble small,.comment-actions [role=status] { color: var(--muted); font-size: .74rem; }
.comment-bubble p { margin: 5px 0 0; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
#case-comments form { margin-top: 14px; }
#case-comments textarea { min-height: 58px; }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }

#shell-update:not([hidden]){position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);z-index:40;width:max-content;max-width:calc(100% - 2rem);padding:.7rem 1rem;border:1px solid #436257;border-radius:.65rem;background:#243f35;color:white;font-size:.85rem;line-height:1.4;box-shadow:0 2px 12px #192e2626}

.topbar-account { align-items: flex-start; }
.topbar-account .btn {
  box-sizing: border-box;
  min-height: 38px;
  height: 38px;
  border-radius: 24px;
  line-height: 1.2;
}
.top-sync { display: grid; gap: 4px; min-width: 0; }
.top-sync-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.top-sync-trigger { color: var(--deep); white-space: nowrap; }
.top-sync-trigger svg { flex-shrink: 0; }
.top-sync-last { color: var(--text); font-size: 11px; line-height: 15px; }
.top-sync-last time { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Centre the page title on the controls, leaving the timestamp on its own line. */
@media (min-width: 1001px) {
  .topbar .breadcrumbs { padding-bottom: 19px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .topbar { flex-wrap: wrap; height: auto; min-height: 74px; padding-block: 8px; gap: 5px 12px; }
  .topbar-account { margin-left: auto; }
}
@media (max-width: 560px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "page notices account" "sync sync sync";
    gap: 6px 8px;
    padding: 8px 15px 10px;
  }
  .topbar-account { display: contents; }
  .topbar .breadcrumbs { grid-area: page; min-width: 0; gap: 6px; }
  .topbar .breadcrumbs strong { display: inline; line-height: 1.2; }
  .topbar .mobile-menu { flex-shrink: 0; }
  .topbar .notification-button { grid-area: notices; }
  .topbar .account-button { grid-area: account; }
  .top-sync { grid-area: sync; }
  .top-sync-trigger { font-size: 11px; }
}

.team-presence { position: relative; flex: none; }
.team-presence .presence-trigger {
  gap: 7px;
  background: #f2f6ef;
  color: var(--deep);
  border-color: #d4e1d3;
  font-size: 11px;
}
.presence-trigger:hover, .presence-trigger[aria-expanded="true"] { background: #e8f0e6; border-color: #adc3af; }
.presence-preview { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; border-left: 1px solid #cbd9c9; font-size: 10px; font-weight: 500; }
.presence-preview:empty { display: none; }
.presence-trigger svg { flex: none; }
.presence-trigger .presence-chevron { width: 12px; height: 12px; }
.presence-trigger[aria-expanded="true"] .presence-chevron { transform: rotate(180deg); }
.presence-panel {
  position: absolute;
  z-index: 8;
  top: calc(100% + 7px);
  left: 0;
  box-sizing: border-box;
  width: min(320px, calc(100vw - 30px));
  max-height: min(420px, 65dvh);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 28px #243f351c;
  text-align: left;
}
.presence-panel[hidden] { display: none; }
.presence-heading { margin: 0 0 12px; font-size: 15px; line-height: 1.35; }
.presence-section { margin: 14px 0 4px; color: var(--deep); font-size: 11px; font-weight: 700; }
.presence-list { padding: 0; margin: 0; list-style: none; }
.presence-row { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 0; font-size: 12px; line-height: 1.45; }
.presence-row + .presence-row { border-top: 1px solid var(--line); }
.presence-dot { width: 7px; height: 7px; border-radius: 50%; background: #b4beb2; }
.presence-dot.is-online { background: #487856; }
.presence-name { overflow-wrap: anywhere; }
.presence-seen, .presence-note { color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.presence-seen { text-align: right; }
.presence-note { margin: 8px 0 0; line-height: 1.5; }

@media (max-width: 1099px) {
  .presence-preview { display: none; }
}
@media (min-width: 961px) and (max-width: 1250px) {
  .topbar:has(.team-presence) { height: auto; min-height: 74px; padding-block: 8px; flex-wrap: wrap; gap: 4px 12px; }
  .topbar-account:has(.team-presence) { margin-left: auto; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .topbar:has(.team-presence) {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto auto auto;
    grid-template-areas: "page presence notices account logout" "sync sync sync sync sync";
    gap: 5px 8px;
  }
  .topbar-account:has(.team-presence) { display: contents; }
  .topbar:has(.team-presence) .breadcrumbs { grid-area: page; min-width: 0; }
  .team-presence { grid-area: presence; }
  .team-presence ~ .notification-button { grid-area: notices; }
  .team-presence ~ .account-button { grid-area: account; }
  .team-presence ~ .logout-button { grid-area: logout; }
  .team-presence ~ .top-sync { grid-area: sync; }
  .presence-panel { left: auto; right: 0; }
}
@media (min-width: 561px) and (max-width: 760px) {
  .topbar-account:has(.team-presence) { min-width: 0; }
}
@media (max-width: 560px) {
  .topbar:has(.team-presence) {
    position: relative;
    grid-template-columns: minmax(0,1fr) auto auto auto;
    grid-template-areas: "page presence notices account" "sync sync sync sync";
  }
  .team-presence { grid-area: presence; position: static; }
  .presence-panel { top: 50px; left: 15px; right: 15px; width: auto; }
}
@media (max-width: 420px) {
  .topbar:has(.team-presence) .breadcrumbs strong { display: none; }
}

/* A compact reminder window: no backdrop, focus theft or changes to the editor. */
#reminder-popup{position:fixed;right:24px;bottom:24px;z-index:90;width:min(380px,calc(100vw - 32px));box-sizing:border-box;padding:22px;border:1px solid #bdd0be;border-top:4px solid var(--green,#3f6657);border-radius:16px;background:#fffefa;color:#294538;box-shadow:0 12px 48px #183b352b;max-height:calc(100dvh - 48px);overflow:auto;font-size:12px;line-height:1.6}
.reminder-popup-heading{display:flex;align-items:center;gap:10px;font-size:13px}.reminder-popup-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#eaf2e7;font-size:23px}.reminder-popup-name{font-size:18px;font-weight:600;line-height:1.35;margin:16px 0 9px;overflow-wrap:anywhere}#reminder-popup .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}#reminder-popup .reminder-popup-help{font-size:10px;color:#68756b;margin:13px 0 0}#reminder-popup-error:empty{display:none}#reminder-popup-error{color:#943d30}
@media(max-width:600px){#reminder-popup{right:16px;bottom:16px;padding:18px;max-height:55dvh}.reminder-popup-name{font-size:17px}}
