/* Soft Clay for the web editor (same palette as the website). The desktop app keeps its own look; this file is loaded only by the web editor. */
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
:root,
:root[data-theme='light'],
:root[data-theme='dark'] {
  --bg: #fff3ee;
  --panel: #ffffff;
  --panel-2: #ffe5dc;
  --line: #f1d6cb;
  --text: #3b2a4a;
  --dim: #6f5c7e;
  --accent: #ff7a59 !important;
  --accent-2: #ff5c9d !important;
  --danger: #c2335a;
  --sel: #ff7a59 !important;
  --viewer-bg: #f3d9cf;
  --hover: #ffe9e0;
  --field: #ffffff;
  color-scheme: light;
}
body,
button,
input,
select,
textarea {
  font-family:
    Nunito,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
h1,
h2,
h3,
.hub-title,
.brand,
.dlg-title,
.welcome h2,
.welcome h1 {
  font-family: Nunito, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
}
button,
.btn {
  border-radius: 99px;
  font-weight: 800;
}
button.primary,
.btn.primary,
.primary {
  color: #fff;
  background: linear-gradient(135deg, #ff7a59, #ff6a7a);
  border-color: transparent;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}
input,
select,
textarea {
  border-radius: 14px;
}
.hub-side .tab.on,
.hub-tabs .tab.on {
  color: #fff;
  background: linear-gradient(135deg, #ff7a59, #ff6a7a);
  border-radius: 14px;
}
:focus-visible {
  outline: 3px solid #ff5c9d;
  outline-offset: 2px;
}
#propsbar .toggle.on {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}
.thumb.current {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 14px;
}

/* ---- Tools hub (Soft Clay) ---- */
:root {
  --clay-shadow: 0 16px 28px -18px rgba(120, 60, 90, 0.34), inset 0 -4px 0 rgba(0, 0, 0, 0.035);
}
.hub {
  background:
    radial-gradient(620px 420px at 90% 0%, #ffd9ea, transparent),
    radial-gradient(560px 380px at 0% 30%, #d6ebff, transparent), var(--bg);
  background-repeat: no-repeat;
}
.hub-head {
  padding: 22px 32px 10px;
}
.hub-head h1,
.hub-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hub-search,
.hub-head input[type='search'],
.hub-head input {
  background: #fff !important;
  border: 0 !important;
  border-radius: 99px !important;
  padding: 12px 20px !important;
  box-shadow: var(--clay-shadow);
  font-weight: 700;
  color: var(--text);
}
.hub-head input::placeholder {
  color: var(--dim);
}
.hub-side {
  border-right: 0;
  padding: 8px 14px 24px 24px;
  width: 244px;
}
.side-h {
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-top: 20px;
}
.hub-side .tab {
  padding: 9px 14px;
  border-radius: 99px;
  font-weight: 700;
}
.hub-side .tab:hover {
  background: #fff;
}
.hub-side .tab.on {
  background: linear-gradient(135deg, #ff7a59, #ff6a7a);
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}
.hub-main {
  padding: 10px 34px 40px;
}
.hsec h3 {
  font-size: 15px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
}
.dropzone {
  background: rgba(255, 255, 255, 0.6);
  border: 2px dashed #f2b9a6;
  border-radius: 28px;
  padding: 22px;
}
.tcard,
.catcard {
  background: #fff !important;
  border: 0 !important;
  border-radius: 28px !important;
  box-shadow: var(--clay-shadow);
  transition: transform 0.15s;
}
.tcard:hover,
.catcard:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  border: 0;
}
.tcard {
  padding: 18px 20px;
}
.tcard .tname,
.tcard b,
.tcard .ttitle {
  font-weight: 800;
}
.ticon {
  border-radius: 17px !important;
  background: #ffe0d6 !important;
  color: #ff7a59 !important;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.07);
}
.tcard:nth-child(4n + 2) .ticon,
.catcard:nth-child(4n + 2) .ticon {
  background: #d9f3ff !important;
  color: #2a86c5 !important;
}
.tcard:nth-child(4n + 3) .ticon,
.catcard:nth-child(4n + 3) .ticon {
  background: #e6ddff !important;
  color: #7a54d6 !important;
}
.tcard:nth-child(4n) .ticon,
.catcard:nth-child(4n) .ticon {
  background: #ffe6a8 !important;
  color: #b7791f !important;
}
.ticon svg {
  stroke: currentColor;
}
.catcard {
  padding: 20px;
}
.catcard b,
.catcard strong {
  font-weight: 900;
}
.star.on {
  color: #ff9f1a;
}
.drawer-wrap {
  background: rgba(59, 42, 74, 0.42);
  backdrop-filter: blur(3px);
}
.drawer {
  border: 0;
  border-radius: 32px 0 0 32px;
  box-shadow: -20px 0 60px -20px rgba(59, 42, 74, 0.5);
}
.tool-head h3 {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.drawer input[type='text'],
.drawer input[type='number'],
.drawer select,
.drawer textarea {
  border: 2px solid #f1d6cb;
  border-radius: 16px;
  background: #fff;
  padding: 9px 14px;
}
.drawer input:focus,
.drawer select:focus,
.drawer textarea:focus {
  outline: 0;
  border-color: #ff7a59;
}
.dropveil {
  background: rgba(255, 122, 89, 0.5);
  border-radius: 0;
}

/* ---- Tool panels open as a centred window instead of a side drawer ---- */
.drawer-wrap {
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.drawer {
  width: min(780px, 100%);
  height: auto;
  min-height: 320px;
  max-height: min(88vh, 900px);
  border-radius: 32px;
  border: 0;
  padding: 22px 26px 26px;
  transform: translateY(18px) scale(0.98);
  box-shadow: 0 50px 100px -30px rgba(59, 42, 74, 0.65);
}
.drawer-wrap.open .drawer {
  transform: none;
}
.drawer-wrap.wide .drawer {
  width: min(1180px, 100%);
  height: min(88vh, 900px);
}
.drawer #toolPanelBody {
  min-height: 0;
  overflow: auto;
}

/* Logo links back to the all-tools page */
a.brand {
  color: var(--text);
  text-decoration: none;
  border-radius: 99px;
  padding: 4px 10px 4px 4px;
  transition: background 0.15s;
}
a.brand:hover {
  background: #fff;
}
.hub-brand {
  flex: none;
  margin-right: 4px;
  font-weight: 900;
  font-size: 18px;
}
.hub-head > .hub-brand + div {
  flex: 1;
}

/* ---- Editor and Tools-screen bars: same brand mark and proportions as the website header ---- */
.brand {
  gap: 10px;
  font:
    900 18px Nunito,
    system-ui,
    sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
}
.brand b {
  color: #ff5c9d;
}
.brand .logo {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff7a59, #ff5c9d);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
  flex: none;
  font-size: 0;
}
#topbar {
  min-height: 56px;
  padding-top: 8px;
  padding-bottom: 8px;
}
#topbar .btn,
#topbar button {
  min-height: 36px;
}
#topbar .group {
  gap: 6px;
}
.hub-head {
  padding: 14px 32px 8px;
  gap: 20px;
  min-height: 76px;
}
.hub-head h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}
.hub-head > div {
  flex: 1;
  min-width: 0;
  max-width: none;
}
.hub-head > .hub-brand {
  width: 226px;
}
.hub-head {
  padding-right: 34px;
}
.hub-head .dim {
  font-size: 13px;
  line-height: 1.4;
}
.hub-head .btn {
  min-height: 38px;
  padding: 8px 20px;
  background: #fff;
  box-shadow: var(--clay-shadow);
}
.hub-head .btn.icon {
  width: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
}
.hub-head .hub-search {
  width: 300px;
  min-height: 40px;
}
@media (max-width: 700px) {
  #topbar {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  #topbar .brand-name {
    display: none;
  }
  .hub-head {
    flex-wrap: wrap;
    padding: 12px 16px;
  }
  .hub-head > .hub-brand {
    width: auto;
  }
  .hub-head .hub-search {
    width: 100%;
    order: 5;
  }
  .hub-head .dim {
    display: none;
  }
  .hub-body {
    flex-direction: column;
  }
  .hub-side {
    width: auto;
    display: flex;
    overflow-x: auto;
    padding: 4px 12px;
    gap: 4px;
    flex: none;
  }
  .hub-side .side-h {
    display: none;
  }
  .hub-side .tab {
    white-space: nowrap;
    width: auto;
    flex: none;
  }
}
@media (max-width: 700px) {
  html,
  body {
    overflow-x: hidden;
  }
  #toolbar,
  #propsbar {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

#hubCredits {
  text-decoration: none;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
#hubCredits[hidden] {
  display: none;
}

/* ===== Tool windows, round two: drop area, file cards, headline results, forms, tabs, charts, phone sheet ===== */
:root {
  --violet: #7a54d6;
  --mint: #1f9d6b;
  --plum: #3b2a4a;
}
.tool-head {
  gap: 14px;
  justify-content: flex-start;
  align-items: center;
}
.tool-head h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.15;
}
.tool-head .ticon.head {
  width: 50px;
  height: 50px;
  margin: 0;
  border-radius: 17px !important;
}
.tool-head .ticon.head svg {
  width: 26px;
  height: 26px;
}
.ticon.head[data-tone='1'] {
  background: #d9f3ff !important;
  color: #2a86c5 !important;
}
.ticon.head[data-tone='2'] {
  background: #e6ddff !important;
  color: #7a54d6 !important;
}
.ticon.head[data-tone='3'] {
  background: #ffe6a8 !important;
  color: #b7791f !important;
}
.tool-desc {
  margin: 2px 0 6px;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 64ch;
  color: var(--dim);
}
.tool-body {
  gap: 14px;
  padding: 2px 6px 4px 2px;
}

