.kaidi-logo{display:inline-block;position:relative;width:180px;aspect-ratio:1040/300;overflow:hidden;vertical-align:middle;flex-shrink:0;mix-blend-mode:multiply}
.kaidi-logo img{position:absolute!important;width:120.577%!important;height:auto!important;max-width:none!important;left:-10.577%;top:-160%;margin:0!important}
.sidebar .brand{display:block;padding:0;line-height:0}.sidebar .brand .kaidi-logo{width:174px}
.auth-story .brand{display:block}.auth-story .kaidi-logo{width:226px}.topbar>.kaidi-brand-link{display:block;line-height:0}.topbar .kaidi-logo{width:128px}
.site-content-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:32px;align-items:start}
.site-content-editor{padding:28px!important}.site-content-editor p{margin:0 0 22px}.site-content-editor label{display:block;margin:20px 0 8px;font-weight:650}.site-content-editor input:not([type=checkbox]),.site-content-editor textarea,.site-content-editor select{width:100%;max-width:100%}
.site-content-editor .helptext,.site-content-editor small{display:block;color:var(--muted);line-height:1.6;margin:7px 0 16px}
.site-content-editor .check-label{display:flex;align-items:center;gap:10px;font-weight:400}.site-content-editor .check-label input{flex-shrink:0}
.content-language{margin-top:20px;padding:16px 0;border-top:1px solid var(--border)}.content-language summary{cursor:pointer;font-size:17px;font-weight:700}.content-language[open] summary{margin-bottom:18px}
.site-content-editor .button{margin-top:20px}.site-content-preview{min-width:0}.site-content-preview>h2{margin:0 0 10px}.site-content-preview>.muted{max-width:48ch;margin-bottom:22px}
.content-publish{margin:24px 0}.content-publish .button{white-space:normal;min-height:48px;width:100%}.site-content-preview .future-panel{margin:0}.site-content-preview .phone-showcase{max-height:340px;object-fit:contain}
.dashboard-promotion{padding:22px!important;overflow-wrap:anywhere;background:var(--surface,#fff);border:1px solid var(--border);border-radius:20px;box-shadow:0 10px 24px #3020470c}
.dashboard-promotion img{display:block;width:100%;max-height:450px;object-fit:contain;border-radius:12px;margin:0 0 22px}.dashboard-promotion h2{font-size:24px;line-height:1.25;margin:0 0 14px}.dashboard-promotion p{font-size:15px;line-height:1.65;white-space:pre-line;margin:0 0 20px}.dashboard-promotion a.button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.content-history{margin-top:32px;padding:26px!important}.content-history ul{list-style:none;padding:0}.content-history li{display:flex;gap:16px;flex-wrap:wrap;padding:13px 0;border-bottom:1px solid var(--border)}.content-history time{color:var(--muted);margin-left:auto}
@media(max-width:1000px){.site-content-layout{grid-template-columns:1fr}.site-content-preview{max-width:600px}.site-content-editor{padding:22px!important}}
@media(max-width:760px){.sidebar .brand .kaidi-logo{width:140px}.auth-story .kaidi-logo{width:185px}.site-content-editor{padding:20px!important}.content-history time{width:100%;margin-left:0}}

/* Invoice lines use semantic field names; adding a product selector must not
   squeeze the description or VAT treatment into a numeric-width column. */
@media(max-width:760px){
  .line-form>.field[data-field]{grid-column:auto;min-width:0}
  .line-form>.field[data-field="product"],.line-form>.field[data-field="description"],.line-form>.field[data-field="vat_code"]{grid-column:1/-1}
  .line-form>.field[data-field] select{width:100%;max-width:100%}
}
/* Give the finder a readable row on phones instead of truncating it to an icon. */
@media(max-width:600px){
  .topbar{height:auto;min-height:65px;flex-wrap:wrap;gap:10px}
  .topbar>.view-finder{flex:1 0 100%;width:100%;min-width:0}
  .topbar>.view-finder>summary{min-height:44px;font-size:13px}
  .topbar>.top-actions{width:100%;min-width:0;justify-content:flex-end;flex-wrap:wrap}
  .topbar .language select,.topbar .language button{min-height:40px}
}
