/* GenToolz shared styles (loaded on every page) */

body {
    background-color: #09090b;
    color: #e4e4e7;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

.premium-card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
}
.sidebar-link { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent; }
.sidebar-link:hover:not(.active) { background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.05); }
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.02) 100%);
    border-color: rgba(139, 92, 246, 0.2);
    color: #fff;
    box-shadow: inset 2px 0 0 0 #8b5cf6;
}
.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    position: relative; z-index: 1; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
    z-index: -1; transition: opacity 0.3s ease; opacity: 0;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.dropzone {
    transition: all 0.3s ease;
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01) 10px, rgba(255, 255, 255, 0) 10px, rgba(255, 255, 255, 0) 20px);
}
.dropzone:hover, .dropzone.over {
    border-color: #ec4899; background-color: rgba(236, 72, 153, 0.03); box-shadow: inset 0 0 30px rgba(236, 72, 153, 0.05);
}
.dropzone-icon { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.dropzone:hover .dropzone-icon { transform: scale(1.1) translateY(-4px); color: #ec4899; }

.view-content { display: none; opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease; }
.view-content.active { display: block; opacity: 1; transform: translateY(0); animation: viewIn .45s cubic-bezier(.2,.7,.2,1) both; }

.tool-select {
    width: 100%; background: #18181b; border: 1px solid #27272a; border-radius: 10px;
    padding: 10px 34px 10px 14px; color: #e4e4e7; font: inherit; font-size: 13px; outline: none;
    appearance: none; transition: border-color 0.2s;
}
.tool-select:focus { border-color: rgba(139, 92, 246, 0.5); }
.ghost-btn {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #e4e4e7;
    padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; transition: .2s;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.ghost-btn:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.ghost-btn:disabled { opacity: .4; cursor: not-allowed; }

.meta-list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow: auto; }
.meta-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.meta-list li:last-child { border-bottom: 0; }
.meta-list li .tag { font-weight: 800; font-size: 10.5px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.32); letter-spacing: .02em; }
.meta-list li span:last-child { color: #a1a1aa; flex-basis: 100%; word-break: break-word; }
.meta-list li.none { color: #3dd39b; }
.rem-list li b::before { content: "✓ "; color: #3dd39b; font-weight: 800; }

.pw-line { font: 700 clamp(22px,4vw,30px)/1.3 'JetBrains Mono',monospace; letter-spacing: .03em; overflow-wrap: anywhere; word-break: break-all; margin: 6px 0 12px; }
.pw-line .d { color: #7C9BFF; } .pw-line .s { color: #FF8A63; }
.pw-line.hide { filter: blur(9px); user-select: none; }
.chip { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: #d4d4d8; }
.meter { height: 6px; background: rgba(255,255,255,.06); border-radius: 9px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; transition: width .3s; }

/* PDF editor (object-level selection) */
.pdf-page-wrap { position:relative; margin:0 auto; background:#fff; max-width:100%; box-shadow:0 8px 30px #0005; user-select:none; cursor:crosshair; }
.pdf-page-wrap canvas { display:block; width:100%; height:auto; pointer-events:none; }
.pdf-sel-box { position:absolute; border:2px solid #ef4444; background:#ef444433; pointer-events:none; }
.pdf-hover-box { position:absolute; border:1px dashed #60a5fa; background:#3b82f61f; pointer-events:none; }
.pdf-drag-box { position:absolute; border:2px dashed #8b5cf6; background:#8b5cf622; pointer-events:none; }

.pdf-page-wrap { touch-action: manipulation; -webkit-touch-callout: none; }
.pdf-page-wrap.draw { touch-action: none; }
#pdf-draw-mode.on { background: rgba(139,92,246,.35); border-color: rgba(139,92,246,.6); }
@media (min-width: 768px) { #pdf-draw-mode { display: none; } }
@media (max-width: 767px) {
    input:not([type=range]):not([type=checkbox]):not([type=file]), select, textarea { font-size: 16px !important; }
}
#fb-modal { display: none; }
#fb-modal.on { display: block; }

/* Footer */
.footer-link { color: #a1a1aa; transition: color .2s, transform .2s; display: inline-block; }
.footer-link:hover { color: #e4e4e7; transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Mobile polish */
#main-scroll { overflow-x: hidden; -webkit-overflow-scrolling: touch; }
@media (max-width: 767px) {
    #main-scroll { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
    header { padding-top: env(safe-area-inset-top); height: calc(4rem + env(safe-area-inset-top)); }
    #sidebar { padding-top: env(safe-area-inset-top); }
    .sidebar-link { padding-top: .75rem; padding-bottom: .75rem; }
    .ghost-btn, .btn-primary { min-height: 42px; }
}
    
/* ---------------------------------------------------------------
   Accent colours: tools use  data-accent="violet"  (see registry.js).
   --ac-300/400/500/700 are R G B triplets, so any tool colour works without rebuilding Tailwind.
   --------------------------------------------------------------- */
[data-accent="violet"] { --ac-300: 196 181 253; --ac-400: 167 139 250; --ac-500: 139 92 246; --ac-700: 109 40 217; }
[data-accent="emerald"] { --ac-300: 110 231 183; --ac-400: 52 211 153; --ac-500: 16 185 129; --ac-700: 4 120 87; }
[data-accent="red"] { --ac-300: 252 165 165; --ac-400: 248 113 113; --ac-500: 239 68 68; --ac-700: 185 28 28; }
[data-accent="pink"] { --ac-300: 249 168 212; --ac-400: 244 114 182; --ac-500: 236 72 153; --ac-700: 190 24 93; }
[data-accent="blue"] { --ac-300: 147 197 253; --ac-400: 96 165 250; --ac-500: 59 130 246; --ac-700: 29 78 216; }
[data-accent="cyan"] { --ac-300: 103 232 249; --ac-400: 34 211 238; --ac-500: 6 182 212; --ac-700: 14 116 144; }
[data-accent="fuchsia"] { --ac-300: 240 171 252; --ac-400: 232 121 249; --ac-500: 217 70 239; --ac-700: 162 28 175; }
[data-accent="amber"] { --ac-300: 252 211 77; --ac-400: 251 191 36; --ac-500: 245 158 11; --ac-700: 180 83 9; }
[data-accent="orange"] { --ac-300: 253 186 116; --ac-400: 251 146 60; --ac-500: 249 115 22; --ac-700: 194 65 12; }
[data-accent="teal"] { --ac-300: 94 234 212; --ac-400: 45 212 191; --ac-500: 20 184 166; --ac-700: 15 118 110; }
[data-accent="indigo"] { --ac-300: 165 180 252; --ac-400: 129 140 248; --ac-500: 99 102 241; --ac-700: 67 56 202; }
[data-accent="sky"] { --ac-300: 125 211 252; --ac-400: 56 189 248; --ac-500: 14 165 233; --ac-700: 3 105 161; }
[data-accent="lime"] { --ac-300: 190 242 100; --ac-400: 163 230 53; --ac-500: 132 204 22; --ac-700: 77 124 15; }
[data-accent="rose"] { --ac-300: 253 164 175; --ac-400: 251 113 133; --ac-500: 244 63 94; --ac-700: 190 18 60; }
[data-accent="yellow"] { --ac-300: 253 224 71; --ac-400: 250 204 21; --ac-500: 234 179 8; --ac-700: 161 98 7; }
[data-accent="zinc"] { --ac-300: 212 212 216; --ac-400: 161 161 170; --ac-500: 113 113 122; --ac-700: 63 63 70; }

.sidebar-link:hover i { color: rgb(var(--ac-400)); }
.sidebar-link.active i { color: rgb(var(--ac-400)); }
.gt-badge { margin-left: auto; font-size: 10px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 4px; color: rgb(var(--ac-400, 139 92 246)); background: rgb(var(--ac-500, 139 92 246) / .1); }
.gt-badge.hidden { display: none; }
#fb-badge { color: #f87171; background: rgba(239,68,68,.2); }

.tool-card .card-icon { background: rgb(var(--ac-500) / .15); color: rgb(var(--ac-300)); }
.tool-card:hover { border-color: rgb(var(--ac-400) / .4); }
.tool-card .open-link { color: rgb(var(--ac-300)); }

/* Page is built by shell.js: keep the raw content hidden for the split second before that (safety net after 2.5 s) */
body > #gt-shell { visibility: hidden; animation: gtShow 0s 2.5s forwards; }
@keyframes gtShow { to { visibility: visible; } }
html.gt-i18n-pending body { opacity: 0; animation: gtReveal 0s 1.6s forwards; }
@keyframes gtReveal { to { opacity: 1; } }

/* Bangla: needs a Bengali-capable font; letter-spacing breaks Bengali conjuncts */
html[lang="bn"] body, html[lang="bn"] button, html[lang="bn"] input, html[lang="bn"] select, html[lang="bn"] textarea {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Inter', system-ui, sans-serif;
}
html[lang="bn"] * { letter-spacing: normal !important; }
html[lang="bn"] .gt-caps, html[lang="bn"] .uppercase { text-transform: none; }

/* Cookie / analytics banner */
#gt-consent { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: min(680px, calc(100vw - 24px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; justify-content: space-between; padding: 14px 16px; border-radius: 14px;
  background: rgba(24,24,27,.96); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 50px -12px rgba(0,0,0,.7); color: #d4d4d8; font-size: 13px; line-height: 1.5; }
#gt-consent .gt-consent-text { margin: 0; flex: 1 1 280px; }
#gt-consent a { color: #a78bfa; text-decoration: underline; }
#gt-consent .gt-consent-actions { display: flex; gap: 8px; margin-left: auto; }

/* Long text pages (Privacy Policy) */
.gt-prose { color: #d4d4d8; font-size: 15px; line-height: 1.75; }
.gt-prose h1 { font-size: 30px; line-height: 1.2; font-weight: 800; color: #fff; margin: 0 0 6px; }
.gt-prose h2 { font-size: 19px; font-weight: 700; color: #fff; margin: 34px 0 10px; }
.gt-prose p { margin: 0 0 14px; }
.gt-prose ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.gt-prose li { margin-bottom: 6px; }
.gt-prose a { color: #a78bfa; text-decoration: underline; text-underline-offset: 2px; }
.gt-prose .muted { color: #a1a1aa; font-size: 13px; }
.gt-prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.gt-prose th, .gt-prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.gt-prose th { color: #fff; font-weight: 600; }
.gt-prose .tbl { overflow-x: auto; }

/* Settings rows */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.set-row + .set-row { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: #a1a1aa; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: linear-gradient(135deg, #8b5cf6, #3b82f6); color: #fff; box-shadow: 0 2px 10px rgba(139,92,246,.35); }
@media (max-width: 560px) { .set-row { flex-direction: column; align-items: flex-start; } }

/* Toggle switch (used in Settings) */
.gt-switch { width: 36px; height: 20px; background: #3f3f46; border-radius: 999px; position: relative; transition: background .2s; }
.gt-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .2s; }
.peer:checked ~ .gt-switch { background: #8b5cf6; }
.peer:checked ~ .gt-switch::after { transform: translateX(16px); }
.peer:disabled ~ .gt-switch { opacity: .6; }
.peer:focus-visible ~ .gt-switch { outline: 2px solid #22d3ee; outline-offset: 2px; }

/* the HTML hidden attribute must always win over display rules */
[hidden] { display: none !important; }

/* The logo has a white word mark: the light theme swaps in a dark version */
.gt-logo-on-light { display: none; }

/* Magnetic hover helpers (assets/js/magnetic.js) */
html.gt-magnetic .tool-card { position: relative; }
html.gt-magnetic .tool-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--px, 50%) var(--py, 50%), rgb(var(--ac-500) / .18), transparent 65%); }
html.gt-magnetic .tool-card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tool-card::before { display: none; } }

/* ================= Workspace navigation (categories, search, favorites) ================= */
.sidebar-link.hidden, .gt-cat-items.hidden, .gt-home-cat.hidden, .tool-card.hidden, .gt-pin-group.hidden, .gt-chip.hidden { display: none !important; }

.gt-side-search { position: relative; }
.gt-side-search > i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #71717a; font-size: 14px; pointer-events: none; }
.gt-side-search input { width: 100%; background: #18181b; border: 1px solid #27272a; border-radius: 8px; padding: 8px 10px 8px 32px; font-size: 12px; color: #e4e4e7; outline: none; transition: border-color .2s; }
.gt-side-search input:focus { border-color: rgba(139, 92, 246, .55); }
.gt-side-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.gt-cat { margin-top: 2px; }
.gt-cat-head { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 8px; color: #a1a1aa; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.gt-cat-head:hover { color: #e4e4e7; background: rgba(255, 255, 255, .035); }
.gt-cat-icon { font-size: 14px; color: #71717a; }
.gt-cat-name { flex: 1; text-align: left; line-height: 1.2; }
.gt-cat-count { font-size: 10px; font-weight: 700; letter-spacing: 0; color: #71717a; background: rgba(255, 255, 255, .06); border-radius: 4px; padding: 2px 5px; }
.gt-cat-caret { font-size: 11px; color: #52525b; transition: transform .2s; }
.gt-cat-head.closed .gt-cat-caret { transform: rotate(-90deg); }
.gt-cat-items { display: flex; flex-direction: column; gap: 2px; }

.gt-pin-group { margin-top: 10px; }
.gt-pin-head { display: flex; align-items: center; gap: 7px; padding: 6px 12px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #71717a; }
.gt-pin-head i { font-size: 12px; color: #fbbf24; }
.gt-pin-group[data-pin="recent"] .gt-pin-head i { color: #67e8f9; }

.gt-fav-btn { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: #71717a; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); transition: .2s; }
.gt-fav-btn:hover { color: #fbbf24; border-color: rgba(251, 191, 36, .35); }
.gt-fav-btn.on { color: #fbbf24; background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .35); }

.gt-tool-card-wrap { position: relative; }
.tool-card { position: relative; }
.tool-card .gt-card-badge { position: absolute; top: 14px; right: 14px; font-size: 9px; font-weight: 800; letter-spacing: .04em; padding: 3px 6px; border-radius: 4px; color: rgb(var(--ac-300)); background: rgb(var(--ac-500) / .14); }

.gt-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; margin-top: 16px; scrollbar-width: none; }
.gt-chips::-webkit-scrollbar { display: none; }
.gt-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #a1a1aa; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); transition: .2s; white-space: nowrap; }
.gt-chip i { font-size: 13px; }
.gt-chip span { font-size: 10px; color: #71717a; }
.gt-chip:hover { color: #fff; border-color: rgba(139, 92, 246, .35); }
.gt-chip.active { color: #fff; background: linear-gradient(135deg, rgba(139, 92, 246, .28), rgba(6, 182, 212, .14)); border-color: rgba(139, 92, 246, .5); }
.gt-chip.active span { color: #ddd6fe; }

.gt-home-search { display: flex; align-items: center; gap: 8px; background: rgba(24, 24, 27, .72); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 9px 12px; min-width: min(300px, 100%); }
.gt-home-search > i { color: #71717a; }
.gt-home-search input { background: transparent; border: 0; outline: 0; color: #e4e4e7; font-size: 13px; width: 100%; min-width: 0; }
.gt-home-search kbd { font-size: 10px; color: #71717a; border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px; padding: 1px 5px; }
.gt-home-cat { margin-top: 36px; scroll-margin-top: 16px; }
.gt-home-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gt-home-cat-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: rgb(var(--ac-500) / .15); color: rgb(var(--ac-300)); flex: none; }
.gt-home-cat-count { font-size: 11px; font-weight: 700; color: #a1a1aa; background: rgba(255, 255, 255, .06); border-radius: 99px; padding: 2px 8px; vertical-align: middle; }
.gt-home-cat-link { margin-left: auto; font-size: 12px; font-weight: 600; color: #a78bfa; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.gt-home-cat-link:hover { color: #c4b5fd; }

@media (max-width: 767px) {
  .gt-home-cat-head { flex-wrap: wrap; }
  .gt-home-cat-link { margin-left: 50px; }
  html.gt-drawer-open #main-scroll { overflow: hidden; }
}

/* ================= Tool page kit (assets/js/ui-kit.js) ================= */
.gt-tool-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.gt-tool-title { font-size: 24px; line-height: 1.25; font-weight: 700; color: #fff; }
@media (min-width: 640px) { .gt-tool-title { font-size: 30px; } }
.gt-tool-desc { margin-top: 6px; color: #a1a1aa; font-size: 14px; max-width: 640px; }
.gt-tool-badge { display: inline-block; vertical-align: middle; font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 3px 7px; border-radius: 5px; color: #67e8f9; background: rgba(34, 211, 238, .12); border: 1px solid rgba(34, 211, 238, .25); }

.gt-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #a1a1aa; margin-bottom: 6px; }
.gt-input, .gt-textarea {
  width: 100%; background: #18181b; border: 1px solid #27272a; border-radius: 10px;
  padding: 10px 12px; color: #e4e4e7; font: inherit; font-size: 13px; outline: none; transition: border-color .2s;
}
.gt-input:focus, .gt-textarea:focus { border-color: rgba(139, 92, 246, .55); }
.gt-textarea { min-height: 150px; resize: vertical; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.6; }
.gt-output {
  background: #0f0f11; border: 1px solid #27272a; border-radius: 12px; padding: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.65;
  color: #d4d4d8; white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; margin: 0;
}
.gt-hint { font-size: 11.5px; color: #71717a; margin-top: 6px; }
.gt-note { display: flex; gap: 9px; font-size: 12px; color: #a1a1aa; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; }
.gt-note i { color: #67e8f9; margin-top: 1px; }
.gt-note.warn i { color: #fbbf24; }
.gt-note.ok i { color: #34d399; }
.gt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.gt-kpi { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 12px 14px; }
.gt-kpi span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #71717a; margin-bottom: 4px; }
.gt-kpi b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 17px; color: #fff; font-weight: 700; }
.gt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gt-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.gt-swatch { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); cursor: pointer; background: #18181b; text-align: left; }
.gt-swatch i { display: block; height: 58px; }
.gt-swatch span { display: block; padding: 6px 8px; font: 600 11px/1.2 'JetBrains Mono', ui-monospace, monospace; color: #d4d4d8; }
.gt-swatch:hover { border-color: rgba(139,92,246,.5); }
.gt-tabs { display: inline-flex; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 3px; gap: 2px; }
.gt-tab { padding: 6px 12px; border-radius: 7px; font-size: 12px; font-weight: 600; color: #a1a1aa; }
.gt-tab.active { background: rgba(139,92,246,.25); color: #fff; }

.gt-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 80;
  background: #18181b; border: 1px solid rgba(139,92,246,.45); color: #f4f4f5;
  padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.8); opacity: 0; pointer-events: none; transition: .2s;
  max-width: min(90vw, 420px); text-align: center;
}
.gt-toast.show { opacity: 1; transform: translate(-50%, 0); }
.gt-toast.warn { border-color: rgba(251,191,36,.5); }

.gt-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.gt-thumb { position: relative; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; background: #111113; }
.gt-thumb img { display: block; width: 100%; height: 92px; object-fit: cover; }
.gt-thumb .gt-thumb-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; font-size: 12px; }
.gt-thumb p { padding: 5px 7px; font-size: 10.5px; color: #a1a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-file-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }
.gt-file-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #d4d4d8; }
.gt-file-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-file-row .size { color: #71717a; font-size: 11px; font-variant-numeric: tabular-nums; }

/* Image cropper */
.cr-box { position: absolute; border: 2px solid #a78bfa; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: move; }
.cr-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 33.33% 33.33%; opacity: .55; }
.cr-h { position: absolute; width: 18px; height: 18px; background: #a78bfa; border: 2px solid #18181b; border-radius: 4px; }
.cr-h[data-h="nw"] { left: -9px; top: -9px; cursor: nwse-resize; }
.cr-h[data-h="ne"] { right: -9px; top: -9px; cursor: nesw-resize; }
.cr-h[data-h="sw"] { left: -9px; bottom: -9px; cursor: nesw-resize; }
.cr-h[data-h="se"] { right: -9px; bottom: -9px; cursor: nwse-resize; }

/* Watermark position picker */
.gt-pos-btn { height: 28px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: grid; place-items: center; transition: .15s; }
.gt-pos-btn span { width: 6px; height: 6px; border-radius: 2px; background: #71717a; }
.gt-pos-btn:hover { border-color: rgba(139,92,246,.4); }
.gt-pos-btn.active { background: rgba(139,92,246,.25); border-color: rgba(139,92,246,.6); }
.gt-pos-btn.active span { background: #c4b5fd; }

/* Font pairing heading colour */
:root { --gt-head: #ffffff; }
html[data-theme="light"] { --gt-head: #18181b; }

/* ---------- Range / colour / checkbox controls ---------- */
.gt-range { width: 100%; height: 22px; accent-color: #8b5cf6; background: transparent; cursor: pointer; }
.gt-range::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: rgba(255,255,255,.12); }
.gt-range::-webkit-slider-thumb { -webkit-appearance: none; margin-top: -6px; width: 16px; height: 16px; border-radius: 50%; background: #a78bfa; border: 2px solid #18181b; }
.gt-range::-moz-range-track { height: 5px; border-radius: 99px; background: rgba(255,255,255,.12); }
.gt-range::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #18181b; border-radius: 50%; background: #a78bfa; }
.gt-color { width: 44px; height: 38px; padding: 2px; border-radius: 9px; background: #18181b; border: 1px solid #27272a; cursor: pointer; flex: none; }
.gt-color::-webkit-color-swatch-wrapper { padding: 0; }
.gt-color::-webkit-color-swatch { border: 0; border-radius: 6px; }
.gt-check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #d4d4d8; cursor: pointer; user-select: none; }
.gt-check input { width: 15px; height: 15px; accent-color: #8b5cf6; }

/* ---------- Paper preview (PDF tools) ---------- */
.gt-paper-preview { background: #111113; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 10px; display: grid; place-items: center; }
.gt-paper-inner { position: relative; width: 100%; max-width: 220px; aspect-ratio: 210 / 297; background: #fafafa; border-radius: 3px; overflow: hidden; box-shadow: 0 8px 24px -12px rgba(0,0,0,.9); }
.gt-paper-inner span { position: absolute; font-weight: 800; letter-spacing: .02em; white-space: nowrap; line-height: 1; }

/* ---------- Calculator ---------- */
.gt-calc-display { background: #0f0f11; border: 1px solid #27272a; border-radius: 12px; padding: 12px 14px; text-align: right; }
.gt-calc-expr { min-height: 18px; font: 500 12px/1.4 'JetBrains Mono', ui-monospace, monospace; color: #71717a; overflow-x: auto; white-space: nowrap; }
.gt-calc-main { font: 700 30px/1.2 'JetBrains Mono', ui-monospace, monospace; color: #fff; overflow-x: auto; white-space: nowrap; }
.gt-calc-pad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gt-calc-key { height: 46px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #e4e4e7; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); transition: .12s; }
.gt-calc-key:hover { background: rgba(255,255,255,.1); }
.gt-calc-key:active { transform: scale(.97); }
.gt-calc-key.op { color: #c4b5fd; background: rgba(139,92,246,.16); border-color: rgba(139,92,246,.28); }
.gt-calc-key.eq { background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff; border: 0; }
.gt-calc-key.wide { grid-column: span 2; }

/* ---------- Regex tester ---------- */
.gt-regex-out { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.gt-regex-out mark { background: rgba(139,92,246,.4); color: #f5f3ff; border-radius: 3px; padding: 0 2px; }

/* ---------- Small utility layout ---------- */
.gt-split { display: grid; gap: 12px; }
@media (min-width: 1024px) { .gt-split.two { grid-template-columns: 1fr 1fr; } }
.gt-scroll-x { overflow-x: auto; }
.gt-zone-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); font-size: 12px; }
.gt-zone-row .gt-zone-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d4d4d8; }
.gt-zone-row b { font: 700 13px/1 'JetBrains Mono', ui-monospace, monospace; color: #fff; }
.gt-zone-row .gt-zone-day { font-size: 10px; color: #a78bfa; }
