/* „Mój księgowy" — kontakt, wiadomość i wysyłka dokumentów. Tokeny z crm-new-look.css. */
.co-block{display:flex;flex-direction:column;gap:14px}
.co-owner{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 18px;
 border:1px solid var(--border,#26272d);border-radius:16px;background:var(--surface,#131419)}
.co-empty{padding:16px 18px;border:1px dashed var(--border-2,#2f3138);border-radius:16px;
 color:var(--muted,#9aa0ab);font-size:.88rem;line-height:1.5}
.co-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:52px;height:52px;
 border-radius:16px;overflow:hidden;color:#fff;font-weight:var(--fw-b,700);font-size:1.05rem;
 background:linear-gradient(140deg,hsl(var(--co-h,210) 58% 48%),hsl(calc(var(--co-h,210) + 34) 62% 38%));
 box-shadow:0 2px 10px rgba(0,0,0,.28)}
.co-avatar img{width:100%;height:100%;object-fit:cover;position:absolute}
.co-who{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1 1 200px}
.co-who small{color:var(--muted,#9aa0ab);font-size:.68rem;letter-spacing:.12em;font-weight:var(--fw-s,600)}
.co-who strong{font-size:1.05rem}
.co-who span{color:var(--muted,#9aa0ab);font-size:.82rem;overflow-wrap:anywhere}
.co-act{display:flex;gap:8px;flex-wrap:wrap}
.co-btn{display:inline-flex;align-items:center;text-decoration:none;font-weight:var(--fw-s,600);font-size:.85rem;padding:9px 14px;border-radius:12px}
.co-btn:hover{border-color:var(--nl-accent,#3D8BFF);color:var(--text,#eef0f4)}
.co-copy{display:flex;gap:8px;flex-wrap:wrap;width:100%}

.co-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:14px;align-items:start}
.co-card{border:1px solid var(--border,#26272d);border-radius:16px;background:var(--surface,#131419);padding:16px 18px;
 display:flex;flex-direction:column;gap:10px}
.co-card h3{margin:0;font-size:1rem}
.co-lead{margin:0;color:var(--muted,#9aa0ab);font-size:.86rem;line-height:1.5}
.co-card form{display:flex;flex-direction:column;gap:8px}
.co-card label{display:flex;flex-direction:column;gap:5px;font-size:.82rem;color:var(--muted,#9aa0ab)}
.co-card textarea{font:inherit;padding:10px 12px;border-radius:12px;border:1px solid var(--border,#26272d);
 background:var(--surface-2,#191a20);color:var(--text,#eef0f4);resize:vertical;min-height:72px}
.co-primary{background:var(--nl-accent,#3D8BFF);color:var(--nl-accent-ink,#06121f);border-color:transparent;font-weight:var(--fw-s,600);align-self:flex-start}
.co-modes{display:flex;gap:6px;flex-wrap:wrap}
.co-modes .btn{font-size:.82rem}
.co-on{background:var(--nl-accent,#3D8BFF);border-color:transparent;color:var(--nl-accent-ink,#06121f);font-weight:var(--fw-s,600)}
.co-step{display:flex;gap:12px;align-items:flex-start}
.co-num{flex:0 0 auto;width:24px;height:24px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
 background:var(--surface-3,#1f2027);border:1px solid var(--border,#26272d);font-size:.78rem;font-weight:var(--fw-b,700);color:var(--muted,#9aa0ab)}
.co-step-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:6px}
.co-step-body strong{font-size:.9rem}
.co-hidden-label{gap:5px}
.co-drop{display:block;border:1px dashed var(--border-2,#2f3138);border-radius:14px;padding:14px;cursor:pointer;
 background:var(--surface-2,#191a20);transition:border-color .15s,background .15s}
.co-drop:hover{border-color:var(--nl-accent,#3D8BFF);background:var(--surface-3,#1f2027)}
.co-drop input{display:block;width:100%;font:inherit;font-size:.82rem;color:var(--muted,#9aa0ab)}
.co-drop span{display:block;margin-top:8px}
.co-drop b{display:block;font-size:.9rem;color:var(--text,#eef0f4)}
.co-drop small{color:var(--muted,#9aa0ab);font-size:.76rem}
.co-list{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.co-list>small{color:var(--muted,#9aa0ab);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.co-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 12px;
 border:1px solid var(--border,#26272d);border-radius:10px;background:var(--surface-2,#191a20);font-size:.85rem}
.co-row small{color:var(--muted,#9aa0ab);font-size:.76rem}
.co-note{margin:0;color:var(--muted,#9aa0ab);font-size:.84rem}
.co-source{margin:0;color:var(--muted,#9aa0ab);font-size:.78rem;line-height:1.5}
.nf-error{margin:0;color:var(--red,#E5484D);font-size:.82rem;min-height:1em}
@media (max-width:820px){.co-grid{grid-template-columns:1fr}}
@media (max-width:640px){.co-act{width:100%}.co-btn{flex:1 1 30%;justify-content:center}}

/* ————— układ: po lewej wiedza i wiadomość (zwinięte), po prawej wysyłka (otwarta) ————— */
.co-col{display:flex;flex-direction:column;gap:14px;min-width:0}
.co-fold{border:1px solid var(--border,#26272d);border-radius:16px;background:var(--surface,#131419);overflow:hidden}
.co-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;
 padding:14px 18px;list-style:none;font-weight:var(--fw-s,600);font-size:1rem}
.co-fold>summary::-webkit-details-marker{display:none}
.co-fold>summary small{color:var(--muted,#9aa0ab);font-size:.78rem;font-weight:var(--fw-n,400)}
.co-fold>summary::after{content:"";width:9px;height:9px;flex:0 0 auto;margin-left:4px;
 border-right:2px solid var(--muted,#9aa0ab);border-bottom:2px solid var(--muted,#9aa0ab);
 transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.co-fold[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
.co-fold>summary:hover{background:var(--surface-2,#191a20)}
.co-fold-body{padding:0 18px 16px;display:flex;flex-direction:column;gap:10px}
.co-rules{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px}
.co-rules li{line-height:1.5}
.co-rules strong{display:block;font-size:.92rem}
.co-rules span{color:var(--muted,#9aa0ab);font-size:.86rem}
.co-drop span{margin:0 0 8px}
.co-drop input::file-selector-button{font:inherit;font-size:.84rem;font-weight:var(--fw-s,600);margin-right:10px;
 padding:7px 12px;border-radius:10px;border:1px solid var(--border,#26272d);
 background:var(--surface-3,#1f2027);color:var(--text,#eef0f4);cursor:pointer}
.co-drop input::file-selector-button:hover{border-color:var(--nl-accent,#3D8BFF)}

/* 27.09 (Dawid): ikonka przy „Wyślij dokumenty”, przerwa pod rozwiniętą belką (Jak zabezpieczać koszty, Napisz do księgowego) */
.co-h-dok{display:flex;align-items:center;gap:8px}
.co-h-ik{flex:none;color:var(--nl-accent,#3D8BFF)}
html:not(#b1):not(#b2):not(#b3):not(#b4) .co-fold>summary{border-radius:10px}
html:not(#b1):not(#b2):not(#b3):not(#b4) .co-fold[open]>summary{margin-bottom:12px}
html:not(#b1):not(#b2):not(#b3):not(#b4) .co-fold[open]>.co-fold-body{padding-top:4px!important;padding-bottom:14px!important}
/* 27.09: „Jedna sprawa” / „Faktury hurtem” — napis był biały na jasnym tle (kolor z ciemnego motywu) */
html:not(#b1):not(#b2):not(#b3):not(#b4) body.ch-klient .co-modes .btn[data-co="tryb"]:not(.co-on){color:inherit!important;font-weight:var(--fw-s,600)}

/* 28.09 19:41 (Dawid): pod wizytówką księgowej — jej biuro (nazwa, adres, NIP, KRS) i zespół */
.co-biuro{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:14px 18px;border:1px solid var(--border,#26272d);border-radius:16px;background:var(--surface,#131419)}
.co-biuro-d,.co-biuro-z{display:flex;flex-direction:column;gap:3px;min-width:0}
.co-biuro small{color:var(--muted,#9aa0ab);font-size:.68rem;letter-spacing:.12em;font-weight:var(--fw-s,600)}
.co-biuro-d strong{font-size:.95rem}.co-biuro-d span{color:var(--muted,#9aa0ab);font-size:.82rem;overflow-wrap:anywhere}
.co-os-l{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.co-os{display:flex;align-items:center;gap:10px;min-width:0}.co-avatar-s{width:36px;height:36px;border-radius:11px;font-size:.8rem}
.co-os-w{display:flex;flex-direction:column;min-width:0;flex:1}.co-os-w strong{font-size:.88rem}.co-os-w small{color:var(--muted,#9aa0ab);font-size:.76rem}
.co-os-a{display:flex;gap:6px}.co-btn-s{padding:6px 10px;font-size:.78rem;border-radius:10px}
.co-os-b{color:var(--muted,#9aa0ab);font-size:.82rem;line-height:1.45}
@media (max-width:760px){.co-biuro{grid-template-columns:1fr}}

/* 05.10 (Dawid): księgowy po lewej, biuro po prawej; wybór trybu po lewej, wstawianie plików po prawej */
.co-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:14px;align-items:stretch}
.co-top.co-top-1{grid-template-columns:1fr}
.co-top>.co-owner,.co-top>.co-biuro{margin:0;height:100%;box-sizing:border-box}
.co-top>.co-owner{position:relative;display:grid;align-content:space-between;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;gap:12px 14px;align-items:center}
.co-top>.co-owner>.co-act{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px}
.co-top>.co-owner>.co-act .co-btn{justify-content:center}
.co-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.co-col{display:flex;flex-direction:column;gap:14px;min-width:0}
.co-modes-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.co-mode{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 14px;border-radius:12px;text-align:left;height:auto;white-space:normal}
.co-mode b{font-size:.92rem}
.co-mode small{font-size:.76rem;color:var(--muted,#9aa0ab);font-weight:var(--fw-n,400);line-height:1.35}
.co-mode.co-on{border-color:#0A66FF;background:color-mix(in srgb,#0A66FF 8%,var(--surface,#131419));box-shadow:0 0 0 1px #0A66FF inset}
.co-mode.co-on b{color:#0A66FF}
.co-wgraj{border-color:color-mix(in srgb,#0A66FF 45%,var(--border,#26272d));animation:coWjazd .18s ease-out}
@keyframes coWjazd{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
@media (max-width:900px){.co-top{grid-template-columns:1fr}.co-modes-2{grid-template-columns:1fr}}
html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-mode{border:1px solid var(--border,#e3e6ec)!important;background:var(--surface,#fff)!important;border-radius:12px!important;padding:12px 14px!important}
html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-mode:hover{border-color:color-mix(in srgb,#0A66FF 45%,var(--border,#e3e6ec))!important}
html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-mode.co-on{border-color:#0A66FF!important;background:color-mix(in srgb,#0A66FF 7%,var(--surface,#fff))!important;box-shadow:0 0 0 1px #0A66FF inset!important}
html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-wgraj .co-primary{background:#0A66FF!important;color:#fff!important;border-color:#0A66FF!important}
@media (max-width:900px){html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-grid{grid-template-columns:1fr!important}html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-modes-2{grid-template-columns:1fr 1fr!important}html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-top{grid-template-columns:1fr!important}}
/* telefon: po wybraniu trybu pole do plików od razu pod wyborem, ściągi niżej */
@media (max-width:900px){html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-grid{display:flex!important;flex-direction:column!important;gap:14px!important}
html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-grid>.co-col{display:contents!important}
html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-grid .co-files:not(.co-wgraj){order:1}
html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-grid .co-wgraj{order:2}
html:not(#b1):not(#b2):not(#b3):not(#b4):not(#b5) body .co-grid .co-fold{order:3}}
