/* The installed app uses an opaque, compact interface. */
html.app-surface{--ui-release:1.3.9;--ink:#25342e;--muted:#596960;--bg:#f5f6f7;--paper:#fff;--line:#e6e9e7;--green:#245a47;--mint:#eef4f0}
.app-surface body{background:var(--bg)}
.app-surface .topbar{background:var(--bg);box-shadow:none;border-bottom:1px solid var(--line);gap:10px;padding:0 12px}
.app-surface .breadcrumb{font-weight:600}
.app-surface .breadcrumb small{color:#64736c;letter-spacing:0;font-weight:400}
.app-surface .mobile-menu{border-color:#e5e9e6;border-radius:9px;background:#fff}
.app-surface .panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:none}
.app-surface .panel-head{padding:12px 14px}
.app-surface .panel-head h2{font-size:15px}
.app-surface .search-field,.app-surface .filter-select{background:#fafbfa;border-color:#e0e6e2;box-shadow:none}
.app-surface .grading-date-heading{background:#f0f3f1;border-bottom:1px solid #e5eae6}
.app-surface .grading-date-heading h3{font-size:14px;font-weight:650}
.app-surface .grading-date-heading>span,.app-surface .grading-customer-heading>span,.app-surface .group-contact{color:#596960}
.app-surface .grading-customer-heading{padding:11px 12px 6px}
.app-surface .phone-record{background:#fff;border-color:#edf0ed}
.app-surface .phone-record-head>div{min-width:0;flex:1}
.app-surface .phone-record .cell-title{white-space:normal;overflow-wrap:anywhere}
.app-surface .cell-sub{color:#647269}
.app-surface .phone-record .card-mini{border-radius:5px;box-shadow:none}
.app-surface .button{border-radius:8px;box-shadow:none}
.app-surface .button.primary{background:#245a47;box-shadow:none}
.app-surface dialog{border-radius:12px;background:#fff;box-shadow:0 16px 48px #15352d26}
.app-surface dialog::backdrop{background:#172d284d;backdrop-filter:none}
.app-surface .dialog-head,.app-surface .dialog-actions{background:#fff;border-color:var(--line)}
.app-surface .dialog-head p{color:#64736c}
.app-surface .dialog-head>.icon-button{min-width:40px;min-height:40px}
.app-surface .field{color:#4e6055}
.app-surface .field input,.app-surface .field select,.app-surface .field textarea{font-size:16px;min-height:44px;border-color:#dfe6e1;border-radius:8px;color:#25342e;box-shadow:none}
.app-surface .field small,.app-surface .section-label small,.app-surface .quote-note,.app-surface .photo-field{color:#64736c}
.app-surface .item-form{background:#fff;border-color:#e3e8e4;border-radius:10px;box-shadow:none}
.app-surface .item-form .section-label{color:#52695b}
.app-surface .detail-meta{background:#f2f5f3;border:1px solid #e5eae6;color:#5e7165;border-radius:10px}
.app-surface .detail-meta b{color:#283c2f}
.app-surface .detail-card{border-color:#e3e8e4;box-shadow:none;border-radius:10px}
.app-surface .detail-card p,.app-surface .detail-service,.app-surface .detail-history p,.app-surface .detail-history small{color:#64736c}
.app-surface .customer-card,.app-surface .tier-card{border-radius:10px;box-shadow:none}
.app-surface #accountGate{background:#f5f6f7}
.app-surface .account-card{border-color:#e2e8e3;border-radius:14px;box-shadow:none}
.app-surface .account-brand{font-size:15px;letter-spacing:1px}
.app-surface .account-card>p,.app-surface .account-address{color:#586b5e}
.app-surface .sidebar{background:#203d31}
.app-surface .sidebar nav button{border-radius:9px}
.app-surface .sidebar nav button.active{background:#355347}
.app-surface .photo-field>span{flex-basis:100%}
.app-surface .photo-field input[type=file]:not([hidden]){flex:1;min-width:0;max-width:calc(100% - 82px)}
.app-surface .camera-button{flex-shrink:0;min-height:44px}
.app-surface .photo-field img{object-fit:contain}
@media(max-width:780px){
 .app-surface .topbar{height:58px}
 .app-surface main{padding:10px 10px 20px}
 .app-surface .dialog-body{padding:14px}
 .app-surface .dialog-actions{padding:12px 14px;gap:8px}
 .app-surface .dialog-actions .button{min-height:44px}
}

#cancelPhoto[hidden]{display:none!important}.photo-action-status{margin:0;padding:0 20px 10px;overflow-wrap:anywhere}.photo-action-status:empty{display:none}.dialog-actions{flex-wrap:wrap}

.series-pick{display:flex;gap:8px;align-items:center}.series-pick select{flex:1;min-width:0}.series-pick button{flex-shrink:0;white-space:nowrap}.app-surface .topbar .mobile-menu{width:42px;min-width:42px;height:42px;min-height:42px;background:transparent;border:0}.app-surface .breadcrumb{flex:1;min-width:0;line-height:1.35}.app-surface .breadcrumb b{font-size:16px}.app-surface .breadcrumb small{font-size:11px}.app-surface .quick-add{min-height:40px;padding:0 13px;font-size:13px;white-space:nowrap}.app-surface .topbar .button{border-radius:10px}

.app-surface #uiStartup{background:var(--bg)}
