@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --brand: #188848;
  --brand-dark: #136C39;
  --brand-darker: #0F522C;
  --brand-light: #5CBC85;
  --brand-100: #C9E3D4;
  --brand-50: #EBF4EF;
  --brand-25: #F7FAF8;

  --ink: #121926;
  --ink-2: #202939;
  --ink-3: #364152;
  --ink-4: #4B5565;
  --muted: #697586;
  --muted-2: #9AA4B2;
  --muted-3: #CDD5DF;

  --line: #EEF2F6;
  --line-2: #F3F5F8;
  --line-3: #F8FAFC;

  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #F3F5F8;
  --bg: #F8FAFC;

  --success: #12B76A;
  --success-dark: #039855;
  --success-50: #ECFDF3;
  --danger: #F04438;
  --danger-dark: #B42318;
  --danger-50: #FEF3F2;
  --warn: #B45309;
  --warn-50: #FFFBEB;
  --warn-line: #FDE68A;
  --info: #0E7490;
  --info-50: #ECFEFF;
  --info-line: #A5F3FC;

  --focus: 0 0 0 3px rgba(24, 136, 72, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
/* Üstte açılan ayar bölümü sayfayı aşağı itmesin (tarayıcının kaydırma sabitlemesi). */
html { -webkit-text-size-adjust: 100%; overflow-anchor: none; }
body {
  margin: 0;
  font: 14px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, [role="button"], summary, label[for], select { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.btn:disabled { opacity: .5; box-shadow: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.icon { width: 1em; height: 1em; flex-shrink: 0; stroke: currentColor; fill: none; }
/* hidden her zaman gizlesin: yazar kuralları (ör. .btn { display: inline-flex }) varsayılan display:none'ı eziyor. */
[hidden] { display: none !important; }

.topnav {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.topnav__inner { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; }
.topnav__tabs {
  display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.topnav__tabs::-webkit-scrollbar { display: none; }
.topnav__tab {
  position: relative; display: flex; align-items: center; gap: 6px;
  padding: 0 12px; height: 56px; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: var(--ink-4);
}
.topnav__tab:hover { color: var(--ink); }
.topnav__tab[aria-current="page"] { color: var(--brand); }
.topnav__tab[aria-current="page"]::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2.5px;
  background: var(--brand); border-radius: 3px 3px 0 0;
}

.page { width: 100%; max-width: 1400px; margin: 0 auto; padding: 24px 16px 48px; }
.page--narrow { max-width: 860px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title { font-weight: 800; font-size: 25px; letter-spacing: -0.022em; line-height: 1.2; }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brand-dark); margin-bottom: 14px; }

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

.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }

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

.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.grow { flex: 1; min-width: 0; }

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

.small { font-size: 12.5px; }

.bold { font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }

.card__body { padding: 20px; }

.section-label {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 14px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-dark);
}
.section-label--rule { border-top: 1px solid var(--line-2); padding-top: 16px; margin-top: 20px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; white-space: nowrap;
  font-weight: 700; font-size: 11.5px; padding: 4px 10px; line-height: 1.2;
}
.pill .icon { width: 11px; height: 11px; }
.pill--sm { font-size: 11px; padding: 2px 8px; }

.pill--neutral { background: var(--surface-3); color: var(--ink-4); }
.pill--success { background: var(--success-50); color: var(--success-dark); }

.pill--warn { background: var(--warn-50); color: var(--warn); }
.pill--brand { background: var(--brand-50); color: var(--brand-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .15s, box-shadow .15s;
}
.btn .icon { width: 14px; height: 14px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--secondary { background: var(--surface); color: var(--ink-3); border-color: var(--line); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--brand-dark); }
.btn--ghost:hover { background: var(--brand-25); }
.btn--danger { background: var(--surface); color: var(--danger-dark); border-color: #FECDCA; }
.btn--danger:hover { background: var(--danger-50); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.btn--xs { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 8px; }
.btn--icon { width: 34px; height: 34px; padding: 0; border-radius: 10px; }
.btn--icon .icon { width: 16px; height: 16px; }
.btn[aria-expanded="true"] { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-dark); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.field label, .label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.label .req { color: var(--danger); }
.label .opt { font-weight: 400; color: var(--muted-2); margin-left: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--focus); }
.input[readonly] { background: var(--surface-2); color: var(--muted); }
.input--sm { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.textarea { resize: vertical; min-height: 110px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23697586' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }

.check { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.check input { accent-color: var(--brand); }

.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; border: 1px solid; }
.flash .icon { width: 16px; height: 16px; margin-top: 1px; }
.flash--ok { background: var(--success-50); color: var(--success-dark); border-color: #A6F4C5; }
.flash--error { background: var(--danger-50); color: var(--danger-dark); border-color: #FECDCA; }
.flash--info { background: var(--info-50); color: var(--info); border-color: var(--info-line); }
.flash--warn { background: var(--warn-50); color: var(--warn); border-color: var(--warn-line); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-2); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2);
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-3); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }

.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .icon { width: 28px; height: 28px; margin: 0 auto 10px; color: var(--muted-3); }
.empty__title { font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }

.picker { position: relative; }
.picker__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto;
}
.picker__msg { padding: 12px; font-size: 13px; color: var(--muted); }
.picker__msg--error { color: var(--danger-dark); }

.picker__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; text-align: left; }
.picker__opt:hover, .picker__opt[aria-selected="true"] { background: var(--surface-2); }
.picker__opt .icon { width: 14px; height: 14px; color: var(--brand); }
.picker__opt { cursor: pointer; }
.picker__name { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__sub { display: block; font-size: 11.5px; color: var(--muted-2); }
.picker__opt .grow { min-width: 0; }
.picker__opt .icon + .grow + .icon { color: var(--muted-2); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--muted); }
.icon-btn:hover { background: var(--surface-3); color: var(--ink-3); }
.icon-btn .icon { width: 14px; height: 14px; }


.input--xs { padding: 6px 9px; font-size: 12.5px; border-radius: 8px; }
.btn--plain { background: var(--surface); color: var(--muted); }
.btn--plain:hover { background: var(--surface-3); }
.field { min-width: 0; }
.settings-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); margin-bottom: 24px; }
.color-swatch { width: 42px; height: 42px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; flex: none; }

.flash-slot .flash { margin: 10px 0 12px; padding: 9px 12px; font-size: 12.5px; }
section[id], .card[id], .sheet [id] { scroll-margin-top: 72px; }

.public { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 32px 16px; background: var(--bg); }
.public__card { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }

.big-status__icon { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.big-status__icon .icon { width: 28px; height: 28px; }
.big-status__label { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }

@media print {
  .topnav, .no-print { display: none !important; }
  body { background: #fff; }
  .card { border-color: #ddd; }
}

.select--sm { padding: 6px 30px 6px 10px; font-size: 12.5px; border-radius: 9px; background-position: right 8px center; background-size: 14px; }
.icon-btn--xs { width: 26px; height: 24px; border-radius: 7px; }
.icon-btn:disabled { opacity: .35; cursor: default; }

.pkg-steps { list-style: none; margin: 0; padding: 0; counter-reset: pkg-step; }
.pkg-steps li { counter-increment: pkg-step; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line-2); }
.pkg-steps li:first-child { border-top: 0; padding-top: 4px; }
.pkg-steps li::before { content: counter(pkg-step); flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--brand-25); color: var(--brand-dark); font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 1px solid var(--brand-100); }
.pkg-steps__body { flex: 1; min-width: 220px; }
.pkg-steps__body p { margin: 3px 0 0; line-height: 1.5; }
.pkg-marker { width: 190px; font-weight: 700; color: var(--ink-3); }

.pkg-table td { vertical-align: middle; }
.pkg-table td.mono { white-space: nowrap; }
.pkg-table__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pkg-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; line-height: 1.2; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }

.pkg-choice { border: 0; margin: 0 0 14px; padding: 0; }
.pkg-choice legend { padding: 0; }
.pkg-choice__opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; cursor: pointer; }
.pkg-choice__opt:has(input:checked) { border-color: var(--brand); background: var(--brand-25); }
.pkg-choice__opt input { margin-top: 3px; accent-color: var(--brand); }
.pkg-choice__opt > span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pkg-choice__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 8px; }
.pkg-choice__grid .pkg-choice__opt { margin-top: 0; }

