:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #181a21;
  background: #f7f8fa;
  font-synthesis: none;
  --surface: #fff;
  --ink: #181a21;
  --muted: #5e6472;
  --line: #e5e7ed;
  --gold: #ffcf25;
  --gold-soft: #fff3c4;
  --dark: #1b1d25;
  --rose: #a62342;
  --green: #187452;
  --radius: 18px;
  --shadow: 0 4px 16px #1c22300a;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 312px; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: progress; opacity: .6; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #95630d; outline-offset: 3px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); line-height: 1.12; letter-spacing: -.052em; }
h2 { font-size: 1.27rem; letter-spacing: -.032em; }
h3 { font-size: 1.04rem; line-height: 1.32; letter-spacing: -.02em; }
p { line-height: 1.55; }
small { font-size: .82rem; color: var(--muted); }
.icon { width: 19px; height: 19px; flex: 0 0 auto; vertical-align: middle; }
.strong { font-weight: 750; }
.muted { color: var(--muted); }
.startup { min-height: 100vh; display: grid; place-content: center; font-weight: 750; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 235px minmax(0,1fr); }
.side {
  position: sticky; top: 0; height: 100dvh; overflow: auto; display: flex; flex-direction: column;
  padding: 25px 15px 19px; background: #fff; border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; margin-bottom: 29px; }
.brand img { width: 42px; height: 42px; border-radius: 12px; display: block; }
.wordmark { font-size: 1.59rem; letter-spacing: -.076em; font-weight: 890; line-height: 1; }
.wordmark span { color: #8b6100; }
.brand small { display: block; margin-top: 4px; font-weight: 550; }
.workspace { padding: 10px 10px 12px; margin: 0 2px 25px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfc; }
.workspace label { font-size: .78rem; display: block; padding-left: 3px; margin-bottom: 4px; color: var(--muted); font-weight: 650; }
.workspace select { width: 100%; border: 0; padding: 6px 23px 6px 4px; background-color: transparent; font-weight: 750; }
.side nav { display: grid; gap: 5px; }
.nav {
  border: 0; border-radius: 10px; text-decoration: none; background: transparent;
  display: flex; color: #454a58; align-items: center; gap: 11px; padding: 11px 12px; min-height: 43px;
  font-size: .91rem; font-weight: 640;
}
.nav:hover { background: #f6f6f8; color: var(--ink); }
.nav.active { background: var(--gold-soft); color: #5e4000; font-weight: 780; }
.nav.active .icon { filter: invert(25%) sepia(70%) saturate(1150%) hue-rotate(10deg); }
.nav .pill { margin-left: auto; }
.side-end { margin-top: auto; padding: 23px 6px 0; }
.side-foot { display: flex; align-items: center; gap: 9px; padding: 12px 5px 4px; border-top: 1px solid var(--line); }
.side-foot > div { flex: 1; min-width: 0; overflow: hidden; }
.side-foot strong, .side-foot small { display: block; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.side-foot strong { font-size: .85rem; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; color: #725006; background: #fff0b1; border-radius: 11px; font-size: .82rem; font-weight: 800; }
.topbar {
  min-height: 70px; display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 0 clamp(18px,3vw,39px); border-bottom: 1px solid var(--line); background: #fff;
}
.crumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; min-width: 0; }
.crumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb strong { color: var(--ink); white-space: nowrap; }
.topbar .menu-toggle { display: none; }
.main { max-width: 1510px; margin: 0 auto; padding: 30px clamp(18px,3vw,39px) 44px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head p { margin-top: 8px; color: var(--muted); }
.button, .icon-button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 725; text-align: center;
}
.button { min-height: 41px; padding: 10px 14px; font-size: .89rem; }
.button:hover, .icon-button:hover { border-color: #c9cbd2; background: #f7f8fa; }
.button.primary { background: var(--gold); border-color: #ecc01d; }
.button.primary:hover { background: #ffd849; }
.button.dark { background: #212127; color: white; border-color: #212127; }
.button.dark:hover { background: #343239; }
.button.danger { border-color: #efc9d2; color: var(--rose); }
.icon-button { padding: 7px; height: 36px; width: 36px; }
.icon-button .icon, .button .icon { width: 16px; height: 16px; }
.actions, .inline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.actions.end { justify-content: flex-end; }
.hero {
  display: grid; grid-template-columns: 1.03fr .97fr; min-height: 222px; overflow: hidden; border-radius: var(--radius);
  background: #ffdc5a; margin-bottom: 22px; border: 1px solid #f2c733; box-shadow: var(--shadow);
}
.hero-copy { padding: 28px 27px; align-self: center; }
.hero h2 { font-size: clamp(1.48rem,3vw,2.18rem); line-height: 1.08; letter-spacing: -.048em; }
.hero p { color: #4b3d13; margin: 10px 0 18px; max-width: 38ch; }
.hero-image { min-height: 180px; position: relative; background: #26374c url('/antalya-taksi.jpg') center 55% / cover; }
.hero-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#ffdc5a 0%,#ffdc5a00 20%); }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.stat, .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 15px 17px; min-width: 0; }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; font-weight: 650; line-height: 1.24; }
.stat-icon { display: grid; place-items: center; width: 32px; height: 32px; background: #f2f3f6; border-radius: 9px; flex: 0 0 auto; }
.stat-icon.gold { background: #fff1bd; }
.stat-icon.lilac { background: #f0eafd; }
.stat-icon.green { background: #e4f4eb; }
.stat-icon.blue { background: #eaf0fc; }
.stat-icon .icon { width: 16px; height: 16px; }
.stat-value { font-size: 1.84rem; font-weight: 830; letter-spacing: -.05em; line-height: 1.3; padding-top: 7px; }
.stat small { display: block; }
.overview-grid { display: grid; grid-template-columns: 1.46fr 1fr; gap: 17px; margin-bottom: 19px; }
.card { min-width: 0; }
.card-head { min-height: 64px; padding: 17px 19px; gap: 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.card-head > div { min-width: 0; }
.card-head p { color: var(--muted); font-size: .86rem; margin-top: 5px; }
.card-pad { padding: 18px; }
.mini-link { border: 0; background: none; font-weight: 730; color: #6b4e04; padding: 6px 2px; font-size: .88rem; }
.activity { display: grid; gap: 15px; padding: 16px 18px; }
.activity-line { display: flex; gap: 10px; align-items: flex-start; }
.activity-line .stat-icon { margin-top: 1px; }
.activity-line b { display: block; font-size: .89rem; line-height: 1.35; }
.row-summary { display: flex; padding: 13px 18px; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.row-summary:last-child { border-bottom: 0; }
.row-summary > .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pill { display: inline-flex; width: fit-content; align-items: center; border-radius: 7px; padding: 5px 8px; font-size: .77rem; font-weight: 780; white-space: nowrap; color: #474d5b; background: #eef0f4; }
.pill.active, .pill.approved, .pill.published, .pill.connected, .pill.paused { color: #166242; background: #e1f3eb; }
.pill.review, .pill.sending, .pill.transferring { color: #7b4f00; background: #fff1cc; }
.pill.scheduled { color: #244597; background: #e9efff; }
.pill.rejected, .pill.failed, .pill.needs_check { color: #a02342; background: #fde9ee; }
.empty { padding: 30px 19px; text-align: center; margin: 0 auto; max-width: 560px; }
.empty .stat-icon { margin: 0 auto 12px; width: 39px; height: 39px; }
.empty p { color: var(--muted); margin: 5px 0 13px; font-size: .9rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 640px; }
th { color: #565d6c; font-size: .78rem; font-weight: 720; background: #f8f9fb; padding: 13px 16px; white-space: nowrap; }
td { padding: 15px 16px; border-top: 1px solid var(--line); font-size: .91rem; vertical-align: middle; }
td strong { display: block; margin-bottom: 2px; }
td small { display: block; }
td:last-child, th:last-child { text-align: right; }
.table-title { min-width: 175px; max-width: 330px; overflow-wrap: anywhere; }
.table-filters { margin-bottom: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.filter {
  background: white; border: 1px solid var(--line); color: #4d5361; border-radius: 10px;
  padding: 8px 11px; font-size: .86rem; font-weight: 680;
}
.filter.active { border-color: #e9c44b; background: #fff5d1; color: #5b4004; }
.studio-columns { display: grid; grid-template-columns: minmax(280px,.86fr) minmax(0,1.14fr); gap: 16px; align-items: start; }
.form-stack, .stack { display: grid; gap: 14px; }
.form-stack > .form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
label.field, fieldset { min-width: 0; margin: 0; border: 0; padding: 0; display: grid; gap: 6px; }
label.field > span, legend { font-size: .88rem; color: #343845; font-weight: 710; }
legend { margin-bottom: 8px; padding: 0; }
input:not([type=checkbox]), select, textarea {
  width: 100%; outline: 0; border: 1px solid #d4d7de; border-radius: 10px; color: var(--ink);
  padding: 10px 11px; background: #fff; min-height: 41px;
}
select { appearance: none; padding-right: 31px; background: #fff url('/icons/chevron-down.svg') right 9px center / 15px no-repeat; }
textarea { resize: vertical; min-height: 96px; }
input::placeholder,textarea::placeholder { color: #808490; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: #a87507; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; }
.choice { display: flex; align-items: center; gap: 4px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; font-size: .85rem; }
.helper { color: var(--muted); font-size: .85rem; line-height: 1.48; }
.error-text { color: var(--rose); font-size: .88rem; font-weight: 630; min-height: 0; }
.notice { border: 1px solid #efd888; background: #fff7d9; padding: 12px 15px; border-radius: 11px; color: #634900; font-size: .9rem; line-height: 1.5; }
.previews { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; align-items: stretch; }
.preview { min-width: 0; padding: 15px; border: 1px solid var(--line); background: #fff; border-radius: 14px; display: grid; gap: 11px; align-content: start; }
.preview p, .preview .post-copy { overflow-wrap: anywhere; white-space: pre-wrap; font-size: .91rem; color: #323744; }
.preview-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.preview-brand img { width: 32px; height: 32px; border-radius: 8px; }
.preview-brand b { display: block; font-size: .9rem; }
.preview-brand small { font-size: .75rem; }
.preview-brand .pill { margin-left: auto; }
.preview-media, .media-thumb { display: block; aspect-ratio: 16/10; width: 100%; object-fit: cover; background: #f1f2f5; border-radius: 9px; }
.mini-preview { background: #f7f8fa; border-radius: 11px; border: 1px solid var(--line); padding: 12px; }
.media-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.media-card { padding: 12px; min-width: 0; display: grid; gap: 8px; overflow-wrap: anywhere; }
.media-card .actions { justify-content: space-between; }
.calendar-scroll { overflow: auto; max-width: 100%; }
.calendar { display: grid; grid-template-columns: repeat(7,minmax(92px,1fr)); min-width: 650px; }
.weekday { padding: 10px 11px; color: var(--muted); font-weight: 700; background: #f7f8fa; font-size: .84rem; }
.calendar-day { min-height: 98px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); padding: 8px; display: grid; align-content: start; gap: 5px; font-weight: 670; font-size: .82rem; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.today { background: #fffae6; }
.calendar-day.ghost { background: #f8f9fb; color: #8d929c; }
.calendar-event { border: 0; border-radius: 7px; text-align: left; min-width: 0; padding: 5px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #e9efff; color: #24478e; font-weight: 700; font-size: .78rem; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sign-in { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.sign-form { display: grid; place-items: center; padding: 32px; }
.sign-inner { width: min(100%,420px); }
.sign-inner .brand { padding: 0; margin-bottom: 40px; }
.sign-inner h1 { margin-bottom: 11px; }
.sign-inner > p { margin-bottom: 26px; color: var(--muted); }
.sign-scene { background: linear-gradient(180deg,#1a202f21,#171c2cd6),url('/antalya-taksi.jpg') center / cover; color: #fff; display: grid; align-content: end; padding: 45px; min-height: 370px; }
.sign-scene h2 { font-size: clamp(1.65rem,4vw,3.3rem); line-height: 1.02; letter-spacing: -.055em; max-width: 11ch; }
.sign-scene p { margin-top: 12px; color: #f0f2f6; }
dialog {
  padding: 0; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); background: #fff;
  width: min(720px, calc(100vw - 24px)); max-width: unset; max-height: calc(100dvh - 34px); box-shadow: 0 25px 100px #0003;
}
dialog::backdrop { background: #17192385; }
.dialog-head { position: sticky; top: 0; z-index: 1; padding: 17px 19px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.dialog-body { padding: 18px 20px 23px; }
#toast { position: fixed; z-index: 5; right: 18px; bottom: 20px; color: #fff; background: #242832; border-radius: 13px; box-shadow: 0 9px 28px #0002; padding: 12px 17px; max-width: calc(100vw - 36px); font-weight: 635; line-height: 1.4; }
#toast:empty { display: none; }
#toast[data-error] { background: #8b233a; }
@media (max-width: 1100px) { .shell { grid-template-columns: 205px minmax(0,1fr); } .stats { gap: 9px; } .stat { padding-inline: 12px; } .stat-label { gap: 6px; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .side { position: fixed; z-index: 4; width: 235px; inset: 0 auto 0 0; box-shadow: 0 0 35px #1215242d; transform: translateX(-107%); }
  .side.open { transform: none; }
  .topbar .menu-toggle { display: inline-flex; }
  .topbar { min-height: 60px; }
  .main { padding-top: 20px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { order: -1; min-height: 126px; background-position: center 72%; }
  .hero-image::before { background: linear-gradient(0deg,#ffdc5a,#ffdc5a00 25%); }
  .hero-copy { padding: 11px 17px 21px; }
  .hero p { margin: 8px 0 13px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .studio-columns, .settings-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .previews { grid-template-columns: 1fr; }
  .sign-in { grid-template-columns: 1fr; }
  .sign-scene { display: none; }
  .sign-form { padding: 26px; }
  .schedule-note { display: none; }
}
