:root{color-scheme:light;--bg:#f5f7fc;--panel:#fff;--panel2:#f6f8fd;--border:#dce3ef;--text:#24334d;--muted:#586b85;--dim:#6a7b93;--mint:#198b79;--mintbg:#e2f7ef;--amber:#98600d;--red:#b84059;--blue:#356cbd}
body{background:var(--bg);color:var(--text)}.sidebar,.topbar{background:#fff;border-color:var(--border)}.nav button{color:#52637d}.nav button:hover,.nav button.active{background:#e7f5f1;color:#187b6b}.nav .count,.avatar{background:#e7edf9;color:#456388}.mode-box,.portable{background:#ecf8f4;border-color:#ccebe0}.panel,.metric,.modal,.connection-table,.run-summary>div{background:#fff;border-color:var(--border);box-shadow:0 6px 22px #354b7310}thead{background:#f1f5fb;color:#596d87}tbody tr:hover{background:#f3f8fd}.btn{background:#f4f7fc;color:#34465e;border-color:#d6dfec}.btn:hover{background:#e5eef9;border-color:#b8cce2}.btn.primary{background:#bcebdc;border-color:#a5decf;color:#185e50}.btn.primary:hover{background:#a8e2d0}.btn.danger{background:#fce9ed;color:#a82f4b;border-color:#f2c7d1}input,select,textarea{background:#fff;color:#24334d;border-color:#ccd8e7}.badge{background:#edf3fa;color:#4c6681;border-color:#d4e2ef}.badge.ok{background:#e3f7ef;color:#187861;border-color:#bde7d9}.badge.error{background:#fcebed;color:#a43850;border-color:#f1cbd3}.badge.warn{background:#fff2dc;color:#94600f;border-color:#f0d8a9}.notice{background:#fff6e9;border-color:#f2d9b2;color:#755525}.notice.info{background:#edf5ff;border-color:#d0e3fa;color:#365f89}.notice.success{background:#eaf8f1;border-color:#cdebdc;color:#36725b}.server-icon,.dest-mark{background:#e8f3f3;color:#398778;border-color:#cde5df}.bar{background:#e7edf4}.terminal{background:#f0f4f9;color:#33435b}.compact-server[open]>summary{background:#eaf6f2}.path-preview,.fm-storage-layout{background:#eff8f5;color:#365f56;border-color:#d4e9e1}.overlay,.dialog-overlay{background:#1c2b4755}.login-story{background:#e7f5ef}.login-form-wrap{background:#fff}.workflow-option{background:#fff;border-color:#d9e4ef}.workflow-option:first-child{background:#eaf8f3}.compare-count,.compare-label{background:#edf3fa;color:#46617a}.doc-action-card,.doc-step,.doc-intro{background:#f8faff;border-color:#dce5f0}code,pre{color:#36536c}input[type=checkbox]:checked{background:#75d0b6;border-color:#75d0b6}

/* Readable controls and compact, balanced layouts */
.field label,.run-filters label,.login-form-wrap label,.form-grid label{color:#3e516b;font-weight:650}.field small,.sub,.small.muted{color:#586b85}.content{padding:28px 32px 48px}.page-head{margin-bottom:22px}.panel{border-radius:13px}.panel-body{padding:18px}.compact-server-shell{position:relative;border-bottom:1px solid var(--border)}.compact-server-shell:last-child{border-bottom:0}.compact-server{border:0}.compact-server-check{position:absolute;inset-inline-end:16px;top:17px}.compact-server>summary{min-height:78px;padding-inline-end:215px;gap:16px}.compact-server-stat{min-width:100px}.compact-server-name{flex:1 1 230px}.login-form-wrap label{color:#4b5e78}.modal{background:#fff;color:var(--text)}.modal-head,.modal-footer{background:#f9fbff;border-color:var(--border)}.step.active,.wizard-step.active{color:#176d5f}.ft-workflow-steps span{color:#50617b}.ft-workflow-steps span:first-child{color:#176d5f}@media(max-width:800px){.compact-server>summary{padding:14px 16px 58px}.compact-server-check,.compact-server[open]~.compact-server-check{top:92px;bottom:auto}.compact-server-name{flex-basis:100%}.content{padding:16px 12px 36px}}
.schedule-intro{background:#eaf7f1;border-color:#cce8dc}.schedule-intro p,.schedule-toolbar label,.schedule-row-title p,.schedule-data span,.schedule-data small,.schedule-empty p,.schedule-footnote,.schedule-preview small{color:#526981}.schedule-stats>div,.schedule-scope,.schedule-preview,.schedule-weekdays label{background:#f3f8fc;border-color:#d5e2ec}.schedule-stats strong,.schedule-data code,.schedule-scope code{color:#167765}.schedule-toolbar,.schedule-row,.schedule-row-bottom{border-color:#dce5ee}.schedule-empty>.icon{color:#198b79}.schedule-data b{color:#24334d}.field label,.schedule-toolbar label{color:#435976}
/* Keep each server's identity and metrics aligned on the same row. */
.compact-server>summary{display:grid;grid-template-columns:minmax(180px,1fr) minmax(105px,125px) minmax(100px,120px) minmax(130px,150px) auto;align-items:center;column-gap:20px}.compact-server-name{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;text-align:right}.compact-server-host{display:block;direction:ltr;text-align:left;unicode-bidi:isolate}.compact-server-stat{min-width:0;align-content:center;text-align:right}.compact-server-stat strong{justify-self:start;unicode-bidi:isolate}.compact-server>summary>.btn{justify-self:start}.compact-server-check{top:50%;transform:translateY(-50%)}.compact-server-shell:has(details[open])>.compact-server-check{top:39px}.compact-server-error{max-width:145px}@media(max-width:1100px){.compact-server>summary{grid-template-columns:minmax(140px,1fr) repeat(3,minmax(90px,1fr)) auto;column-gap:10px}}@media(max-width:800px){.compact-server>summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 16px 60px}.compact-server-name{grid-column:1/-1}.compact-server-check,.compact-server[open]~.compact-server-check{top:145px;transform:none}.compact-server-shell:has(details[open])>.compact-server-check{top:145px}}

.login-page.login-private{display:flex;align-items:center;justify-content:center;min-height:100vh;background:#f5f7fc;padding:24px}.login-private .login-form-wrap{width:min(100%,440px);padding:34px;background:#fff;border:1px solid #dce3ef;border-radius:16px;box-shadow:0 12px 38px #354b7312}.login-private .login-form{width:100%;max-width:none}.login-private .login-form h2{text-align:center}.login-private .login-form .sub{text-align:center;margin-bottom:22px}
/* Complete light surfaces for dialogs, tables, reports and documentation. */
.connection-table thead th{background:#eef3f9;color:#405975}.connection-entry:nth-of-type(even){background:#f7faff}.connection-entry:hover{background:#edf8f4}.connection-note{color:#356e60}.wizard-steps{background:#f1f6fb;border-color:#dce5ef}.wizard-step{color:#526982}.wizard-step.active{color:#167766}.wizard-step b{background:#e4edf6;color:#526982}.wizard-step.active b{background:#bcebdc;color:#176b5d}.wizard-aside{background:#f5f9fc;border-color:#d9e4ee;color:#263950}.wizard-aside .muted,.wizard-aside small,.wizard-aside p{color:#526a82}.config-option,.target-option,.review-block,.fingerprint-box,.destination-test-summary,.diagnostic-metrics>div,.doc-search,.doc-action,.fm-preview,.repo-route{background:#f5f9fc;border-color:#d9e4ee;color:#263950}.config-option.selected,.target-option.selected{background:#e4f7ee;border-color:#8bd0b8;color:#1e5c4d}.account-table tr.selected{background:#e7f7ef}.tag{background:#eef4fa;border-color:#d9e4ee;color:#344b63}.doc-intro,.doc-chapter-head{background:#eaf7f1;border-color:#cde8dc;color:#263950}.doc-action summary,.doc-action p,.doc-chapter-head p{color:#3e536d}.doc-contents a.selected{background:#e5f6ef;color:#167766}.repo-route b,.repo-route small{color:#39766b}.storage_changed{background:#fff4df;color:#81530e;border-color:#ecd49b}.run-summary span{color:#526a82}.run-error{color:#aa3852}.toast{background:#fff;color:#263950;border-color:#cedbe9}.toast.error{background:#fff0f2;color:#9e2f47}.account-table thead,.account-table th{background:#eef3f9;color:#405975}
/* Single-line navigation and remaining light-surface contrast. */
@media(min-width:721px){.shell{grid-template-columns:250px minmax(0,1fr)}.sidebar{width:250px;padding-inline:12px}}
.nav button{gap:8px;padding-inline:9px}.nav button>span:not(.count){white-space:nowrap;font-size:13px;min-width:0}.nav button .icon{flex-shrink:0}.nav .count{flex-shrink:0}.sidebar-foot .mode-box b{white-space:normal}.doc-intro,.doc-chapter-head{background:#eaf7f1;color:#263950}.doc-action,.doc-step,.doc-result,.doc-search,.doc-topic-card,.doc-contents a:hover{background:#f7faff;color:#263950;border-color:#d9e4ee}.doc-contents a.selected{background:#e5f6ef;color:#176b5d}.documentation{--doc-accent:#198b79}.compare-result-heading .good,.compare-label.good,.compare-count.good,.workflow-option .workflow-tag,.ft-live-speed{color:#167765}.compare-result-heading .issue,.compare-label.issue,.compare-count.issue{color:#94600f}.compare-details summary{color:#26796b}.badge.blue{background:#eaf3ff;color:#356c9e;border-color:#d3e3f4}.help-content p,.help-content li{color:#52677f}.help-content code{background:#f2f7fb;color:#36536c;border-color:#d9e4ee}.schedule-stats span{color:#526981}.modal .sub,.modal label{color:#435976}@media(max-width:720px){.sidebar{width:250px;max-width:90vw}.shell{display:block}.nav button>span:not(.count){white-space:nowrap}}

.log-group{border-top:1px solid var(--border)}.log-group>summary{display:flex;align-items:center;gap:16px;padding:14px 18px;cursor:pointer;list-style:none}.log-group>summary::-webkit-details-marker{display:none}.log-group[open]>summary{background:#eaf7f1}.log-group-main{flex:1;min-width:0;display:grid;gap:4px}.log-group-main small{color:var(--muted);overflow-wrap:anywhere}.log-group-count{color:#53677e;font-size:12px}.log-group-body{padding:16px 18px}.log-group-body>.table-wrap{margin-top:12px}.log-message{white-space:pre-wrap;overflow-wrap:anywhere;min-width:300px}@media(max-width:700px){.log-group>summary{flex-wrap:wrap}.log-group-main{flex-basis:100%}.log-group-body{padding:12px}}
#log-filters{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--border);margin:0}#log-filters .searchbox{flex:1 1 320px;min-width:180px;margin:0}#log-filters select{flex:0 0 150px;width:150px!important;min-height:40px}#log-filters>.btn{min-height:40px;flex:none;white-space:nowrap}#event-results>.log-groups{margin:0}#event-results .log-group:first-child{border-top:0}@media(max-width:700px){#log-filters{padding:14px;flex-wrap:wrap}#log-filters .searchbox{flex-basis:100%}#log-filters select{flex:1 1 130px}#log-filters>.btn{flex:1 0 auto}}
/* Shared spacing and balanced filters */
.run-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end;padding:18px}.run-filters label{display:grid;gap:6px;min-width:0}.run-filters label:first-child{grid-column:span 2}.run-filters input,.run-filters select{width:100%;min-width:0;min-height:40px}.run-filters>.btn{min-height:40px;justify-self:start}.run-filters>.muted{grid-column:1/-1}.form-grid{gap:14px 16px}.field{min-width:0}.field label{margin-bottom:6px}.field input,.field select,.field textarea{min-height:40px}.modal-head,.modal-body,.modal-footer{padding:18px 20px}.modal-footer{gap:12px}.modal-footer .btn{min-height:40px}.panel-head{gap:12px}.action-row{gap:8px}.connection-list-caption{padding:12px 16px}.connection-row-actions .btn{min-height:34px}.native-source-row{gap:18px;padding:18px}.workflow-option{padding:20px;border-radius:13px}.workflow-option .action-row{gap:8px}.empty{padding:42px 24px}.table-wrap{max-width:100%}@media(max-width:900px){.run-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.run-filters label:first-child{grid-column:1/-1}}@media(max-width:600px){.run-filters{padding:14px;gap:10px}.run-filters label{grid-column:1/-1}.run-filters>.btn{justify-self:stretch}.modal-head,.modal-body,.modal-footer{padding:14px}.modal-footer{flex-wrap:wrap}.modal-footer .btn{flex:1 1 auto}.native-source-row{padding:14px}}

.recent-run-table :is(th,td){text-align:right;vertical-align:middle}.recent-run-table .row-name,.recent-run-table .mono{direction:ltr;unicode-bidi:isolate;text-align:right}.recent-run-table td:last-child{width:3rem;text-align:center}

.ft-more{padding:12px 16px;border:1px solid var(--border);border-radius:10px;background:#f5f8fc}.ft-more summary{cursor:pointer;font-weight:650}.ft-target-preview code{display:block;text-align:left;overflow-wrap:anywhere}

.server-name-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.server-name-line bdi{overflow-wrap:anywhere}
.server-type-tag{display:inline-block;padding:2px 8px;border-radius:12px;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;background:#edf1f5;color:#344458}
.server-type-tag.type-cpanel{background:#fff0dc;color:#81400b}
.server-type-tag.type-directadmin{background:#e7f1ff;color:#234f85}
.server-type-tag.type-virtualizor{background:#eee9fc;color:#584189}

/* A restrained surface hierarchy for the everyday workspace. */
:root {
  --bg: #f5f7f6;
  --panel2: #f3f6f5;
  --border: #d9e3e0;
  --text: #213a36;
  --muted: #526960;
  --dim: #5d706a;
}
.content { background: linear-gradient(160deg,#eef5f1 0,transparent 340px),var(--bg); }
.sidebar { background: #fbfcfa; }
.page-head h1 { color: #183d34; font-weight: 750; line-height: 1.55; }
.page-head .sub { max-width: 65ch; line-height: 1.8; }
.panel,.metric,.workflow-option {
  border-color: var(--border);
  box-shadow: 0 1px 2px #1b403408,0 5px 16px -10px #214c3c25;
}
.panel-head,.connection-list-caption { background: #fbfcfa; }
.panel-head h2,.modal-head h2 { color: #29483e; }
.metric-top .icon { color: #426e5d; }
.metric-value { color: #203e33; font-variant-numeric: tabular-nums; }
.workflow-option:first-child { background: linear-gradient(115deg,#fafcf9,#eef6f0); }
.nav button.active { background: #e2efe7; color: #214f3d; box-shadow: inset -3px 0 #478266; }
.btn.primary { background: #276450; color: #fff; border-color: #276450; }
.btn.primary:hover:not(:disabled) { background: #1d523f; border-color: #1d523f; }
.btn:not(.primary):not(.danger):not(.ghost) { background: #fafcfb; border-color: #cfdcd6; color: #344e43; }
.btn:not(.primary):not(.danger):not(.ghost):hover:not(:disabled) { background: #eff5f1; }
.btn:focus-visible,.nav button:focus-visible,summary:focus-visible {
  outline: 2px solid #38765f; outline-offset: 2px;
}
.modal { box-shadow: 0 18px 64px #16382d26; }
.modal-head,.modal-footer { background: #f8faf8; }

#catalog-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(135px,175px) auto;align-items:center;gap:10px;margin:0;padding:16px 18px;border-bottom:1px solid var(--border)}
#catalog-filter .searchbox{min-width:0;margin:0}
#catalog-filter select,#catalog-filter button,#catalog-filter input{min-height:40px}
#catalog-content .empty{padding:32px 16px}
@media(max-width:650px){#catalog-filter{grid-template-columns:minmax(0,1fr) auto;padding:12px}#catalog-filter .searchbox{grid-column:1/-1}}

/* Keep long paths and wrapped actions inside their dialog on small screens. */
.modal .modal-head>div,.modal .field{min-inline-size:0}
.modal-head :is(h2,p),.modal-body code{overflow-wrap:anywhere}
.modal-footer .btn,.panel-head .btn{line-height:1.55}
@media(max-width:800px){
 .compact-server-shell>.compact-server-check,.compact-server-shell:has(details[open])>.compact-server-check{position:static;transform:none;padding:0 16px 12px}
 .compact-server-shell>.compact-server>summary{padding-bottom:12px}
}

.run-progress{display:grid;gap:4px;min-width:130px;max-width:225px;font-variant-numeric:tabular-nums}
.run-progress small{color:var(--muted);line-height:1.5}.run-progress strong{color:#225e4c}
.run-progress progress{appearance:none;display:block;width:100%;height:6px;border:0;border-radius:6px;overflow:hidden;background:#e5eeea;color:#36836b}
.run-progress progress::-webkit-progress-bar{background:#e5eeea;border-radius:6px}
.run-progress progress::-webkit-progress-value{background:#36836b;border-radius:6px}
.run-progress progress::-moz-progress-bar{background:#36836b;border-radius:6px}

.speed-readout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;padding:16px 20px;gap:16px}
.speed-readout>div+div{border-inline-start:1px solid var(--border);padding-inline-start:20px}
.speed-readout dt{color:var(--muted);font-size:13px}.speed-readout dd{margin:4px 0 0;font-weight:700;font-variant-numeric:tabular-nums}
.speed-readout>div:first-child dd{color:#225f4a}
.modal.speed-dialog{width:min(430px,calc(100vw - 24px))}
.speed-dialog .speed-input{display:flex;align-items:center;gap:10px;border:1px solid #b6cfc2;background:#f6faf7;border-radius:10px;padding:0 12px}
.speed-input:focus-within{outline:2px solid #39816a}.speed-dialog .speed-input input{flex:1;min-width:0;border:0;background:transparent;text-align:left;box-shadow:none;font-weight:700;font-size:20px;outline:0}
.speed-input span{color:#4c6559}.speed-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}
.speed-presets button{white-space:nowrap}.speed-advanced{margin-top:16px;border-top:1px solid var(--border);padding-top:12px}.speed-advanced summary{cursor:pointer;color:#416050}
.speed-advanced .field{margin-top:12px}.speed-advanced form{margin-top:14px;border-top:1px solid var(--border)}.speed-advanced form>button{margin-top:8px}

.repo-path-summary + .diagnostic-metrics{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.repo-path-summary + .diagnostic-metrics>div{min-width:0}
.repo-path-summary + .diagnostic-metrics strong{direction:ltr;unicode-bidi:isolate;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:600px){
 .repo-path-summary + .diagnostic-metrics{gap:6px}
 .repo-path-summary + .diagnostic-metrics>div{padding:8px}
 .repo-path-summary + .diagnostic-metrics strong{font-size:15px}
}

/* Filesystem notation has its own direction within the Persian interface. */
.fs-path,.fm-breadcrumb,.fm-breadcrumb button,.fm-location,.fm-name,.fm-name button,
.fm-run-path,.fm-storage-layout,.run-path,.test-path,.compare-path,.path-preview,
.repo-path-summary code,.compare-paths code,.schedule-data code,.schedule-scope code,
.ft-target-preview code,#ft-selection .mono,#ft-browser .small.mono,
input[name="path"],#ft-location-path,#ft-target-path{
 direction:ltr;unicode-bidi:isolate;text-align:left
}
.fm-breadcrumb,.fm-location,.fm-name{justify-content:flex-start}
.fm-name{margin-right:auto;margin-left:0}
.fm-breadcrumb button,.fs-path,.fm-name button{max-width:100%;overflow-wrap:anywhere}
code.compare-path,.compare-paths code,.schedule-data code,.schedule-scope code{display:block}
/* Destination inventory */
.connection-list-scroll:has(.storage-connections) { min-height: 0; scrollbar-gutter: auto; }
.storage-connections .connection-row-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.storage-connections .connection-row-actions > .action-row { grid-column: 1 / -1; display: flex; justify-content: flex-start; }
.connection-table.storage-connections .connection-col-actions { width: 24%; }
.connection-table.storage-connections .connection-col-details { width: 19%; }
.storage-connections .connection-data-row > td { vertical-align: top; padding: 12px; }
.storage-connections .connection-facts { margin: 0; display: grid; gap: 10px; }
.storage-connections .connection-facts dd { margin: 3px 0 0; }
.storage-connections .connection-facts .mono, .storage-connections .server-meta { direction: ltr; unicode-bidi: isolate; }
.storage-connections .connection-status { align-items: flex-start; }
.storage-connections .test-summary-row { gap: 6px; align-items: flex-start; }
.storage-connections .connection-note { line-height: 1.6; }
/* Server details scroll area uses the light panel background. */
.connection-list-scroll:has(.source-connections) {
  background: #ffffff;
  scrollbar-gutter: auto;
  min-height: 0;
  scrollbar-color: #c5d5d0 #f5f9f8;
}
