/* Ticket surfaces inherit the established OneMini theme, not a new brand. */
body.help-page,body.dark.help-page { background:var(--paper); }
.help-page::before { display:none; }
.help-shell { width:min(1280px,calc(100% - 40px));margin:0 auto;padding:30px 0; }
.help-layout { display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start; }
.help-sidebar { background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px 12px;position:sticky;top:20px;max-height:calc(100vh - 40px);overflow:auto; }
.help-sidebar-head { display:flex;align-items:center;justify-content:space-between;padding:0 6px 16px;gap:10px; }
.help-sidebar h2 { font-size:16px;margin:0; }
.help-nav { display:flex;flex-direction:column;gap:4px;margin-top:16px; }
.help-nav-item { text-align:left;background:transparent;border:1px solid transparent;border-radius:var(--radius);padding:14px 12px;color:var(--ink);cursor:pointer;width:100%; }
.help-nav-item:hover { background:var(--paper); }
.help-nav-item.active { background:var(--green-soft);border-color:var(--green); }
.help-nav-title { display:flex;justify-content:space-between;gap:8px;margin-bottom:6px; }
.help-nav-item strong { font-size:14px; }
.help-nav-item p { margin:6px 0;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.help-nav-item time { font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums; }
.help-main { min-width:0; }
.help-panel { background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden; }
.help-heading { padding:24px 28px;border-bottom:1px solid var(--line); }
.help-heading h2 { margin:0 0 8px;font-size:24px; }
.help-heading p { color:var(--muted);margin:0;max-width:70ch; }
.help-form { padding:24px 28px; }
.help-fields { display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0 0 22px; }
.help-fields label,.help-config-grid label { display:flex;flex-direction:column;gap:7px;font-size:13px;min-width:0; }
.help-fields input,.help-fields select,.help-filter input,.help-filter select,.help-config-grid input,.help-category-row input { width:100%;min-width:0;padding:10px 12px;border:1px solid var(--line-strong);background:var(--paper);border-radius:6px;color:var(--ink);font:inherit; }
.help-full { grid-column:1 / -1; }
.help-meta { display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;color:var(--muted);font-size:13px;overflow-wrap:anywhere; }
.help-account { display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 0 22px;color:var(--muted);font-size:13px; }
.help-account strong { color:var(--ink);overflow-wrap:anywhere; }
.help-status,.help-lock { display:inline-flex;padding:3px 8px;border-radius:5px;font-size:12px;white-space:nowrap;line-height:1.5; }
.help-status.pending { background:var(--green-soft);color:var(--green); }
.help-status.resolved { background:var(--paper);color:var(--muted);border:1px solid var(--line); }
.help-lock { color:var(--brick);background:var(--brick-soft); }
.help-message-list { padding:8px 28px; }
.help-message { padding:22px 0;border-bottom:1px solid var(--line); }
.help-message:last-child { border:0; }
.help-message-meta { display:flex;align-items:center;gap:12px;margin-bottom:10px;font-size:13px; }
.help-message-meta time { color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums; }
.help-message.from-admin .help-message-meta strong { color:var(--green); }
.help-message-body { white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;max-width:75ch; }
.help-message-images,.help-previews { display:flex;gap:10px;flex-wrap:wrap;margin-top:12px; }
.help-image-button { border:1px solid var(--line);border-radius:6px;padding:0;background:var(--paper);cursor:zoom-in;overflow:hidden; }
.help-image-button img { display:block;max-width:220px;max-height:180px;width:auto;height:auto;min-width:70px;object-fit:contain; }
.help-compose-wrap { padding:20px 28px;border-top:1px solid var(--line); }
.help-compose-row { display:flex;align-items:flex-end;gap:10px; }
.help-compose-row textarea { flex:1;min-width:0;resize:vertical;max-height:320px;padding:12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit;line-height:1.6; }
.help-compose-row textarea:focus { outline:2px solid var(--green);outline-offset:2px; }
.help-photo { padding:10px;flex:0 0 42px;height:42px; }
.help-photo svg { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7; }
.help-file-input { position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none; }
.help-send { min-height:42px; }
.help-previews figure { margin:0 0 12px;width:120px; }
.help-previews img { width:120px;height:85px;object-fit:cover;border:1px solid var(--line);border-radius:6px; }
.help-previews figcaption { max-width:120px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted);font-size:11px; }
.help-previews button { font-size:12px;padding:4px 8px; }
.help-hint { color:var(--muted);font-size:12px;line-height:1.6;margin:10px 0 0; }
.help-compose-error,.help-error { color:var(--brick);white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin-top:10px; }
.help-empty { padding:48px 28px;color:var(--muted); }
.help-empty h2 { font-size:22px;color:var(--ink);margin-top:0; }
.help-pager { display:flex;gap:12px;align-items:center;justify-content:center;padding:18px 8px;color:var(--muted);font-size:13px; }
.help-mobile-bar,.help-mobile-only { display:none; }
.help-image-dialog { max-width:95vw;max-height:95vh;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:14px; }
.help-image-dialog::backdrop { background:rgba(0,0,0,.75); }
.help-image-dialog form { text-align:right;margin-bottom:10px; }
.help-image-dialog img { display:block;max-width:88vw;max-height:78vh;object-fit:contain; }
.help-page :focus-visible,#helpTab :focus-visible { outline:2px solid var(--green);outline-offset:3px; }
.help-page ::selection,#helpTab ::selection { background:var(--green-soft);color:var(--ink); }
.help-page textarea,.help-page input,#helpTab input,#helpTab textarea { caret-color:var(--green); }
.help-page button:disabled,#helpTab button:disabled { cursor:not-allowed;opacity:.6; }
.help-page a { text-underline-offset:3px; }
.help-filter { display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:18px; }
.help-filter label { display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:120px;flex:1; }
.help-admin-grid { display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:20px;align-items:start; }
.help-admin-grid .help-sidebar { position:static;max-height:900px; }
.help-admin-actions { display:flex;gap:10px;flex-wrap:wrap;padding:16px 28px;border-bottom:1px solid var(--line); }
.help-config { padding:20px;margin-top:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel); }
.help-config summary { cursor:pointer;font-weight:600; }
.help-config-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0; }
.help-category-row { display:grid;grid-template-columns:minmax(120px,1fr) 85px 70px 70px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line); }
.help-category-row label { display:flex;align-items:center;gap:6px;font-size:13px; }
.help-category-row input[type=checkbox] { width:auto; }
.help-audit { padding:0 28px 18px;font-size:12px;color:var(--muted); }
.help-audit summary { cursor:pointer; }
.help-audit li { padding-top:8px;overflow-wrap:anywhere; }
@media(max-width:900px){.help-admin-grid{grid-template-columns:1fr}.help-config-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.help-admin-grid .help-sidebar{max-height:360px}.help-layout{grid-template-columns:240px minmax(0,1fr);gap:16px}.help-heading,.help-form,.help-compose-wrap{padding:20px}.help-message-list{padding:4px 20px}}
@media(max-width:700px){.help-shell{width:calc(100% - 24px);padding:16px 0}.help-layout{display:block}.help-mobile-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.help-mobile-only{display:inline-flex}.help-layout>.help-sidebar{display:none;position:fixed;inset:0 auto 0 0;width:min(320px,86vw);z-index:101;border-radius:0;max-height:100dvh}.help-layout>.help-sidebar.open{display:block}.help-backdrop:not(.hidden){position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:100;border:0;display:block;width:100%;height:100%}.help-fields{grid-template-columns:1fr;gap:14px}.help-full{grid-column:auto}.help-heading h2{font-size:21px}.help-compose-row{gap:8px;flex-wrap:wrap}.help-compose-row textarea{order:-1;flex-basis:100%;min-height:90px}.help-send{margin-left:auto}.help-image-button img{max-width:160px;max-height:140px}.help-category-row{grid-template-columns:minmax(0,1fr) 65px 60px 60px;gap:6px}.help-admin-actions{padding:14px 20px}.help-account{align-items:flex-start}.help-heading,.help-form,.help-compose-wrap{padding:18px}.help-audit{padding:0 18px 16px}.help-filter label{min-width:130px}}

.help-image-button img:not(.loaded) { width:160px;height:100px; }
