:root {
  color-scheme: light;
  --ink: #20272b;
  --muted: #788187;
  --paper: #fff;
  --canvas: #f5f7f8;
  --accent: #287f70;
  --accent-dark: #1d6559;
  --warm: #d28c5d;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.site-shell { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.site-header { height: 84px; display: flex; align-items: center; border-bottom: 1px solid #e8ecee; gap: 54px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.06em; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; transform: rotate(-8deg); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.brand:hover .brand-mark { transform: rotate(0) scale(1.07); }
.brand-mark span { display: block; border-radius: 3px; background: var(--accent); }
.brand-mark span:nth-child(2) { opacity: .72; }.brand-mark span:nth-child(3) { opacity: .5; }.brand-mark span:nth-child(4) { background: var(--warm); }
.header-nav { display: flex; align-items: center; height: 100%; gap: 28px; }
.nav-link { height: 100%; display: inline-flex; align-items: center; position: relative; color: #778187; font-size: 13px; font-weight: 600; }
.nav-link.active { color: var(--ink); }.nav-link::after { position: absolute; content: ''; height: 2px; background: var(--accent); left: 0; right: 0; bottom: -1px; transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }.nav-link.active::after { transform: scaleX(1); }
.header-note { margin-left: auto; color: #7a858a; font-size: 11px; display: inline-flex; align-items: center; gap: 8px; }.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ca58e; box-shadow: 0 0 0 3px #e3f1eb; }

.intro-section { text-align: center; padding: 75px 0 42px; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: .15em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 17px; font-size: 12px; }.eyebrow-line { width: 20px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 15px; font-size: clamp(38px, 5vw, 54px); line-height: 1.22; letter-spacing: -.07em; font-weight: 600; }.intro-section h1 span { color: var(--accent); }
.intro-copy { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

.workspace { max-width: 780px; margin: 0 auto; }
.tool-card { padding: 34px 38px 28px; background: var(--paper); border: 1px solid #e9edee; border-radius: 13px; box-shadow: 0 12px 36px rgba(29, 48, 54, .045); }
.tool-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }.section-kicker { margin-bottom: 7px; }.tool-card-head h2 { margin: 0; font-size: 21px; letter-spacing: -.05em; }
.dropzone-wrap { margin-bottom: 15px; }.dropzone { width: 100%; min-height: 150px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #cbd5d5; border-radius: 8px; background: #fbfcfc; cursor: pointer; transition: background .2s, border-color .2s, transform .3s cubic-bezier(.2, .9, .3, 1.3); }.dropzone:hover, .dropzone.dragging { transform: translateY(-2px); border-color: var(--accent); background: #f2f8f6; }.upload-icon { width: 32px; height: 32px; margin-bottom: 10px; display: grid; place-items: center; border: 1px solid #dce6e3; border-radius: 8px; color: var(--accent); background: white; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }.dropzone:hover .upload-icon { transform: translateY(-2px) rotate(-5deg); }.upload-icon svg { width: 18px; height: 18px; }.dropzone-title { margin-bottom: 5px; font-size: 12px; font-weight: 600; }.dropzone-subtitle { color: #919a9e; font-size: 10px; }.browse-button { margin-top: 11px; padding: 6px 10px; border: 1px solid #e1e7e7; border-radius: 5px; color: #52605f; background: white; font-size: 10px; font-weight: 600; }.browse-button span { margin-left: 6px; color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.visually-hidden:focus-visible + .dropzone { outline: 2px solid var(--accent); outline-offset: 3px; }
.image-details { padding-top: 3px; }.file-summary { display: flex; align-items: center; gap: 12px; }.file-thumb { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #f1f3f3; }.file-thumb img { width: 100%; height: 100%; object-fit: contain; }.thumb-placeholder { color: #9aa4a7; font-size: 8px; font-weight: 700; }.file-meta { min-width: 0; display: grid; gap: 4px; }.file-meta strong { max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.file-meta span { color: #879195; font-size: 10px; }.text-button { margin-left: auto; border: 0; background: none; color: #899397; font-size: 10px; cursor: pointer; }.text-button span { font-size: 16px; vertical-align: -1px; }.panel-divider { height: 1px; margin: 18px 0; background: #edf0f0; }
.settings-panel { padding: 0 0 18px; }.field-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }.field-heading h3 { margin: 0 0 4px; font-size: 12px; }.field-heading p { margin: 0; color: #899397; font-size: 10px; }.field-tag { padding: 4px 6px; border-radius: 4px; background: #f1f4f4; color: #8a9498; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.dimension-row { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 10px; align-items: end; }.dimension-field { display: grid; gap: 6px; color: #6f7a7e; font-size: 10px; }.input-unit { display: flex; align-items: center; height: 39px; padding: 0 10px; border: 1px solid #e2e7e8; border-radius: 5px; background: #fff; }.input-unit:focus-within { border-color: #76aa9e; box-shadow: 0 0 0 3px rgba(40, 127, 112, .08); }.input-unit input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 12px; font-weight: 600; }.input-unit input::placeholder { color: #bdc5c8; font-size: 10px; font-weight: 400; }.input-unit input::-webkit-inner-spin-button { appearance: none; }.input-unit em { color: #9ba4a7; font-size: 9px; font-style: normal; }.ratio-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dbe6e2; border-radius: 5px; color: var(--accent); background: #eff7f4; cursor: pointer; }.ratio-button.unlocked { border-color: #e5e8e9; color: #9aa2a5; background: #f5f6f6; }.ratio-button svg { width: 17px; height: 17px; }.ratio-hint { margin: 9px 0 0; color: #909a9d; font-size: 9px; line-height: 1.6; }
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }.format-option { min-height: 61px; display: grid; align-content: center; justify-items: start; gap: 5px; padding: 9px 11px; border: 1px solid #e5e9ea; border-radius: 5px; background: white; text-align: left; cursor: pointer; transition: transform .24s cubic-bezier(.2, .9, .3, 1.3), border-color .2s, background .2s; }.format-option:hover { transform: translateY(-2px); }.format-option strong { font-size: 11px; }.format-option span { color: #919b9e; font-size: 9px; }.format-option.active { border-color: #77a99e; background: #f2f8f6; }.format-option.active strong { color: var(--accent); }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid #edf0f0; }.privacy-note { margin: 0; color: #8b9699; font-size: 9px; }.privacy-note span { margin-right: 4px; color: #5b9f8d; }.primary-button { min-width: 163px; height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: space-between; gap: 15px; border: 0; border-radius: 5px; color: #fff; background: var(--accent); font-size: 11px; font-weight: 600; cursor: pointer; transition: background .2s, transform .32s cubic-bezier(.2, .9, .3, 1.35), box-shadow .2s; }.primary-button:not(:disabled):hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 5px 12px rgba(29, 101, 89, .16); background: var(--accent-dark); }.primary-button:not(:disabled):active, .secondary-button:active { transform: translateY(1px) scale(.975); }.primary-button:disabled { background: #aabbb7; cursor: not-allowed; }.primary-button.is-busy { opacity: .8; }.button-arrow { font-size: 16px; font-weight: 400; transition: transform .25s cubic-bezier(.2, .9, .3, 1.3); }.primary-button:not(:disabled):hover .button-arrow { transform: translateX(3px); }.error-message, .success-message { margin: 12px 0 0; padding: 10px 12px; border-radius: 5px; font-size: 10px; line-height: 1.6; }.error-message { color: #a34343; background: #fff2f1; }.success-message { color: #246d5f; background: #eff8f4; }
.card-footnote { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 14px 5px 0; color: #8b9699; font-size: 9px; }.card-footnote strong { color: #5e6a6d; font-weight: 600; }.shield-icon { color: var(--accent); font-size: 16px; }

.how-section { max-width: 780px; margin: 82px auto 0; }.how-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }.how-heading h2, .faq-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.055em; }.how-heading > p { margin: 0 0 2px; color: var(--muted); font-size: 10px; }.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.how-item { min-height: 107px; display: flex; gap: 12px; padding: 16px 15px; border: 1px solid #e6ebec; border-radius: 8px; background: rgba(255,255,255,.55); }.how-number { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; }.how-item h3 { margin: 1px 0 7px; font-size: 11px; }.how-item p { margin: 0; color: #879296; font-size: 9px; line-height: 1.65; }
.format-guide { max-width: 780px; margin: 62px auto 0; }.format-guide .faq-heading { margin-bottom: 17px; }.format-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.format-guide-grid article { min-height: 101px; padding: 16px; border: 1px solid #e6ebec; border-radius: 8px; background: rgba(255,255,255,.55); }.format-guide-grid article span { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .04em; }.format-guide-grid article p { margin: 9px 0 0; color: #778286; font-size: 10px; line-height: 1.75; }
.faq-section { max-width: 780px; margin: 76px auto 0; }.faq-heading { margin-bottom: 17px; }.faq-list { border-top: 1px solid #e1e7e8; }.faq-list details { border-bottom: 1px solid #e1e7e8; }.faq-list summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; font-size: 11px; font-weight: 600; cursor: pointer; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary span { color: var(--accent); font-size: 18px; font-weight: 400; transition: transform .18s; }.faq-list details[open] summary span { transform: rotate(45deg); }.faq-list details p { max-width: 680px; margin: 0; padding: 0 35px 17px 0; color: #778286; font-size: 10px; line-height: 1.8; }
.site-footer { min-height: 100px; margin-top: 77px; display: flex; align-items: center; gap: 18px; border-top: 1px solid #e3e8e9; color: #899397; }.footer-brand { gap: 7px; color: var(--ink); font-size: 14px; }.brand-mark.small { width: 19px; height: 19px; gap: 2px; }.brand-mark.small span { border-radius: 2px; }.site-footer > p { margin: 0; font-size: 9px; }.site-footer nav { display: flex; gap: 16px; margin-left: auto; }.site-footer nav a, .copyright { font-size: 9px; }.site-footer nav a:hover { color: var(--accent); }.copyright { color: #a4adaf; }

/* Shared layout for the policy pages. */
.policy-main { max-width: 820px; min-height: 65vh; margin: 0 auto; padding: 70px 0 30px; }.policy-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--accent); font-size: 11px; font-weight: 600; }.policy-title { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.07em; }.policy-updated { margin: 0 0 35px; color: #909a9d; font-size: 10px; }.policy-intro { margin-bottom: 30px; color: #647074; font-size: 13px; line-height: 1.9; }.policy-content { padding: 29px 32px; border: 1px solid #e6ebec; border-radius: 9px; background: #fff; }.policy-content section + section { margin-top: 27px; padding-top: 25px; border-top: 1px solid #edf0f0; }.policy-content h2 { margin: 0 0 10px; font-size: 14px; letter-spacing: -.03em; }.policy-content p, .policy-content li { color: #626e72; font-size: 11px; line-height: 1.9; }.policy-content p:last-child { margin-bottom: 0; }.policy-content ul { margin: 8px 0 0; padding-left: 19px; }.policy-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }.policy-notice { margin-top: 19px; padding: 13px 15px; border-left: 2px solid var(--warm); color: #6e777a; background: #fbf7f3; font-size: 10px; line-height: 1.8; }

@media (max-width: 760px) {
  .site-shell { padding: 0 25px; }.site-header { height: 72px; gap: 30px; }.header-nav { gap: 18px; }.header-note { font-size: 0; gap: 0; }.header-note .status-dot { width: 8px; height: 8px; }.intro-section { padding-top: 63px; }.workspace, .how-section, .format-guide, .faq-section { max-width: 620px; }
  .tool-card { padding: 28px 25px 23px; }.how-section { margin-top: 66px; }.format-guide, .faq-section { margin-top: 65px; }.site-footer { flex-wrap: wrap; row-gap: 9px; padding: 18px 0; }.site-footer nav { margin-left: auto; }.site-footer > p { order: 3; width: 100%; }.copyright { margin-left: 0; }
}
@media (max-width: 520px) {
  body { font-size: 13px; }.site-shell { padding: 0 17px; }.site-header { height: 65px; gap: 22px; }.brand { font-size: 18px; }.brand-mark { width: 24px; height: 24px; }.header-nav { gap: 14px; }.nav-link { font-size: 11px; }.future-link span { display: none; }.intro-section { padding: 56px 0 32px; }.intro-section h1 { font-size: 39px; }.intro-copy { font-size: 12px; }.desktop-break { display: none; }.tool-card { padding: 23px 17px 19px; }.tool-card-head h2 { font-size: 18px; }.step-indicator { font-size: 9px; }.dropzone { min-height: 142px; padding: 14px 8px; }.dropzone-title { font-size: 10px; }.dropzone-subtitle { font-size: 9px; }.action-row { align-items: stretch; flex-direction: column; }.primary-button { width: 100%; }.privacy-note { order: 2; text-align: center; }.card-footnote { font-size: 8px; }.how-section { margin-top: 59px; }.how-heading { align-items: start; flex-direction: column; gap: 9px; }.how-heading h2, .faq-heading h2 { font-size: 19px; }.how-grid { grid-template-columns: 1fr; gap: 8px; }.how-item { min-height: 70px; }.faq-section, .format-guide { margin-top: 57px; }.format-guide-grid { grid-template-columns: 1fr; gap: 8px; }.format-guide-grid article { min-height: 0; padding: 13px; }.format-guide-grid article p { margin-top: 6px; }.format-grid { grid-template-columns: repeat(2, 1fr); }.site-footer { margin-top: 57px; gap: 12px; }.site-footer nav { gap: 11px; }.site-footer nav a, .copyright { font-size: 8px; }
  .policy-main { padding: 48px 0 20px; }.policy-title { font-size: 32px; }.policy-content { padding: 23px 18px; }.policy-intro { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Combined image settings and the beta JSON editor. */
.transparency-control { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 12px; border: 1px solid #e3eae8; border-radius: 6px; background: #fbfdfc; cursor: pointer; }
.transparency-control input { width: 15px; height: 15px; accent-color: var(--accent); }
.transparency-control span { display: grid; gap: 3px; }.transparency-control strong { font-size: 10px; }.transparency-control small { color: #899397; font-size: 9px; }

/* Mobile layout refinements */
@media (max-width: 760px) {
  .site-shell { padding-right: 22px; padding-left: 22px; }
  .site-header { gap: 20px; }
  .header-nav { gap: 16px; }
  .tool-card, .color-card, .utility-card, .json-card { min-width: 0; }
  .policy-main { width: 100%; }
}

@media (max-width: 520px) {
  .site-shell { padding-right: 16px; padding-left: 16px; }
  .site-header { min-height: 64px; height: auto; gap: 12px; }
  .brand { flex: 0 0 auto; }
  .header-nav { gap: 10px; }
  .nav-link { min-height: 54px; font-size: 10px; white-space: nowrap; }
  .header-note { display: none; }
  .intro-section { padding-top: 43px; }
  .intro-section h1 { font-size: clamp(32px, 9vw, 39px); }
  .intro-copy { max-width: 34em; margin-right: auto; margin-left: auto; line-height: 1.8; }
  .general-tool-picker, .developer-tool-picker { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .general-tool-picker select, .developer-tool-picker select { width: 100%; min-width: 0; }
  .tool-card { padding: 18px 14px 16px; border-radius: 10px; }
  .tool-card-head { align-items: flex-start; gap: 8px; }
  .tool-card-head h2 { font-size: 17px; }
  .dimension-row { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: 7px; }
  .input-unit { padding: 0 7px; }
  .format-grid { gap: 6px; }
  .format-option { min-height: 57px; padding: 8px; }
  .action-row { gap: 10px; }
  .action-row .primary-button { min-height: 44px; }
  .utility-heading { overflow-wrap: anywhere; }
  .utility-heading h2, .json-heading h2 { font-size: 19px; line-height: 1.4; }
  .utility-card { padding: 14px; }
  .utility-actions { gap: 7px; }
  .utility-actions > button { flex: 1 1 auto; }
  .color-card { padding: 12px; }
  .color-values-column { grid-template-columns: minmax(0, 1fr); }
  .color-format-group:first-child { grid-column: auto; }
  .color-component-grid { gap: 7px; }
  .color-component-grid input { height: 36px; font-size: 11px; }
  .json-toolbar { gap: 8px; }
  .json-file-button { flex: 0 0 auto; }
  .json-file-name { flex: 1 1 100px; }
  .json-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .json-actions .primary-button { grid-column: 1 / -1; width: 100%; }
  .json-pane-heading { flex-wrap: wrap; padding: 8px; }
  .json-pane-heading span { flex: 1 1 100%; order: 3; }
  .workspace-home { margin-left: auto; }
  .json-viewport { min-height: 340px; height: 60vh; }
  .json-node-block { grid-template-columns: minmax(100px, 34vw) max-content; }
  .json-key-block { width: auto; min-width: 100px; }
  .json-value-block { min-width: 260px; max-width: 70vw; overflow-wrap: anywhere; }
  .site-footer { align-items: flex-start; }
  .site-footer nav { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 360px) {
  .site-shell { padding-right: 12px; padding-left: 12px; }
  .site-header { gap: 8px; }
  .brand { gap: 6px; font-size: 16px; }
  .brand-mark { width: 21px; height: 21px; }
  .header-nav { gap: 7px; }
  .nav-link { font-size: 9px; }
  .tool-card { padding-right: 11px; padding-left: 11px; }
  .dimension-field { font-size: 9px; }
  .input-unit input { font-size: 11px; }
  .format-option strong { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
.json-section { max-width: 960px; margin: 0 auto; scroll-margin-top: 24px; }
.json-heading { margin-bottom: 18px; }.json-heading h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.05em; }.json-heading p:last-child { margin: 0; color: #778286; font-size: 11px; line-height: 1.7; }
.json-card { padding: 20px; border: 1px solid #e6ebec; border-radius: 9px; background: #fff; box-shadow: 0 12px 36px rgba(29,48,54,.035); }
.json-toolbar { display: flex; align-items: center; gap: 12px; }.json-file-button, .secondary-button { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dfe6e6; border-radius: 5px; background: #fff; color: #52605f; font-size: 10px; font-weight: 600; cursor: pointer; }.json-file-button:hover, .secondary-button:not(:disabled):hover { border-color: #83afa4; color: var(--accent); }.json-file-name { min-width: 0; overflow: hidden; color: #879195; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.json-actions { display: flex; gap: 8px; margin-left: auto; }.json-actions .primary-button { min-width: auto; height: 36px; font-size: 10px; }.secondary-button:disabled { opacity: .5; cursor: not-allowed; }
.json-status { margin: 14px 0 0; color: #748084; font-size: 10px; line-height: 1.6; }.json-status.is-error { color: #a34343; }
.json-workspace { display: grid; gap: 13px; margin-top: 16px; }.json-pane { min-width: 0; overflow: hidden; border: 1px solid #e7ebec; border-radius: 6px; }.json-pane-heading { min-height: 39px; margin: 0; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #e7ebec; background: #fafbfb; }.json-pane-heading h3 { margin: 0; font-size: 10px; }.json-pane-heading span { color: #929b9e; font-size: 9px; }
.json-tree { padding: 10px; color: #445154; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }.json-tree summary { min-height: 25px; display: flex; align-items: center; gap: 9px; list-style: none; cursor: pointer; }.json-tree summary::-webkit-details-marker { display: none; }.json-tree summary::before { width: 10px; color: #7f918c; content: '›'; }.json-tree details[open] > summary::before { content: '⌄'; }.tree-limit { color: #929b9e; font-family: var(--font); font-size: 9px; }
.json-pane:focus-within { border-color: #9abdb4; box-shadow: 0 0 0 2px rgba(40,127,112,.06); }
@media (max-width: 760px) { .json-section { max-width: 620px; margin-top: 65px; } }
@media (max-width: 520px) { .json-card { padding: 13px; }.json-toolbar { align-items: flex-start; flex-wrap: wrap; }.json-file-name { flex: 1 1 120px; padding-top: 11px; }.json-actions { width: 100%; margin: 0; }.json-actions > * { flex: 1; }.json-actions .primary-button { width: auto; }.json-tree { min-height: 300px; max-height: 300px; }.json-heading h2 { font-size: 18px; } }
.nav-link { padding: 0; border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.general-tool-picker, .developer-tool-picker { width: 100%; max-width: 960px; margin: 0 auto 24px; display: grid; gap: 7px; }
.general-tool-picker label, .developer-tool-picker label { color: #687572; font-size: 10px; font-weight: 600; }
.general-tool-picker select, .developer-tool-picker select { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #dfe6e6; border-radius: 5px; color: #34423f; background: #fff; font: 11px var(--font); }
.general-tool-picker select:focus-visible, .developer-tool-picker select:focus-visible { outline: 2px solid rgba(40,127,112,.35); outline-offset: 2px; }
.json-actions #json-new { white-space: nowrap; }
.json-dropzone { width: 100%; min-height: 104px; margin-top: 15px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #cbd5d5; border-radius: 7px; background: #fbfcfc; color: #556260; cursor: pointer; transition: border-color .18s, background .18s; }
.json-dropzone:hover, .json-dropzone.dragging { border-color: var(--accent); background: #f2f8f6; }.json-dropzone strong { font-size: 10px; }.json-dropzone > span:last-child { color: #909a9d; font-size: 9px; }.json-drop-icon { color: var(--accent); font: 700 17px ui-monospace, monospace; }
.json-workspace { align-items: stretch; }.json-tree { padding: 12px; }.tree-limit { padding: 7px; }
.dev-how-section, .dev-faq-section { max-width: 960px; margin: 65px auto 0; }.dev-faq-section { margin-top: 68px; }
@media (max-width: 760px) { .dev-how-section, .dev-faq-section { max-width: 620px; } }
@media (max-width: 520px) { .json-dropzone { min-height: 94px; }.dev-how-section, .dev-faq-section { margin-top: 56px; } }
.json-workspace { grid-template-columns: minmax(0, 1fr); }.block-editor-pane { width: 100%; }.block-canvas { max-height: 720px; padding: 15px; background-color: #f8faf9; background-image: radial-gradient(#dce6e2 .8px, transparent .8px); background-size: 16px 16px; }
.json-block-root { max-width: 780px; margin: 0 auto; }.json-node-block { display: grid; grid-template-columns: minmax(140px, .38fr) minmax(0, 1fr); align-items: start; gap: 9px; margin: 0 0 9px; }
.json-key-block, .json-value-block { min-width: 0; padding: 9px; border: 1px solid #dce6e3; border-radius: 7px; background: #fff; box-shadow: 0 2px 5px rgba(29,48,54,.035); }.json-key-block { display: grid; gap: 6px; border-left: 3px solid #82aaa0; }.block-field-label { color: #82908d; font-size: 8px; font-weight: 700; letter-spacing: .1em; }.block-key-input, .block-scalar-input, .block-type-select { min-width: 0; width: 100%; height: 31px; padding: 0 8px; border: 1px solid #e3e9e7; border-radius: 4px; outline: none; color: #34423f; background: #fff; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }.block-key-input:focus, .block-scalar-input:focus, .block-type-select:focus { border-color: #86afa4; box-shadow: 0 0 0 2px rgba(40,127,112,.07); }.block-key-index { padding: 7px 8px; color: #5b7971; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
.block-root-key { padding: 7px 8px; color: #5b7971; font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.json-value-block { display: grid; gap: 8px; border-left: 3px solid #d29b72; }.json-value-header { display: flex; align-items: center; gap: 8px; }.json-value-header .block-field-label { margin-right: auto; }.block-type-select { width: auto; min-width: 88px; height: 28px; font-family: var(--font); }.block-remove-button { padding: 5px 7px; border: 0; border-radius: 4px; color: #a66d62; background: #fbf2ef; font-size: 8px; cursor: pointer; }.block-null-value { padding: 7px 8px; border: 1px dashed #e1e6e5; border-radius: 4px; color: #8b63a1; font: 10px ui-monospace, monospace; }
.block-structure { border: 1px solid #e6ecea; border-radius: 5px; background: #fafcfb; }.block-structure > summary { min-height: 30px; padding: 7px 9px; color: #64736f; font-size: 9px; font-weight: 600; cursor: pointer; }.block-children { padding: 9px; border-top: 1px solid #e7edeb; }.block-children > .json-node-block { margin-bottom: 9px; }.block-add-button { min-height: 30px; padding: 0 10px; border: 1px dashed #9bb9b0; border-radius: 5px; color: var(--accent); background: #f4f9f7; font-size: 9px; font-weight: 600; cursor: pointer; }.block-add-button:hover { background: #eaf4f1; }
@media (max-width: 600px) { .block-canvas { padding: 10px; }.json-node-block { grid-template-columns: 1fr; gap: 5px; margin-bottom: 8px; }.json-key-block, .json-value-block { padding: 8px; }.block-children { padding: 7px; } }
.block-editor-pane { overflow: visible; }.block-editor-pane > .json-pane-heading { border: 1px solid #e7ebec; border-radius: 6px 6px 0 0; }.workspace-home { margin-left: auto; padding: 5px 8px; border: 1px solid #dfe6e6; border-radius: 4px; background: #fff; color: #65726f; font-size: 9px; cursor: pointer; }.workspace-home:hover { border-color: #83afa4; color: var(--accent); }
.json-viewport { height: min(70vh, 760px); min-height: 430px; overflow: auto; overscroll-behavior: contain; border: 1px solid #e7ebec; border-top: 0; border-radius: 0 0 6px 6px; background: #f8faf9; cursor: grab; scrollbar-color: #c5d3cf #edf2f0; scrollbar-width: thin; touch-action: pan-x pan-y; }.json-viewport.is-panning { cursor: grabbing; user-select: none; }.json-viewport.is-panning * { user-select: none; }
.json-tree.block-canvas { width: max-content; min-width: 100%; min-height: 100%; max-height: none; overflow: visible; padding: 24px; background-color: #f8faf9; background-image: radial-gradient(#dce6e2 .8px, transparent .8px); background-size: 16px 16px; }.json-block-root { width: max-content; max-width: none; min-height: 100%; margin: 0; }.json-node-block { width: max-content; grid-template-columns: 145px max-content; gap: 9px; margin: 0 0 10px; }.json-key-block { width: 145px; }.json-value-block { width: max-content; min-width: 380px; }.block-children { width: max-content; min-width: 100%; }.block-children > .json-node-block { margin-bottom: 9px; }
@media (max-width: 600px) { .json-viewport { height: 68vh; min-height: 360px; }.json-tree.block-canvas { padding: 14px; }.json-node-block { grid-template-columns: 125px max-content; gap: 7px; }.json-key-block { width: 125px; }.json-value-block { min-width: 320px; } }
.color-tool-section { max-width: 960px; margin: 78px auto 0; }.color-card { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); gap: 24px; padding: 24px; border: 1px solid #e6ebec; border-radius: 9px; background: #fff; box-shadow: 0 12px 36px rgba(29,48,54,.035); }.color-picker-column { display: grid; align-content: start; gap: 12px; }.color-picker-top { display: flex; align-items: center; justify-content: space-between; }.native-color-label, .color-range-label { color: #647074; font-size: 10px; font-weight: 600; }.native-color-label { display: flex; align-items: center; gap: 8px; }.color-picker-top input[type=color] { width: 42px; height: 32px; padding: 3px; border: 1px solid #e0e7e6; border-radius: 5px; background: #fff; cursor: pointer; }.color-field { width: 100%; aspect-ratio: 5 / 3; display: block; border-radius: 6px; cursor: crosshair; touch-action: none; }.color-field:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }.color-range-label { display: flex; justify-content: space-between; margin: 2px 0 -7px; }.color-range-label span { color: #899397; font-weight: 400; }.color-range { width: 100%; height: 14px; margin: 0; appearance: none; border-radius: 99px; cursor: pointer; }.color-range::-webkit-slider-thumb { width: 17px; height: 17px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px #0005; }.color-range::-moz-range-thumb { width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 1px 5px #0005; }.hue-range { background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }.alpha-range { background-color: #fff; background-image: linear-gradient(90deg, transparent, #287f70), conic-gradient(#d9dddd 25%, #fff 0 50%, #d9dddd 0 75%, #fff 0); background-size: 100% 100%, 12px 12px; }
.color-preview-row { display: flex; align-items: center; gap: 11px; margin-top: 4px; padding: 10px; border: 1px solid #e7ebec; border-radius: 6px; }.color-preview { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid #dfe5e4; border-radius: 5px; background-image: linear-gradient(var(--picked-color), var(--picked-color)), conic-gradient(#e4e7e6 25%, #fff 0 50%, #e4e7e6 0 75%, #fff 0); background-size: 100% 100%, 12px 12px; }.color-preview-row > div { min-width: 0; display: grid; gap: 3px; }.color-preview-row strong { font: 600 12px ui-monospace, SFMono-Regular, Consolas, monospace; }.color-preview-row small { color: #899397; font-size: 9px; }.color-preview-row #contrast-output { color: #687572; }
.color-values-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 10px; }.color-format-group { min-width: 0; padding: 11px; border: 1px solid #e7ebec; border-radius: 6px; background: #fff; }.color-format-group:first-child { grid-column: 1 / -1; }.color-format-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }.color-format-heading h3 { margin: 0; font-size: 10px; letter-spacing: .04em; }.copy-color-button { padding: 4px 7px; border: 1px solid #e2e8e7; border-radius: 4px; color: #65726f; background: white; font-size: 8px; cursor: pointer; }.copy-color-button:hover { color: var(--accent); border-color: #83afa4; }.color-input-line, .color-component-grid label { display: grid; gap: 5px; color: #8a9497; font-size: 8px; }.color-input-line { grid-template-columns: 34px minmax(0, 1fr); align-items: center; }.color-input-line input, .color-component-grid input { width: 100%; min-width: 0; height: 31px; padding: 0 7px; border: 1px solid #e2e8e7; border-radius: 4px; outline: none; color: #354247; background: #fff; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }.color-input-line input:focus, .color-component-grid input:focus { border-color: #86afa4; box-shadow: 0 0 0 2px rgba(40,127,112,.07); }.color-component-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }.color-format-group:last-of-type .color-component-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.color-css-output { margin: 8px 0 0; overflow: hidden; color: #7f898c; font: 8px ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }.color-status { grid-column: 1 / -1; margin: 1px 0 0; color: #73807d; font-size: 9px; line-height: 1.5; }.color-status.is-error { color: #a34343; }
@media (max-width: 760px) { .color-tool-section { max-width: 620px; margin-top: 65px; }.color-card { grid-template-columns: 1fr; gap: 18px; padding: 18px; } }
@media (max-width: 520px) { .color-card { padding: 13px; }.color-values-column { gap: 7px; }.color-format-group { padding: 9px; }.color-component-grid { gap: 4px; }.color-component-grid input { padding: 0 4px; font-size: 9px; }.color-tool-section { margin-top: 54px; } }
.utility-tool-section { width: 100%; max-width: 960px; margin: 0 auto 58px; }
.utility-heading { margin-bottom: 20px; }.utility-heading .section-kicker { margin-bottom: 7px; }.utility-heading h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.055em; }.utility-heading > p:last-child { margin: 0; color: #778286; font-size: 11px; line-height: 1.7; }
.utility-card { padding: 22px; border: 1px solid #e6ebec; border-radius: 9px; background: #fff; box-shadow: 0 12px 36px rgba(29,48,54,.035); }
.utility-label { min-width: 0; display: grid; gap: 7px; margin-bottom: 12px; color: #687572; font-size: 10px; font-weight: 600; }
.utility-textarea { width: 100%; min-height: 150px; display: block; resize: vertical; padding: 12px; border: 1px solid #e2e8e7; border-radius: 5px; outline: none; color: #354247; background: #fff; font: 11px/1.65 var(--font); }
.utility-textarea:focus, .utility-input:focus { border-color: #86afa4; box-shadow: 0 0 0 2px rgba(40,127,112,.07); }
.text-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 13px 0; border-bottom: 1px solid #edf0f0; color: #7f898c; font-size: 9px; }.text-stats strong { margin-left: 4px; color: #34423f; font: 600 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.utility-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }.utility-actions .primary-button { width: auto; min-height: 36px; height: 36px; font-size: 10px; }.utility-actions .secondary-button { min-height: 36px; }
.utility-status { margin: 14px 0 0; color: #748084; font-size: 10px; line-height: 1.6; }.utility-status.is-error { color: #a34343; }
.utility-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; }.utility-input { width: 100%; min-width: 0; height: 39px; padding: 0 10px; border: 1px solid #e2e8e7; border-radius: 5px; outline: none; color: #354247; background: #fff; font: 11px var(--font); }.utility-label small { color: #899397; font-size: 9px; font-weight: 400; }
.code-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }.regex-pattern-row { grid-template-columns: minmax(0, 1fr) 100px; margin-bottom: 14px; }.regex-pattern-row .utility-label { margin-bottom: 0; }.regex-pattern-row + .utility-label { margin-top: 0; }
.utility-result-heading { display: flex; justify-content: space-between; margin: 15px 0 7px; color: #465450; font-size: 10px; }.utility-result-heading span { color: #7b8985; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }.utility-output { max-height: 320px; min-height: 80px; overflow: auto; margin: 0; padding: 12px; border: 1px solid #e7ebec; border-radius: 5px; color: #475553; background: #f8faf9; font: 10px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.timestamp-date-row { margin-top: 18px; }.timestamp-date-row .utility-label { margin: 0; }.timestamp-date-row .secondary-button { min-height: 39px; }.utility-result-box { display: grid; gap: 6px; margin-top: 16px; padding: 14px; border: 1px solid #e7ebec; border-radius: 5px; background: #f8faf9; }.utility-result-box span { color: #879195; font-size: 9px; }.utility-result-box strong, .utility-result-box code { color: #34423f; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }.utility-result-box span:nth-of-type(2) { margin-top: 7px; }
.uuid-actions { align-self: end; margin: 0 0 12px; }.uuid-actions .secondary-button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 520px) { .utility-heading h2 { font-size: 20px; }.utility-card { padding: 15px; }.utility-form-grid { grid-template-columns: 1fr; gap: 4px; }.regex-pattern-row { grid-template-columns: minmax(0, 1fr) 78px; }.timestamp-date-row .secondary-button { width: 100%; }.uuid-actions { margin: 0 0 12px; }.text-stats { gap: 7px 13px; } }
.tool-page { width: 100%; }
.general-tool-picker { margin-bottom: 24px; }
#image-tool-panel, #color-tool-panel { width: 100%; max-width: 960px; margin: 0 auto; }
#image-tool-panel .workspace, #image-tool-panel .how-section, #image-tool-panel .format-guide, #image-tool-panel .faq-section { width: 100%; max-width: none; }
#image-tool-panel .how-section { margin-top: 62px; }
#color-tool-panel .color-tool-section, #color-tool-panel .dev-how-section { width: 100%; max-width: none; }
.utility-heading.tool-panel-heading { margin: 0 auto 20px; }
.developer-tool-picker { margin-bottom: 24px; }
.general-tool-picker, .developer-tool-picker { margin-bottom: 24px; }
.general-tool-panel .utility-heading, .developer-tool-panel .utility-heading { margin-top: 0; margin-bottom: 20px; }
#color-tool-panel .color-tool-section { margin-top: 0; }
#json-editor-panel .json-section { margin-top: 0; }
.shadow-preview-wrap { min-height: 210px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid #e7ebec; border-radius: 6px; background: #f8faf9; }
.shadow-preview { width: 180px; height: 110px; display: grid; place-items: center; border: 1px solid #e8eceb; border-radius: 10px; color: #53615e; background: #fff; font-size: 12px; }
.shadow-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shadow-controls .utility-label { grid-template-columns: 1fr auto; align-items: center; }
.shadow-controls input[type="range"] { grid-column: 1 / -1; padding: 0; accent-color: var(--accent); }
.shadow-controls input[type="color"] { width: 52px; padding: 4px; }
.shadow-controls output { color: #788187; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; }
@media (max-width: 760px) { .general-tool-picker, .developer-tool-picker, #image-tool-panel, #color-tool-panel, .utility-tool-section, .json-section { max-width: 100%; }.utility-tool-section { margin-bottom: 48px; } }

@keyframes page-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise-in { 0% { opacity: 0; transform: translateY(13px); } 76% { opacity: 1; transform: translateY(-2px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes tool-pop { 0% { opacity: 0; transform: translateY(15px) scale(.985); } 72% { opacity: 1; transform: translateY(-2px) scale(1.003); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.tool-page:not([hidden]) { animation: page-arrive .36s ease-out both; }
.general-tool-panel:not([hidden]), .developer-tool-panel:not([hidden]) { animation: tool-pop .5s .28s cubic-bezier(.2, .85, .3, 1.15) both; transform-origin: top center; }
.tool-page:not([hidden]) .intro-section .eyebrow { animation: rise-in .42s .03s both; }
.tool-page:not([hidden]) .intro-section h1 { animation: rise-in .46s .1s both; }
.tool-page:not([hidden]) .intro-section .intro-copy { animation: rise-in .44s .17s both; }
.tool-page:not([hidden]) .general-tool-picker, .tool-page:not([hidden]) .developer-tool-picker { animation: rise-in .46s .24s both; }
.general-tool-panel:not([hidden]) .tool-panel-heading .section-kicker,
.general-tool-panel:not([hidden]) .utility-heading .section-kicker,
.developer-tool-panel:not([hidden]) .utility-heading .section-kicker,
.developer-tool-panel:not([hidden]) .json-heading .section-kicker { animation: rise-in .4s .4s both; }
.general-tool-panel:not([hidden]) .tool-panel-heading h2,
.general-tool-panel:not([hidden]) .utility-heading h2,
.developer-tool-panel:not([hidden]) .utility-heading h2,
.developer-tool-panel:not([hidden]) .json-heading h2 { animation: rise-in .42s .46s both; }
.general-tool-panel:not([hidden]) .tool-panel-heading > p:last-child,
.general-tool-panel:not([hidden]) .utility-heading > p:last-child,
.developer-tool-panel:not([hidden]) .utility-heading > p:last-child,
.developer-tool-panel:not([hidden]) .json-heading p:last-child { animation: rise-in .42s .52s both; }
#image-tool-panel:not([hidden]) .workspace,
#color-tool-panel:not([hidden]) .color-tool-section,
.general-tool-panel:not([hidden]) > .utility-card,
.developer-tool-panel:not([hidden]) .utility-card,
.developer-tool-panel:not([hidden]) .json-card,
.developer-tool-panel:not([hidden]) .json-section { animation: rise-in .48s .61s both; }
#image-tool-panel:not([hidden]) .how-section,
#color-tool-panel:not([hidden]) .dev-how-section,
.developer-tool-panel:not([hidden]) .dev-how-section { animation: rise-in .44s .74s both; }
#image-tool-panel:not([hidden]) .format-guide { animation: rise-in .44s .83s both; }
#image-tool-panel:not([hidden]) .faq-section,
.developer-tool-panel:not([hidden]) .dev-faq-section { animation: rise-in .44s .92s both; }
.general-tool-picker select, .developer-tool-picker select, .ratio-button, .secondary-button, .copy-color-button, .how-item, .format-guide-grid article, .color-format-group, .shadow-preview { transition: border-color .2s, box-shadow .22s, background-color .2s, color .2s, transform .3s cubic-bezier(.2, .9, .3, 1.25); }
.general-tool-picker select:hover, .developer-tool-picker select:hover { border-color: #a9c5bd; }
.ratio-button:hover, .secondary-button:not(:disabled):hover, .copy-color-button:hover { transform: translateY(-1px); }
.how-item:hover, .format-guide-grid article:hover, .color-format-group:hover { transform: translateY(-2px); border-color: #cbdcd7; box-shadow: 0 7px 18px rgba(29, 48, 54, .045); }
.shadow-preview { transition: box-shadow .16s ease-out; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .brand:hover .brand-mark, .dropzone:hover, .dropzone.dragging, .format-option:hover, .primary-button:not(:disabled):hover, .primary-button:not(:disabled):active, .secondary-button:active, .ratio-button:hover, .secondary-button:not(:disabled):hover, .copy-color-button:hover, .how-item:hover, .format-guide-grid article:hover, .color-format-group:hover { transform: none !important; }
}