.pkg-preview { overflow: hidden; }
.pkg-preview__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.pkg-preview [data-paketler] { padding: 0 20px 4px; background: #fff; }

.pkg-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.pkg-edit__preview { position: sticky; top: 16px; }
.pkg-preview__single { padding: 0 14px 4px !important; }
@media (max-width: 1100px) { .pkg-edit { grid-template-columns: minmax(0, 1fr); } .pkg-edit__preview { position: static; } }

.pkg-items { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line-2); container-type: inline-size; }
.pkg-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "order info edit del";
  align-items: center; gap: 8px 12px; padding: 10px 20px; border-bottom: 1px solid var(--line-3);
}
.pkg-item__order { grid-area: order; display: flex; flex-direction: column; gap: 2px; }
.pkg-item__info { grid-area: info; min-width: 0; }
.pkg-item__del { grid-area: del; }
.pkg-item__info .bold { font-size: 13.5px; }
.pkg-item__warn { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--danger-dark); font-weight: 600; }
.pkg-item__warn .icon { width: 12px; height: 12px; }
.pkg-item__edit { grid-area: edit; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
/* Sabit genişlik şart: %100 olursa sütun en uzun seçeneğe göre daralır, kutu taşar ve "Kaydet" alta kayar. */
.pkg-item__edit .select { flex: none; width: 210px; }
.pkg-item__qty { display: inline-flex; align-items: center; gap: 6px; }
.pkg-item__qty .input { width: 64px; text-align: center; }
@container (max-width: 720px) {
  .pkg-item { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "order info del" "order edit edit"; }
  .pkg-item__edit { justify-content: flex-start; flex-wrap: wrap; }
  .pkg-item__edit .select { flex: 1 1 200px; width: auto; max-width: 280px; }
}

.pkg-add { padding: 16px 20px 20px; background: var(--surface-2); border-top: 1px solid var(--line-2); border-radius: 0 0 16px 16px; }
.pkg-add .label { display: flex; align-items: center; gap: 6px; }
.pkg-add__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pkg-add__picker { flex: 1; min-width: 240px; }
.pkg-add__row > .select { max-width: 280px; }

.pc-preview { display: grid; gap: 18px; padding: 20px; background: #fff; }
.pc-preview__label { margin-bottom: 8px; }
.pc-preview__narrow { max-width: 480px; }
.pc-preview--empty::after { content: "Bu fiyatla kazanılacak puan yok."; display: block; font-size: 13px; color: var(--muted-2); }
.pc-preview__note { padding: 0 20px 16px; margin: 0; }

.cmp-cols { margin-top: 4px; }
.cmp-col { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.cmp-col:first-child { border-top: 0; }
.cmp-tools { display: flex; gap: 4px; }
[data-rows] { counter-reset: pg-row; }
.cmp-row { position: relative; counter-increment: pg-row; border: 1px solid var(--line); border-left: 4px solid var(--brand-100); border-radius: 14px; padding: 16px 14px 14px 16px; margin-top: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cmp-row:nth-child(even) { background: var(--brand-25); border-left-color: var(--brand-light); }
.cmp-row::before { content: counter(pg-row); position: absolute; top: -10px; left: 12px; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--brand-dark); color: #fff; font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }
.cmp-row:focus-within { border-color: var(--brand-light); border-left-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.cmp-row__head { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.cmp-row__head:has(.cmp-row__thumb[hidden]) { grid-template-columns: minmax(0, 1fr) auto; }
.cmp-row__thumb { width: 84px; height: 72px; object-fit: contain; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.cmp-row__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cmp-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-bottom: 16px; }
.cmp-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.cmp-cell { display: flex; flex-direction: column; gap: 4px; }
.cmp-cell__label { font-size: 11px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .02em; }
.cmp-cell .textarea { min-height: 52px; font-size: 13px; }
.cmp-picker { position: relative; }
.cmp-picker__list { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow: auto; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(16, 24, 40, .12); }
.cmp-picker__opt { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 13px; }
.cmp-picker__opt:hover, .cmp-picker__opt:focus-visible { background: var(--brand-25); }
.cmp-picker__msg { padding: 8px 10px; font-size: 13px; color: var(--muted-2); }
.cmp-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 0 4px; background: linear-gradient(to bottom, transparent, var(--bg) 40%); }
.cmp-preview { padding: 16px 20px 4px; background: #fff; }
@container (max-width: 620px) {
  .cmp-col { grid-template-columns: 1fr 1fr; }
  .cmp-col > [data-col-label] { grid-column: 1 / -1; }
}
.empty .btn .icon { width: 16px; height: 16px; margin: 0; color: currentColor; opacity: 1; }

.tip-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px -4px 0; border-bottom: 1px solid var(--line-2); }
.tip-tabs__tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tip-tabs__tab:hover { color: var(--ink-3); }
.tip-tabs__tab[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--brand); }
.tip-tabs__n { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--surface-3); color: var(--ink-4); font-size: 11px; text-align: center; }
.tip-table td { vertical-align: top; }
.tip-target { display: flex; align-items: center; gap: 7px; max-width: 280px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.tip-target .icon { flex: none; width: 14px; height: 14px; color: var(--muted-2); }
.tip-target--category .icon { color: var(--brand); }
.tip-target__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-target__more { flex: none; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--ink-4); font-size: 11px; font-weight: 700; }
.tip-table__text a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--ink-3); text-decoration: none; line-height: 1.5; }
.tip-table__text a:hover { color: var(--brand-dark); text-decoration: underline; }
.tip-table__ai { display: inline-flex; margin-right: 6px; vertical-align: -2px; color: var(--brand); }
.tip-table__ai .icon { width: 14px; height: 14px; }
.tip-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 6px 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--ink-3); vertical-align: middle; transition: box-shadow .2s ease; }
.tip-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-chip .icon { flex: none; width: 13px; height: 13px; color: var(--muted); }
.tip-chip--category { background: var(--brand-25); border-color: var(--brand-100); color: var(--brand-darker); }
.tip-chip--category .icon { color: var(--brand); }
.tip-chip--flash { box-shadow: 0 0 0 3px var(--brand-100); }
.tip-table .tip-chip { padding-right: 9px; }
.tip-chip__x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.tip-chip__x:hover { background: var(--surface-3); color: var(--ink-3); }
.tip-chip__x .icon { width: 12px; height: 12px; }
.tip-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-3); color: var(--ink-4); font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tip-status .icon { width: 12px; height: 12px; }
.tip-status--on { background: var(--success-50); border-color: #A6F4C5; color: var(--success-dark); }
.tip-status:hover { filter: brightness(.97); }
.tip-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.tip-views { display: flex; gap: 6px; padding: 14px 16px 0; }
.tip-views__tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none; }
.tip-views__tab .icon { width: 16px; height: 16px; }
.tip-views__tab:hover { color: var(--ink-3); }
.tip-views__tab[aria-current="page"] { border-color: var(--brand-light); background: var(--brand-50); color: var(--brand-dark); }
.tip-views__n { padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--ink-4); font-size: 11px; font-weight: 700; }
.tip-sync { display: flex; align-items: center; gap: 8px; padding: 10px 0 12px; font-size: 12.5px; color: var(--muted); }
.tip-sync .icon { width: 15px; height: 15px; flex: none; }
.tip-sync[aria-busy="true"] .icon { animation: sys-spin 1s linear infinite; }
.tip-products { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.tip-prod { border-bottom: 1px solid var(--line-2); }
.tip-prod:last-child { border-bottom: 0; }
.tip-prod.is-open { background: var(--surface-2); }
.tip-prod.is-saved { animation: tip-saved 1.2s ease-out; }
@keyframes tip-saved { from { background: var(--success-50); } to { background: transparent; } }
.tip-prod__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 16px; }
.tip-prod__img { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; object-fit: contain; color: var(--muted-3); }
.tip-prod__img .icon { width: 20px; height: 20px; }
.tip-prod__name { font-size: 13.5px; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-prod__text { margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-prod__actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.tip-prod__editor { padding: 0 16px 14px 74px; }
.tip-prod__editor .textarea { width: 100%; min-height: 84px; background: #fff; }
.tip-prod__editor .hint { margin: 6px 0 0; }
.tip-prod__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.tip-prod__active { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.tip-prod__active input { margin: 0; accent-color: var(--brand); }
.tip-prod__status { color: var(--muted); }
.tip-prod__status--ok { color: var(--success-dark); }
.tip-prod__status--error { color: var(--danger-dark); }
.tip-prod__editor[aria-busy="true"] .tip-prod__bar .btn { pointer-events: none; opacity: .6; }
@media (max-width: 720px) {
  .tip-prod__row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .tip-prod__actions { grid-column: 2 / -1; justify-content: flex-start; }
  .tip-prod__editor { padding-left: 16px; }
}
.tip-bulkbar a { display: inline-flex; align-items: center; gap: 2px; color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.tip-bulkbar a .icon { width: 14px; height: 14px; }
.tip-gen__list { max-height: 380px; overflow: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tip-gen__row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line-3); font-size: 13px; cursor: pointer; }
.tip-gen__row:first-child { border-top: 0; }
.tip-gen__row input { accent-color: var(--brand); }
.tip-gen__row:has(input:disabled) { cursor: default; color: var(--muted); }
.tip-gen__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-gen__state { max-width: 320px; text-align: right; }
.tip-gen__state a { color: var(--brand-dark); font-weight: 600; }
.tip-gen__state--ok a { color: var(--success-dark); }
.tip-gen__state--error { color: var(--danger-dark); }
.tip-gen__bar { gap: 10px; margin-top: 12px; }
.tip-targets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 32px; }
.tip-editor { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.tip-editor__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.tip-editor__text { border: 0; border-radius: 0; min-height: 130px; font-size: 14px; line-height: 1.6; box-shadow: none; }
.tip-editor__text:focus { box-shadow: inset 0 0 0 2px var(--brand-100); }
.tip-count--over { color: var(--danger-dark); font-weight: 700; }
.tip-ai { margin-top: 14px; padding: 12px; border: 1px dashed var(--brand-100); border-radius: 14px; background: var(--brand-25); }
.tip-ai__error { color: var(--danger-dark); }
.tip-ai__ok { color: var(--success-dark); }
.tip-ai__ok .btn { margin-left: 6px; }
.tip-keystate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -2px 0 16px; }
.tip-keystate .small:last-child { margin-left: auto; }
.tip-prompt__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.tip-prompt__head .label { margin-bottom: 0; }
.tip-prompt { min-height: 230px; margin-top: 6px; font-size: 13px; line-height: 1.55; }
.tip-sample { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.tip-sample__label { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.tip-selector { display: none; }
.sheet:has(input[name="placement"][value="selector"]:checked) .tip-selector { display: grid; }
.tip-aigrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.tip-aigrid__remove { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-weight: 600; color: var(--danger-dark); cursor: pointer; }
.tip-aigrid__remove input { accent-color: var(--danger); }
@media (max-width: 720px) { .tip-aigrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tip-aigrid__key { grid-column: 1 / -1; } }
.ov-todos { list-style: none; margin: 0; padding: 0; }
.ov-todo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.ov-todo:first-child { border-top: 0; padding-top: 2px; }
.ov-todo > .icon { width: 16px; height: 16px; flex: none; }
.ov-todo--warn > .icon { color: var(--warn); }
.ov-todo--info > .icon { color: var(--info); }
.ov-todo__text { flex: 1; min-width: 220px; color: var(--ink-3); line-height: 1.5; }
.ov-todo .btn .icon { width: 13px; height: 13px; }
.ov-done { display: flex; align-items: center; gap: 12px; }
.ov-done > .icon { width: 22px; height: 22px; flex: none; color: var(--success-dark); }
.ov-done > div { display: flex; flex-direction: column; gap: 2px; }
.ov-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 16px; }
.ov-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ov-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); }
.ov-card__head { display: flex; align-items: center; gap: 10px; }
.ov-card__head b { flex: 1; font-size: 15px; }
.ov-card__icon { display: flex; flex: none; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-dark); }
.ov-card__icon .icon { width: 18px; height: 18px; }
.ov-card p { margin: 0; line-height: 1.55; }
.ov-card__go { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--brand-dark); }
.ov-card__go .icon { width: 14px; height: 14px; }
.ov-script li::before { display: none; }
.site-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--brand-dark); white-space: nowrap; }
.site-link .icon { width: 12px; height: 12px; }
.tip-chip__go { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; color: var(--muted); }
.tip-chip__go:hover { background: var(--surface-3); color: var(--brand-dark); }
.tip-chip .tip-chip__go .icon { width: 12px; height: 12px; color: inherit; }
.footer-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; min-height: 300px; white-space: pre; tab-size: 2; }
.footer-preview { padding: 0 20px 20px; }
.footer-preview .pc-preview__label { margin: 6px 0 8px; }
.footer-frame { display: block; width: 100%; height: 180px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 14px; }
.footer-frame--phone { width: 390px; max-width: 100%; }
@media (max-width: 900px) { .topnav__inner { padding: 0 8px; } .topnav__tab { padding: 0 8px; gap: 5px; } }

