.tk-image-page {
  --tk-image-bg: #07111f;
  --tk-image-bg-soft: #0a1627;
  --tk-image-surface: #0e1b2d;
  --tk-image-surface-raised: #13243a;
  --tk-image-border: rgba(255, 255, 255, 0.1);
  --tk-image-border-strong: rgba(255, 255, 255, 0.18);
  --tk-image-text: #f5f7fb;
  --tk-image-muted: #a8b5c7;
  --tk-image-muted-2: #8292a8;
  --tk-image-blue: #6e9fe0;
  --tk-image-blue-strong: #356da9;
  --tk-image-blue-soft: rgba(110, 159, 224, 0.14);
  --tk-image-gold: #d1aa49;
  --tk-image-success: #47bd88;
  --tk-image-success-soft: rgba(71, 189, 136, 0.14);
  --tk-image-warning: #e8a832;
  --tk-image-warning-soft: rgba(232, 168, 50, 0.14);
  --tk-image-danger: #eb6a73;
  --tk-image-danger-soft: rgba(235, 106, 115, 0.14);
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 4%, rgba(23, 59, 108, 0.32), transparent 31rem),
    linear-gradient(180deg, #07111f 0%, #091526 54%, #07111f 100%);
  color: var(--tk-image-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.tk-image-page *,
.tk-image-page *::before,
.tk-image-page *::after {
  box-sizing: border-box;
}

.tk-image-page button,
.tk-image-page input,
.tk-image-page select {
  font: inherit;
}

.tk-image-page button,
.tk-image-page a,
.tk-image-page input,
.tk-image-page select,
.tk-image-page summary {
  -webkit-tap-highlight-color: transparent;
}

.tk-image-page img,
.tk-image-page svg {
  display: block;
  max-width: 100%;
}

.tk-image-page [hidden] {
  display: none !important;
}

.tk-image-skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  border-radius: 9px;
  background: #fff;
  color: #081222;
  font-weight: 750;
  transform: translateY(-180%);
}

.tk-image-skip-link:focus {
  transform: translateY(0);
}

.tk-image-tool {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
  padding: 22px 0 72px;
}

.tk-image-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.tk-image-back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--tk-image-border-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: #d5dce6;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tk-image-back-link svg {
  flex: 0 0 auto;
}

.tk-image-back-link:hover {
  border-color: rgba(110, 159, 224, 0.5);
  background: rgba(110, 159, 224, 0.1);
  color: var(--tk-image-text);
  transform: translateY(-1px);
}

.tk-image-back-link:active {
  transform: translateY(0);
}

