/* A compact task surface; explanatory copy lives in contextual popovers. */
#jamaah-export-panel {
    --export-bg: #f8f5ee;
    --export-field: #fff;
    --export-ink: #28251f;
    --export-muted: #655e50;
    --export-line: #d8d0c1;
    --export-accent: #936900;
    padding: 16px 20px 20px;
    color: var(--export-ink);
    background: var(--export-bg);
    border-bottom: 1px solid var(--export-line);
}
.jamaah-export-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.jamaah-export-heading h3 { margin: 0; font-size: 1rem; font-weight: 650; }
.jamaah-export-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--export-accent); background: #efe5cc; }
.jamaah-export-mark svg { width: 20px; height: 20px; }
#jamaah-export-close { margin-left: auto; }
.jamaah-export-icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--export-muted); cursor: pointer; transition: background 150ms, color 150ms; }
.jamaah-export-icon-button:hover { background: #ebe4d5; color: var(--export-ink); }
.jamaah-export-icon-button svg { width: 18px; height: 18px; }
.jamaah-export-fields { display: grid; grid-template-columns: minmax(260px,1.4fr) minmax(160px,1fr) minmax(160px,.8fr); gap: 16px; }
.jamaah-export-label { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 8px; font-size: .8125rem; font-weight: 600; }
.jamaah-export-label .jamaah-export-icon-button { margin-block: -8px; }
.jamaah-export-dates { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; }
.jamaah-export-dates span { color: var(--export-muted); }
#jamaah-export-panel input, #jamaah-export-panel select { width: 100%; min-width: 0; height: 44px; padding: 8px 10px; border: 1px solid var(--export-line); border-radius: 10px; font: inherit; font-size: .875rem; background: var(--export-field); color: var(--export-ink); }
#jamaah-export-panel input:disabled { opacity: .6; cursor: not-allowed; }
#jamaah-export-panel :is(input,select,button):focus-visible { outline: 2px solid var(--export-accent); outline-offset: 3px; }
.jamaah-export-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
#jamaah-export-status { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--export-muted); }
#jamaah-export-status[data-state="success"] { color: #31613f; }
#jamaah-export-status[data-state="error"] { color: #a22d21; }
#jamaah-export-submit { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: none; margin-left: auto; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px; font-size: .875rem; font-weight: 650; color: #fff; background: #25221c; cursor: pointer; transition: background 150ms, transform 150ms; }
#jamaah-export-submit svg { width: 17px; height: 17px; color: #f8be20; }
#jamaah-export-submit:hover:not(:disabled) { background: #443a24; transform: translateY(-1px); }
#jamaah-export-submit:disabled { opacity: .65; cursor: wait; }
.jamaah-export-help { position: fixed; inset: auto; margin: 0; width: min(288px,calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 16px; border: 0; border-radius: 12px; background: #28251f; color: #f5f1e8; box-shadow: 0 10px 28px rgba(25,21,14,.22); font-size: .8125rem; line-height: 1.6; }
.jamaah-export-help strong { display: block; margin-bottom: 5px; color: #f8ce62; font-weight: 600; }
.jamaah-export-help p { margin: 0; }
html.dark #jamaah-export-panel { --export-bg: #24221d; --export-field: #191815; --export-ink: #f0ece2; --export-muted: #c1b9a7; --export-line: #514b3c; --export-accent: #f8be20; }
html.dark .jamaah-export-mark { background: #3b321c; }
html.dark .jamaah-export-icon-button:hover { background: #3a352a; }
html.dark #jamaah-export-submit { background: #f8be20; color: #211d15; }
html.dark #jamaah-export-submit svg { color: inherit; }
html.dark #jamaah-export-submit:hover:not(:disabled) { background: #ffd161; }
html.dark #jamaah-export-status[data-state="success"] { color: #a8d8b4; }
html.dark #jamaah-export-status[data-state="error"] { color: #ffb8a9; }
@media (max-width: 1050px) and (min-width: 641px) { .jamaah-export-fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .jamaah-export-period { grid-column: 1 / -1; } }
@media (max-width: 640px) {
    #page-jamaah .jamaah-view-tabs { max-width: 100%; flex-wrap: wrap; }
    #jamaah-export-panel { padding: 12px 16px 16px; }
    .jamaah-export-fields { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .jamaah-export-heading { margin-bottom: 12px; }
    .jamaah-export-footer { align-items: stretch; flex-direction: column; gap: 10px; margin-top: 16px; }
    #jamaah-export-status:empty { display: none; }
    #jamaah-export-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { #jamaah-export-submit, .jamaah-export-icon-button { transition: none; } }
