:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #fafafa;
  --card: #ffffff;
  --foreground: #0a0a0a;
  --muted: #737373;
  --muted-strong: #525252;
  --border: #e5e7eb;
  --border-strong: #d4d4d4;
  --brand: #3182f6;
  --brand-hover: #2563eb;
  --brand-soft: #eff6ff;
  --danger: #dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
}

body.modal-open {
  overflow: hidden;
}

.notice-bar {
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  background: var(--foreground);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-links a {
  color: var(--muted-strong);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.candidate-archive-button {
  min-height: 36px;
  border-color: var(--foreground);
  background: var(--foreground);
  color: #ffffff;
}

.candidate-archive-button:hover {
  border-color: #262626;
  background: #262626;
}

.developer-log-button {
  flex: 0 0 auto;
  min-height: 36px;
  border-color: #bfdbfe;
  background: var(--brand-soft);
  color: #1d4ed8;
}

.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 40px;
}

button {
  min-height: 40px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

button:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.brand-button,
.nav-register {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.brand-button:hover,
.nav-register:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px);
}

.secondary {
  background: var(--foreground);
  border-color: var(--foreground);
  color: #ffffff;
}

.secondary:hover {
  background: #262626;
  border-color: #262626;
}

.danger {
  border-color: #fecaca;
  color: var(--danger);
  background: #fff5f5;
}

.danger:hover {
  border-color: #fca5a5;
  background: #fee2e2;
}

.text-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.text-button:hover {
  background: transparent;
  color: var(--foreground);
}

.left-pane {
  display: grid;
  align-content: start;
  gap: 16px;
}

.login-box,
.source-box,
.gemini-box,
.custom-box,
.draft-list-box,
.jungdo-editor {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.login-box,
.source-box,
.gemini-box,
.custom-box,
.draft-list-box {
  padding: 18px;
}

.login-box h2,
.source-box h2,
.gemini-box h2,
.custom-box h2,
.draft-list-box h2 {
  margin: 0 0 14px;
  font-size: 15px;
}

.login-box,
.gemini-box,
.custom-box {
  display: grid;
  gap: 12px;
}

.source-tabs {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.source-option {
  justify-content: flex-start;
  text-align: left;
}

.source-option.active {
  background: var(--brand-soft);
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.helper-note {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.45;
}

.full-width {
  width: 100%;
}

.hidden {
  display: none;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.draft-list-box {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow: auto;
  scrollbar-gutter: stable;
}

.draft-list {
  display: grid;
  gap: 8px;
}

.draft-list-item {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: auto;
  padding: 12px;
  text-align: left;
  border-radius: 12px;
  background: var(--card);
}

.draft-list-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
}

.draft-list-item small {
  color: var(--muted);
  font-size: 12px;
}

.draft-list-item.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.draft-kind {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.empty-list {
  padding: 18px 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.editor-pane {
  min-width: 0;
}

.status {
  min-height: 22px;
  margin: 0 0 12px;
  color: var(--muted-strong);
  font-size: 14px;
}

.developer-log-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto;
  width: min(760px, calc(100vw - 48px));
  height: min(560px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 16px;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.developer-log-panel.hidden {
  display: none;
}

.developer-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid #334155;
}

.developer-log-header > div:first-child {
  display: grid;
  gap: 3px;
}

.developer-log-header strong {
  color: #f8fafc;
  font-size: 15px;
}

.developer-log-header span,
.developer-log-state,
.developer-log-files {
  color: #94a3b8;
  font-size: 12px;
}

.developer-log-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.developer-log-actions button {
  min-height: 32px;
  padding: 6px 9px;
  border-color: #475569;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 12px;
}

.developer-log-actions button:hover {
  border-color: #64748b;
  background: #334155;
}

.developer-log-state,
.developer-log-files {
  margin: 0;
  padding: 9px 16px;
}

.developer-log-state {
  border-bottom: 1px solid #1e293b;
}

.developer-log-files {
  border-top: 1px solid #334155;
}

.developer-log-files code {
  color: #bfdbfe;
}

.developer-log-output {
  margin: 0;
  overflow: auto;
  padding: 14px 16px;
  background: #020617;
  color: #d1fae5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "D2Coding", Consolas, "Malgun Gothic", monospace;
  font-size: 12px;
  line-height: 1.5;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.developer-log-output::selection {
  background: #fbbf24;
  color: #111827;
}

.candidate-archive-backdrop {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(5px);
}

.candidate-archive-backdrop.hidden {
  display: none;
}

.publish-approval-backdrop {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(6px);
}

.publish-approval-backdrop.hidden {
  display: none;
}

.publish-approval-modal {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1240px, 100%);
  min-width: 0;
  max-width: 100%;
  height: min(880px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 30px 100px rgba(15, 23, 42, 0.38);
}

.publish-approval-header,
.publish-approval-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
}

.publish-approval-header {
  border-bottom: 1px solid var(--border);
}

.publish-approval-header > div,
.publish-approval-footer > p {
  min-width: 0;
}

.publish-approval-header h2 {
  margin: 3px 0 6px;
  font-size: 24px;
}

.publish-approval-header p,
.publish-approval-footer p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.55;
}

.publish-approval-eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.publish-approval-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.publish-preview-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e5e7eb;
}

.publish-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
}

.publish-zoom-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.publish-zoom-group button {
  min-width: 38px;
  min-height: 36px;
  padding: 7px 10px;
  border-color: #cbd5e1;
  background: #ffffff;
  font-size: 13px;
}

.publish-zoom-group:first-child button {
  font-size: 18px;
  line-height: 1;
}

.publish-zoom-group strong {
  min-width: 108px;
  color: #334155;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}

.publish-preview-canvas {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: #e5e7eb;
  scrollbar-gutter: stable;
  touch-action: none;
  user-select: none;
}

.publish-preview-canvas.can-pan,
.publish-preview-canvas.can-pan img {
  cursor: grab;
}

.publish-preview-canvas.panning,
.publish-preview-canvas.panning img {
  cursor: grabbing;
}

.publish-preview-canvas img {
  display: block;
  max-width: none;
  height: auto;
  margin: 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18);
  cursor: zoom-in;
}

.publish-preview-canvas img.zoomed {
  cursor: zoom-out;
}

.publish-preview-canvas img.hidden {
  display: none;
}

.publish-preview-placeholder {
  box-sizing: border-box;
  width: min(460px, calc(100% - 30px));
  margin: max(30px, 16vh) auto 30px;
  padding: 34px;
  border: 1px dashed #94a3b8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted-strong);
  line-height: 1.6;
  text-align: center;
}

.publish-preview-placeholder.hidden {
  display: none;
}

.publish-approval-details {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  overflow: auto;
  padding: 20px;
  border-left: 1px solid var(--border);
  background: var(--surface);
}

.publish-approval-details div {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.publish-approval-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.publish-approval-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--foreground);
  font-size: 13px;
  line-height: 1.5;
}

.publish-approval-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.publish-approval-footer > div {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.candidate-archive-modal {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  width: min(1180px, 100%);
  min-width: 0;
  max-width: 100%;
  height: min(820px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.3);
}

.candidate-archive-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--border);
}

.candidate-archive-header > div {
  min-width: 0;
}

.candidate-archive-header > button {
  flex: 0 0 auto;
}

.candidate-archive-header h2 {
  margin: 3px 0 5px;
  font-size: 24px;
}

.candidate-archive-header p,
.candidate-archive-footer p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.5;
}

