.help-header-button{position:relative;display:flex;align-items:center;gap:7px;height:42px;padding:0 12px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:11px;font-weight:600}
.help-header-button:hover,.help-header-button:focus-visible{background:var(--surface-accent);color:var(--orange-dark);border-color:#efc49e}
.help-header-button svg{width:20px;height:20px}
.help-hero,.help-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--app-shadow)}
.help-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px}
.help-hero>div{display:flex;align-items:center;gap:15px}
.help-hero h3,.help-section-head h3{margin:0;color:var(--ink);font-size:21px}
.help-hero p,.help-section-head p{margin:5px 0 0;color:var(--muted)}
.help-hero>a{color:var(--orange-dark);font-weight:700;text-decoration:none}
.help-hero-icon{display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;border-radius:13px;background:var(--surface-accent);color:var(--orange-dark)}
.help-hero-icon svg{width:25px;height:25px}
.help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}
.help-card{position:relative;display:flex;min-height:178px;flex-direction:column;align-items:flex-start;gap:17px;padding:22px;background:var(--surface);color:var(--ink);text-align:left;border:1px solid var(--line);border-radius:14px;box-shadow:0 5px 20px rgba(43,42,40,.04);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.help-card:hover,.help-card:focus-visible{transform:translateY(-2px);background:var(--surface);border-color:#efbd91;box-shadow:0 12px 30px rgba(43,42,40,.10)}
.help-card-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:var(--surface-accent);color:var(--orange-dark)}
.help-card-icon svg{width:23px;height:23px}
.help-card-copy{display:grid;gap:8px;padding-right:20px}
.help-card-copy strong{font-size:17px;color:var(--ink)}
.help-card-copy small{color:var(--muted);font-size:13px;line-height:1.55}
.help-card-arrow{position:absolute;right:20px;bottom:19px;color:var(--orange-dark);font-size:25px;line-height:1}
.help-panel{padding:24px}
.help-section-head{display:flex;align-items:flex-start;gap:18px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.help-back{display:flex;align-items:center;gap:6px;flex:0 0 auto;padding:8px 10px;background:var(--surface-soft);color:var(--ink);border-radius:9px;font-weight:600}
.help-back:hover{background:var(--surface-accent);color:var(--orange-dark)}
.help-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:20px}
.help-guide{display:flex;gap:13px;padding:18px;background:var(--surface-muted);border:1px solid var(--line);border-radius:12px}
.help-guide>span{display:grid;place-items:center;flex:0 0 auto;width:31px;height:31px;background:var(--surface-accent);color:var(--orange-dark);border-radius:9px;font-weight:800}
.help-guide h4{margin:2px 0 7px;color:var(--ink)}
.help-guide p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.help-faq{display:grid;margin-top:20px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.help-faq details+details{border-top:1px solid var(--line)}
.help-faq summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 19px;background:var(--surface);color:var(--ink);cursor:pointer;font-weight:700;list-style:none}
.help-faq summary::-webkit-details-marker{display:none}
.help-faq summary:hover{background:var(--surface-muted)}
.help-faq summary span{color:var(--orange-dark);font-size:22px;font-weight:400;transition:transform .18s ease}
.help-faq details[open] summary span{transform:rotate(45deg)}
.help-faq details p{margin:0;padding:0 19px 18px;color:var(--muted);line-height:1.6}
.help-form-panel{max-width:850px}
.help-ticket-form{display:grid;gap:17px;margin-top:21px}
.help-ticket-form label{display:grid;gap:8px;font-weight:600}
.help-ticket-form textarea{min-height:180px;resize:vertical}
.help-form-message{min-height:20px;color:var(--muted)}
.help-form-message.success{padding:12px 14px;background:#e8f6f0;color:#146149;border-radius:9px}
.help-form-message.success button{display:inline;padding:0;background:transparent;color:inherit;text-decoration:underline}
.help-ticket-table{margin-top:20px}
.help-ticket-table table{min-width:850px}
.help-ticket-table td{vertical-align:top}
.help-ticket-table td small{display:block;max-width:580px;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45;white-space:normal}
.help-ticket-subject{min-width:310px}
.help-status,.help-status-select{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border-radius:99px;font-size:12px;font-weight:700;white-space:nowrap}
.help-status-select{border:1px solid transparent}
.status-new{background:#fff0e1;color:#a85408}
.status-in_progress{background:#fff7d6;color:#785c00}
.status-resolved{background:#e5f8f0;color:#08775a}
.status-closed{background:var(--surface-soft);color:var(--muted)}
.help-empty{padding:36px!important;color:var(--muted);text-align:center}
:root[data-theme="dark"] .help-header-button,:root[data-theme="dark"] .help-hero,:root[data-theme="dark"] .help-panel,:root[data-theme="dark"] .help-card,:root[data-theme="dark"] .help-faq summary{background:var(--surface);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .help-card:hover,:root[data-theme="dark"] .help-header-button:hover{background:var(--surface-accent);border-color:#765136}
:root[data-theme="dark"] .help-guide{background:var(--surface-muted);border-color:var(--line)}
:root[data-theme="dark"] .help-form-message.success,:root[data-theme="dark"] .status-resolved{background:#163c31;color:#6fd8b0}
:root[data-theme="dark"] .status-new{background:#4a3222;color:#f3ba83}
:root[data-theme="dark"] .status-in_progress{background:#4a4120;color:#e7cf69}
@media(max-width:1050px){.help-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.help-header-button{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:0}.help-header-button span{display:none}.help-hero{align-items:flex-start;flex-direction:column;padding:18px}.help-grid{grid-template-columns:1fr;gap:12px;margin-top:12px}.help-card{min-height:142px;padding:18px}.help-panel{padding:16px}.help-section-head{gap:11px}.help-back span{display:none}.help-guide-grid{grid-template-columns:1fr}.help-ticket-form textarea{min-height:150px}}

.help-admin-head{justify-content:space-between}
.help-ticket-toolbar{display:flex;justify-content:flex-end;margin-top:18px}
.help-detail-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.help-ticket-meta{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}
.help-ticket-meta>div{display:grid;align-content:start;gap:5px;padding:14px;background:var(--surface-muted);border:1px solid var(--line);border-radius:11px}
.help-ticket-meta span,.help-ticket-meta small{color:var(--muted);font-size:12px}
.help-ticket-meta b{color:var(--ink);font-size:14px}
.help-ticket-message{margin-top:18px;padding:21px;background:var(--surface-muted);border:1px solid var(--line);border-radius:12px}
.help-ticket-message h3{margin:0 0 12px;color:var(--ink)}
.help-ticket-message p,.help-reply p{margin:0;color:var(--ink);line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.help-conversation{display:grid;gap:11px;margin-top:22px}
.help-conversation>h3{margin:0 0 3px;color:var(--ink);font-size:17px}
.help-reply{max-width:880px;padding:16px 18px;background:var(--surface-muted);border:1px solid var(--line);border-radius:12px}
.help-reply.admin{background:var(--surface-accent);border-color:#f1cfb1}
.help-reply>div{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:9px}
.help-reply time{color:var(--muted);font-size:12px}
.help-empty-replies{margin:0;padding:18px;color:var(--muted);background:var(--surface-muted);border-radius:10px}
.help-reply-form{display:grid;gap:13px;max-width:880px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.help-reply-form label{display:grid;gap:8px;font-weight:700}
.help-reply-form textarea{min-height:140px;resize:vertical}
:root[data-theme="dark"] .help-ticket-meta>div,:root[data-theme="dark"] .help-ticket-message,:root[data-theme="dark"] .help-reply,:root[data-theme="dark"] .help-empty-replies{background:var(--surface-muted);border-color:var(--line)}
:root[data-theme="dark"] .help-reply.admin{background:var(--surface-accent);border-color:#765136}
@media(max-width:1050px){.help-ticket-meta{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.help-ticket-toolbar{justify-content:stretch}.help-ticket-toolbar button{width:100%}.help-detail-head{align-items:stretch;flex-direction:column}.help-detail-head .row-actions button{width:100%}.help-ticket-meta{grid-template-columns:1fr 1fr}.help-ticket-message{padding:17px}.help-reply{padding:14px}.help-reply>div{align-items:flex-start;flex-direction:column;gap:3px}}
@media(max-width:480px){.help-ticket-meta{grid-template-columns:1fr}}

.help-badge{position:absolute;right:-6px;top:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#c7423a;color:#fff;border:2px solid var(--surface,#fff);font-size:11px;font-weight:700;line-height:16px;text-align:center}

.help-ticket-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.help-ticket-filters button{padding:8px 13px;background:var(--surface-soft);color:var(--muted);border:1px solid transparent;border-radius:9px}.help-ticket-filters button:hover{color:var(--orange-dark);background:var(--surface-accent)}.help-ticket-filters button.active{color:var(--orange-dark);background:var(--surface-accent);border-color:#efc49e;font-weight:700}.help-ticket-toolbar{align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}@media(max-width:760px){.help-ticket-filters{width:100%}.help-ticket-filters button{flex:1 1 auto}.help-ticket-toolbar>button{width:100%}}

/* Zgłoszenia: wyszukiwanie, nieprzeczytane wiadomości i załączniki */
.help-ticket-search{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px;align-items:end;margin-top:20px;padding:16px;background:var(--surface-muted);border:1px solid var(--line);border-radius:12px}
.help-ticket-search label{display:grid;gap:7px;color:var(--muted);font-size:12px;font-weight:700}
.help-ticket-search input,.help-ticket-search select{width:100%;min-height:42px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px}
.help-ticket-search input:focus,.help-ticket-search select:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(242,140,40,.14);outline:0}
.help-search-query{grid-column:span 2}
.help-search-actions{display:flex;gap:8px;grid-column:span 2}
.help-search-actions button{min-height:42px}
.help-ticket-row-unread td{background:color-mix(in srgb,var(--surface-accent) 58%,var(--surface))}
.help-ticket-row-unread td b,.help-ticket-row-unread .device-name-link{font-weight:800}
.help-ticket-subject-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.help-unread-dot{display:inline-block;flex:0 0 auto;width:9px;height:9px;background:var(--orange);border-radius:50%;box-shadow:0 0 0 3px rgba(242,140,40,.14)}
.help-unread-count{display:inline-flex;align-items:center;min-height:23px;padding:3px 8px;background:var(--orange);color:#fff;border-radius:99px;font-size:11px;font-weight:800;white-space:nowrap}
.help-attachment-field{display:grid;gap:8px;font-weight:700}
.help-attachment-field input[type="file"]{padding:10px;background:var(--surface);color:var(--ink);border:1px dashed var(--line);border-radius:10px}
.help-attachment-field input[type="file"]::file-selector-button{margin-right:10px;padding:8px 12px;background:var(--surface-accent);color:var(--orange-dark);border:1px solid #efc49e;border-radius:8px;font-weight:700;cursor:pointer}
.help-attachment-field small{color:var(--muted);font-size:12px;font-weight:400}
.help-attachment-list{display:grid;gap:7px;margin:15px 0 0;padding:0;list-style:none}
.help-attachment-list li{display:flex;align-items:center;gap:8px;max-width:680px;padding:9px 11px;background:var(--surface);border:1px solid var(--line);border-radius:9px}
.help-attachment-list a{min-width:0;color:var(--orange-dark);font-weight:700;text-decoration:none;overflow-wrap:anywhere}
.help-attachment-list a:hover{text-decoration:underline}
.help-attachment-list small{margin-left:auto;color:var(--muted);white-space:nowrap}
:root[data-theme="dark"] .help-ticket-row-unread td{background:color-mix(in srgb,var(--surface-accent) 60%,var(--surface))}
:root[data-theme="dark"] .help-ticket-search,:root[data-theme="dark"] .help-ticket-search input,:root[data-theme="dark"] .help-ticket-search select,:root[data-theme="dark"] .help-attachment-field input[type="file"],:root[data-theme="dark"] .help-attachment-list li{border-color:var(--line)}
@media(max-width:1200px){.help-ticket-search{grid-template-columns:repeat(3,minmax(0,1fr))}.help-search-query,.help-search-actions{grid-column:span 1}}
@media(max-width:760px){.help-ticket-search{grid-template-columns:1fr}.help-search-query,.help-search-actions{grid-column:1}.help-search-actions button{flex:1}.help-ticket-row-unread td{background:transparent}.help-ticket-row-unread{box-shadow:inset 4px 0 var(--orange)}.help-attachment-list li{align-items:flex-start;flex-wrap:wrap}.help-attachment-list small{width:100%;margin-left:27px}}



.help-instructions-panel{max-width:1120px;margin:0 auto}
.help-instructions-note{margin-top:18px;padding:13px 15px;background:var(--surface-accent);color:var(--ink);border:1px solid #f1cfb1;border-radius:10px;line-height:1.5}
.help-instructions-panel .help-guide-grid{grid-template-columns:1fr;max-width:1000px}
.help-instructions-panel .help-guide{align-items:flex-start;padding:20px}
.help-guide-number{margin-top:1px}
.help-guide-copy{min-width:0;flex:1}
.help-guide-copy h4{font-size:17px}
.help-guide-intro{margin:0 0 10px!important;color:var(--ink)!important;font-size:14px!important}
.help-guide-copy ol{display:grid;gap:7px;margin:0;padding-left:22px;color:var(--muted);font-size:13px;line-height:1.55}
.help-guide-copy li::marker{color:var(--orange-dark);font-weight:700}
.help-guide-tip{margin-top:13px!important;padding:10px 12px;background:var(--surface);border-left:3px solid var(--orange);border-radius:0 8px 8px 0;color:var(--muted)!important}
.help-guide-tip b{color:var(--ink)}
:root[data-theme="dark"] .help-instructions-note{border-color:#765136}
:root[data-theme="dark"] .help-guide-tip{background:var(--surface-soft)}
@media(max-width:760px){.help-instructions-panel .help-guide{padding:16px;gap:11px}.help-guide-copy ol{padding-left:19px}.help-instructions-note{font-size:13px}}
.help-content-page{padding:0;overflow:hidden}
.help-topic-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);border-radius:14px 14px 0 0;padding:0 14px;background:var(--surface);scrollbar-width:none}
.help-topic-tabs::-webkit-scrollbar{display:none}
.help-topic-tabs button{flex:0 0 auto;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--muted);padding:16px 18px;font-weight:600;white-space:nowrap}
.help-topic-tabs button:hover{background:var(--surface-soft);color:var(--ink)}
.help-topic-tabs button.active{background:var(--surface-accent);color:var(--orange-dark);border-bottom-color:var(--orange)}
.help-content-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 24px 20px;border-bottom:1px solid var(--line)}
.help-content-head h2{margin:0;color:var(--ink);font-size:22px;line-height:1.25}
.help-content-head p{max-width:760px;margin:6px 0 0;color:var(--muted);line-height:1.5}
.help-content-head .help-back{min-height:40px;white-space:nowrap;border:1px solid var(--line)}
.help-search{display:grid;grid-template-columns:minmax(190px,250px) minmax(320px,720px);gap:22px;align-items:end;padding:20px 24px;background:var(--surface-muted);border-bottom:1px solid var(--line)}
.help-search-copy{display:grid;gap:4px}
.help-search-copy label{color:var(--ink);font-weight:700}
.help-search-copy small{color:var(--muted);font-size:12px;line-height:1.4}
.help-search-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.help-search-field{position:relative;min-width:0}
.help-search-field .help-search-icon{position:absolute;z-index:1;left:13px;top:50%;display:grid;width:18px;height:18px;color:var(--muted);transform:translateY(-50%);pointer-events:none}
.help-search-field .help-search-icon svg{width:18px;height:18px}
.help-search input{width:100%;min-width:0;padding-left:41px;background:var(--surface)}
.help-search button{width:auto!important;min-width:104px;white-space:nowrap}
.help-search-result{margin:14px 24px 0;color:var(--muted)}
.help-content-page .help-guide-list,.help-content-page .help-faq-list{padding:20px 24px 28px}
.help-content-page .help-guide-item{display:grid;grid-template-columns:38px minmax(0,1fr);gap:14px;padding:20px 0;border-bottom:1px solid var(--line)}
.help-content-page .help-guide-item:last-child{border-bottom:0}
.help-content-page .help-guide-number{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--surface-accent);color:var(--orange-dark);font-weight:800}
.help-content-page .help-guide-item h3{margin:2px 0 6px}
.help-content-page .help-guide-item ol{margin:13px 0 0;padding-left:21px}
.help-content-page .help-guide-item li{margin:8px 0;line-height:1.55}
.help-content-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:16px}
.help-content-images figure{margin:0;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
.help-content-images img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;border-radius:8px}
.help-content-images figcaption{padding:7px 3px 1px;color:var(--muted);font-size:12px}
.help-faq-item>div{padding:0 18px 16px}
.help-faq-groups{display:grid;gap:26px;padding:22px 24px 30px}
.help-faq-group{display:grid;gap:10px}
.help-faq-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.help-faq-group-head h3{margin:0;color:var(--ink);font-size:17px}
.help-faq-group-head>span{display:grid;place-items:center;min-width:29px;height:25px;padding:0 8px;background:var(--surface-accent);color:var(--orange-dark);border-radius:99px;font-size:12px;font-weight:800}
.help-faq-group-list{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.help-faq-group-list .help-faq-item+.help-faq-item{border-top:1px solid var(--line)}
.help-faq-group-list summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;color:var(--ink);cursor:pointer;font-weight:700;list-style:none}
.help-faq-group-list summary::-webkit-details-marker{display:none}
.help-faq-group-list summary:hover{background:var(--surface-muted)}
.help-faq-toggle{display:grid;place-items:center;flex:0 0 auto;width:27px;height:27px;background:var(--surface-accent);color:var(--orange-dark);border-radius:8px;font-size:20px;font-weight:500;line-height:1;transition:transform .18s ease}
.help-faq-item[open] .help-faq-toggle{transform:rotate(45deg)}
.help-faq-group-list .help-faq-item>div{padding:0 18px 18px;color:var(--ink);line-height:1.6}
:root[data-theme="dark"] .help-faq-group-list{background:var(--surface);border-color:var(--line)}
@media(max-width:900px){.help-search{grid-template-columns:1fr;gap:12px}.help-search-controls{max-width:720px}}
@media(max-width:760px){.help-topic-tabs{padding:0 5px}.help-topic-tabs button{padding:13px 11px}.help-content-head{flex-direction:column-reverse;gap:14px;padding:18px 14px 16px}.help-content-head h2{font-size:20px}.help-content-head .help-back{min-height:36px}.help-content-head .help-back span{display:inline}.help-search{padding:14px}.help-search-controls{grid-template-columns:minmax(0,1fr) auto}.help-search button{min-width:86px;padding-inline:14px}.help-content-page .help-guide-list,.help-content-page .help-faq-list{padding:14px}.help-content-page .help-guide-item{grid-template-columns:30px minmax(0,1fr);gap:10px}.help-content-page .help-guide-number{width:28px;height:28px;border-radius:8px}.help-content-images{grid-template-columns:1fr}.help-faq-groups{gap:20px;padding:18px 14px 22px}.help-faq-group-list summary{align-items:flex-start;padding:14px}.help-faq-group-list .help-faq-item>div{padding:0 14px 15px}}

.help-global-result{display:grid;width:100%;gap:5px;padding:15px 17px;text-align:left;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:11px}
.help-global-result:hover{border-color:#efb47e;background:var(--surface-accent);transform:translateY(-1px)}
.help-global-result>span{color:var(--muted);font-size:12px}
.help-global-result>span b{color:var(--orange-dark)}
.help-global-result>strong{font-size:15px}
.help-global-result>small{display:-webkit-box;color:var(--muted);line-height:1.45;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.help-hero+.help-topic-tabs{margin-top:16px;border:1px solid var(--line);border-radius:12px}
@media(max-width:760px){.help-global-result{padding:13px}.help-hero+.help-topic-tabs{margin-top:12px}}


/* Formatted help content */
.help-rich-content{margin-top:13px;color:var(--ink);line-height:1.65;overflow-wrap:anywhere}
.help-rich-content h2{margin:22px 0 9px;color:var(--ink);font-size:21px;line-height:1.3}.help-rich-content h3{margin:19px 0 8px;color:var(--ink);font-size:17px;line-height:1.35}.help-rich-content h4{margin:16px 0 7px;color:var(--ink);font-size:15px}
.help-rich-content p,.help-rich-content div{margin:9px 0}.help-rich-content ul,.help-rich-content ol{margin:11px 0;padding-left:24px}.help-rich-content li{margin:7px 0}
.help-rich-content a{color:var(--orange-dark);font-weight:600;text-decoration:underline;text-underline-offset:2px}.help-rich-content hr{margin:22px 0;border:0;border-top:1px solid var(--line)}
.help-rich-content blockquote{margin:15px 0;padding:11px 14px;background:var(--surface-accent);border-left:3px solid var(--orange);border-radius:0 8px 8px 0;color:var(--muted)}
.help-faq-item .help-rich-content{margin-top:0}
@media(max-width:760px){.help-rich-content h2{font-size:19px}.help-rich-content h3{font-size:16px}.help-rich-content ul,.help-rich-content ol{padding-left:21px}}
