:root {
  --bg: #f5f4fa;
  --surface: #ffffff;
  --surface-2: #f0eff7;
  --ink: #1b1d33;
  --muted: #61647f;
  --line: #e2e1ee;
  --ind: #5b57d6;
  --ind-soft: #ecebfb;
  --ok: #1f8a5b;
  --ok-soft: #e3f4ec;
  --warn: #a76a00;
  --warn-soft: #fbf0d9;
  --crit: #c2412d;
  --crit-soft: #fbe7e3;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1020;
    --surface: #181a2e;
    --surface-2: #20233a;
    --ink: #eef0fb;
    --muted: #a3a6c4;
    --line: #2c2f4a;
    --ind: #8d89ff;
    --ind-soft: #26264a;
    --ok: #4cc38a;
    --ok-soft: #173327;
    --warn: #e0b24f;
    --warn-soft: #3a2f16;
    --crit: #f08671;
    --crit-soft: #3d201b;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--ind);
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rvwm {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: 22px;
}
.rvwm svg {
  height: 0.72em;
  width: auto;
  margin: 0 0.05em;
  overflow: visible;
}
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover {
  border-color: var(--ind);
}
.btn.pri {
  background: var(--ind);
  border-color: var(--ind);
  color: #fff;
}
.btn.ghost {
  background: transparent;
}
.btn.danger {
  color: var(--crit);
}
.btn.sm {
  padding: 5px 10px;
  font-size: 13px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.sec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
}
.sec b {
  font-size: 17px;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12.5px;
  color: var(--muted);
}
h1 {
  font-size: 22px;
  margin: 8px 0 4px;
}
h2 {
  font-size: 17px;
  margin: 18px 0 8px;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.sp {
  flex: 1;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 13.5px;
}
.chip.on {
  background: var(--ind-soft);
  border-color: var(--ind);
  color: var(--ind);
  font-weight: 600;
}
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
}
.badge.yayinda,
.badge.incelendi {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge.taslak,
.badge.yeni {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge.gizli,
.badge.engelli {
  background: var(--crit-soft);
  color: var(--crit);
}
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.item .thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--surface-2) center/cover no-repeat;
  flex: none;
}
.item .body {
  flex: 1;
  min-width: 0;
}
.item .body b {
  display: block;
}
.item .acts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.clip {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
label.f {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}
label.f span.h {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 11px;
  width: 100%;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ind);
  outline-offset: 0;
}
.form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form .full {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .form {
    grid-template-columns: 1fr;
  }
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.check input {
  width: auto;
}
.media {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.media .m {
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.media .m .im {
  height: 96px;
  border-radius: 10px;
  background: var(--surface-2) center/cover no-repeat;
}
.login {
  max-width: 380px;
  margin: 10vh auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pin {
  letter-spacing: 0.6em;
  text-align: center;
  font-size: 24px;
}
.err {
  color: var(--crit);
  font-size: 13.5px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.tablewrap {
  overflow-x: auto;
}
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  max-width: min(720px, 94vw);
  width: 100%;
  padding: 18px;
}
dialog::backdrop {
  background: rgb(0 0 0 / 35%);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 20;
}