.candidate-archive-eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.candidate-archive-controls {
  display: grid;
  grid-template-columns: 160px 190px minmax(240px, 1fr) auto;
  min-width: 0;
  align-items: end;
  gap: 12px;
  padding: 16px 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.candidate-archive-controls label {
  gap: 5px;
  color: var(--muted-strong);
  font-size: 12px;
}

.candidate-archive-controls select,
.candidate-archive-controls input {
  min-height: 42px;
  padding: 9px 11px;
  font-size: 14px;
}

.candidate-archive-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 12px 26px;
  border-bottom: 1px solid var(--border);
}

.candidate-archive-summary strong {
  white-space: nowrap;
  font-size: 14px;
}

.candidate-archive-summary span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.candidate-archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  min-width: 0;
  min-height: 0;
  gap: 12px;
  overflow: auto;
  padding: 18px 26px 24px;
  scrollbar-gutter: stable;
}

.candidate-archive-card {
  box-sizing: border-box;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.candidate-archive-card:hover,
.candidate-archive-card:focus-visible {
  border-color: #93c5fd;
  outline: none;
  box-shadow: 0 8px 22px rgba(49, 130, 246, 0.12);
  transform: translateY(-1px);
}

.candidate-archive-card.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(49, 130, 246, 0.14);
}

