:root {
  color-scheme: light;
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --text: #122033;
  --muted: #62748a;
  --border: #d9e2ec;
  --accent: #2563eb;
  --accent-2: #0f766e;
  --danger: #b91c1c;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body[data-theme="pearl"] { --bg: #f8fafc; --surface: #ffffff; --surface-2: #eef2f7; --text: #111827; --muted: #64748b; --border: #d8dee9; --accent: #2563eb; --accent-2: #0f766e; }
body[data-theme="mint"] { --bg: #f4fbf7; --surface: #ffffff; --surface-2: #e8f6ef; --text: #13231d; --muted: #597268; --border: #cfe8dc; --accent: #0f766e; --accent-2: #7c3aed; }
body[data-theme="sky"] { --bg: #f3f9ff; --surface: #ffffff; --surface-2: #e5f2ff; --text: #102033; --muted: #5c7088; --border: #cfe1f5; --accent: #0369a1; --accent-2: #be123c; }
body[data-theme="rose"] { --bg: #fff7f8; --surface: #ffffff; --surface-2: #ffecef; --text: #2a1720; --muted: #7a6070; --border: #f5d1d9; --accent: #be123c; --accent-2: #0f766e; }
body[data-theme="amber"] { --bg: #fffaf0; --surface: #ffffff; --surface-2: #fff2cc; --text: #241c0f; --muted: #78684d; --border: #efd89a; --accent: #b45309; --accent-2: #1d4ed8; }
body[data-theme="lavender"] { --bg: #faf7ff; --surface: #ffffff; --surface-2: #f0e9ff; --text: #1f1b2e; --muted: #6b617c; --border: #ddd0f8; --accent: #6d28d9; --accent-2: #0f766e; }
body[data-theme="sage"] { --bg: #f8fbf4; --surface: #ffffff; --surface-2: #edf5e7; --text: #1b2418; --muted: #65725e; --border: #d7e5cc; --accent: #4d7c0f; --accent-2: #1d4ed8; }
body[data-theme="coral"] { --bg: #fff8f5; --surface: #ffffff; --surface-2: #ffede6; --text: #2a1813; --muted: #80665c; --border: #f2d0c4; --accent: #c2410c; --accent-2: #0e7490; }
body[data-theme="ocean"] { --bg: #f2fbfb; --surface: #ffffff; --surface-2: #e0f5f5; --text: #102426; --muted: #5a7378; --border: #c4e3e6; --accent: #0e7490; --accent-2: #b45309; }
body[data-theme="graphite"] { --bg: #f6f7f9; --surface: #ffffff; --surface-2: #eceff3; --text: #181f2a; --muted: #606b7a; --border: #d5dbe4; --accent: #334155; --accent-2: #0f766e; }
body[data-theme="lemon"] { --bg: #fffef2; --surface: #ffffff; --surface-2: #fff9bf; --text: #24220d; --muted: #777044; --border: #ede58f; --accent: #847000; --accent-2: #2563eb; }
body[data-theme="teal"] { --bg: #f2fbf9; --surface: #ffffff; --surface-2: #dff6f1; --text: #102521; --muted: #5b746f; --border: #c1e6de; --accent: #0f766e; --accent-2: #c026d3; }
body[data-theme="blush"] { --bg: #fff8fb; --surface: #ffffff; --surface-2: #ffeef7; --text: #291822; --muted: #7a6170; --border: #f3d3e2; --accent: #db2777; --accent-2: #2563eb; }

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  font-size: 14px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.nav a,
.nav button,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav a:hover,
.button:hover,
button:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.button.primary,
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.secondary {
  background: var(--surface-2);
}

.icon-button {
  width: 38px;
  padding: 0;
}

.theme-select,
select,
input,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

input,
textarea,
select {
  padding: 9px 10px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.theme-select {
  width: 138px;
  padding: 8px 10px;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.page-head {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.page-subtitle {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card.pad {
  padding: 18px;
}

.metric {
  display: grid;
  gap: 6px;
  min-height: 106px;
}

.metric strong {
  font-size: 30px;
  line-height: 1;
}

.metric span,
.muted {
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 800;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.badge.ok {
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--border));
  color: var(--accent-2);
}

.badge.warn {
  border-color: #f4c766;
  color: #92400e;
}

.profile-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.empty-avatar {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.project-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.score-layout {
  align-items: start;
}

.teacher-score-card h2 {
  margin: 12px 0 8px;
}

.score-step {
  display: grid;
  gap: 14px;
}

.score-step[hidden] {
  display: none;
}

.participant-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.participant-type-card {
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 92px;
  padding: 14px;
  text-align: left;
  background: var(--surface-2);
}

.participant-type-card {
  display: grid;
  gap: 6px;
}

.participant-type-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.participant-type-card.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}

.participant-pane[hidden] {
  display: none;
}

.score-selected-teacher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.score-selected-teacher strong {
  overflow-wrap: anywhere;
}

.score-table-shell {
  display: grid;
  gap: 14px;
}

.score-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-tab {
  min-height: 36px;
  padding: 0 12px;
  border-color: var(--border);
  background: var(--surface-2);
}

.score-tab.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.score-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.score-panel[hidden] {
  display: none;
}

.score-panel-head h3 {
  margin: 0;
}

.score-panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.score-option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.score-option {
  position: relative;
  display: grid;
  min-height: 0;
  cursor: pointer;
}

.score-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.score-option span {
  display: grid;
  grid-template-columns: minmax(120px, .28fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.score-option small {
  color: var(--muted);
  line-height: 1.35;
}

.score-option input:checked + span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}

.score-form-actions {
  justify-content: space-between;
}

.score-result {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 800;
}

.score-result.ok {
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--border));
  color: var(--accent-2);
}

.score-result.error {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
  color: var(--danger);
}

.score-result.warning {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #92400e;
}

.score-warning-icon {
  display: inline-grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
}

.sidebar a {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 800;
}

.qr-img {
  width: 98px;
  height: 98px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.message-box {
  width: min(720px, 100%);
  margin: 60px auto;
}

.detail {
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset:disabled {
  opacity: .62;
}

.registration-alert {
  margin-bottom: 16px;
}

.registration-panel {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.registration-panel[hidden] {
  display: none;
}

.registration-selected {
  display: grid;
  gap: 4px;
}

.registration-survey h2,
.registration-kvkk label {
  margin: 0 0 10px;
}

.registration-kvkk {
  display: grid;
  gap: 12px;
}

.section-title-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title-row h2 {
  margin: 0;
}

.evaluation-grid,
.project-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-score-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.mini-score-card h3 {
  margin: 0;
  font-size: 16px;
}

.mini-score-card p {
  margin: 0;
}

.project-score-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.inline-average {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.student-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin: 8px 0;
}

.student-line small {
  color: var(--muted);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.analytics-card h2 {
  margin-top: 0;
}

.analytics-bars {
  display: grid;
  gap: 10px;
}

.analytics-row {
  display: grid;
  gap: 6px;
}

.analytics-row-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
}

.analytics-row-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-row-head strong {
  color: var(--accent);
}

.analytics-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.analytics-bar i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .nav {
    justify-content: flex-start;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .analytics-grid,
  .form-grid,
  .participant-type-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-select {
    width: 100%;
  }

  .score-selected-teacher,
  .score-option-grid {
    grid-template-columns: 1fr;
  }

  .score-option span {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .score-form-actions {
    justify-content: flex-start;
  }

  .section-title-row,
  .project-score-head {
    flex-direction: column;
  }

  .evaluation-grid,
  .project-score-grid {
    grid-template-columns: 1fr;
  }
}

/* === Sertifika Atölyesi ==================================================
   Koyu, odaklı bir sahne üzerinde kağıt; çevresinde zarif kontrol panelleri.
   Altın vurgular sertifikanın kendisindeki paletten ödünç alınır. */

.designer [hidden],
.designer-toast[hidden] {
  display: none !important;
}

.designer {
  --atelier-ink: #12161e;
  --atelier-ink-2: #0c1016;
  --atelier-line: rgba(255, 255, 255, 0.12);
  --atelier-text: #e9ecf2;
  --atelier-muted: #9aa4b5;
  --atelier-gold: #b08a34;
  --atelier-gold-soft: #d8b768;
  --sel: #3084ff;
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) 304px;
  gap: 16px;
  align-items: start;
}

.designer-eyebrow {
  margin: 0 0 2px;
  color: var(--atelier-gold, #b08a34);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.designer-head .page-subtitle {
  max-width: 560px;
}

.tool-panel {
  display: grid;
  gap: 0;
  align-content: start;
}

.panel-section {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.panel-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.panel-label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-label::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--atelier-gold);
  border-radius: 2px;
}

.tool-panel .button,
.tool-panel button {
  width: 100%;
}

.ghost-button {
  background: transparent;
  border-style: dashed;
  font-weight: 600;
}

/* Tema kartları: her tema küçük bir "kağıt" olarak önizlenir */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-chip {
  display: grid;
  gap: 6px;
  min-height: 0;
  padding: 7px;
  border-radius: 10px;
  text-align: center;
}

.theme-chip .chip-paper {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1123 / 794;
  border-radius: 4px;
}

.theme-chip .chip-dot {
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 17%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0.9;
}

.theme-chip .chip-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--muted);
}

.theme-chip.active {
  border-color: var(--atelier-gold);
  box-shadow: 0 0 0 1px var(--atelier-gold), 0 8px 18px rgba(176, 138, 52, 0.18);
}

.theme-chip.active .chip-name {
  color: var(--text);
}

/* Öğe ekleme ızgarası */
.add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.add-grid button {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 56px;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
}

.add-grid .add-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--atelier-gold) 14%, transparent);
  color: var(--atelier-gold);
  font-size: 12px;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
}

/* Sahne: koyu atölye masası */
.stage {
  display: grid;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 50% -10%, rgba(176, 138, 52, 0.10), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.4px),
    linear-gradient(180deg, var(--atelier-ink), var(--atelier-ink-2));
  background-size: auto, 22px 22px, auto;
  border: 1px solid rgba(12, 16, 22, 0.9);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 44px rgba(10, 14, 22, 0.28);
}

.stage-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--atelier-line);
}

.zoom-cluster,
.stage-tools {
  display: flex;
  gap: 6px;
  align-items: center;
}

.stage-toolbar button {
  min-height: 30px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--atelier-line);
  border-radius: 7px;
  color: var(--atelier-text);
  font-size: 12.5px;
  font-weight: 600;
}

.stage-toolbar button:hover {
  border-color: color-mix(in srgb, var(--atelier-gold) 70%, transparent);
}

.stage-toolbar button.active {
  background: color-mix(in srgb, var(--atelier-gold) 24%, transparent);
  border-color: var(--atelier-gold);
  color: #f4e9cf;
}

.zoom-level {
  min-width: 44px;
  color: var(--atelier-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.stage-dims {
  color: var(--atelier-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.canvas-wrap {
  overflow: auto;
  padding: 30px;
}

.stage-hint {
  margin: 0;
  padding: 9px 14px 11px;
  border-top: 1px solid var(--atelier-line);
  color: var(--atelier-muted);
  font-size: 11.5px;
  text-align: center;
  letter-spacing: 0.02em;
}

/* Kağıt */
.cert-canvas {
  position: relative;
  width: min(100%, 1123px);
  aspect-ratio: 1123 / 794;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  outline: 1px solid rgba(216, 183, 104, 0.35);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 14px 34px rgba(0, 0, 0, 0.45),
    0 44px 90px rgba(0, 0, 0, 0.5);
}

.cert-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

/* WYSIWYG tema çerçevesi: PDF vektör çiziminin SVG ikizi JS ile basılır */
.cert-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cert-frame svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Hizalama kılavuzları */
.snap-guide {
  position: absolute;
  z-index: 40;
  pointer-events: none;
  background: #e83e9c;
}

.snap-guide-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
}

.snap-guide-h {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  transform: translateY(-0.5px);
}

.field-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted, #64748b);
}

.cert-element {
  position: absolute;
  display: flex;
  min-width: 36px;
  min-height: 28px;
  align-items: center;
  padding: 4px;
  border: 1px dashed transparent;
  color: #0f172a;
  cursor: move;
  user-select: none;
}

.cert-element:hover {
  border-color: color-mix(in srgb, var(--sel, #3084ff) 55%, transparent);
}

.cert-element.selected {
  border: 1px solid var(--sel, #3084ff);
  background: color-mix(in srgb, var(--sel, #3084ff) 7%, transparent);
}

.cert-canvas.previewing .cert-element {
  border: 0 !important;
  background: transparent !important;
  cursor: default;
}

.cert-element img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.cert-element.qr {
  justify-content: center;
  background-color: #fff;
  padding: 0;
}

.cert-element.qr img {
  object-fit: contain;
}

.resize-handle {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  background: var(--sel, #3084ff);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: nwse-resize;
}

.cert-element.selected .resize-handle {
  display: block;
}

.cert-canvas.previewing .resize-handle {
  display: none !important;
}

/* Özellik paneli */
.props-empty {
  margin: 0;
  padding: 14px 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.props-group {
  display: grid;
  gap: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field-row.four {
  grid-template-columns: repeat(4, 1fr);
}

.field-row .field input {
  width: 100%;
  min-width: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.segmented button {
  min-height: 34px;
  border: 0;
  border-radius: 0;
  border-left: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
}

.segmented button:first-child {
  border-left: 0;
}

.segmented button.active {
  background: color-mix(in srgb, var(--atelier-gold) 18%, var(--surface));
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--atelier-gold);
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.props-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.props-actions button {
  min-height: 34px;
  font-size: 12.5px;
}

.props-actions .danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
}

/* Katmanlar */
.layer-list {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
}

.layer-item {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.layer-item:hover {
  border-color: color-mix(in srgb, var(--atelier-gold) 50%, var(--border));
}

.layer-item.active {
  border-color: var(--atelier-gold);
  background: color-mix(in srgb, var(--atelier-gold) 9%, var(--surface));
}

.layer-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--atelier-gold) 13%, transparent);
  color: var(--atelier-gold);
  font-size: 11px;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
}

.layer-name {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Kaydet düğmesinde bekleyen değişiklik noktası */
button.is-dirty::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  background: #f4c15d;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(244, 193, 93, 0.25);
}

/* Bildirim */
.designer-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 80;
  padding: 11px 20px 11px 16px;
  border-left: 3px solid var(--atelier-gold-soft);
  border-radius: 10px;
  background: #141923;
  color: #edf0f6;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(8, 12, 20, 0.45);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.designer-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.designer-toast.error {
  border-left-color: #e0566d;
}

@media (max-width: 1280px) {
  .designer {
    grid-template-columns: 240px minmax(0, 1fr) 264px;
  }
}

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

  .stage {
    order: -1;
  }
}

/* Premium display typography — shared with the landing page */
.brand,
.page-title,
.metric strong,
h1, h2, h3 {
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}
