/* DEV50: shared controls for the workspace and public customer pages. */
:root{--control-focus:var(--brand-gold);--control-border:var(--brand-line);--control-text:var(--brand-text)}
body button,body [role="button"],body a.btn{
 min-height:44px!important;min-width:44px!important;
 font-size:14px!important;line-height:1.4!important;
 touch-action:manipulation;cursor:pointer;
}
body button{max-width:100%;overflow-wrap:anywhere}
body button:focus-visible,body a:focus-visible,body [role="button"]:focus-visible,
body input:focus-visible,body select:focus-visible,body textarea:focus-visible{
 outline:3px solid var(--control-focus)!important;outline-offset:3px!important;
}
body button:disabled,body [aria-disabled="true"]{cursor:default!important;opacity:.65}
body button.app-back{
 display:inline-flex;align-items:center;justify-content:center;gap:9px;
 min-height:44px!important;padding:10px 16px!important;margin:0 0 16px;
 border:1px solid var(--control-border)!important;border-radius:10px!important;
 background:var(--brand-surface)!important;color:var(--control-text)!important;
 font-size:14px!important;font-weight:700!important;line-height:1.4!important;
 text-decoration:none;box-shadow:0 1px 2px rgba(0, 0, 0, 0.031);
}
body button.app-back span{font-size:20px;line-height:1}
body .primary:not(.danger):not(.decline){background:var(--brand-gold);color:var(--brand-on-gold)}
body .card-head{gap:12px;flex-wrap:wrap}
body .card-head button{padding:8px 12px;border-radius:8px;color:var(--brand-gold)}
body :is(.task-filters,.change-filters,.dl-filters,.pt-filters,.photo-filters,.docs-filters,
 .invoice-head-actions,.pf-head-actions,.crm-actions,.money-toolbar){flex-wrap:wrap;gap:8px}
@media(hover:hover){
 body button.app-back:hover{background:var(--brand-gold-soft)!important;border-color:var(--brand-line)!important}
 body .card-head button:hover{background:var(--brand-gold-soft)}
 body button:not(:disabled):hover{filter:brightness(.97)}
}
@media(max-width:700px){
 body :is(.ec-head,.invoice-head,.change-head,.expense-head,.task-head,.dl-head,.pt-head,.pf-head,
 .photos-toolbar,.docs-toolbar,.schedule-toolbar){flex-wrap:wrap;gap:12px}
 body :is(.ec-head,.invoice-head,.change-head,.expense-head,.task-head,.dl-head,.pt-head,.pf-head)>button{width:100%}
 body button.app-back{margin-bottom:18px;text-align:left}
}
@media(forced-colors:active){body button.app-back{border:1px solid ButtonText!important}body button:focus-visible{outline-color:Highlight!important}}
@media(prefers-reduced-motion:reduce){body button{transition:none!important;animation:none!important}}

/* DEV53: the long Daily Log form has a return control at both ends. */
body .dl-modal-head{flex-wrap:wrap;align-items:center;gap:12px}
body .dl-modal-head>div{flex:1 1 220px}
body .dl-modal-head button.app-back{width:auto;height:auto;margin:0}
body .dl-modal-actions{flex-wrap:wrap;gap:10px;align-items:center}
body .dl-modal-actions button.app-back{margin:0;margin-right:auto}
@media(max-width:620px){body .dl-modal-actions button.app-back{width:100%;margin-right:0}}

/* DEV54: clear destination for the Field Mode exit. */
body .dev42-field-head button.app-back{flex-shrink:0;margin:0}
@media(max-width:700px){body .dev42-field-head{flex-wrap:wrap}body .dev42-field-head button.app-back{width:100%}}