/* drop area + file cards */
.tdrop {
  gap: 16px;
  padding: 20px 22px;
  border: 2px dashed #f2b9a6;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff8f4, #fff);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.tdrop.over {
  border-color: #ff5c9d;
  background: #fff0f6;
  box-shadow: 0 0 0 6px rgba(255, 92, 157, 0.14);
}
.tdrop .dz-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #ffe0d6;
  color: #ff7a59;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.07);
}
.tdrop .dz-text b {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tdrop.compact {
  padding: 10px 14px;
  border: 1.5px solid #f1d6cb;
  background: #fff;
  border-radius: 22px;
}
.tdrop.compact .dz-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}
.tdrop.compact .dz-icon svg {
  width: 18px;
  height: 18px;
}
.tdrop.compact .dz-text b {
  font-size: 14px;
}
.tfile {
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 22px -16px rgba(120, 60, 90, 0.55);
  padding: 10px 14px;
  gap: 10px;
}
.tfile .btn.icon {
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: #fff0ea;
  box-shadow: none;
}
.fbadge {
  min-width: 44px;
  height: 30px;
  border-radius: 11px;
  background: #ffe0d6;
  color: #d9482a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.tfile.out {
  background: #effaf4;
  box-shadow: inset 0 0 0 1.5px #b6e4cd;
}
.tfile.out::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  flex: none;
}
.tfile.out .grow {
  font-weight: 800;
}
.tfile .pdfthumb {
  border-radius: 8px;
  box-shadow: 0 6px 14px -8px rgba(59, 42, 74, 0.6);
  max-height: 56px;
  width: auto;
}

