:root {
  --color-paper: #f4f1e8;
  --color-paper-deep: #ece7d9;
  --color-ink: #1c1b18;
  --color-ink-soft: #6b665b;
  --color-line: #d9d3c3;
  --color-accent: #d8442a;
  --color-accent-deep: #b0331d;
  --color-mark: #e0a92e;
  --font-display: Inter, Noto Sans TC, sans-serif;
  --font-body: Inter, Noto Sans TC, sans-serif;
  --font-mono: Inter, Noto Sans TC, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tool-intro {
  margin-bottom: 40px;
  line-height: 1.7;
  color: #6b665b;
}
.tool-intro strong {
  color: #1c1b18;
}
.tool-intro kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #d9d3c3;
  border-radius: 2px;
  font-size: 0.85em;
  background: #ece7d9;
  color: #1c1b18;
}

.mb-section {
  margin-bottom: 40px;
}

.mb-section-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b665b;
  margin-bottom: 16px;
}

.mb-preset-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mb-preset-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border: 1px solid #d9d3c3;
  border-radius: 2px;
  background: #ece7d9;
  cursor: pointer;
  text-align: left;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 1.25rem;
  color: #1c1b18;
  transition: border-color 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mb-preset-btn:hover {
  border-color: #6b665b;
  background: #f4f1e8;
}
.mb-preset-btn.is-selected {
  border-color: #d8442a;
  background: #f4f1e8;
}

.mb-preset-check {
  font-weight: 700;
  color: #d8442a;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  flex-shrink: 0;
  margin-left: 16px;
}
.mb-preset-btn.is-selected .mb-preset-check {
  opacity: 1;
}

.mb-custom-area {
  position: relative;
}

.mb-custom-input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #d9d3c3;
  border-radius: 2px;
  background: #f4f1e8;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-size: 1rem;
  color: #1c1b18;
  resize: vertical;
  min-height: 72px;
  transition: border-color 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mb-custom-input:focus {
  outline: none;
  border-color: #1c1b18;
}
.mb-custom-input::placeholder {
  color: #6b665b;
}

.mb-char-count {
  display: block;
  text-align: right;
  font-size: 1rem;
  color: #6b665b;
  margin-top: 4px;
}

.mb-launch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mb-preview {
  width: 100%;
  padding: 40px 64px;
  background: #1c1b18;
  border-radius: 2px;
  text-align: center;
}

.mb-preview-label {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(244, 241, 232, 0.35);
  margin-bottom: 8px;
}

.mb-preview-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f4f1e8;
  line-height: 1.4;
  word-break: break-word;
  transition: color 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mb-preview-text.is-empty {
  color: rgba(244, 241, 232, 0.3);
  font-weight: 400;
}

.mb-launch-btn {
  min-width: 180px;
}

.mb-launch-hint {
  font-size: 1rem;
  color: #6b665b;
}
.mb-launch-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #d9d3c3;
  border-radius: 2px;
  font-size: 0.85em;
  background: #ece7d9;
  color: #1c1b18;
}

.mb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #1c1b18;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  user-select: none;
}
.mb-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.mb-overlay-message {
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 800;
  color: #f4f1e8;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-break: break-word;
  max-width: 85vw;
}

.mb-overlay-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: rgba(244, 241, 232, 0.25);
  white-space: nowrap;
}
.mb-overlay-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid rgba(244, 241, 232, 0.15);
  border-radius: 2px;
  font-size: 0.85em;
  color: rgba(244, 241, 232, 0.3);
}