/* DEV55: usable backup history and explicit restore selection. */
.backup-section{margin-top:18px}.backup-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--brand-line)}.backup-row>div{min-width:0}.backup-row strong{overflow-wrap:anywhere}.backup-row small{display:block;color:var(--brand-muted);margin-top:5px}.backup-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}#backup button:not(.app-back){padding:10px 16px}#backup label{display:block;margin:16px 0;font-weight:600}#backup input{display:block;max-width:100%;margin-top:8px;padding:10px;border:1px solid var(--brand-line);border-radius:8px;font:inherit}#backupMessage:not(:empty){padding:14px;margin-bottom:14px;background:var(--brand-gold-soft);border-radius:9px;color:var(--brand-text)}#backup h1{margin:6px 0}#backup .card p{line-height:1.6}

.backup-actions a.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--brand-line);border-radius:9px;padding:10px 16px;color:var(--brand-gold);background:var(--brand-surface);font-weight:700;text-decoration:none}

/* DEV56: a focused tools hub with clear destinations and no fabricated metrics. */
#more .more-tools-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:12px 0 32px}
#more .more-tools-heading h1{font-size:32px;letter-spacing:-.025em;line-height:1.2;margin:8px 0 10px}
#more .more-tools-heading p:not(.eyebrow){color:var(--brand-muted);line-height:1.6;margin:0;max-width:650px}
#more .more-tools-heading>button{padding:10px 16px;flex-shrink:0;background:var(--brand-surface);border:1px solid var(--brand-line);border-radius:10px;color:var(--brand-text);font-weight:700}
#more .more-tools-group{margin-bottom:30px}
#more .more-group-heading{margin-bottom:15px}
#more .more-group-heading h2{font-size:18px;margin:0 0 5px;color:var(--brand-text)}
#more .more-group-heading p{font-size:14px;line-height:1.5;color:var(--brand-muted);margin:0}
#more .more-tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#more .more-tool-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0;min-height:232px!important;height:auto;padding:24px;border:1px solid var(--brand-line);border-radius:16px;background:var(--brand-surface);color:var(--brand-text);box-shadow:0 2px 8px rgba(0, 0, 0, 0.020)}
#more button.more-tool-card{cursor:pointer;transition:border-color .16s,box-shadow .16s}
#more .more-tool-icon{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:12px;background:var(--brand-gold-soft);color:var(--brand-gold);margin-bottom:18px}
#more .more-tool-copy{display:block;flex:1;width:100%;min-width:0}
#more .more-tool-title{display:block;font-size:18px;font-weight:750;line-height:1.35;margin-bottom:8px}
#more .more-tool-description{display:block;font-size:14px;line-height:1.6;color:var(--brand-muted)}
#more .more-tool-footer{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;padding-top:20px;font-size:14px;font-weight:700;color:var(--brand-gold)}
#more .more-tool-footer>span[aria-hidden]{font-size:20px}
#more .more-tool-protected .more-tool-icon{background:var(--brand-gold-soft);color:var(--brand-success)}
#more .more-tool-future{background:var(--brand-gold-soft);border-style:dashed;box-shadow:none}
#more .more-tool-future .more-tool-icon{background:var(--brand-surface);color:var(--brand-muted)}
#more .more-tool-status{display:inline-block;border:1px solid var(--brand-line);background:var(--brand-surface);color:var(--brand-muted);border-radius:99px;padding:5px 10px;font-size:14px;font-weight:600}
@media(hover:hover){#more button.more-tool-card:hover{border-color:var(--brand-line);box-shadow:0 6px 20px rgba(0, 0, 0, 0.047);filter:none}}
@media(max-width:1100px){#more .more-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#more .more-tools-heading{align-items:flex-start;flex-direction:column;gap:16px;margin:8px 0 24px}#more .more-tools-heading h1{font-size:28px}#more .more-tools-grid{grid-template-columns:1fr;gap:14px}#more .more-tool-card{padding:20px;min-height:215px!important}}

/* DEV57: consistent return to the global More tools hub. */
.security-header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
body .security-header-actions button.app-back{margin:0;width:auto;height:auto;white-space:normal}
@media(max-width:700px){.security-head{flex-wrap:wrap}.security-header-actions{width:100%}}