.candidate-archive-card-head,
.candidate-archive-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.candidate-archive-card-head {
  justify-content: space-between;
}

.candidate-hot-score {
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
}

.candidate-archive-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.candidate-archive-meta {
  color: var(--muted);
  font-size: 12px;
}

.candidate-archive-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.candidate-archive-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: var(--border-strong);
}

.candidate-archive-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.candidate-archive-card a {
  justify-self: start;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.candidate-archive-card a:hover {
  text-decoration: underline;
}

.candidate-archive-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 30px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.candidate-archive-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 16px 26px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.candidate-archive-footer p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-archive-footer button {
  flex: 0 0 auto;
  max-width: 100%;
}

.jungdo-editor {
  display: grid;
  overflow: hidden;
}

.editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 30px 20px;
  border-bottom: 1px solid var(--border);
}

.editor-heading h1 {
  margin: 8px 0 4px;
  font-size: 28px;
  letter-spacing: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.badge.muted {
  background: #f5f5f5;
  color: var(--muted-strong);
}

.target-url {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.form-stack {
  display: grid;
  gap: 18px;
  padding: 24px 30px 30px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(240px, 1.3fr);
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  color: var(--foreground);
  background: var(--card);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.14);
}

input[readonly] {
  background: var(--surface);
  color: var(--muted-strong);
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

.title-input {
  min-height: 48px;
  font-size: 17px;
  font-weight: 600;
}

.body-input {
  min-height: 520px;
}

.prompt-meta-panel,
.service-meta-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
}

.prompt-meta-panel.hidden,
.service-meta-panel.hidden {
  display: none;
}

.prompt-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  padding: 16px;
}

.prompt-panel.hidden {
  display: none;
}

.prompt-panel-header {
  display: grid;
  gap: 4px;
}

.prompt-panel-header strong {
  color: #1d4ed8;
  font-size: 15px;
}

.prompt-panel-header span {
  color: var(--muted-strong);
  font-size: 13px;
}