/* headline results */
.tstats {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 2px;
}
.tstat {
  background: #fff;
  border: 0;
  border-radius: 20px;
  padding: 13px 18px;
  box-shadow: var(--clay-shadow);
  gap: 3px;
}
.tstat .tstat-l {
  font-size: 13px;
  font-weight: 700;
  color: var(--dim);
}
.tstat .tstat-v {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}
.tstat.hero {
  background: var(--plum);
  border-radius: 28px;
  padding: 20px 26px;
  box-shadow: 0 24px 34px -24px rgba(59, 42, 74, 0.9);
}
.tstat.hero .tstat-l {
  color: #ffc9b8;
  font-size: 13.5px;
}
.tstat.hero .tstat-v {
  color: #fff;
  font-size: 38px;
  line-height: 1.1;
}

/* forms */
.trow:has(> .tfield) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px 14px;
  align-items: end;
}
.tfield {
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #5b4870;
  min-width: 0;
}
.tfield small {
  font-weight: 600;
}
.tlabel {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  margin: 8px 0 2px;
  letter-spacing: -0.005em;
}
.drawer input[type='text'],
.drawer input[type='number'],
.drawer input[type='password'],
.drawer select,
.drawer textarea {
  font-size: 14.5px;
  min-height: 44px;
}
.tcheck {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tcheck input {
  width: 18px;
  height: 18px;
  accent-color: #ff7a59;
}
.btn.primary.large {
  min-height: 50px;
  padding: 0 30px;
  font-size: 16px;
}

/* tabs inside a tool */
.ttabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  background: #ffe9e0;
  border-radius: 99px;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.ttabs::-webkit-scrollbar {
  display: none;
}
.ttabs .btn {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #6f5c7e;
  white-space: nowrap;
  padding: 9px 16px;
  flex: none;
}
.ttabs .btn.primary {
  background: #fff;
  color: #d9482a;
  box-shadow: 0 8px 16px -10px rgba(120, 60, 90, 0.7);
}

/* messages, progress, charts */
.tmsg {
  border-radius: 18px;
  background: #fff3ee;
  border: 0;
  box-shadow: inset 4px 0 0 var(--accent);
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.5;
}
.tmsg.error {
  background: #ffe9ee;
  box-shadow: inset 4px 0 0 #c2335a;
  color: #7a1f3d;
}
.tbar {
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff7a59, #ff5c9d);
}
.chartbox {
  background: #fff;
  border-radius: 24px;
  padding: 14px 16px 10px;
  box-shadow: var(--clay-shadow);
  margin: 6px 0;
}
.chart {
  max-width: none;
}
.cgrid {
  stroke: #f1d6cb;
  stroke-dasharray: 3 5;
}
.ctext {
  fill: #6f5c7e;
  font-size: 11px;
  font-weight: 700;
}
.clegend {
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dim);
  margin-top: 6px;
}
.clegend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

