/* Tela yönetim paneli: tela.css'in üstüne. Sakin, yoğun, okunur. */
.adm { --side: 248px; --top: 60px; --bg: #f3f2f0; --paper: #ffffff; --line: rgb(34 19 20 / .1); background: var(--bg); font-size: 14px; }
.adm h1 { font-size: clamp(24px, 1vw + 16px, 30px); font-stretch: 108%; }
.adm h2 { font-size: 16px; font-stretch: 100%; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; display: flex; align-items: center; gap: 8px; }
.adm .btn { min-height: 40px; font-size: 14px; padding: 0 16px; }
.adm .btn--sm { min-height: 34px; font-size: 13px; padding: 0 12px; }
.adm .field { font-size: 13px; }
.adm .field input, .adm .field select, .adm .field textarea { min-height: 40px; font-size: 14px; }
.adm .field textarea { min-height: 72px; }
.adm .pill { height: 24px; font-size: 12px; }
.pill--xs { height: 20px !important; padding: 0 7px; font-size: 11px !important; }
.pill--xs::before { display: none; }
.strong { font-weight: 600; }
.pad { padding: 16px 20px; }
.ibtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); }
.ibtn:hover { background: var(--bg); color: var(--ink); }
.ibtn:disabled { opacity: .4; }

/* yerleşim */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 30; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: #1d0d0f; color: #d8c8c6; overflow-y: auto; }
.side__brand { display: flex; align-items: center; gap: 8px; padding: 6px 10px 18px; color: #fff; font-weight: 600; font-stretch: 118%; font-size: 20px; letter-spacing: -0.03em; }
.side__tag { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: rgb(255 255 255 / .1); font-size: 11px; font-weight: 500; font-stretch: 100%; letter-spacing: .02em; color: #d8c8c6; }
.side__group { margin: 14px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #957f7c; }
.side nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r-sm); font-size: 14px; color: #d8c8c6; }
.side nav a:hover { background: rgb(255 255 255 / .06); color: #fff; }
.side nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.side nav a .ic { opacity: .85; }
.badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: rgb(255 255 255 / .16); color: #fff; font-size: 11px; font-weight: 600; text-align: center; line-height: 20px; }
.badge--warn { background: #b06d00; }
.side__store { margin-top: auto; display: flex; gap: 8px; align-items: center; padding: 10px; border-radius: var(--r-sm); font-size: 13px; color: #d8c8c6; border: 1px solid rgb(255 255 255 / .12); }
.side__store:hover { color: #fff; border-color: rgb(255 255 255 / .3); }
.main { margin-left: var(--side); min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: var(--top); padding: 0 28px; background: rgb(255 255 255 / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__menu { display: none; }
.top__search { position: relative; display: flex; align-items: center; flex: 1; max-width: 520px; color: var(--muted); }
.top__search .ic { position: absolute; left: 12px; }
.top__search input { width: 100%; height: 38px; padding: 0 40px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); font-size: 14px; }
.top__search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.top__search kbd { position: absolute; right: 10px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 4px; font: 11px var(--mono); color: var(--muted); }
.top__alert { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 550; }
.top__me { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top__who { display: grid; line-height: 1.25; font-size: 13px; }
.top__who span { color: var(--muted); font-size: 12px; }
.adm .avatar { width: 34px; height: 34px; font-size: 12px; }
.demo-strip { display: flex; gap: 8px; align-items: center; padding: 8px 28px; background: var(--info-soft); color: var(--info); font-size: 13px; }
.content { padding: 24px 28px 64px; display: grid; gap: 20px; align-content: start; max-width: 1480px; width: 100%; }
@media (max-width: 1023px) {
  .side { transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  .side.is-open { transform: none; }
  .main { margin-left: 0; }
  .top { padding: 0 16px; }
  .top__menu { display: inline-grid; }
  .top__who, .top__search kbd { display: none; }
  .content { padding: 16px 16px 48px; }
  .demo-strip { padding: 8px 16px; }
}
@media (max-width: 639px) { .top__alert { display: none; } }

.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-title > div:first-child { display: grid; gap: 4px; }
.page-title .muted { max-width: 80ch; }
.mono-title { font-family: var(--mono); font-stretch: 100% !important; letter-spacing: -0.02em !important; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mono-title .pill { font-family: var(--font); }
.back { margin-bottom: -8px; }

/* kartlar */
.card { display: grid; gap: 14px; align-content: start; padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.card--flush { padding: 0; gap: 0; overflow: hidden; }
.card--flush > .card__head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card__head > div { display: grid; gap: 2px; }
.card__sub { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-stretch: 100%; margin-top: 4px; }
.sticky-card { position: sticky; top: calc(var(--top) + 20px); }
.col { display: grid; gap: 20px; align-content: start; min-width: 0; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 1179px) { .grid-2-1, .grid-3 { grid-template-columns: 1fr; } .sticky-card { position: static; } }

/* göstergeler */
.adm .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.adm .kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm .kpi { gap: 4px; padding: 16px 18px; grid-template-columns: 1fr auto; align-items: baseline; }
.adm .kpi__label { grid-column: 1 / -1; font-size: 12px; font-weight: 550; }
.adm .kpi strong { font-size: 22px; white-space: nowrap; }
.kpi__small { font-size: 17px !important; }
.kpi__sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
@media (max-width: 1179px) { .adm .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .adm .kpis, .adm .kpis--4 { grid-template-columns: 1fr 1fr; } }
.delta { font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--bg); color: var(--muted); }
.delta--up { background: var(--ok-soft); color: var(--ok); }
.delta--down { background: var(--bad-soft); color: var(--bad); }
.todo { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.todo__item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: var(--muted); transition: border-color .15s, transform .15s; }
.todo__item:hover { border-color: var(--ink); transform: translateY(-1px); }
.todo__item .ic { grid-row: span 2; }
.todo__item strong { font-size: 22px; font-weight: 500; font-stretch: 110%; color: var(--ink); line-height: 1.1; }
.todo__item span { font-size: 12px; }
.todo__item.is-active { border-color: color-mix(in srgb, var(--brand) 35%, transparent); background: var(--brand-soft); }
.todo__item.is-active .ic, .todo__item.is-active strong { color: var(--brand); }
@media (max-width: 1179px) { .todo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 519px) { .todo { grid-template-columns: 1fr 1fr; } }

/* grafikler */
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart__ax { font: 11px var(--font); fill: var(--muted); }
.chart__bar { fill: color-mix(in srgb, var(--brand) 78%, #fff); transition: fill .15s; }
.chart__bar.is-today { fill: var(--brand); }
.chart__hit { fill: transparent; }
.chart__col:hover .chart__bar, .chart__col:focus .chart__bar { fill: var(--brand-2); }
.chart__col:focus { outline: none; }
.chart__line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; opacity: .55; }
.legend { display: flex; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; margin-right: -8px; }
.legend__bar { width: 10px; height: 10px; border-radius: 2px; background: var(--brand); }
.legend__line { width: 14px; height: 2px; background: var(--ink); opacity: .55; }
.stackbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--bg); }
.stackbar i, .dot { background: var(--brand); }
.c0 { background: #7d0c14 !important; } .c1 { background: #b0464c !important; } .c2 { background: #d79a8f !important; } .c3 { background: #5b4644 !important; } .c4 { background: #b8aaa6 !important; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.rank { display: grid; }
.rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rank li:last-child { border-bottom: 0; }
.rank li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rank--stock li { grid-template-columns: minmax(0, 1fr) auto; }
.hbars { display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.hbars__track { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.hbars__track i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.toplist { display: grid; }
.toplist li { display: grid; grid-template-columns: 18px 40px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.toplist li:last-child { border-bottom: 0; }
.toplist img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--photo); }
.toplist__n { color: var(--muted); font-weight: 600; font-size: 12px; }
.toplist a:hover { color: var(--brand); }
.feed { display: grid; gap: 12px; }
.feed li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; font-size: 13px; }
.feed__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--line-2); }
.feed__dot--odeme, .feed__dot--teslim { background: var(--ok); }
.feed__dot--kargo { background: var(--brand); }
.feed__dot--iptal, .feed__dot--odeme_hata { background: var(--bad); }
.feed__dot--iade, .feed__dot--iade_talep { background: var(--warn); }
.vbars { display: flex; align-items: flex-end; gap: 4px; height: 220px; padding-top: 8px; overflow-x: auto; }
.vbars__col { flex: 1 0 18px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 18px; }
.vbars__col i { width: 100%; max-width: 44px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--brand) 78%, #fff); min-height: 2px; transition: background-color .15s; }
.vbars__col:hover i { background: var(--brand); }
.vbars__col span { font-size: 10px; color: var(--muted); white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 64px; overflow: hidden; }
.hours-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.hours-chart i { flex: 1; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--brand) 70%, #fff); }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.meter-sm { display: block; width: 80px; height: 4px; margin-top: 4px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.meter-sm--wide { width: 100%; min-width: 60px; }
.meter-sm i { display: block; height: 100%; background: var(--brand); }

/* tablolar */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { position: sticky; top: 0; background: #faf9f8; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl tbody tr[data-href] { cursor: pointer; }
.tbl tbody tr[data-href]:hover { background: #fbf8f7; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl a:hover { color: var(--brand); }
.tbl tr.is-muted td { opacity: .55; }
.tbl tr.is-selected { background: var(--brand-soft) !important; }
.w-check { width: 36px; padding-right: 0 !important; }
.w-check input, .tbl input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); }
.w-img { width: 64px; padding-right: 0 !important; }
.w-img img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--photo); }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form { display: inline; }
.mini-thumbs { display: inline-flex; vertical-align: middle; }
.mini-thumbs img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: var(--photo); }
.mini-thumbs img + img { margin-left: -10px; }
.sizes-mini { display: flex; flex-wrap: wrap; gap: 4px; }
.sizes-mini span { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 6px; border-radius: 4px; background: var(--bg); font-size: 12px; }
.sizes-mini b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sizes-mini .is-low { background: var(--warn-soft); color: var(--warn); }
.sizes-mini .is-out { background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
.tbl--edit td { padding: 6px 10px; }
.in-sm { min-height: 34px !important; height: 34px; padding: 0 10px !important; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; font-size: 14px !important; width: 100%; }
.in-num { width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
.in-area { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 14px; resize: vertical; }
.tbl--matrix td { text-align: center; }
.tbl--matrix th[scope=row] { font-weight: 500; }
.methods-mini { display: flex; gap: 6px; align-items: center; }
.methods-mini--lg .pill::before { display: none; }

/* süzgeç ve sekmeler */
.seg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.seg-tabs a { display: inline-flex; gap: 6px; align-items: center; padding: 10px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.seg-tabs a span { padding: 0 6px; border-radius: 99px; background: var(--surface); font-size: 11px; font-weight: 600; line-height: 18px; color: var(--ink-2); }
.seg-tabs a:hover { color: var(--ink); }
.seg-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field--inline { gap: 4px; }
.field--inline input:not([type=date]) { min-width: 240px; }
.filterbar select, .filterbar input { min-height: 36px !important; height: 36px; }
.seg-mini { display: inline-flex; padding: 3px; border-radius: var(--r-sm); background: var(--surface); }
.seg-mini input { position: absolute; opacity: 0; }
.seg-mini span { display: inline-grid; place-items: center; height: 30px; padding: 0 12px; border-radius: 5px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted); }
.seg-mini input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.seg-mini input:focus-visible + span { outline: 2px solid var(--brand); }
.bulkbar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--brand-soft); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bulkbar select { width: auto; min-height: 34px; font-size: 13px; }
.adm .pager { display: flex; justify-content: center; gap: 16px; align-items: center; font-size: 14px; }
.adm .pager a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.savebar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 12px 16px; background: rgb(255 255 255 / .95); border-top: 1px solid var(--line); }
.savebar.is-dirty { background: var(--brand-soft); }

/* sipariş detayı */
.actions-card { grid-template-columns: 1fr auto; align-items: center; background: linear-gradient(90deg, var(--brand-soft), #fff 60%); }
.actions-card p:not(.eyebrow) { font-size: 15px; }
@media (max-width: 859px) { .actions-card { grid-template-columns: 1fr; } }
.actions-card .btn-row { gap: 8px; align-items: flex-start; }
.actions-card form { display: inline; }
.pop { position: relative; }
.pop summary { list-style: none; }
.pop summary::-webkit-details-marker { display: none; }
.pop__body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 300px; display: grid !important; gap: 10px; padding: 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.totals { display: grid; gap: 4px; padding: 14px 20px 18px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; }
.totals__sum { font-size: 17px; font-weight: 600; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line-2); }
.tl { display: grid; gap: 8px; font-size: 13px; }
.tl li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.tl__when { color: var(--muted); font-variant-numeric: tabular-nums; }
.events { display: grid; }
.events li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.events li:last-child { border-bottom: 0; }
.events li.is-private { background: repeating-linear-gradient(135deg, transparent 0 8px, rgb(43 79 122 / .03) 8px 9px); }
.events__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); color: var(--muted); }
.events__icon--odeme, .events__icon--teslim { background: var(--ok-soft); color: var(--ok); }
.events__icon--kargo { background: var(--brand-soft); color: var(--brand); }
.events__icon--iptal, .events__icon--odeme_hata, .events__icon--kargo_hata, .events__icon--iade_red { background: var(--bad-soft); color: var(--bad); }
.events__icon--iade, .events__icon--iade_talep, .events__icon--iade_onay { background: var(--warn-soft); color: var(--warn); }
.events__icon--not { background: var(--info-soft); color: var(--info); }
.events .ic[width="12"] { display: inline; vertical-align: -1px; }
.note-form { display: flex; gap: 8px; }
.note-form input { flex: 1; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 14px; }
.who--sm { gap: 10px; }
.who--lg h1 { font-size: 28px; }
.quote-sm { margin: 0; padding: 10px 14px; background: var(--bg); border-radius: 6px; font-style: italic; }
.notice--ok { background: var(--ok-soft); color: var(--ok); }

/* iadeler, yorumlar */
.ret-list, .rev-list { display: grid; gap: 14px; }
.ret__lines { display: grid; gap: 6px; }
.ret__lines li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.ret__lines img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--photo); }
.ret__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.ret__actions input { flex: 1; min-width: 220px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13px; }
.rev { grid-template-columns: 64px 1fr auto; align-items: start; }
.rev > img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--photo); }
.rev__body { display: grid; gap: 6px; }
.rev__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rev__actions { display: flex; gap: 6px; align-items: center; }
@media (max-width: 759px) { .rev { grid-template-columns: 48px 1fr; } .rev > img { width: 48px; height: 48px; } .rev__actions { grid-column: 1 / -1; } }

