:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #d8dee9;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto;
}

.input-panel,
.output-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.input-panel {
  padding: 28px;
}

.output-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 64px);
  padding: 28px;
}

.title-block {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 30px;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.title-block p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.resume-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 96px;
  padding: 12px;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--primary-dark);
}

button.secondary,
.copy-button {
  color: var(--text);
  background: #eef2f7;
}

button.secondary:hover,
.copy-button:hover {
  background: #e3e8f0;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.result-box {
  flex: 1;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  white-space: pre-line;
  line-height: 1.8;
}

.placeholder {
  color: var(--muted);
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
    margin: 16px auto;
  }

  .output-panel {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .input-panel,
  .output-panel {
    padding: 20px;
  }

  .form-row,
  .actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