/* Sade düzen: sayfa başında başlık + sağda ayar düğmeleri; ayar kartları pencerelerde */
.page-head { align-items: center; }
.page-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.page-actions form { display: contents; }

.marker-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 2px 3px 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--muted); }
.marker-chip__input { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 700; color: var(--ink-3); outline: none; width: auto; }

.setup-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 14px; margin-bottom: 16px; border: 1px solid var(--warn-line); border-radius: 12px; background: var(--warn-50); color: var(--warn); font-size: 13px; font-weight: 600; }
.setup-banner > .icon { width: 16px; height: 16px; flex: none; }
.setup-banner__text { flex: 1; min-width: 200px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ink-3); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.switch__track { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); transition: background .15s, border-color .15s; }
.switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .25); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { box-shadow: var(--focus); }

.file-pick { position: relative; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.file-pick input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-pick input[type="file"]:focus-visible + .btn { box-shadow: var(--focus); }
.file-pick label.btn { cursor: pointer; }
.file-pick__name { font-size: 12.5px; color: var(--muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pick__name.is-picked { color: var(--ink-3); font-weight: 600; }

.form-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.form-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 16px; margin-top: 8px; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 6px 0 0; }

details.more { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 12px; }
details.more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 700; color: var(--muted); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .icon { width: 14px; height: 14px; transition: transform .15s; }
details.more[open] > summary { margin-bottom: 14px; }
details.more[open] > summary .icon { transform: rotate(90deg); }

/* Ayar bölümü: sağ üstteki düğmeyle sayfanın üstünde açılır (app.js data-sheet) */
.sheet { margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 16px; box-shadow: var(--shadow-lg); animation: pg-sheet-in .18s ease-out; }
.sheet--sm { max-width: 520px; margin-left: auto; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line-2); }
.sheet__title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.sheet__body { padding: 20px; }
.sheet__body > .settings-grid:last-child, .sheet__body > .pkg-choice:last-child { margin-bottom: 0; }
.sheet__body .flash { margin-bottom: 16px; }
.sheet__section { border-top: 1px solid var(--line-2); margin-top: 20px; padding-top: 18px; }
.sheet__bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line-2); background: var(--surface); border-radius: 0 0 16px 16px; }
.sheet__bar .grow { flex: 1; min-width: 160px; }
.sheet__inline { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet__inline .input { flex: 1; min-width: 200px; }
.sheet__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 24px; align-items: start; }
.sheet__aside { position: sticky; top: 72px; }
.sheet .settings-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@keyframes pg-sheet-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .sheet__cols { grid-template-columns: minmax(0, 1fr); } .sheet__aside { position: static; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }

