/* JobRojgar Cyber Cafe Toolkit - shared styles. Everything is scoped under .cc so nothing leaks
   into the site layout. Plain CSS (grid/flex), no framework beyond the site's own Bootstrap 4. */
.cc {
    --cc-primary: #4f46e5;
    --cc-primary-dark: #4338ca;
    --cc-primary-light: #eef2ff;
    --cc-ok: #15803d;
    --cc-ok-bg: #dcfce7;
    --cc-bad: #b91c1c;
    --cc-bad-bg: #fee2e2;
    --cc-warn-bg: #fef3c7;
    --cc-text: #1e2432;
    --cc-muted: #6b7280;
    --cc-border: #e5e7eb;
    --cc-soft: #f6f7fb;
    --cc-card: #fff;
    --cc-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 14px rgba(17, 24, 39, .05);
    color: var(--cc-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 16px 40px;   /* the site header is fixed: 80px tall on desktop, 60px below 992px */
    font-size: 15px;
}
@media (max-width: 991px) { .cc { padding-top: 78px; } }
html[data-theme="dark"] .cc {
    --cc-text: #e5e7eb; --cc-muted: #a1a1aa; --cc-border: #374151; --cc-soft: #111827; --cc-card: #1f2937;
    --cc-primary-light: rgba(99, 102, 241, .16); --cc-ok-bg: rgba(22, 163, 74, .18); --cc-bad-bg: rgba(220, 38, 38, .18); --cc-warn-bg: rgba(217, 119, 6, .18);
}
.cc *, .cc *::before, .cc *::after { box-sizing: border-box; }
.cc a:focus-visible, .cc button:focus-visible, .cc input:focus-visible, .cc select:focus-visible, .cc summary:focus-visible, .cc label:focus-within { outline: 3px solid #2563eb; outline-offset: 2px; }
.cc [hidden] { display: none !important; }

/* Page head */
.cc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; font-size: .82rem; color: var(--cc-muted); }
.cc-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.cc-crumbs a { color: var(--cc-muted); }
.cc-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; margin-bottom: 16px; }
.cc-head-text { flex: 1 1 420px; min-width: 0; }
.cc h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.3px; margin: 0 0 4px; color: var(--cc-text); }
.cc-intro { margin: 0; color: var(--cc-muted); }
.cc-privacy { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--cc-ok-bg); color: var(--cc-ok); font-size: .8rem; font-weight: 600; }
html[data-theme="dark"] .cc-privacy { color: #4ade80; }

/* Buttons + fields */
.cc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 15px; border-radius: 10px; border: 1px solid var(--cc-border); background: var(--cc-card); color: var(--cc-text); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none !important; cursor: pointer; line-height: 1.2; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.cc-btn:hover { border-color: var(--cc-primary); color: var(--cc-primary); }
.cc-btn.is-primary { background: var(--cc-primary); border-color: var(--cc-primary); color: #fff; }
.cc-btn.is-primary:hover { background: var(--cc-primary-dark); color: #fff; }
.cc-btn.is-ok { background: var(--cc-ok); border-color: var(--cc-ok); color: #fff; }
.cc-btn.is-small { min-height: 32px; padding: 5px 10px; font-size: .82rem; }
.cc-btn.is-block { width: 100%; }
.cc-btn[disabled] { opacity: .5; cursor: not-allowed; }
.cc-icon-btn { width: 38px; height: 38px; min-height: 0; padding: 0; }
.cc-field { display: block; margin-bottom: 12px; }
.cc-field > span, .cc-label { display: block; font-size: .8rem; font-weight: 700; color: var(--cc-muted); margin-bottom: 5px; }
.cc input[type="text"], .cc input[type="number"], .cc input[type="search"], .cc input[type="date"], .cc select {
    width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid var(--cc-border); border-radius: 9px; background: var(--cc-card); color: var(--cc-text); font: inherit; font-size: .92rem;
}
.cc input[type="color"] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--cc-border); border-radius: 8px; background: var(--cc-card); }
.cc input[type="range"] { width: 100%; accent-color: var(--cc-primary); }
.cc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.cc-row.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-check { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .9rem; cursor: pointer; }
.cc-check input { width: 18px; height: 18px; accent-color: var(--cc-primary); }
.cc-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cc-seg button { flex: 1 1 auto; min-height: 36px; padding: 6px 10px; border: 1px solid var(--cc-border); border-radius: 9px; background: var(--cc-card); color: var(--cc-text); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.cc-seg button.active { background: var(--cc-primary); border-color: var(--cc-primary); color: #fff; }
.cc-hint { font-size: .8rem; color: var(--cc-muted); margin: -6px 0 12px; }

/* Cards / panels */
.cc-card { background: var(--cc-card); border: 1px solid var(--cc-border); border-radius: 14px; box-shadow: var(--cc-shadow); padding: 16px; }
.cc-card + .cc-card { margin-top: 14px; }
.cc-card h2, .cc-card h3 { font-size: 1rem; font-weight: 800; margin: 0 0 12px; color: var(--cc-text); display: flex; align-items: center; gap: 8px; }
.cc-card h2 i, .cc-card h3 i { color: var(--cc-primary); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-actions > .cc-btn { flex: 1 1 auto; }

/* Tool layout: workspace + side panel */
.cc-tool { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.cc-side { position: sticky; top: 96px; }
.cc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 260px; padding: 24px; border: 2px dashed #c7d2fe; border-radius: 14px; background: var(--cc-primary-light); text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.cc-drop:hover, .cc-drop.is-over { border-color: var(--cc-primary); }
.cc-drop i { font-size: 38px; color: var(--cc-primary); }
.cc-drop b { font-size: 1.05rem; }
.cc-drop small { color: var(--cc-muted); }
.cc-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cc-stage { position: relative; height: 62vh; min-height: 340px; max-height: 640px; background: #1f2430; border-radius: 12px; overflow: hidden; }
.cc-stage img { display: block; max-width: 100%; }
.cc-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cc-toolbar .cc-sep { width: 1px; background: var(--cc-border); margin: 4px 2px; }
.cc-preview { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 10px; border-radius: 10px; border: 1px solid var(--cc-border);
    background-color: #fff; background-image: linear-gradient(45deg, #eceff4 25%, transparent 25%), linear-gradient(-45deg, #eceff4 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eceff4 75%), linear-gradient(-45deg, transparent 75%, #eceff4 75%);
    background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.cc-preview img, .cc-preview canvas { max-width: 100%; max-height: 340px; height: auto; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.cc-preview.is-sheet img, .cc-preview.is-sheet canvas { max-height: 520px; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; font-size: .82rem; color: var(--cc-muted); }
.cc-meta b { color: var(--cc-text); }

/* Messages + validation */
.cc-msg { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: .86rem; margin: 10px 0; }
.cc-msg.is-error { background: var(--cc-bad-bg); color: var(--cc-bad); }
.cc-msg.is-ok { background: var(--cc-ok-bg); color: var(--cc-ok); }
.cc-msg.is-info { background: var(--cc-primary-light); color: var(--cc-primary-dark); }
.cc-msg.is-warn { background: var(--cc-warn-bg); color: #92400e; }
html[data-theme="dark"] .cc-msg.is-error { color: #fca5a5; }
html[data-theme="dark"] .cc-msg.is-ok { color: #4ade80; }
html[data-theme="dark"] .cc-msg.is-info { color: #c7d2fe; }
html[data-theme="dark"] .cc-msg.is-warn { color: #fcd34d; }
.cc-checks { list-style: none; margin: 10px 0; padding: 0; }
.cc-checks li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .9rem; font-weight: 600; border-bottom: 1px dashed var(--cc-border); }
.cc-checks li:last-child { border-bottom: 0; }
.cc-checks li::before { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.cc-checks li.ok { color: var(--cc-ok); }
.cc-checks li.ok::before { content: "\2713"; background: var(--cc-ok-bg); }
.cc-checks li.bad { color: var(--cc-bad); }
.cc-checks li.bad::before { content: "\2715"; background: var(--cc-bad-bg); }
html[data-theme="dark"] .cc-checks li.ok { color: #4ade80; }
html[data-theme="dark"] .cc-checks li.bad { color: #fca5a5; }

/* Tabs (image tools, PDF tools) */
.cc-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 16px; background: var(--cc-card); border: 1px solid var(--cc-border); border-radius: 14px; scrollbar-width: none; }
.cc-tabs::-webkit-scrollbar { display: none; }
.cc-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--cc-muted); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cc-tab:hover { background: var(--cc-soft); color: var(--cc-text); }
.cc-tab.active { background: var(--cc-primary); color: #fff; }

/* File list with reorder buttons */
.cc-files { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cc-files li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--cc-border); border-radius: 10px; background: var(--cc-card); font-size: .88rem; }
.cc-files li .cc-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cc-files li small { color: var(--cc-muted); white-space: nowrap; }
.cc-files li i.fa-file-pdf-o { color: #dc2626; font-size: 18px; }

/* PDF page thumbnails */
.cc-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin: 12px 0; }
.cc-thumb { position: relative; border: 2px solid var(--cc-border); border-radius: 12px; background: var(--cc-card); padding: 8px 8px 6px; text-align: center; }
.cc-thumb.is-selected { border-color: var(--cc-primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .2); }
.cc-thumb.is-deleted { opacity: .4; }
.cc-thumb.is-deleted .cc-thumb-img { filter: grayscale(1); }
.cc-thumb-img { height: 150px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cc-thumb-img canvas { max-width: 100%; max-height: 150px; box-shadow: 0 1px 6px rgba(0, 0, 0, .2); transition: transform .2s ease; background: #fff; }
.cc-thumb-no { font-size: .78rem; font-weight: 700; color: var(--cc-muted); margin: 6px 0 4px; }
.cc-thumb-tools { display: flex; justify-content: center; gap: 4px; }
.cc-thumb-tools button { width: 28px; height: 28px; border: 1px solid var(--cc-border); border-radius: 7px; background: var(--cc-card); color: var(--cc-text); cursor: pointer; font-size: 13px; padding: 0; }
.cc-thumb-tools button:hover { border-color: var(--cc-primary); color: var(--cc-primary); }
.cc-thumb-flag { position: absolute; top: 6px; left: 6px; font-size: .68rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: var(--cc-bad); color: #fff; }

/* Results (download links) */
.cc-results { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cc-results li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--cc-ok-bg); font-size: .88rem; }
.cc-results li span { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Progress */
.cc-progress { height: 8px; border-radius: 99px; background: var(--cc-soft); overflow: hidden; margin: 10px 0; }
.cc-progress span { display: block; height: 100%; width: 0; background: var(--cc-primary); transition: width .2s ease; }

/* FAQ */
.cc-faq { margin-top: 28px; }
.cc-faq h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 10px; }
.cc-faq details { border: 1px solid var(--cc-border); border-radius: 12px; background: var(--cc-card); padding: 0 14px; margin-bottom: 8px; }
.cc-faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.cc-faq details p { margin: 0 0 12px; color: var(--cc-muted); }
.cc-disclaimer { margin-top: 18px; font-size: .8rem; color: var(--cc-muted); text-align: center; }

/* Dashboard */
.cc-hero { padding: 12px; margin: 0 -4px 18px; border-radius: 16px; background: var(--cc-card); border: 1px solid var(--cc-border); box-shadow: var(--cc-shadow); }
.cc-search { position: relative; display: block; margin: 0; }
.cc-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--cc-muted); }
.cc .cc-search input { min-height: 48px; padding-left: 40px; font-size: 1rem; border-radius: 12px; background: var(--cc-soft); }
.cc-catnav { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.cc-catnav::-webkit-scrollbar { display: none; }
.cc-catnav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--cc-border); color: var(--cc-text); font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cc-catnav a:hover { border-color: var(--cc-primary); color: var(--cc-primary); }
.cc-catnav a i { color: var(--cc-primary); }
.cc-section { margin-bottom: 26px; scroll-margin-top: 110px; }
.cc-section > h2, .cc-section-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; margin: 0 0 4px; color: var(--cc-text); }
.cc-section > h2 { margin-bottom: 12px; }
.cc-section > h2 i { color: #f59e0b; }
.cc-section-head { margin-bottom: 12px; }
.cc-section-head p { margin: 0; color: var(--cc-muted); font-size: .88rem; }
.cc-cat-ico { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--cc-primary-light); color: var(--cc-primary); font-size: 16px; }
.cc-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cc-tcard { position: relative; display: flex; flex-direction: column; padding: 16px; border-radius: 14px; border: 1px solid var(--cc-border); background: var(--cc-card); box-shadow: var(--cc-shadow); transition: border-color .15s ease, transform .15s ease; }
.cc-tcard:hover { border-color: #c7d2fe; transform: translateY(-2px); }
.cc-tcard-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--cc-primary-light); color: var(--cc-primary); font-size: 20px; margin-bottom: 10px; }
.cc-tcard h3 { font-size: 1rem; font-weight: 800; margin: 0 0 4px; }
.cc-tcard-link { color: var(--cc-text) !important; text-decoration: none !important; }
.cc-tcard-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }   /* whole card is the link */
.cc-tcard p { flex: 1; margin: 0 0 12px; font-size: .84rem; color: var(--cc-muted); line-height: 1.45; }
.cc-tcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-star { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--cc-border); background: var(--cc-card); color: var(--cc-muted); cursor: pointer; font-size: 16px; }
.cc-star:hover { color: #f59e0b; border-color: #f59e0b; }
.cc-star[aria-pressed="true"] { color: #f59e0b; border-color: #fcd34d; background: #fffbeb; }
html[data-theme="dark"] .cc-star[aria-pressed="true"] { background: rgba(245, 158, 11, .15); }
.cc-tcard.is-hidden, .cc-section.is-empty { display: none; }
.cc-tgrid.is-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cc-tgrid.is-compact .cc-tcard { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
.cc-tgrid.is-compact .cc-tcard-ico { width: 36px; height: 36px; font-size: 16px; margin: 0; flex-shrink: 0; }
.cc-tgrid.is-compact .cc-tcard h3 { flex: 1; margin: 0; font-size: .9rem; }
.cc-tgrid.is-compact .cc-tcard p, .cc-tgrid.is-compact .cc-tcard-foot .cc-btn { display: none; }
@media (max-width: 640px) {
    .cc-hero { padding: 10px; }
    .cc-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cc-tcard { padding: 12px; }
    .cc-tcard-ico { width: 38px; height: 38px; font-size: 17px; margin-bottom: 8px; }
    .cc-tcard h3 { font-size: .9rem; }
    .cc-tcard p { font-size: .78rem; margin-bottom: 8px; }
    .cc-tcard-foot .cc-btn { display: none; }
    .cc-tcard-foot { justify-content: flex-end; }
    .cc-star { width: 32px; height: 32px; }
    .cc-tgrid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .cc-tgrid.is-compact .cc-tcard { padding: 8px 8px 8px 12px; gap: 6px; }
    .cc-tgrid.is-compact .cc-tcard-ico { display: none; }
    .cc-tgrid.is-compact .cc-tcard h3 { font-size: .84rem; line-height: 1.3; }
}

/* ID cards on A4: card rows with front / back slots */
.cc-cards { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cc-cardrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) 38px; gap: 10px; align-items: center; }
.cc-cardrow-no { font-size: .8rem; font-weight: 800; color: var(--cc-muted); }
.cc-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 8px; border: 2px dashed var(--cc-border); border-radius: 12px; background: var(--cc-soft); color: var(--cc-muted); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.cc-slot:hover { border-color: var(--cc-primary); color: var(--cc-primary); }
.cc-slot.is-set { border-style: solid; background: var(--cc-card); }
.cc-slot canvas { max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 1px 6px rgba(0, 0, 0, .2); }
.cc-slot i { font-size: 20px; }
.cc-muted-small { font-size: .78rem; font-weight: 600; color: var(--cc-muted); }

/* Modal (crop dialog) */
.cc-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .6); }
.cc-modal-box { width: 100%; max-width: 860px; max-height: calc(100vh - 32px); overflow: auto; padding: 16px; border-radius: 16px; background: var(--cc-card); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.cc-modal-box h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 10px; }
.cc-modal .cc-stage { height: 58vh; }
@media (max-width: 640px) {
    .cc-cardrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px; }
    .cc-cardrow-no { grid-column: 1 / -1; }
    .cc-modal { padding: 0; align-items: stretch; }
    .cc-modal-box { max-height: none; border-radius: 0; }
    .cc-modal .cc-stage { height: 55vh; }
}

/* Small drop areas, two side by side */
.cc-drop.is-small { min-height: 130px; padding: 16px; }
.cc-drop.is-small i { font-size: 28px; }
.cc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cc-drop small { overflow-wrap: anywhere; }

/* Fact list (DPI converter) */
.cc-facts { list-style: none; margin: 0; padding: 0; }
.cc-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--cc-border); font-size: .9rem; }
.cc-facts li:last-child { border-bottom: 0; }
.cc-facts span { color: var(--cc-muted); }

/* Form resizer */
.cc-presetbar { margin-bottom: 14px; }
.cc-presetbar-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0 12px; align-items: end; }
.cc-presetbar-btns { display: flex; gap: 8px; margin-bottom: 12px; }
.cc-slots { display: flex; flex-direction: column; gap: 14px; }
.cc-slot-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cc .cc-slot-title { flex: 1; min-height: 40px; border: 1px solid transparent; border-radius: 9px; padding: 4px 8px; background: transparent; color: var(--cc-text); font: inherit; font-size: 1.1rem; font-weight: 800; }
.cc .cc-slot-title:hover, .cc .cc-slot-title:focus { border-color: var(--cc-border); background: var(--cc-soft); }
.cc-slot-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.cc-slot-body .cc-drop { min-height: 170px; }
.cc .rz-stage { height: 340px; min-height: 260px; }
.rz-right > * + * { margin-top: 10px; }
.rz-right .cc-preview img { max-height: 220px; }
@media (max-width: 900px) {
    .cc-slot-body { grid-template-columns: minmax(0, 1fr); }
    .cc-presetbar-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .cc .rz-stage { height: 280px; }
    .cc-two { gap: 8px; }
}

/* Government services directory */
.cc .cc-notgov { background: var(--cc-warn-bg); color: #92400e; }
html[data-theme="dark"] .cc .cc-notgov { color: #fcd34d; }
.cc-govsec h2 { font-size: 1.1rem; }
.cc-govsec p { margin: 0 0 10px; line-height: 1.6; }
.cc-govsec ul, .cc-govsec ol { margin: 0 0 10px; padding-left: 22px; line-height: 1.6; }
.cc-govsec li { margin-bottom: 4px; }
.cc-official .cc-meta { margin-top: 6px; }
.cc-official .cc-meta b { overflow-wrap: anywhere; }
.cc-links-list { margin: 0; padding-left: 18px; }
.cc-links-list li { margin-bottom: 6px; }
.cc-disclaimer-strong { padding: 12px 14px; border-radius: 12px; background: var(--cc-soft); border: 1px solid var(--cc-border); color: var(--cc-text); font-weight: 600; }

/* Face guide inside the passport-photo crop box */
.cc-face-guide .cropper-view-box::after { content: ""; position: absolute; left: 22%; right: 22%; top: 12%; bottom: 24%; border: 2px dashed rgba(255, 255, 255, .85); border-radius: 50%; pointer-events: none; }
.cc-face-guide .cropper-view-box::before { content: ""; position: absolute; left: 0; right: 0; top: 8%; border-top: 1px dashed rgba(255, 255, 255, .6); pointer-events: none; }

@media (max-width: 960px) {
    .cc-tool { grid-template-columns: minmax(0, 1fr); }
    .cc-side { position: static; }
}
@media (max-width: 640px) {
    .cc { padding: 74px 12px 32px; }
    .cc h1 { font-size: 1.3rem; }
    .cc-stage { height: 52vh; min-height: 280px; }
    .cc-drop { min-height: 190px; }
    .cc-row.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .cc * { transition: none !important; } }