.prompt-panel pre {
  margin: 0;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "D2Coding", Consolas, "Malgun Gothic", monospace;
  font-size: 14px;
  line-height: 1.55;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 30px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .left-pane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-list-box,
  .custom-box {
    grid-column: 1 / -1;
  }

  .draft-list-box {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .publish-approval-content {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .candidate-archive-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .candidate-archive-search {
    grid-column: 1 / 3;
  }

  .candidate-archive-controls > button {
    grid-column: 3;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .site-nav {
    align-items: stretch;
    height: auto;
    padding: 14px 18px;
    flex-direction: column;
  }

  .nav-links {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-actions {
    width: 100%;
  }

  .developer-log-button,
  .candidate-archive-button {
    flex: 1;
  }

  .workspace {
    padding: 18px;
  }

  .left-pane,
  .form-row,
  .editor-actions {
    grid-template-columns: 1fr;
  }

  .editor-heading {
    flex-direction: column;
    padding: 22px;
  }

  .form-stack,
  .editor-actions {
    padding-left: 22px;
    padding-right: 22px;
  }

  .editor-heading h1 {
    font-size: 24px;
  }

  .developer-log-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }

  .developer-log-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .candidate-archive-backdrop {
    padding: 0;
  }

  .publish-approval-backdrop {
    padding: 0;
  }

  .candidate-archive-modal {
    width: 100%;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .publish-approval-modal {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .publish-approval-header,
  .publish-approval-footer {
    padding: 16px 18px;
  }

  .publish-approval-content {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: auto;
  }

  .publish-preview-frame {
    min-height: 52vh;
    overflow: hidden;
  }

  .publish-preview-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 9px 12px;
  }

  .publish-zoom-group {
    justify-content: center;
  }

  .publish-zoom-group button {
    flex: 1;
  }

  .publish-preview-canvas {
    min-height: 42vh;
    padding: 12px;
  }

  .publish-approval-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .publish-approval-details div {
    min-width: 0;
    padding: 10px;
  }

  .publish-approval-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .publish-approval-footer > div,
  .publish-approval-footer button {
    width: 100%;
  }

  .candidate-archive-header,
  .candidate-archive-controls,
  .candidate-archive-summary,
  .candidate-archive-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .candidate-archive-header p,
  .candidate-archive-summary span {
    display: none;
  }

  .candidate-archive-controls {
    grid-template-columns: 1fr 1fr;
  }

  .candidate-archive-search {
    grid-column: 1 / -1;
  }

  .candidate-archive-controls > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .candidate-archive-list {
    grid-template-columns: 1fr;
    padding: 14px 18px 20px;
  }

  .candidate-archive-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .candidate-archive-footer p {
    white-space: normal;
  }

  .candidate-archive-footer button {
    width: 100%;
  }
}
/* 로그인과 계정 세션 */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(49, 130, 246, 0.12), transparent 34%),
    radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.1), transparent 32%),
    linear-gradient(145deg, #f7f9fc 0%, #eaf0f8 100%);
}

.auth-shell {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 72px);
}

.auth-card {
  box-sizing: border-box;
  width: min(460px, 100%);
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 30px 80px rgba(30, 58, 95, 0.14),
    0 2px 8px rgba(30, 58, 95, 0.05);
  backdrop-filter: blur(12px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8edf4;
}

.auth-brand .brand-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 19px;
  box-shadow: 0 8px 20px rgba(49, 130, 246, 0.24);
}

.auth-brand strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.auth-brand p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 19px;
}

.auth-form label {
  gap: 9px;
  color: #1e293b;
  font-size: 13px;
}

.auth-form input:not([type="checkbox"]) {
  min-height: 50px;
  padding: 13px 15px;
  border-color: #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  font-size: 15px;
}

.auth-form input:not([type="checkbox"])::placeholder {
  color: #94a3b8;
}

.auth-form .brand-button {
  min-height: 50px;
  margin-top: 3px;
  border-radius: 12px;
  font-size: 15px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 1px 0;
  font-weight: 500;
  cursor: pointer;
}

.auth-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.auth-status {
  min-height: 22px;
  margin: 24px 0 14px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f5f9ff;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.auth-card > .helper-note {
  padding: 14px 2px 0;
  border-top: 1px solid #edf0f4;
  color: #64748b;
  line-height: 1.6;
}

.account-email {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .auth-shell {
    place-items: start center;
    padding: 20px 16px;
  }

  .auth-card {
    margin-top: max(0px, 5vh);
    padding: 26px 22px;
    border-radius: 20px;
  }

  .auth-brand {
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .auth-brand .brand-mark {
    width: 40px;
    height: 40px;
  }

  .auth-brand strong {
    font-size: 1.1rem;
  }
}