.tk-image-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(34px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid var(--tk-image-border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 48%),
    linear-gradient(150deg, #10213a 0%, #0c192b 62%, #0a1524 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.tk-image-hero::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 133, 24, 0.12), transparent 67%);
  content: "";
  pointer-events: none;
}

.tk-image-hero__content {
  position: relative;
  z-index: 1;
  max-width: 810px;
}

.tk-image-eyebrow,
.tk-image-section-kicker {
  margin: 0;
  color: var(--tk-image-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tk-image-hero__title {
  max-width: 760px;
  margin: 14px 0 18px;
  color: var(--tk-image-text);
  font-size: clamp(2.35rem, 4.7vw, 4rem);
  font-weight: 790;
  letter-spacing: -0.05em;
  line-height: 1.04;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.tk-image-hero__lead {
  max-width: 760px;
  margin: 0;
  color: var(--tk-image-muted);
  font-size: clamp(1.06rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.tk-image-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tk-image-trust-list li {
  padding: 7px 12px;
  border: 1px solid var(--tk-image-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #d3dbe6;
  font-size: 0.78rem;
  font-weight: 680;
}

.tk-image-hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 230px;
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 21px;
  background: rgba(7, 17, 31, 0.74);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.26), 0 0 42px rgba(95, 145, 216, 0.07);
}

.tk-image-hero__visual svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-image-visual__top,
.tk-image-visual__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tk-image-visual__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(118, 165, 229, 0.35);
  border-radius: 14px;
  place-items: center;
  background: rgba(95, 145, 216, 0.13);
  color: #a9c8ef;
}

.tk-image-visual__status {
  padding: 6px 9px;
  border: 1px solid rgba(69, 193, 138, 0.28);
  border-radius: 999px;
  background: rgba(69, 193, 138, 0.1);
  color: #91dfb9;
  font-size: 0.69rem;
  font-weight: 780;
}

.tk-image-hero__visual > strong {
  display: block;
  margin-top: 27px;
  color: var(--tk-image-text);
  font-size: 1.1rem;
  letter-spacing: 0.015em;
}

.tk-image-visual__line {
  display: block;
  height: 7px;
  margin: 13px 0 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.tk-image-visual__line i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #356da9, #6e9fe0);
}

.tk-image-visual__footer {
  color: var(--tk-image-muted);
  font-size: 0.72rem;
  font-weight: 680;
}

.tk-image-workbench {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  align-items: start;
}

.tk-image-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--tk-image-border);
  border-radius: 22px;
  background: #0e1b2d;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}

.tk-image-result-card {
  border-color: rgba(118, 165, 229, 0.18);
  background: linear-gradient(150deg, #12233a, #0e1b2d 72%);
}

.tk-image-card-heading,
.tk-image-result__heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.tk-image-card-heading > div,
.tk-image-result__heading > div {
  min-width: 0;
}

.tk-image-card h2,
.tk-image-result h2,
.tk-image-result-empty h2 {
  margin: 6px 0 0;
  color: var(--tk-image-text);
  font-size: clamp(1.42rem, 2.5vw, 1.8rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.tk-image-local-badge,
.tk-image-saving-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--tk-image-blue-soft);
  color: #b9d3f5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tk-image-card-intro {
  margin: 16px 0 22px;
  color: var(--tk-image-muted);
  font-size: 0.92rem;
}

.tk-image-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.tk-image-dropzone {
  display: grid;
  width: 100%;
  min-height: 205px;
  padding: 26px 18px;
  border: 1px dashed rgba(110, 159, 224, 0.48);
  border-radius: 17px;
  place-items: center;
  align-content: center;
  background: rgba(110, 159, 224, 0.07);
  color: var(--tk-image-text);
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.tk-image-dropzone:hover,
.tk-image-dropzone[data-dragging="true"] {
  border-color: var(--tk-image-blue);
  background: rgba(110, 159, 224, 0.13);
}

.tk-image-dropzone[data-dragging="true"] {
  transform: translateY(-2px);
}

.tk-image-dropzone__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 14px;
  place-items: center;
  background: var(--tk-image-blue-soft);
  color: #b9d3f5;
}

.tk-image-dropzone__icon svg,
.tk-image-result-empty__icon svg,
.tk-image-icon-button svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-image-dropzone strong {
  font-size: 1rem;
}

.tk-image-dropzone > span:last-child {
  margin-top: 5px;
  color: var(--tk-image-muted);
  font-size: 0.8rem;
}

.tk-image-help,
.tk-image-error {
  margin: 7px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.tk-image-help {
  color: var(--tk-image-muted-2);
}

.tk-image-error {
  min-height: 1.2em;
  color: #ff9da4;
  font-weight: 650;
}

.tk-image-selected {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 42px;
  gap: 13px;
  align-items: center;
  margin-top: 14px;
  padding: 11px;
  border: 1px solid var(--tk-image-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.tk-image-selected img {
  width: 64px;
  height: 56px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

.tk-image-selected__content {
  min-width: 0;
}

.tk-image-selected__content strong,
.tk-image-selected__content span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-image-selected__content strong {
  color: var(--tk-image-text);
  font-size: 0.88rem;
}

.tk-image-selected__content span {
  margin-top: 2px;
  color: var(--tk-image-muted);
  font-size: 0.75rem;
}

.tk-image-icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  place-items: center;
  background: transparent;
  color: var(--tk-image-muted);
  cursor: pointer;
}

.tk-image-icon-button:hover {
  background: var(--tk-image-danger-soft);
  color: #ffabb1;
}

.tk-image-format-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 25px 0 0;
  padding: 0;
  border: 0;
}

.tk-image-format-options legend,
.tk-image-field > label {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  color: #dbe2ec;
  font-size: 0.79rem;
  font-weight: 780;
}

.tk-image-format-options legend {
  grid-column: 1 / -1;
}

.tk-image-choice {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.tk-image-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tk-image-choice span {
  display: block;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid var(--tk-image-border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.tk-image-choice strong,
.tk-image-choice small {
  display: block;
}

.tk-image-choice strong {
  color: var(--tk-image-text);
  font-size: 0.86rem;
}

.tk-image-choice small {
  margin-top: 4px;
  color: var(--tk-image-muted-2);
  font-size: 0.72rem;
  line-height: 1.4;
}

.tk-image-choice input:checked + span {
  border-color: rgba(110, 159, 224, 0.72);
  background: var(--tk-image-blue-soft);
  box-shadow: inset 0 0 0 1px rgba(110, 159, 224, 0.08);
}

.tk-image-choice input:focus-visible + span {
  outline: 3px solid var(--tk-image-gold);
  outline-offset: 3px;
}

.tk-image-field {
  margin-top: 20px;
}

.tk-image-field input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--tk-image-border-strong);
  border-radius: 11px;
  background: #0a1728;
  color: var(--tk-image-text);
  outline: 0;
}

.tk-image-field input[type="number"]:focus {
  border-color: var(--tk-image-blue);
  box-shadow: 0 0 0 3px rgba(110, 159, 224, 0.15);
}

.tk-image-field input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.tk-image-auto-mode {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(69, 193, 138, 0.2);
  border-radius: 13px;
  background: rgba(69, 193, 138, 0.07);
}

.tk-image-auto-mode__icon {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  place-items: center;
  background: rgba(69, 193, 138, 0.13);
  color: #91dfb9;
}

.tk-image-auto-mode__icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tk-image-auto-mode strong,
.tk-image-auto-mode span {
  display: block;
}

.tk-image-auto-mode strong {
  color: var(--tk-image-text);
  font-size: 0.84rem;
}

.tk-image-auto-mode div > span {
  margin-top: 3px;
  color: var(--tk-image-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.tk-image-advanced {
  margin: 20px 0;
  border-top: 1px solid var(--tk-image-border);
  border-bottom: 1px solid var(--tk-image-border);
}

.tk-image-advanced summary {
  min-height: 48px;
  padding: 13px 0;
  color: #dbe2ec;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.tk-image-advanced__content {
  padding: 2px 0 18px;
}

.tk-image-toggle {
  display: flex;
  min-height: 44px;
  gap: 10px;
  align-items: center;
  color: var(--tk-image-text);
  font-size: 0.84rem;
  font-weight: 680;
  cursor: pointer;
}

.tk-image-toggle input {
  width: 19px;
  height: 19px;
  accent-color: var(--tk-image-blue);
}

.tk-image-field--compact {
  margin-top: 12px;
}

.tk-image-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 780;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.tk-image-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.tk-image-button--primary {
  border-color: #477fb9;
  background: #356da9;
  color: #fff;
}

.tk-image-button--primary:hover:not(:disabled) {
  background: #407ab7;
}

.tk-image-button--secondary {
  border-color: var(--tk-image-border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--tk-image-text);
}

.tk-image-button--secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.tk-image-button--full {
  width: 100%;
}

.tk-image-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tk-image-result-card {
  min-height: 590px;
}

.tk-image-result-empty {
  display: grid;
  min-height: 520px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.tk-image-result-empty__icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  border-radius: 19px;
  place-items: center;
  background: var(--tk-image-blue-soft);
  color: #b9d3f5;
}

.tk-image-result-empty__icon svg {
  width: 32px;
}

.tk-image-result-empty p:last-child {
  max-width: 440px;
  margin: 13px auto 0;
  color: var(--tk-image-muted);
  font-size: 0.9rem;
}

.tk-image-processing {
  display: flex;
  min-height: 520px;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

.tk-image-processing strong {
  color: var(--tk-image-text);
}

.tk-image-processing p {
  margin: 3px 0 0;
  color: var(--tk-image-muted);
  font-size: 0.82rem;
}

.tk-image-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--tk-image-blue);
  border-radius: 50%;
  animation: tk-image-spin 800ms linear infinite;
}

@keyframes tk-image-spin {
  to { transform: rotate(360deg); }
}

.tk-image-saving-badge[data-status="success"] {
  background: var(--tk-image-success-soft);
  color: #91e0bb;
}

.tk-image-saving-badge[data-status="neutral"] {
  background: var(--tk-image-blue-soft);
  color: #b9d3f5;
}

.tk-image-saving-badge[data-status="warning"] {
  background: var(--tk-image-warning-soft);
  color: #f2c866;
}

.tk-image-result-preview {
  display: grid;
  min-height: 310px;
  max-height: 430px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--tk-image-border);
  border-radius: 16px;
  place-items: center;
  background-color: #f5f6f8;
  background-image:
    linear-gradient(45deg, #e6e8ec 25%, transparent 25%),
    linear-gradient(-45deg, #e6e8ec 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e6e8ec 75%),
    linear-gradient(-45deg, transparent 75%, #e6e8ec 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.tk-image-result-preview img {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: contain;
}

.tk-image-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0 0;
}

.tk-image-metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--tk-image-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.tk-image-metrics dt {
  color: var(--tk-image-muted-2);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tk-image-metrics dd {
  margin: 4px 0 0;
  color: var(--tk-image-text);
  font-size: 0.88rem;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.tk-image-result-note {
  margin: 15px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--tk-image-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.tk-image-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tk-image-result-error {
  min-height: 520px;
  padding: 24px;
  place-content: center;
  border-radius: 16px;
  background: var(--tk-image-danger-soft);
  text-align: center;
}

.tk-image-result-error:not([hidden]) {
  display: grid;
}

.tk-image-result-error strong {
  color: #ffb5ba;
}

.tk-image-result-error p {
  max-width: 460px;
  margin: 8px auto 0;
  color: #e4b8bc;
}

.tk-image-facts {
  margin-top: clamp(56px, 8vw, 92px);
}

.tk-image-facts__heading {
  max-width: 720px;
}

.tk-image-facts__heading h2,
.tk-image-author h2,
.tk-image-more-tools h2 {
  margin: 8px 0 0;
  color: var(--tk-image-text);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.tk-image-facts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.tk-image-facts article {
  padding: 22px;
  border: 1px solid var(--tk-image-border);
  border-radius: 17px;
  background: rgba(14, 27, 45, 0.72);
}

.tk-image-facts article > span {
  color: var(--tk-image-muted-2);
  font-size: 0.75rem;
  font-weight: 800;
}

.tk-image-facts h3 {
  margin: 12px 0 8px;
  color: var(--tk-image-text);
  font-size: 1rem;
}

.tk-image-facts article p {
  margin: 0;
  color: var(--tk-image-muted);
  font-size: 0.83rem;
}

.tk-image-author {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--tk-image-border);
  border-radius: 18px;
  background: rgba(14, 27, 45, 0.72);
}

.tk-image-author img {
  width: 82px;
  height: 82px;
  border: 1px solid var(--tk-image-border-strong);
  border-radius: 50%;
  object-fit: cover;
}

.tk-image-author h2 {
  font-size: 1.25rem;
}

.tk-image-author p:last-child {
  margin: 7px 0 0;
  color: var(--tk-image-muted);
  font-size: 0.85rem;
}

.tk-image-more-tools {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--tk-image-border);
  border-radius: 18px;
  background: rgba(10, 22, 39, 0.8);
}

.tk-image-more-tools h2 {
  font-size: 1.35rem;
}

.tk-image-tool-links {
  display: grid;
  gap: 8px;
}

.tk-image-tool-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--tk-image-border);
  border-radius: 11px;
  color: var(--tk-image-text);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.tk-image-tool-links a:hover {
  border-color: rgba(110, 159, 224, 0.45);
  background: var(--tk-image-blue-soft);
}

.tk-image-tool-links strong,
.tk-image-tool-links span {
  display: block;
}

.tk-image-tool-links strong {
  font-size: 0.85rem;
}

.tk-image-tool-links span {
  margin-top: 2px;
  color: var(--tk-image-muted);
  font-size: 0.72rem;
}

.tk-image-toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 15px;
  border: 1px solid var(--tk-image-border-strong);
  border-radius: 11px;
  background: #15263c;
  color: var(--tk-image-text);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
}

.tk-image-page :focus-visible {
  outline: 3px solid var(--tk-image-gold);
  outline-offset: 3px;
}

@media (min-width: 981px) and (min-height: 760px) {
  .tk-image-result-card {
    position: sticky;
    top: 22px;
  }
}

@media (max-width: 980px) {
  .tk-image-hero {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.7fr);
    gap: 30px;
    padding: 36px;
  }

  .tk-image-workbench {
    grid-template-columns: 1fr;
  }

  .tk-image-result-card {
    min-height: 0;
  }

  .tk-image-result-empty,
  .tk-image-processing,
  .tk-image-result-error {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .tk-image-tool {
    width: min(calc(100% - 28px), 1240px);
    padding-top: 14px;
    padding-bottom: 52px;
  }

  .tk-image-navigation {
    margin-bottom: 14px;
  }

  .tk-image-hero {
    display: block;
    margin-bottom: 16px;
    padding: 28px 22px 30px;
    border-radius: 21px;
  }

  .tk-image-hero__title {
    margin-top: 11px;
    font-size: clamp(2.05rem, 10.5vw, 3.1rem);
    line-height: 1.04;
  }

  .tk-image-hero__lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .tk-image-trust-list {
    gap: 7px;
    margin-top: 21px;
  }

  .tk-image-trust-list li {
    padding: 6px 9px;
    font-size: 0.7rem;
  }

  .tk-image-hero__visual {
    display: none;
  }

  .tk-image-card {
    padding: 20px;
    border-radius: 18px;
  }

  .tk-image-dropzone {
    min-height: 178px;
  }

  .tk-image-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tk-image-result-preview {
    min-height: 250px;
  }

  .tk-image-facts__grid,
  .tk-image-more-tools {
    grid-template-columns: 1fr;
  }

  .tk-image-facts__grid {
    gap: 10px;
  }

  .tk-image-more-tools {
    gap: 20px;
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .tk-image-format-options {
    grid-template-columns: 1fr;
  }

  .tk-image-format-options legend {
    grid-column: 1;
  }

  .tk-image-choice span {
    min-height: 0;
  }

  .tk-image-selected {
    grid-template-columns: 54px minmax(0, 1fr) 42px;
  }

  .tk-image-selected img {
    width: 54px;
    height: 52px;
  }

  .tk-image-result-actions {
    display: grid;
  }

  .tk-image-result-actions .tk-image-button {
    width: 100%;
  }

  .tk-image-author {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 19px;
  }

  .tk-image-author img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 340px) {
  .tk-image-tool {
    width: calc(100% - 20px);
  }

  .tk-image-card {
    padding: 16px;
  }

  .tk-image-hero {
    padding: 24px 16px 27px;
  }

  .tk-image-hero__title {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-image-page *,
  .tk-image-page *::before,
  .tk-image-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
