/* Photo & Document Studio + redesigned Tools page */
html.gjs-lock, html.gjs-lock body { overflow: hidden !important; }
.gjs [hidden], #gjs[hidden] { display: none !important; }

.gjs {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  background: radial-gradient(900px 500px at 80% -10%, rgba(245,158,11,.14), transparent 60%), #07130F;
  font-family: var(--gj-font, system-ui), 'Nirmala UI', system-ui, sans-serif;
}
#gjs, #gjs * { box-sizing: border-box; }
#gjs, #gjs div, #gjs span, #gjs p, #gjs label, #gjs h3, #gjs h4, #gjs small, #gjs em, #gjs button, #gjs i { color: inherit !important; }
#gjs { color: #E8F3EE !important; }
#gjs small, #gjs .gjs-hint { color: #9DB8AD !important; }
#gjs button { font-family: inherit; cursor: pointer; border: 0; background: none; }
#gjs input, #gjs select { font-family: inherit; }

.gjs-top { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); }
#gjs .gjs-top { background: #07130F !important; box-shadow: none !important; backdrop-filter: none !important; }
html.gjs-lock .ai-agent-fab, html.gjs-lock .ai-agent-teaser, html.gjs-lock #whatsapp-help-widget, html.gjs-lock #gj-bottom-nav { display: none !important; }
#gjs .gjs-x { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
#gjs .gjs-x:hover { background: rgba(255,255,255,.16); }
.gjs-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.gjs-title span { font-weight: 800; font-size: 1.15rem; }
.gjs-title small { font-size: .75rem; }
#gjs .gjs-top-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 12px; background: rgba(255,255,255,.1); font-weight: 700; font-size: .85rem; }