.inline-note { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--warn); animation: pg-sheet-in .18s ease-out; }

/* Silme onayı (data-confirm, PetGrooming.confirm) */
dialog.confirm { width: min(420px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.confirm[open] { animation: pg-confirm-in .16s ease-out; }
dialog.confirm::backdrop { background: rgba(18, 25, 38, .45); }
.confirm__body { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 18px; }
.confirm__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--danger-50); color: var(--danger); }
.confirm__icon .icon { width: 18px; height: 18px; }
.confirm__title { font-size: 16px; font-weight: 800; line-height: 1.35; }
.confirm__text { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--ink-4); }
.confirm__bar { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--line-2); border-radius: 0 0 16px 16px; background: var(--surface-2); }
.confirm__ok { background: var(--danger); color: #fff; }
.confirm__ok:hover { background: var(--danger-dark); }
@keyframes pg-confirm-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.confirm[open] { animation: none; } }

/* Görsel yükleme kutusu (partials/image-upload) */
.upload { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px; border: 1px dashed var(--muted-3); border-radius: 14px; background: var(--surface-2); transition: border-color .15s, background .15s; }
.upload.is-over { border-color: var(--brand); background: var(--brand-25); }
.upload__drop { flex: none; display: flex; align-items: center; justify-content: center; width: 132px; height: 104px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; overflow: hidden; transition: border-color .15s; }
.upload__drop:hover { border-color: var(--brand-light); }
.upload__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.upload__none { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted-2); }
.upload__none .icon { width: 24px; height: 24px; color: var(--muted-3); }
.upload__body { flex: 1; min-width: 210px; display: flex; flex-direction: column; gap: 8px; }
.upload__title { font-size: 12.5px; font-weight: 600; }
.upload__state { font-size: 13px; font-weight: 600; color: var(--ink-3); overflow-wrap: anywhere; }
.upload__state.is-new { color: var(--brand-dark); }
.upload__state.is-removing { color: var(--warn); }
.upload__state.is-error { color: var(--danger-dark); }
.upload__actions { position: relative; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.upload__input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload__input:focus-visible + .btn { box-shadow: var(--focus); }
.upload__hint { font-size: 12px; color: var(--muted); }
.upload--round .upload__drop { width: 104px; height: 104px; padding: 0; border-radius: 50%; border-color: #dce8d3; background: linear-gradient(180deg, #fff, #f4f8f0); box-shadow: inset 0 0 0 7px rgba(235, 243, 229, .92); }
.upload--round .upload__img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; background: #fff; }
.upload--wide .upload__drop { width: 168px; height: 112px; }

/* Sayfa düzeyindeki mesaj: kaydırmadan bağımsız, sağ üstte; başarı kendiliğinden kapanır */
main.page > .flash { position: fixed; z-index: 60; top: 14px; right: 16px; max-width: min(440px, calc(100vw - 32px)); margin: 0; box-shadow: var(--shadow-lg); cursor: pointer; animation: pg-toast-in .2s ease-out; }
main.page > .flash.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
@keyframes pg-toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .page-actions { justify-content: flex-start; width: 100%; }
  .settings-grid > [style*="span 2"] { grid-column: auto !important; }
}

.sc-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.sc-edit__preview { position: sticky; top: 72px; }
.sc-edit__feature { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
.sc-row { display: flex; align-items: center; gap: 12px; }
.sc-row__thumb { flex: none; width: 64px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.sc-row__name { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; }
.sc-row__name span { color: var(--brand-dark); font-weight: 700; }
.sc-row__name:hover b { text-decoration: underline; }
@media (max-width: 860px) {
  .sc-edit { grid-template-columns: 1fr; }
  .sc-edit__preview { position: static; }
}

.gd-types-edit, .gd-rows-edit { container-type: inline-size; }
.gd-type-edit { display: grid; grid-template-columns: 160px minmax(0, 180px) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.gd-type-edit:first-child { border-top: 0; }
.gd-perk-edit { grid-template-columns: 160px minmax(0, 240px) minmax(0, 1fr); }
.gd-row-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; margin-top: 12px; }
.gd-row-edit__text { grid-column: 1 / -1; }
.gd-row-edit__hint { font-weight: 500; text-transform: none; letter-spacing: 0; }
.gd-row-edit--filters { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) minmax(0, .7fr) minmax(0, 1.6fr); margin-top: 10px; }
@container (max-width: 620px) {
  .gd-type-edit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .gd-type-edit > input:last-of-type { grid-row: 2; grid-column: 1 / -1; }
  .gd-row-edit { grid-template-columns: minmax(0, 1fr); }
  .gd-row-edit--filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.site-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 16px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.site-tabs__tab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.site-tabs__tab .icon { width: 15px; height: 15px; }
.site-tabs__tab:hover { color: var(--ink-3); background: var(--surface-2); }
.site-tabs__tab[aria-current="page"] { background: var(--brand-50); color: var(--brand-dark); }
.site-tabs__sub { font-weight: 500; font-size: 12px; color: var(--muted-2); }
.site-tabs__badge { padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--ink-4); font-size: 10.5px; letter-spacing: .04em; }
.site-tabs__more { margin-left: auto; padding: 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.record-sites { margin: 16px 0 0; padding: 0; border: 0; }
.record-sites__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.record-sites .ch-badge { margin-left: 2px; }
.site-only { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--brand-50); color: var(--brand-dark); font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
.calc-unit { flex: none; width: 76px; }
.calc-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.ch-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: stretch; }
.ch-card { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.ch-card:has(.ch-card__head input:checked) { border-color: var(--brand-light); box-shadow: 0 0 0 3px var(--brand-25); }
.ch-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; cursor: pointer; }
.ch-card__head input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.ch-badge { padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-4); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.ch-card__domain { margin: 2px 0 14px 28px; font-size: 13px; color: var(--muted); }
.ch-sections { margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line-2); transition: opacity .15s; }
.ch-card:not(:has(.ch-card__head input:checked)) .ch-sections { opacity: .45; }
.ch-sections__title { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ch-sections__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ch-opt { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 6px 8px 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.ch-opt__main { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; cursor: pointer; }
.ch-opt__main input { flex: none; margin: 0; accent-color: var(--brand); }
.ch-opt__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-opt__off { flex: none; font-size: 11px; font-weight: 600; color: var(--muted-2); }
.ch-own { position: relative; flex: none; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 11px; font-weight: 700; cursor: pointer; overflow: hidden; }
.ch-own input { position: absolute; opacity: 0; pointer-events: none; }
.ch-own span { padding: 3px 8px; color: var(--muted-2); }
.ch-own input:not(:checked) ~ .ch-own__off, .ch-own input:checked ~ .ch-own__on { background: var(--brand-50); color: var(--brand-dark); }
.ch-own:has(input:focus-visible) { outline: 2px solid var(--brand-light); outline-offset: 1px; }
.ch-content { margin: 16px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line-2); }
.ch-content__list { display: grid; gap: 8px; }
.ch-content__row .ch-opt__name { margin-right: auto; }
.ch-content__edit { display: inline-flex; gap: 4px; }
.ch-content__link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: var(--brand-dark); text-decoration: none; }
.ch-content__link:hover { background: var(--brand-50); }
.ch-content__link .icon { width: 14px; height: 14px; }
.sys-summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink-3); }
.sys-summary .icon { flex: none; width: 20px; height: 20px; }
.sys-summary[data-status="ok"] { border-color: #A6F4C5; background: var(--success-50); color: var(--success-dark); }
.sys-summary[data-status="warn"] { border-color: var(--warn-line); background: var(--warn-50); color: var(--warn); }
.sys-summary[data-status="error"] { border-color: #FECDCA; background: var(--danger-50); color: var(--danger-dark); }
.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.sys-card--wide { grid-column: 1 / -1; }
.sys-card--wide .sys-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.sys-card--wide .sys-row:nth-child(2) { border-top: 0; }
@media (max-width: 900px) {
  .sys-grid, .sys-card--wide .sys-rows { grid-template-columns: minmax(0, 1fr); }
  .sys-card--wide .sys-row:nth-child(2) { border-top: 1px solid var(--line-2); }
}
.sys-card { padding: 16px 18px 6px; }
.sys-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 15px; color: var(--ink-2); }
.sys-card__icon { display: inline-flex; color: var(--brand); }
.sys-card__icon .icon { width: 18px; height: 18px; }
.sys-transfer { margin-top: 16px; padding-bottom: 16px; }
.sys-transfer__text { margin: 4px 0 12px; max-width: 720px; font-size: 13px; color: var(--muted); }
.sys-transfer__bar, .sys-transfer__form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sys-transfer__bar { gap: 12px 24px; }
.sys-rows { margin: 0; padding: 0; list-style: none; }
.sys-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.sys-row:first-child { border-top: 0; }
.sys-row__icon { display: inline-flex; padding-top: 1px; color: var(--muted-2); }
.sys-row__icon .icon { width: 18px; height: 18px; }
.sys-row--ok .sys-row__icon { color: var(--success); }
.sys-row--warn .sys-row__icon { color: var(--warn); }
.sys-row--error .sys-row__icon { color: var(--danger); }
.sys-row__title { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.sys-row--pending .sys-row__title { font-weight: 600; color: var(--muted); }
.sys-row__detail { margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.sys-row__items { margin: 6px 0 0; padding-left: 16px; font-size: 12px; line-height: 1.6; color: var(--ink-3); overflow-wrap: anywhere; }
.sys-row__action { align-self: center; }
.sys-summary[data-status="pending"] .icon, .sys-row--pending .sys-row__icon .icon { animation: sys-spin 1s linear infinite; }
@keyframes sys-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sys-summary .icon, .sys-row__icon .icon { animation: none !important; } }

