/* Shared UI for interactive tools */
.tool-page{min-height:100vh;background:#f6f8f6}
.tool-header{border-bottom:1px solid #e1e9e3;background:rgba(255,255,255,.65)}
.tool-header .site-header{height:78px}
.tool-nav{display:flex;gap:24px;align-items:center;font-size:13px;font-weight:700;color:#566d60}
.tool-nav a:hover{color:#217e52}
.tool-layout{max-width:1160px;margin:0 auto;padding:50px 26px 110px}
.crumbs{font-family:var(--mono);font-size:11px;color:#84948a;display:flex;align-items:center;gap:10px;margin-bottom:35px}
.crumbs a:hover{text-decoration:underline}
.tool-heading{display:flex;justify-content:space-between;align-items:start;gap:30px;margin-bottom:30px}
.tool-heading h1{font-size:clamp(38px,5.3vw,60px);line-height:1.13;letter-spacing:-3.5px;margin:0 0 16px;font-weight:800}
.tool-heading p{font-size:15px;color:#6c7b71;max-width:690px;line-height:1.8;margin:0}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:#806526;padding:8px 12px;background:#faf0d5;border-radius:40px;white-space:nowrap}
.tool-progress{display:flex;align-items:center;gap:8px;margin:35px 0 30px;overflow-x:auto}
.progress-item{font-family:var(--mono);font-size:11px;color:#78877e;display:flex;align-items:center;gap:7px;white-space:nowrap}
.progress-dot{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;border:1px solid #cddbd1;font-size:10px}
.progress-item.active{color:#247349}
.progress-item.active .progress-dot{background:#d6eede;border-color:#94cfa7}
.progress-line{height:1px;background:#d5e1d9;min-width:18px;flex:1}
.work-grid{display:grid;grid-template-columns:minmax(0,1fr) 295px;gap:20px;align-items:start}
.surface-card{background:#fff;border:1px solid #dfe9e2;border-radius:20px;padding:30px}
.surface-card h2{font-size:21px;font-weight:800;letter-spacing:-.8px;margin:0 0 10px}
.surface-card h3{font-size:14px;font-weight:800;margin:20px 0 10px}
.secondary{color:#748279;font-size:13px;line-height:1.75}
.section-label{font:10px var(--mono);letter-spacing:.8px;color:#409169;margin:0 0 14px}
.dropzone{display:block;margin-top:25px;border:1.5px dashed #a7c6ae;border-radius:16px;background:#f2f8f3;text-align:center;padding:37px 20px;cursor:pointer;transition:background .2s,border-color .2s}
.dropzone:hover,.dropzone.dragging{background:#e4f5e9;border-color:#3e9162}
.dropzone input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.drop-icon{width:52px;height:52px;background:#ddeddf;border-radius:15px;display:grid;place-items:center;margin:0 auto 14px;font-size:25px;color:#3f8b5f}
.dropzone strong{display:block;font-size:15px;margin-bottom:9px}
.dropzone small{display:block;color:#87998c;font-size:12px}
.info-strip{background:#f8f9f7;border:1px solid #e7eee8;border-radius:11px;padding:13px 15px;color:#68796d;font-size:12px;line-height:1.7;margin-top:17px}
.info-strip.warning{background:#fcf8ea;border-color:#ebdfb6;color:#796a3a}
.info-strip.error{background:#fff3f1;border-color:#f5c7bd;color:#9b4b39}
.link-inline{cursor:pointer;color:#297a50;text-decoration:underline;text-underline-offset:3px;font-weight:800}
.action-line{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:23px}
.action-primary,.action-secondary{border:0;border-radius:10px;cursor:pointer;padding:14px 18px;font-size:13px;font-weight:800;min-height:48px}
.action-primary{background:#10191a;color:#fff}
.action-primary:hover{background:#274238}
.action-primary:disabled{cursor:not-allowed;opacity:.45}
.action-secondary{background:#ebf3ed;color:#285e40}
.action-secondary:hover{background:#dcf0e0}
.status-text{color:#6b7d70;font-size:12px;line-height:1.6}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:26px}
.field{display:flex;flex-direction:column;gap:8px;min-width:0}
.field label{font-size:12px;color:#495c50;font-weight:800}
.field input,.field select{border:1px solid #cfdcd2;border-radius:9px;min-height:44px;padding:10px 12px;outline:0;background:white;color:#15271e;width:100%;font-family:var(--sans);font-size:13px}
.field input:focus,.field select:focus{border-color:#5aaf7c;box-shadow:0 0 0 3px #a1deaf55}
.field-hint{font-size:10px;color:#87958c;line-height:1.5}
.required-mark{color:#be6142;font-size:15px;font-weight:800}
.optional-label{font-size:10px;font-weight:600;color:#83938a;margin-left:6px}
.wide{grid-column:1/-1}
.checkbox-row{display:flex;align-items:flex-start;gap:10px;color:#4b6355;font-size:12px;line-height:1.7;margin-top:18px}
.checkbox-row input{margin-top:4px;accent-color:#2f8354}
.table-wrap{overflow:auto;border:1px solid #e2ece5;border-radius:11px;margin:18px 0}
.data-table{width:100%;border-collapse:collapse;font-size:12px;min-width:540px}
.data-table th{background:#f4f7f4;color:#6c8070;font-weight:800;white-space:nowrap;text-align:left;padding:11px;border-bottom:1px solid #dbe5dc}
.data-table td{padding:10px 11px;border-bottom:1px solid #edf1ed;color:#31473a}
.data-table tr:last-child td{border-bottom:0}
.side-list{margin-top:20px;display:grid;gap:17px}
.side-list>div{display:flex;align-items:start;gap:11px;font-size:12px;color:#64786a;line-height:1.7}
.side-num{font-family:var(--mono);font-size:10px;color:#398c5a;background:#e4f4e7;padding:8px 9px;border-radius:8px}
.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:25px 0}
.metric{background:#f2f7f3;border-radius:10px;padding:15px}
.metric strong{display:block;font-family:var(--mono);font-size:21px;color:#275e3f}
.metric span{font-size:10px;color:#74877a}
.file-rows{display:grid;gap:10px;margin-top:22px}
.file-row{display:flex;align-items:center;gap:12px;justify-content:space-between;border:1px solid #e4ebe5;padding:13px 14px;border-radius:10px}
.file-row strong{font-size:12px;overflow-wrap:anywhere}
.file-row small{display:block;color:#7a897e;margin-top:4px}
.file-row a{white-space:nowrap;font-size:12px;color:#28784f;font-weight:800}
.history-list{display:grid;gap:12px}
.history-item{border:1px solid #e0e8e1;background:white;border-radius:15px;padding:18px 20px;display:flex;align-items:center;gap:16px}
.history-item-main{flex:1;min-width:0}
.history-item-main strong{display:block;font-size:14px;margin-bottom:7px}
.history-item-main small{font-size:11px;color:#85948a}
.history-actions{display:flex;gap:10px}
.history-actions button,.history-actions a{cursor:pointer;background:#f0f5f1;color:#325a42;border:0;border-radius:8px;padding:10px 12px;font-size:11px;font-weight:800}
.history-actions button:hover{background:#e1ece3}
.hidden{display:none!important}
@media(max-width:900px){.work-grid{grid-template-columns:1fr}.tool-side{order:-1}.tool-nav{gap:12px;font-size:11px}.surface-card{padding:24px}}
@media(max-width:640px){.tool-header .site-header{padding:0 18px}.tool-header .brand-name{font-size:13px}.tool-layout{padding:28px 16px 70px}.tool-heading{display:block}.tool-heading h1{letter-spacing:-2px}.tool-heading .pill{margin-top:18px}.field-grid{grid-template-columns:1fr}.field .wide{grid-column:auto}.surface-card{padding:19px}.tool-nav{gap:8px}.tool-nav a:first-child{display:none}.tool-progress{gap:4px}.progress-item{font-size:9px}.progress-dot{width:20px;height:20px}.progress-line{min-width:6px}.metric-grid{grid-template-columns:repeat(3,1fr)}.metric{padding:10px}.metric strong{font-size:16px}.history-item{flex-wrap:wrap}.history-actions{width:100%}}

/* XML Generator: unobtrusive template catalog and user-facing import guide */
.report-option{padding:16px 17px;background:#f3f8f4;border:1px solid #e2eee5;border-radius:12px;align-items:center}
.report-option strong{display:block;color:#233f30;font-size:13px;margin-bottom:3px}
.report-option small{display:block;font-size:11px;color:#788b7e;line-height:1.6}
.template-help{position:relative;display:inline-flex;vertical-align:middle;margin-left:7px;cursor:help;z-index:20;outline:0}
.template-help-label{display:inline-flex;align-items:center;border-radius:20px;border:1px solid #b4d8c0;background:#e8f6ed;color:#24734a;font-weight:800;font-size:10px;padding:4px 8px}
.template-help:hover .template-help-label,.template-help:focus-within .template-help-label{background:#d4eedd}
.template-help-popup{display:none;position:absolute;left:-55px;top:calc(100% + 9px);width:min(430px,85vw);max-height:430px;overflow-y:auto;z-index:50;box-shadow:0 20px 50px rgba(24,44,30,.17);border:1px solid #d3e3d7;background:white;border-radius:14px;padding:17px;text-align:left;line-height:1.6;font-size:12px;font-weight:400;color:#354a3c}
.template-help-popup strong{display:block;font-size:13px;font-weight:800;margin-bottom:5px}
.template-help-caption{display:block;font-size:11px;color:#728375;margin-bottom:12px}
.template-help-list{display:grid;gap:0}
.template-help-entry{display:flex;gap:9px;padding:5px 0;border-bottom:1px solid #edf1ee;align-items:start;line-height:1.4}
.template-help-entry:last-child{border-bottom:0}
.template-help-code{font:11px var(--mono);width:25px;flex:none;color:#23734c;font-weight:700}
.template-help-entry-current{background:#e7f6ed;margin:0 -7px;padding:7px;border-radius:7px}
.template-help-source{display:block;margin-top:11px;color:#33875b;font-size:10px;text-decoration:underline;text-underline-offset:2px}
.template-help:hover .template-help-popup,.template-help:focus-within .template-help-popup{display:block}
.chz-guide h2{line-height:1.3}
.chz-guide .side-list strong{display:block;color:#263f2e;font-size:12px;font-weight:800;margin-bottom:5px}
.chz-example{border:1px solid #e2e5e3;border-radius:11px;margin-top:24px;background:white;overflow:hidden}
.chz-top{display:flex;align-items:center;gap:8px;background:#515b68;padding:12px 9px;color:#f4ec1f;font-size:10px}
.chz-mark{background:#f5f319;color:#536157;border-radius:3px;padding:2px 4px;font-size:12px;font-weight:900}
.chz-tab{margin:14px 13px 9px;font-size:10px;font-weight:700;border-bottom:2px solid #f3e921;display:inline-block;padding-bottom:8px}
.chz-action{margin:6px 13px 15px;padding:10px 12px;border:1px solid #d7dee0;border-radius:4px;background:#fafafa;color:#536575;font-size:11px;font-weight:800;text-transform:uppercase}
.chz-guide-note{font-size:12px;line-height:1.85;color:#62796a;margin:15px 0 0}
.chz-guide-note strong{color:#325c42}
@media(max-width:640px){.template-help-popup{position:fixed;left:16px;right:16px;top:auto;bottom:18px;width:auto;max-height:64vh;box-shadow:0 0 0 200vh rgba(16,25,26,.24),0 20px 55px rgba(0,0,0,.2)}}

.chz-example-link{display:block;color:inherit;text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s}
.chz-example-link:hover{border-color:#91bda1;box-shadow:0 8px 25px rgba(25,66,37,.12);transform:translateY(-2px)}
.chz-example-link:focus-visible{outline:3px solid #46946c;outline-offset:4px}
.chz-example-link:hover .chz-action{background:#eaf5ed;color:#246d46;border-color:#94c5a5}
.chz-external{margin-left:auto;font-size:15px;color:#fff}
.chz-direct-link{display:block;margin-top:13px;font-size:12px;font-weight:800;color:#24794a;text-decoration:underline;text-underline-offset:3px}
.template-selection-note:not(.hidden){display:block;margin-top:2px;border:1px solid #efdbb4;background:#fff9ea;border-radius:9px;padding:10px;color:#7d632c;font-size:11px}

.profile-status-line{margin-top:4px;display:flex;align-items:center;gap:8px}
.profile-status{font-size:10px;font-weight:800;border-radius:999px;padding:6px 10px;display:inline-flex;align-items:center;gap:5px}
.profile-status-verified{background:#e8f6ee;color:#277349}
.profile-status-beta{background:#eff3ff;color:#4861aa}

.photo-remaining{display:flex;align-items:center;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid #e7eee7;color:#708374;font-size:12px}
.photo-remaining strong{font-family:var(--mono);font-size:22px;color:#286f4a}

/* Browser extension installation and author contact */
.browser-mode{margin-top:24px;padding:23px;border:1px solid #c5dfcd;background:#f5faf6;border-radius:16px}
.browser-mode h3{font-size:18px;font-weight:800;letter-spacing:-.5px;margin:0 0 12px}
.browser-mode>p:not(.section-label){font-size:12px;line-height:1.85;color:#60776a}
.browser-extension-download{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:12px;margin:5px 0 9px}
.browser-install{border-top:1px solid #dce9df;margin-top:14px;padding-top:13px;font-size:12px;line-height:1.8;color:#5d7866}
.browser-install summary{cursor:pointer;color:#277448;font-weight:800;list-style-position:inside}
.browser-install ol{padding-left:23px}
.browser-install li{margin:7px 0}
.browser-install code{color:#286c45;background:#e1f1e6;padding:2px 4px;border-radius:4px}
.browser-contact{font-size:12px!important;margin-top:16px;color:#71897b!important}
.browser-contact a{font-weight:800;color:#227950;text-decoration:underline;text-underline-offset:3px}
@media(max-width:800px){.tool-nav{gap:12px}.tool-nav a[href^="https://t.me/"]{display:none}}

/* CSP-compatible replacements for formerly inline attributes */
.tool-panel-spaced{margin-top:18px}
.marketplace-chips--spaced{margin:17px 0}
.action-primary--inline{display:inline-block}
.field-grid--single{grid-template-columns:1fr}