/* phone: tools open as a bottom sheet */
@media (max-width: 700px) {
  .drawer-wrap {
    align-items: flex-end;
    padding: 0;
  }
  .drawer {
    width: 100%;
    max-height: 92vh;
    border-radius: 28px 28px 0 0;
    padding: 18px 16px 22px;
  }
  .drawer-wrap.wide .drawer {
    width: 100%;
    height: 92vh;
  }
  #toolPanelWide {
    display: none;
  }
  .tool-head h3 {
    font-size: 20px;
  }
  .tool-head .ticon.head {
    width: 42px;
    height: 42px;
  }
  .tool-desc {
    font-size: 13.5px;
  }
  .tstat .tstat-v {
    font-size: 19px;
  }
  .tstat.hero .tstat-v {
    font-size: 31px;
  }
  .tdrop {
    padding: 16px;
  }
  .tdrop .dz-actions {
    width: 100%;
  }
  .tdrop .dz-actions .btn {
    flex: 1;
  }
  .trow:has(> .tfield) {
    grid-template-columns: 1fr 1fr;
  }
  .btn.primary.large {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tdrop,
  .tcard {
    transition: none;
  }
}
.tool-body > *,
.tstats > *,
.ttabs > * {
  flex-shrink: 0;
}
.tstats {
  align-content: start;
}

/* every kind of input gets the same look; sliders and ticks use the brand colour */
.drawer input[type='date'],
.drawer input[type='datetime-local'],
.drawer input[type='month'],
.drawer input[type='time'],
.drawer input[type='search'],
.drawer input[type='email'],
.drawer input[type='url'],
.drawer input[type='tel'] {
  border: 2px solid #f1d6cb;
  border-radius: 16px;
  background: #fff;
  padding: 9px 14px;
  min-height: 44px;
  font-size: 14.5px;
  color: var(--text);
}
.drawer input[type='date']:focus,
.drawer input[type='datetime-local']:focus,
.drawer input[type='month']:focus,
.drawer input[type='time']:focus {
  outline: 0;
  border-color: #ff7a59;
}
.drawer input[type='range'] {
  accent-color: #ff7a59;
}
.drawer input[type='checkbox'],
.drawer input[type='radio'] {
  accent-color: #ff7a59;
}

/* text areas read like the rest of the form; code-style boxes can opt back in with class "mono" */
.drawer .tool-body textarea:not(.mono) {
  font-family: Nunito, system-ui, 'Segoe UI', sans-serif;
  line-height: 1.45;
}
.drawer .tool-body textarea.mono {
  font-family: ui-monospace, Consolas, monospace;
}
.qr-empty {
  display: grid;
  place-items: center;
  width: 260px;
  height: 140px;
  border: 2px dashed #f1d6cb;
  border-radius: 18px;
  background: #fff8f4;
  color: #9a7b8c;
  font-size: 13.5px;
  text-align: center;
  padding: 12px;
}

/* tool cards: the full explanation shows as a tooltip on hover or keyboard focus */
.tcard[data-tip] {
  position: relative;
}
.tcard[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
  width: max-content;
  max-width: min(280px, 90%);
  padding: 10px 14px;
  border-radius: 14px;
  background: #3b2a4a;
  color: #fff;
  font:
    600 13px/1.4 Nunito,
    system-ui,
    sans-serif;
  text-align: left;
  white-space: normal;
  box-shadow: 0 14px 28px -12px rgba(40, 20, 60, 0.55);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.12s,
    transform 0.12s;
  z-index: 40;
}
.tcard[data-tip]::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  width: 12px;
  height: 12px;
  background: #3b2a4a;
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
  z-index: 39;
}
.tcard[data-tip]:hover::after,
.tcard[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%);
}
.tcard[data-tip]:hover::before,
.tcard[data-tip]:focus-visible::before {
  opacity: 1;
}
@media (hover: none) {
  .tcard[data-tip]::after,
  .tcard[data-tip]::before {
    display: none;
  }
  .tcard[data-tip].tip-open::after,
  .tcard[data-tip].tip-open::before {
    display: block;
    opacity: 1;
    transform: translateX(-50%);
  }
  .tcard[data-tip].tip-open {
    z-index: 60;
  }
}
.tcard[data-tip]:hover,
.tcard[data-tip]:focus-visible {
  z-index: 60;
}

/* preview of the chosen file(s): Soft Clay look */
.drawer .tpv {
  background: #fff8f4;
  border: 2px solid #f1d6cb;
  border-radius: 22px;
  padding: 14px;
}
.drawer .tpv-grid {
  background: #fff3ee;
  border-radius: 16px;
  padding: 10px;
}
.drawer .tpv-page {
  border-radius: 12px;
  box-shadow: 0 8px 14px -10px rgba(120, 60, 90, 0.45);
}
.drawer .tpv-page:hover {
  transform: translateY(-2px);
}
