.text-input,
.url-output {
  width: 100%;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.text-input {
  resize: vertical;
  min-height: 180px;
}

.url-output {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--md-sys-color-on-surface-variant);
  background: color-mix(in srgb, var(--md-sys-color-surface) 78%, var(--md-sys-color-surface-variant));
  cursor: text;
}

.text-input:focus,
.url-output:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-primary) 22%, transparent);
}

.input-note {
  margin-top: 10px;
  margin-bottom: 0;
}

.received-text {
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-result {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.qr-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
  padding: 18px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
}

.qr-box canvas,
.qr-box img {
  width: 220px;
  height: 220px;
  max-width: 100%;
}

.share-info {
  min-width: 0;
}

.share-url-box {
  padding: 14px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: color-mix(in srgb, var(--md-sys-color-surface) 72%, var(--md-sys-color-surface-variant));
  border: 1px solid var(--md-sys-color-outline-variant);
}

.share-url-label {
  margin-bottom: 8px;
  font-size: 0.8125rem;
}

.url-help {
  margin: 8px 0 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.78rem;
  line-height: 1.5;
}

.expire-message {
  margin: 18px 0 0;
  padding: 10px 12px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: color-mix(in srgb, var(--md-sys-color-primary-container) 55%, var(--md-sys-color-surface));
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .share-result {
    grid-template-columns: 1fr;
  }

  .qr-box {
    min-height: auto;
  }}

@media (max-width: 600px) {
  .btn {
    width: 100%;
  }

  .tool-actions {
    flex-direction: column;
  }}