/* start screen */
.gjs-start { flex: 1; display: grid; place-items: center; padding: 1.2rem; overflow: auto; }
.gjs-drop { width: min(560px, 100%); text-align: center; padding: clamp(24px, 5vw, 44px); border-radius: 28px; border: 2px dashed rgba(255,176,32,.55); background: rgba(255,255,255,.04); }
.gjs-drop-ico { width: 84px; height: 84px; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 2rem; border-radius: 26px; background: linear-gradient(135deg, #FFB020, #F97316); box-shadow: 0 18px 40px -14px rgba(249,115,22,.9); }
#gjs .gjs-drop-ico i { color: #2B1500 !important; }
.gjs-drop h3 { margin: 0; font-size: 1.6rem; font-weight: 800; font-family: var(--gj-font); }
.gjs-drop p { margin: .6rem auto 1.4rem; max-width: 30rem; line-height: 1.7; color: #C5DAD0 !important; }
.gjs-start-btns { display: grid; gap: .7rem; margin-bottom: 1rem; }
@media (min-width: 520px) { .gjs-start-btns { grid-template-columns: 1fr 1fr; } }
#gjs .gjs-big { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; border-radius: 16px; font-weight: 800; font-size: 1.02rem; background: linear-gradient(135deg, #FFB020, #F97316); color: #2B1500 !important; box-shadow: 0 14px 28px -12px rgba(249,115,22,.9); }
#gjs .gjs-big.alt { background: rgba(255,255,255,.1); color: #fff !important; box-shadow: none; border: 1px solid rgba(255,255,255,.25); }
#gjs .gjs-big span, #gjs .gjs-big i { color: inherit !important; }

/* editor */
.gjs-editor { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gjs-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gjs-stage-wrap { position: relative; flex: 1; min-height: 0; background: #0C1D17; }
.gjs-stage-wrap canvas { position: absolute; inset: 0; touch-action: none; }
.gjs-float { position: absolute; right: .7rem; top: .7rem; display: flex; flex-direction: column; gap: .5rem; }
#gjs .gjs-float button { width: 44px; height: 44px; border-radius: 14px; background: rgba(7,19,15,.78); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); display: grid; place-items: center; }
#gjs .gjs-float button:hover { background: rgba(255,176,32,.9); color: #2B1500 !important; }
.gjs-toast { position: absolute; left: 50%; bottom: 1rem; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: .55rem 1rem; border-radius: 999px; background: #F8FAFC; font-weight: 700; font-size: .85rem; transition: .25s; }
#gjs .gjs-toast { color: #062419 !important; }
.gjs-toast.on { opacity: 1; transform: translate(-50%, 0); }

.gjs-strip { display: flex; gap: .6rem; padding: .5rem .8rem; overflow-x: auto; background: #091812; border-top: 1px solid rgba(255,255,255,.07); }
.gjs-th { position: relative; flex: 0 0 auto; width: 60px; height: 76px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; }
.gjs-th.on { border-color: #FFB020; }
.gjs-th canvas { display: block; }
#gjs .gjs-th em { position: absolute; left: 3px; bottom: 3px; min-width: 18px; text-align: center; font-style: normal; font-size: .7rem; font-weight: 800; background: #062419; border-radius: 6px; padding: 0 4px; }
#gjs .gjs-th button { position: absolute; width: 20px; height: 20px; font-size: .6rem; border-radius: 50%; background: rgba(6,36,25,.9); display: grid; place-items: center; }
#gjs .gjs-th button[data-act="del"] { top: 2px; right: 2px; }
#gjs .gjs-th button.l { left: 2px; top: 28px; } #gjs .gjs-th button.r { right: 2px; top: 28px; }
#gjs .gjs-th.add { display: grid; place-items: center; align-content: center; gap: 2px; border: 2px dashed rgba(255,255,255,.3); background: transparent; font-size: .72rem; font-weight: 700; }

.gjs-panel { flex: 0 0 auto; max-height: 46vh; overflow-y: auto; background: #0E221B; border-top: 1px solid rgba(255,255,255,.1); }
.gjs-tabs { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); background: #0E221B; border-bottom: 1px solid rgba(255,255,255,.08); }
#gjs .gjs-tabs button { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .8rem .4rem; font-weight: 800; font-size: .92rem; color: #9DB8AD !important; border-bottom: 3px solid transparent; }
#gjs .gjs-tabs button.on { color: #FFB020 !important; border-bottom-color: #FFB020; }
.gjs-pane { padding: .9rem; display: grid; gap: .85rem; }

.gjs-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.07); }
#gjs .gjs-seg button { padding: .6rem .4rem; border-radius: 11px; font-weight: 800; font-size: .82rem; }
#gjs .gjs-seg button.on { background: linear-gradient(135deg, #FFB020, #F97316); color: #2B1500 !important; }
#gjs .gjs-wide { display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; min-height: 46px; border-radius: 14px; font-weight: 800; background: rgba(255,176,32,.16); border: 1px solid rgba(255,176,32,.5); color: #FFD27A !important; }
#gjs .gjs-wide.alt { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #E8F3EE !important; }
#gjs .gjs-wide:hover { filter: brightness(1.2); }
#gjs .gjs-go { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px; border-radius: 16px; font-weight: 800; font-size: 1.05rem; background: linear-gradient(135deg, #22C55E, #0F8B6D); color: #fff !important; box-shadow: 0 14px 28px -12px rgba(15,139,109,.9); }
#gjs button:disabled { opacity: .55; cursor: wait; }
.gjs-sub h4 { margin: 0 0 .45rem; font-size: .78rem; letter-spacing: .06em; font-weight: 800; color: #9DB8AD !important; }
.gjs-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
#gjs .gjs-chip { padding: .45rem .8rem; border-radius: 999px; font-weight: 700; font-size: .82rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
#gjs .gjs-chip.on { background: #FFB020; color: #2B1500 !important; border-color: #FFB020; }
.gjs-hint { margin: 0; font-size: .82rem; line-height: 1.6; }
.gjs-two { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .5rem; }
.gjs-sub > .gjs-two:first-child, .gjs-pane > .gjs-two { margin-top: 0; }
#gjs select, #gjs input[type="number"] { width: 100%; min-height: 44px; padding: .5rem .7rem; border-radius: 12px; background: #07130F !important; color: #fff !important; border: 1px solid rgba(255,255,255,.2) !important; font-size: .92rem; }

.gjs-pres { display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .3rem; }
#gjs .gjs-pre { flex: 0 0 auto; width: 84px; display: grid; gap: .3rem; justify-items: center; font-size: .72rem; font-weight: 700; text-align: center; }
.gjs-pre canvas { width: 84px; height: 84px; border-radius: 12px; border: 2px solid transparent; background: #fff; }
.gjs-pre.on canvas { border-color: #FFB020; box-shadow: 0 0 0 3px rgba(255,176,32,.35); }
.gjs-pre.on span { color: #FFB020 !important; }
.gjs-row { display: grid; gap: .3rem; }
.gjs-row > span { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; }
#gjs .gjs-row b { color: #FFB020 !important; font-variant-numeric: tabular-nums; }
#gjs input[type="range"] { width: 100%; accent-color: #FFB020; height: 28px; background: transparent !important; border: 0 !important; padding: 0 !important; }
.gjs-checks { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.gjs-checks label { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: 12px; background: rgba(255,255,255,.06); font-size: .85rem; font-weight: 700; }
#gjs .gjs-checks input { width: 18px; height: 18px; accent-color: #FFB020; }
.gjs-status { min-height: 1.3rem; margin: 0; font-size: .86rem; font-weight: 700; color: #86EFAC !important; }

@media (min-width: 900px) {
  .gjs-editor { flex-direction: row; }
  .gjs-panel { width: 380px; max-height: none; border-top: 0; border-left: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 899px) { .gjs-top-btn span { display: none; } }

/* ---------------------------------------------------------- Tools page */
.gjt-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(22px, 4vw, 46px); border-radius: clamp(24px, 3vw, 34px);
  background: radial-gradient(700px 360px at 92% 0%, rgba(56,189,248,.35), transparent 60%), radial-gradient(600px 340px at 0% 100%, rgba(245,158,11,.32), transparent 62%), linear-gradient(135deg, #07213A 0%, #0B3B5E 55%, #0E6B7A 120%);
  box-shadow: var(--gj-shadow-2);
}
.gjt-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
@media (min-width: 900px) { .gjt-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.gjt-hero h2, .gjt-hero p, .gjt-hero span, .gjt-hero li { color: inherit !important; }
.gjt-hero .gj-grad { color: transparent !important; }
.gjt-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; padding: 0; list-style: none; }
.gjt-chips li { padding: .32rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.gjt-art { position: relative; max-width: 420px; margin-inline: auto; width: 100%; filter: drop-shadow(0 28px 34px rgba(0,0,0,.4)); }
.gjt-art svg { display: block; width: 100%; height: auto; }
.gjt-scanline { animation: gjtScan 3.2s ease-in-out infinite; }
@keyframes gjtScan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(150px); } }
@media (prefers-reduced-motion: reduce) { .gjt-scanline { animation: none; } }

.gjt-grid { display: grid; gap: .9rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .gjt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gjt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gjt-card {
  position: relative; display: flex; flex-direction: column; gap: .7rem; text-align: left; overflow: hidden; cursor: pointer; padding: 1.2rem; border-radius: 24px;
  background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: var(--gj-shadow-1); transition: transform .25s var(--gj-ease), box-shadow .25s;
}
.gjt-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--gj-a); opacity: .13; transition: transform .4s var(--gj-ease); }
.gjt-card:hover { transform: translateY(-5px); box-shadow: var(--gj-shadow-2); }
.gjt-card:hover::after { transform: scale(1.7); }
.gjt-card h3 { margin: 0; font-family: var(--gj-font); font-weight: 800; font-size: 1.2rem; color: var(--text-primary) !important; }
.gjt-card p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--text-secondary) !important; }
.gjt-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .2rem; }
.gjt-card li { font-size: .8rem; font-weight: 700; color: var(--text-primary) !important; }
.gjt-card li i { color: var(--gj-a) !important; margin-right: .35rem; }
.gjt-card .gj-action-go { margin-top: auto; }
.gjt-badge { position: absolute; top: .8rem; right: .8rem; z-index: 1; padding: .15rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 800; color: #fff !important; background: linear-gradient(135deg, #EC4899, #8B5CF6); }

#view-tools:has(#tool-workspace:not(.hidden)) .gjt-top,
#view-tools:has(#font-script-view:not(.hidden)) .gjt-top { display: none; }

#view-tools .gjt-all-title { margin: 0; font-family: var(--gj-font); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--text-primary) !important; }

/* legacy tool cards, same visual language */
#tools-catalog section button[onclick*="openUtilityTool"], #tools-catalog section button.font-script-card {
  border-radius: 22px !important; border: 1px solid var(--border-color) !important; border-top: 1px solid var(--border-color) !important;
  box-shadow: var(--gj-shadow-1) !important; padding: 1.1rem !important; background: var(--bg-card) !important; position: relative; overflow: hidden;
}
#tools-catalog section button[onclick*="openUtilityTool"] > i:first-child {
  display: inline-grid !important; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 1.05rem;
  color: #fff !important; background: linear-gradient(135deg, var(--tool-accent), color-mix(in srgb, var(--tool-accent) 55%, #fff)); box-shadow: 0 10px 18px -10px var(--tool-accent);
}
#tools-catalog section button[onclick*="openUtilityTool"] h3 { font-family: var(--gj-font); font-size: 1.08rem; }
#tools-catalog section button[onclick*="openUtilityTool"]:hover, #tools-catalog section button.font-script-card:hover { transform: translateY(-4px) !important; box-shadow: var(--gj-shadow-2) !important; }
#tools-catalog section h2 { font-family: var(--gj-font); font-weight: 800; }
#tool-workspace { border-radius: 26px !important; box-shadow: var(--gj-shadow-1); }

/* ------------------------------------------------ Hindi Text Studio */
.gjh { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; overflow-y: auto; background: radial-gradient(900px 500px at 85% -10%, rgba(245,158,11,.14), transparent 60%), #07130F; font-family: var(--gj-font, system-ui), 'Nirmala UI', system-ui, sans-serif; }
#gjh[hidden] { display: none !important; }
#gjh, #gjh * { box-sizing: border-box; }
#gjh, #gjh div, #gjh span, #gjh p, #gjh label, #gjh h3, #gjh h4, #gjh small, #gjh button, #gjh i, #gjh select, #gjh b { color: inherit !important; }
#gjh { color: #E8F3EE !important; }
#gjh small, #gjh .gjh-hint { color: #9DB8AD !important; }
#gjh button { font-family: inherit; cursor: pointer; border: 0; background: none; }
html.gjs-lock .ai-agent-fab, html.gjs-lock .ai-agent-teaser { display: none !important; }
.gjh-top { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); flex: 0 0 auto; }
.gjh-modes { flex: 0 0 auto; }
.gjh-body { flex: 0 0 auto; }
#gjh .gjh-top { background: #07130F !important; box-shadow: none !important; }
#gjh .gjh-x { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: 0 0 auto; }
.gjh-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.gjh-title span { font-weight: 800; font-size: 1.2rem; font-family: var(--gj-font); }
.gjh-title small { font-size: .74rem; }
.gjh-modes { display: flex; gap: .5rem; overflow-x: auto; padding: .7rem .9rem; border-bottom: 1px solid rgba(255,255,255,.06); scrollbar-width: none; }
.gjh-modes::-webkit-scrollbar { display: none; }
#gjh .gjh-modes button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; font-weight: 800; font-size: .9rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); white-space: nowrap; }
#gjh .gjh-modes button.on { background: linear-gradient(135deg, #FFB020, #F97316); color: #2B1500 !important; border-color: transparent; }
.gjh-body { width: min(1180px, 100%); margin: 0 auto; padding: 1rem .9rem 6rem; display: grid; gap: .9rem; }
.gjh-hint { margin: 0; font-size: .95rem; line-height: 1.65; }
.gjh-detect { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: 14px; background: rgba(255,176,32,.14); border: 1px solid rgba(255,176,32,.45); font-weight: 700; }
.gjh-detect[hidden], .gjh-alts[hidden], .gjh-opts[hidden] { display: none !important; }
#gjh .gjh-detect button { padding: .4rem .8rem; border-radius: 10px; background: #FFB020; color: #2B1500 !important; font-weight: 800; font-size: .85rem; }
.gjh-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.gjh-opts label { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border-radius: 12px; background: rgba(255,255,255,.07); font-size: .85rem; font-weight: 700; }
#gjh .gjh-opts input { width: 18px; height: 18px; accent-color: #FFB020; }
#gjh .gjh-opts select { background: #07130F !important; border: 1px solid rgba(255,255,255,.2) !important; border-radius: 8px; padding: .25rem .4rem; }
.gjh-cols { display: grid; gap: .9rem; }
@media (min-width: 900px) { .gjh-cols { grid-template-columns: 1fr 1fr; } }
.gjh-pane { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.gjh-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.gjh-bar h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.gjh-tools { display: flex; gap: .35rem; flex-wrap: wrap; }
#gjh .gjh-tools button { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: 10px; background: rgba(255,255,255,.08); font-size: .78rem; font-weight: 700; }
#gjh .gjh-tools button:hover { background: rgba(255,255,255,.16); }
.gjh-tools button[hidden] { display: none !important; }
#gjh .gjh-ta, .gjh-out { width: 100%; min-height: 240px; padding: 1rem; border-radius: 18px; font-size: 1.15rem; line-height: 1.75; background: #0C1D17 !important; border: 1px solid rgba(255,255,255,.14) !important; color: #F3FAF6 !important; font-family: 'Noto Sans Devanagari', 'Nirmala UI', Mangal, system-ui, sans-serif; resize: vertical; }
#gjh .gjh-ta:focus { outline: 3px solid rgba(255,176,32,.6); outline-offset: 1px; }
.gjh-out { overflow: auto; white-space: pre-wrap; word-break: break-word; background: #0F261E !important; border-color: rgba(34,197,94,.4) !important; }
#gjh .gjh-ta.kruti, #gjh .gjh-out.kruti { font-family: 'Kruti Dev 010', 'Courier New', monospace; font-size: 1.05rem; }
.gjh-empty { color: #6F8D80 !important; }
.gjh-count { min-height: 1rem; font-size: .75rem; color: #9DB8AD !important; }
#gjh .gjh-w { display: inline; padding: 0 .12em; border-radius: 6px; font-size: inherit; border-bottom: 2px dotted rgba(255,176,32,.7); }
#gjh .gjh-w:hover { background: rgba(255,176,32,.22); }
.gjh-alts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .7rem; border-radius: 14px; background: #12301F; border: 1px solid rgba(255,176,32,.5); }
#gjh .gjh-alts button { padding: .45rem .9rem; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 1.05rem; font-weight: 700; }
#gjh .gjh-alts button.on { background: #FFB020; color: #2B1500 !important; }
#gjh .gjh-alts button.ghost { font-size: .82rem; border: 1px dashed rgba(255,255,255,.4); background: none; }
.gjh-amt { display: grid; gap: .6rem; }
.gjh-amt b { font-size: 2rem; color: #FFB020 !important; font-family: var(--gj-font); }
.gjh-notes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; font-size: .78rem; }
.gjh-notes span { padding: .2rem .6rem; border-radius: 999px; background: rgba(34,197,94,.18); }
.gjh-fancy { display: grid; gap: .5rem; white-space: normal; }
.gjh-fancy h4 { margin: .6rem 0 0; font-size: .85rem; color: #9DB8AD !important; }
.gjh-f { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .6rem; align-items: center; padding: .5rem .7rem; border-radius: 12px; background: rgba(255,255,255,.06); }
.gjh-f span { font-size: 1.15rem; word-break: break-word; }
#gjh .gjh-f button { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,176,32,.2); display: grid; place-items: center; }
#gjh .gjh-copy { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: .6rem; min-height: 54px; padding: 0 1.8rem; border-radius: 999px; font-weight: 800; font-size: 1.05rem; background: linear-gradient(135deg, #22C55E, #0F8B6D); color: #fff !important; box-shadow: 0 18px 36px -12px rgba(15,139,109,.95); }
#gjh .gjh-copy[hidden] { display: none; }
.gjh-toast { position: fixed; left: 50%; bottom: 5.4rem; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 5; padding: .5rem 1rem; border-radius: 999px; background: #F8FAFC; font-weight: 800; font-size: .85rem; transition: .25s; }
#gjh .gjh-toast { color: #062419 !important; }
.gjh-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 899px) { .gjh-f { grid-template-columns: 1fr auto; } .gjh-f small { grid-column: 1 / -1; } .gjh-tools button span { display: none; } }

/* wide featured card on the tools page */
.gjt-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.1rem; flex-wrap: wrap; background: linear-gradient(120deg, color-mix(in srgb, var(--bg-card) 90%, var(--gj-a)), var(--bg-card)); }
.gjt-wide > div { flex: 1 1 260px; display: grid; gap: .35rem; }
.gjt-wide .gjt-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.gjt-wide .gjt-pills span { padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 800; background: color-mix(in srgb, var(--gj-a) 14%, transparent); color: var(--text-primary) !important; }
.gjt-wide .gj-action-go { margin-top: 0; }

/* ---------------------------------------------------- shared tool shell (gjk) */
.gjk { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; overflow-y: auto; background: radial-gradient(900px 500px at 85% -10%, rgba(245,158,11,.14), transparent 60%), #07130F; font-family: var(--gj-font, system-ui), 'Nirmala UI', system-ui, sans-serif; }
#gjk[hidden] { display: none !important; }
#gjk, #gjk * { box-sizing: border-box; }
#gjk, #gjk div, #gjk span, #gjk p, #gjk label, #gjk h4, #gjk small, #gjk button, #gjk i, #gjk li, #gjk th, #gjk td, #gjk b { color: inherit !important; }
#gjk { color: #E8F3EE !important; }
#gjk small, #gjk .gjk-note { color: #9DB8AD !important; }
#gjk button { font-family: inherit; cursor: pointer; border: 0; background: none; }
.gjk-top { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); flex: 0 0 auto; }
#gjk .gjk-top { background: #07130F !important; box-shadow: none !important; }
#gjk .gjk-x { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: 0 0 auto; }
.gjk-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.gjk-title span { font-weight: 800; font-size: 1.2rem; font-family: var(--gj-font); }
.gjk-title small { font-size: .74rem; }
.gjk-body { width: min(1100px, 100%); margin: 0 auto; padding: 1rem .9rem 3rem; display: grid; gap: .9rem; align-content: start; }
.gjk-tabs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.gjk-tabs::-webkit-scrollbar { display: none; }
#gjk .gjk-tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; font-weight: 800; font-size: .9rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); white-space: nowrap; }
#gjk .gjk-tabs button.on { background: linear-gradient(135deg, #FFB020, #F97316); color: #2B1500 !important; border-color: transparent; }
.gjk-card { display: grid; gap: .8rem; align-content: start; padding: 1rem; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); min-width: 0; }
.gjk-split { display: grid; gap: .9rem; }
@media (min-width: 900px) { .gjk-split { grid-template-columns: 1fr 1fr; } }
.gjk-grid, .gjk-grid3, .gjk-grid4 { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gjk-grid { grid-template-columns: 1fr 1fr; } .gjk-grid3 { grid-template-columns: repeat(3, 1fr); } .gjk-grid4 { grid-template-columns: repeat(4, 1fr); } }
.gjk-f { display: grid; gap: .3rem; align-content: start; font-size: .82rem; font-weight: 800; }
.gjk-f > span { color: #B7CFC4 !important; }
#gjk input[type="text"], #gjk input[type="number"], #gjk input[type="date"], #gjk select { width: 100%; min-height: 44px; padding: .5rem .7rem; border-radius: 12px; background: #07130F !important; color: #fff !important; border: 1px solid rgba(255,255,255,.2) !important; font-size: .95rem; font-family: inherit; color-scheme: dark; }
#gjk input:focus, #gjk select:focus { outline: 3px solid rgba(255,176,32,.55); outline-offset: 1px; }
#gjk input[type="range"] { width: 100%; accent-color: #FFB020; height: 28px; background: transparent !important; border: 0 !important; padding: 0 !important; }
.gjk-check { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: 12px; background: rgba(255,255,255,.06); font-size: .88rem; font-weight: 700; }
#gjk .gjk-check input { width: 18px; height: 18px; accent-color: #FFB020; flex: 0 0 auto; }
.gjk-drop { display: grid; justify-items: center; gap: .25rem; padding: 1.3rem 1rem; text-align: center; border-radius: 18px; border: 2px dashed rgba(255,176,32,.55); background: rgba(255,176,32,.06); cursor: pointer; transition: background .2s; }
.gjk-drop:hover, .gjk-drop.over { background: rgba(255,176,32,.16); }
.gjk-drop > i { font-size: 1.6rem; color: #FFB020 !important; }
.gjk-drop b { font-size: 1rem; }
.gjk-note { margin: 0; font-size: .82rem; line-height: 1.6; }
.gjk-note.center { text-align: center; }
#gjk .gjk-note.bad { color: #FCA5A5 !important; }
.gjk-h { margin: .4rem 0 0; font-size: .85rem; font-weight: 800; color: #9DB8AD !important; }
#gjk .gjk-go { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px; border-radius: 16px; font-weight: 800; font-size: 1.05rem; background: linear-gradient(135deg, #22C55E, #0F8B6D); color: #fff !important; box-shadow: 0 14px 28px -12px rgba(15,139,109,.9); }
.gjk-status { min-height: 1.2rem; margin: 0; font-size: .86rem; font-weight: 700; color: #FCD34D !important; }
#gjk .gjk-status.ok { color: #86EFAC !important; }
.gjk-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.gjk-list li { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 12px; background: rgba(255,255,255,.06); }
.gjk-list li > i { color: #FB7185 !important; font-size: 1.3rem; }
.gjk-list li > div { flex: 1; min-width: 0; display: grid; }
.gjk-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
#gjk .gjk-list button { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.gjk-table { width: 100%; border-collapse: collapse; }
.gjk-table th, .gjk-table td { padding: .55rem .4rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .9rem; }
.gjk-table th { width: 40%; font-weight: 700; color: #9DB8AD !important; }
.gjk-prev { position: relative; display: grid; place-items: center; min-height: 260px; padding: 1rem; border-radius: 18px; background: repeating-conic-gradient(#12261E 0 25%, #0E1E18 0 50%) 0 0 / 22px 22px; }
.gjk-prev canvas { max-width: 100%; max-height: 52vh; width: auto; height: auto; background: #fff; box-shadow: 0 18px 36px -14px rgba(0,0,0,.7); }
.gjk-empty { color: #6F8D80 !important; text-align: center; }
.gjk-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
#gjk .gjk-chips button { padding: .5rem .9rem; border-radius: 999px; font-weight: 800; font-size: .84rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
#gjk .gjk-chips button.on { background: #FFB020; color: #2B1500 !important; border-color: #FFB020; }
.gjk-res { padding: .8rem; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); display: grid; gap: .5rem; }
.gjk-res.ok { border-color: rgba(34,197,94,.6); background: rgba(34,197,94,.08); }
.gjk-res.bad { border-color: rgba(251,113,133,.6); background: rgba(251,113,133,.08); }
.gjk-res-h { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.gjk-res-h b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gjk-res.ok .gjk-res-h i { color: #4ADE80 !important; } .gjk-res.bad .gjk-res-h i { color: #FB7185 !important; }
.gjk-res ul, .gjk-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: .25rem; font-size: .88rem; font-weight: 700; }
.gjk-res li.y, .gjk-checks li.y { color: #86EFAC !important; } .gjk-res li.n, .gjk-checks li.n { color: #FCA5A5 !important; }
#gjk .gjk-fix { justify-self: start; display: inline-flex; gap: .5rem; align-items: center; padding: .6rem 1rem; border-radius: 12px; background: linear-gradient(135deg, #FFB020, #F97316); color: #2B1500 !important; font-weight: 800; }
.gjk-out { display: grid; gap: .8rem; }
.gjk-big { font-family: var(--gj-font); font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.4rem); color: #FFB020 !important; }
.gjk-stats { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.gjk-stat { display: grid; gap: .2rem; padding: .8rem; border-radius: 14px; background: rgba(255,255,255,.06); }
.gjk-stat b { font-size: 1.15rem; font-family: var(--gj-font); }
.gjk-verdict { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: 18px; }
.gjk-verdict > i { font-size: 2rem; }
.gjk-verdict div { display: grid; }
.gjk-verdict b { font-size: 1.25rem; font-family: var(--gj-font); }
.gjk-verdict.ok { background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.6); } .gjk-verdict.ok > i { color: #4ADE80 !important; }
.gjk-verdict.bad { background: rgba(251,113,133,.14); border: 1px solid rgba(251,113,133,.6); } .gjk-verdict.bad > i { color: #FB7185 !important; }
.gjk-toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; z-index: 5; padding: .5rem 1rem; border-radius: 999px; background: #F8FAFC; font-weight: 800; font-size: .85rem; transition: .25s; }
#gjk .gjk-toast { color: #062419 !important; }
.gjk-toast.on { opacity: 1; transform: translate(-50%, 0); }
.gjt-sec { margin-top: 1.6rem; }
.gjt-sec:first-child { margin-top: 0; }
.gjt-sec-t { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-family: var(--gj-font); font-weight: 800; font-size: 1.25rem; color: var(--text-primary) !important; }
.gjt-sec-t i { color: #C2610C !important; }