/* ürün formu */
.prefix { display: flex; align-items: stretch; }
.prefix > span { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 400; }
.prefix input { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; }
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; }
.lib { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--photo); outline: 2px solid transparent; outline-offset: -2px; }
.lib input { position: absolute; opacity: 0; }
.lib img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.lib:hover img { opacity: .85; }
.lib.is-on { outline-color: var(--brand); outline-width: 3px; }
.lib:has(input:focus-visible) { outline-color: var(--ink); }
.lib__n { position: absolute; top: 6px; left: 6px; display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.lib__n:empty { display: none; }
.chip-btn { height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 99px; background: #fff; font-size: 12px; }
.chip-btn:hover { border-color: var(--ink); }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background-color .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: transform .18s var(--ease); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:disabled { opacity: .5; }
.check--sm { font-size: 12px; font-weight: 400; color: var(--muted); }
.check--sm input { width: 15px; height: 15px; }

/* kategoriler, entegrasyonlar, e-posta */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.cat-card > img { width: calc(100% + 40px); max-width: none; margin: -20px -20px 0; height: 150px; object-fit: cover; border-radius: var(--r) var(--r) 0 0; }
.cat-card details summary { list-style: none; margin-bottom: 10px; }
.integ { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 1179px) { .integ { grid-template-columns: 1fr; } }
.integ .card { scroll-margin-top: calc(var(--top) + 20px); }
.copy { display: flex; gap: 4px; }
.copy input { font-family: var(--mono); font-size: 12px !important; background: var(--bg) !important; color: var(--ink-2); }
.inline-test { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.howto { border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; }
.howto summary { font-weight: 600; color: var(--brand); }
.howto ol { list-style: decimal; padding-left: 20px; margin-top: 10px; display: grid; gap: 6px; color: var(--ink-2); }
.preview-ann { padding: 10px 14px; border-radius: var(--r-sm); background: var(--brand); color: #fff; font-size: 13px; text-align: center; }
.mailbox { display: grid; grid-template-columns: 360px 1fr; min-height: 560px; }
.mailbox__list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 72vh; }
.mailbox__list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mailbox__list a strong { grid-column: 1 / -1; font-weight: 600; font-size: 14px; }
.mailbox__list a:hover { background: var(--bg); }
.mailbox__list a[aria-current="true"] { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.mailbox__to { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.mailbox__view { padding: 28px 32px; display: grid; gap: 18px; align-content: start; }
.mailbox__view h2 { font-size: 20px; }
.mailbox__body { padding: 24px; border-radius: var(--r); background: var(--bg); font-size: 15px; line-height: 1.65; max-width: 70ch; white-space: normal; }
@media (max-width: 859px) { .mailbox { grid-template-columns: 1fr; } .mailbox__list { max-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); } }
.fav-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.fav-mini img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--photo); }

/* giriş */
.adm-login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(80% 60% at 50% 0%, #f6ebe9, var(--bg)); }
.adm-login .auth__card { width: min(100%, 440px); box-shadow: var(--shadow); }
.adm-login h1 { font-size: 30px; }
