/* Sanlı Hukuk — design tokens & shared styles. */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/LibreFranklin-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/LibreFranklin-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/LibreFranklin-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/LibreFranklin-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/LibreFranklin-Bold.woff2") format("woff2");
}

:root {
  --font: "Libre Franklin", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --bg: #07343a;
  --bg-2: #094b54;
  --bg-footer: color-mix(in srgb, #07343a 70%, #000);
  --t100: #e2f4f5;
  --t200: #bfe6e9;
  --t300: #8fd3d9;
  --t400: #52b8c2;
  --t600: #0f7f8c;
  --t700: #0b6570;
  --o: #e07a2e;
  --o300: #fcbb8c;
  --o400: #f39a52;
  --divider: color-mix(in srgb, #fff 14%, transparent);
  --divider-strong: color-mix(in srgb, #fff 32%, transparent);
  --line-soft: color-mix(in srgb, #fff 22%, transparent);
  --vline: color-mix(in srgb, #fff 6%, transparent);
  --glow: radial-gradient(ellipse 55% 60% at 70% 55%, color-mix(in srgb, var(--t600) 36%, transparent), transparent 70%);
  --radius: 4px;
  --radius-modal: 2px;
  --emph: #fff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--t100);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
h1, h2, h3, h4 { font-family: var(--font); letter-spacing: -0.02em; margin: 0; }
a { color: var(--t200); text-decoration: none; }
a:hover { color: var(--o300); }
::selection { background: var(--o); color: #fff; }

:focus-visible {
  outline: 2px solid var(--o400);
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* Fixed background layers (site) */
.bg-fixed {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.bg-glow { position: absolute; inset: 0; background: var(--glow); }
.bg-vlines {
  position: absolute; inset: 0; max-width: 1320px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex; justify-content: space-between;
}
.bg-vlines span { width: 1px; background: var(--vline); }
.bg-canvas { position: absolute; inset: 0; opacity: 1; transition: opacity .6s ease; }
.bg-canvas.dim { opacity: .18; }

/* Site header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: transparent; border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: background .35s, border-color .35s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom-color: color-mix(in srgb, #fff 10%, transparent);
}
.site-header .row {
  max-width: 1320px; margin: 0 auto; padding: 14px clamp(20px, 5vw, 56px);
  display: flex; align-items: center; gap: 28px;
}
.brand {
  font-size: 19px; line-height: 1; letter-spacing: -0.02em;
  color: #fff; text-decoration: none; margin-right: auto;
}
.brand .thin { font-weight: 300; color: var(--t200); }
.brand strong { font-weight: 700; }
.nav-primary { display: flex; gap: 24px; font-size: 14px; }
.nav-primary a { color: #fff; }
.nav-primary a.active { color: var(--o300); }
.lang-switch { display: flex; gap: 10px; font-size: 13px; font-weight: 600; }
.lang-switch button {
  background: none; border: 0; padding: 4px 1px; color: #fff;
  opacity: .6; border-bottom: 2px solid transparent;
}
.lang-switch button.on { opacity: 1; border-bottom-color: var(--o); }
.menu-btn {
  width: 44px; height: 44px; display: none; place-items: center;
  background: none; border: 1px solid color-mix(in srgb, #fff 30%, transparent);
  border-radius: var(--radius); color: #fff;
}
.mobile-menu { display: none; padding: 0 20px 16px; background: var(--bg); }
.mobile-menu a {
  display: grid; grid-template-columns: 36px 1fr; padding: 13px 0;
  border-top: 1px solid var(--divider); color: #fff; font-size: 17px;
}
.mobile-menu a .num { color: var(--o300); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.mobile-menu a.tel { font-size: 20px; font-weight: 600; grid-template-columns: 1fr; }

@media (max-width: 999px) {
  .nav-primary { display: none; }
  .menu-btn { display: grid; }
  .site-header.menu-open .mobile-menu { display: block; }
}

/* Hero scroll track */
.hero-track { position: relative; height: 300vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-fade {
  position: absolute; inset: 0 0 50% 0;
  background: linear-gradient(color-mix(in srgb, var(--bg) 85%, transparent) 40%, transparent);
  pointer-events: none;
}
.hero-frame {
  position: absolute; inset: 0;
  max-width: 1320px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) 40px;
  display: grid; align-content: center;
}
.hero-frame.center { padding: 92px 20px 0; align-content: start; }
.hero-step {
  grid-area: 1 / 1; max-width: min(560px, 100%);
  opacity: 0; transform: translateY(28px); pointer-events: none;
  transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.hero-step.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.hero-step.past { transform: translateY(-28px); }

.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--o300); margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(50px, 7.6vw, 108px); line-height: .94; letter-spacing: -0.04em;
  font-weight: 300; color: var(--t200); margin: 0 0 28px;
}
.hero-title strong { font-weight: 700; color: var(--emph); }
.hero-lead {
  margin: 0; font-size: clamp(16px, 1.4vw, 18px);
  color: var(--t100); max-width: 46ch;
}
.hero-step h2 {
  font-size: clamp(38px, 5vw, 68px); line-height: 1;
  letter-spacing: -0.035em; font-weight: 300; color: var(--t200);
  margin: 0 0 30px;
}
.hero-step h2 strong { font-weight: 700; color: var(--emph); }

.areas-mini {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}
.areas-mini a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, #fff 12%, transparent);
  color: #fff; font-size: 15px;
}
.areas-mini a .n { font-size: 11px; font-weight: 600; color: var(--o300); font-variant-numeric: tabular-nums; }

.tel-big {
  display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600;
  letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; margin-bottom: 14px;
}
.contact-mini { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--t100); margin-bottom: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px;
  background: none; border: 1px solid var(--o400); border-radius: var(--radius);
  color: #fff; font-weight: 600; font-size: 15px;
}
.btn:hover { background: color-mix(in srgb, var(--o) 22%, transparent); color: #fff; }
.btn.ghost {
  border-color: color-mix(in srgb, #fff 35%, transparent);
  font-weight: 500;
}
.btn.ghost:hover { background: color-mix(in srgb, #fff 10%, transparent); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* Hero footer indicators */
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 1320px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) 26px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.hero-steps { display: flex; gap: clamp(14px, 3vw, 36px); }
.hero-steps > div { display: flex; flex-direction: column; gap: 8px; width: clamp(64px, 10vw, 140px); }
.hero-steps .bar {
  height: 2px; background: var(--line-soft);
  transition: background .4s;
}
.hero-steps .lbl {
  font-size: 12px; color: var(--t300); transition: color .4s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-steps .lbl .n { font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-steps .item.done .bar, .hero-steps .item.active .bar { background: var(--o); }
.hero-steps .item.active .lbl { color: #fff; }
.scroll-hint {
  display: flex; align-items: center; gap: 10px; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--t200);
}

/* Main content */
.main-content {
  position: relative; z-index: 1;
}
.main-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px) 120px;
}
.column { max-width: min(680px, 56%); }
@media (max-width: 999px) { .column { max-width: none; } }
.section { padding-top: clamp(72px, 9vw, 128px); }
.section-head {
  display: flex; gap: 20px; align-items: baseline;
  border-top: 1px solid var(--divider-strong);
  padding-top: 18px; margin-bottom: 36px;
}
.section-head .n {
  flex: none; width: 44px; font-size: 14px; font-weight: 600;
  color: var(--o300); font-variant-numeric: tabular-nums;
}
.section-head h2 {
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02;
  letter-spacing: -0.03em; font-weight: 300; color: var(--t200);
}
.section-head h2 strong { font-weight: 700; color: var(--emph); }
.section-body { padding-left: clamp(0px, calc((100vw - 600px) * .2), 64px); }

.about-body {
  font-size: 16.5px; line-height: 1.75; color: var(--t100); max-width: 62ch;
}
.about-body p { margin: 0 0 18px; text-wrap: pretty; }

.area-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 0; padding: 22px 0;
  border-bottom: 1px solid var(--divider);
}
.area-row .n {
  font-size: 13px; font-weight: 600; color: var(--o300);
  font-variant-numeric: tabular-nums; padding-top: 5px;
}
.area-row h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: #fff; }
.area-row p { grid-column: 2; margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--t100); }

.lawyers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 32px 24px;
}
.lawyer-card { display: flex; flex-direction: column; gap: 12px; }
.lawyer-photo, .lawyer-initials {
  width: 100%; aspect-ratio: 4 / 5;
}
.lawyer-photo { background: center / cover no-repeat; filter: grayscale(.2); }
.lawyer-initials {
  display: grid; place-items: center;
  background: color-mix(in srgb, #fff 6%, transparent);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  font-size: 54px; font-weight: 300; letter-spacing: .02em; color: var(--t200);
}
.lawyer-info { border-top: 2px solid var(--o400); padding-top: 12px; }
.lawyer-info h3 { margin: 0; font-size: 20px; font-weight: 600; color: #fff; }
.lawyer-info .title { font-size: 13.5px; color: var(--t300); margin-top: 2px; }
.lawyer-info .areas { font-size: 14px; color: var(--t100); margin-top: 10px; }
.bio-btn {
  align-self: flex-start; background: none; border: 0; padding: 4px 0;
  font-size: 14px; font-weight: 600; color: #fff;
  border-bottom: 1px solid var(--o400);
}
.bio-btn:hover { color: var(--o300); }

/* Posts */
.filter-row { display: flex; gap: 22px; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.filter-row button {
  background: none; border: 0; padding: 6px 0;
  color: var(--t300); border-bottom: 2px solid transparent;
}
.filter-row button.on { color: #fff; border-bottom-color: var(--o400); }

.post-row {
  display: flex; flex-wrap: wrap; gap: 8px 28px; width: 100%; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--divider);
  padding: 22px 0; color: #fff;
}
.post-row:hover { color: var(--o300); }
.post-row .meta { flex: 0 0 140px; display: flex; flex-direction: column; gap: 4px; }
.post-row .meta .date { font-size: 13.5px; color: var(--t300); font-variant-numeric: tabular-nums; }
.post-row .meta .type { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t300); }
.post-row .meta .type.duyuru { color: var(--o300); }
.post-row .body { flex: 1 1 300px; min-width: 0; }
.post-row .body .t { display: block; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 6px; }
.post-row .body .e { display: block; font-size: 15px; line-height: 1.6; color: var(--t100); max-width: 62ch; }
.post-row .body .author { display: block; font-size: 13px; color: var(--t300); margin-top: 8px; }

/* Announcement bar */
.ann-bar {
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; width: 100%;
  text-align: left; background: none; border: 0;
  border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
  padding: 18px 0; color: #fff;
}
.ann-bar:hover { color: var(--o300); }
.ann-bar .k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--o300); }
.ann-bar .arr { font-size: 14px; color: var(--o300); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; background: none; border: 0; padding: 20px 0; text-align: left;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: #fff;
}
.faq-q:hover { color: var(--o300); }
.faq-q .sign { flex: none; font-weight: 300; font-size: 26px; line-height: 1; color: var(--o300); }
.faq-a { margin: 0; padding: 0 40px 22px 0; font-size: 15.5px; line-height: 1.7; color: var(--t100); max-width: 66ch; }

/* Contact */
.contact-wrap { display: flex; flex-direction: column; gap: 48px; }
.contact-top { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.contact-dl { flex: 1 1 280px; margin: 0; border-top: 1px solid var(--divider); }
.contact-dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--divider); }
.contact-dl dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--t300); padding-top: 3px; }
.contact-dl dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.contact-dl dd a { color: #fff; font-weight: 600; }
.map-block { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 1px solid color-mix(in srgb, #fff 18%, transparent); padding: 6px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) contrast(.95); }

.contact-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--t200);
}
.contact-form input, .contact-form textarea, .contact-form select {
  min-height: 46px; padding: 0 14px;
  background: color-mix(in srgb, #fff 6%, transparent);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  color: #fff; font: inherit; font-weight: 400; font-size: 15px;
  outline-color: var(--o400);
}
.contact-form select { background: var(--bg-2); }
.contact-form textarea { padding: 12px 14px; line-height: 1.6; resize: vertical; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.5; color: var(--t100);
  font-weight: 400; cursor: pointer;
}
.contact-form .consent input { width: 16px; height: 16px; min-height: 0; accent-color: var(--o); flex: none; margin-top: 2px; }
.form-error { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--o300); }
.form-honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }
.form-success {
  border-top: 2px solid var(--o400); padding: 20px 0;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}

/* Footer */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid color-mix(in srgb, #fff 10%, transparent);
}
.site-footer .row {
  max-width: 1320px; margin: 0 auto; padding: 56px clamp(20px, 5vw, 56px) 28px;
  display: flex; flex-wrap: wrap; gap: 36px 64px;
}
.site-footer .brand { font-size: 26px; margin-right: 0; }
.site-footer .disclaimer { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--t200); max-width: 48ch; }
.site-footer .contact-col { flex: 0 1 240px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--t100); }
.site-footer .contact-col a { color: var(--t100); }
.site-footer nav { flex: 0 1 200px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.site-footer nav a { color: var(--t100); }
.site-footer .copyright {
  flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 18px; border-top: 1px solid var(--divider);
  font-size: 12px; color: var(--t200);
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 20px;
  background: color-mix(in srgb, #021c20 70%, transparent);
  backdrop-filter: blur(6px);
}
.modal-box {
  width: min(720px, 100%); max-height: 88vh; overflow: auto;
  padding: clamp(24px, 4vw, 44px);
  background: var(--bg); border: 1px solid var(--divider);
  border-top: 3px solid var(--o400);
  border-radius: var(--radius-modal);
  display: flex; flex-direction: column; gap: 14px;
  color: var(--t100);
}
.modal-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.modal-head .k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--o300); }
.modal-close {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 1px solid color-mix(in srgb, #fff 25%, transparent);
  border-radius: var(--radius); color: #fff;
}
.modal-box h2 {
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1;
  font-weight: 300; color: var(--t200); margin: 0;
}
.modal-box h2 strong { font-weight: 700; color: var(--emph); }
.modal-meta {
  font-size: 13.5px; color: var(--t300);
  padding-bottom: 14px; border-bottom: 1px solid var(--divider);
}
.modal-body { font-size: 16px; line-height: 1.75; }
.modal-body p { margin: 0 0 14px; text-wrap: pretty; }
.modal-lines {
  display: flex; flex-direction: column; gap: 2px; font-size: 14px;
  border-top: 1px solid var(--divider); padding-top: 14px;
}

/* --- Panel --- */

body.panel {
  background: var(--bg);
}
.panel-shell { display: flex; min-height: 100vh; }
.panel-side {
  width: 260px; flex: none;
  border-right: 1px solid var(--divider);
  background: color-mix(in srgb, #021c20 35%, transparent);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 24px 18px;
}
.panel-side .brand-block {
  display: flex; align-items: center; gap: 12px;
  padding: 0 8px 24px; border-bottom: 1px solid var(--divider); margin-bottom: 16px;
}
.icon-frame {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--t400); border-radius: var(--radius); color: var(--t400); flex: none;
}
.icon-frame.lg { width: 44px; height: 44px; }
.panel-side .brand-block .brand { font-size: 18px; margin: 0; }
.panel-side .brand-block .sub {
  font-size: 10px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--o300);
}
.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav button {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; width: 100%; text-align: left;
  background: transparent; color: var(--t200); border: 0; border-radius: var(--radius);
  padding: 10px 12px; font-size: 15px; font-weight: 400;
}
.panel-nav button:hover { background: color-mix(in srgb, var(--t400) 8%, transparent); }
.panel-nav button.on {
  background: color-mix(in srgb, var(--t400) 16%, transparent);
  color: #fff; font-weight: 600;
  box-shadow: inset 2px 0 0 var(--o400);
}
.badge {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  border: 1px solid var(--o); color: var(--o300);
  border-radius: 11px; font-size: 11px; font-variant-numeric: tabular-nums;
}
.panel-side .foot {
  margin-top: auto; display: flex; flex-direction: column; gap: 8px;
  padding-top: 16px; border-top: 1px solid var(--divider);
}
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  background: none; border: 1px solid var(--divider); border-radius: var(--radius);
  color: var(--t100); font-size: 14px; font-weight: 500;
}
.pbtn:hover { background: color-mix(in srgb, var(--t400) 8%, transparent); color: #fff; }
.pbtn.primary { background: var(--o400); border-color: var(--o400); color: #07343a; font-weight: 600; }
.pbtn.primary:hover { background: var(--o); color: #fff; }
.pbtn.danger { color: var(--o300); }
.pbtn.icon { width: 44px; padding: 0; }
.pbtn[disabled] { opacity: .35; cursor: not-allowed; }

.panel-main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel-mobile-top { display: none; }
.panel-main {
  position: relative; flex: 1;
  padding: clamp(20px, 4vw, 48px);
  max-width: 1100px; width: 100%;
}
.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; padding-bottom: 22px;
  border-bottom: 1px solid var(--divider-strong);
}
.page-head h1 {
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02;
  letter-spacing: -0.03em; font-weight: 300; color: var(--t200); margin: 0 0 8px;
}
.page-head h1 strong { font-weight: 700; color: #fff; }
.page-head .sub { margin: 0; font-size: 14px; color: var(--t300); }

.card {
  background: color-mix(in srgb, #fff 4%, transparent);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 22px;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.stat {
  text-align: left; cursor: pointer; padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat:hover { border-color: var(--t400); }
.stat .n { font-size: 56px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.stat.warn .n { color: var(--o400); }
.stat .lbl { font-size: 13px; color: var(--t200); }

.list { border-top: 1px solid var(--divider); }
.list-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 20px; padding: 16px 0;
  border-bottom: 1px solid var(--divider);
}
.tag {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 500;
  background: color-mix(in srgb, var(--t400) 14%, transparent);
  color: var(--t100);
}
.tag.warn { background: color-mix(in srgb, var(--o) 18%, transparent); color: var(--o300); }
.tag.muted { background: color-mix(in srgb, #fff 8%, transparent); color: var(--t200); }

/* Field */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--t300);
}
.field input, .field textarea, .field select {
  min-height: 44px; padding: 0 12px;
  background: color-mix(in srgb, #fff 6%, transparent);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  color: #fff; font: inherit; font-size: 15px;
  outline-color: var(--o400);
}
.field select { background: var(--bg-2); }
.field textarea { padding: 10px 12px; line-height: 1.6; resize: vertical; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 70; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--bg-2); border: 1px solid var(--t400);
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  font-size: 14px; max-width: calc(100vw - 32px);
}

/* Dialog */
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: flex-start; justify-content: center;
  overflow: auto; padding: 4vh 16px;
  background: color-mix(in srgb, #021c20 70%, transparent);
  backdrop-filter: blur(6px);
}
.dialog {
  width: min(760px, 100%); background: var(--bg);
  border: 1px solid var(--divider); border-top: 3px solid var(--o400);
  border-radius: var(--radius-modal);
  padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px;
}
.dialog .head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--divider);
}
.dialog .head h2 { font-size: 28px; font-weight: 400; color: #fff; }
.dialog .foot {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--divider);
}

.lang-seg {
  display: flex; border: 1px solid var(--divider); border-radius: var(--radius); overflow: hidden;
}
.lang-seg button {
  background: transparent; border: 0; min-height: 40px; padding: 0 16px;
  font-size: 13px; color: var(--t100);
}
.lang-seg button + button { border-left: 1px solid var(--divider); }
.lang-seg button.on { color: var(--t400); box-shadow: inset 0 0 0 1px var(--t400); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  white-space: nowrap; min-height: 40px; padding: 0 14px;
  border-radius: 20px; border: 1px solid var(--divider);
  background: transparent; color: var(--t100); font-size: 13px;
}
.chip.on { border-color: var(--t400); background: color-mix(in srgb, var(--t400) 14%, transparent); color: #fff; }

/* Panel messages layout */
.msg-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; align-items: start; }
.msg-list { border-top: 1px solid var(--divider); }
.msg-row {
  width: 100%; display: grid; grid-template-columns: 10px 1fr auto;
  gap: 12px; align-items: baseline; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid var(--divider);
  padding: 14px 10px; color: var(--t100);
}
.msg-row:hover { background: color-mix(in srgb, var(--t400) 6%, transparent); }
.msg-row.sel { background: color-mix(in srgb, var(--t400) 14%, transparent); }
.msg-row .dot { width: 8px; height: 8px; border-radius: 50%; }
.msg-row.unread .dot { background: var(--o); }
.msg-row.unread .name { font-weight: 600; }
.msg-row .name { font-weight: 400; font-size: 14px; display: block; }
.msg-row .area { font-size: 12px; color: var(--t300); display: block; }
.msg-row .preview { display: block; font-size: 13px; color: var(--t300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row .when { font-size: 12px; color: var(--t300); font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
  .panel-side { display: none; }
  .panel-mobile-top { display: block; position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--divider); }
  .panel-mobile-top .row1 { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
  .panel-mobile-top .row1 .brand { font-size: 18px; margin-right: auto; }
  .panel-mobile-top nav { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
  .panel-mobile-top nav button {
    flex: none; display: flex; align-items: center; gap: 6px; min-height: 40px;
    padding: 0 14px; border-radius: 20px; border: 1px solid var(--divider);
    background: transparent; color: var(--t100); font-size: 13px; white-space: nowrap;
  }
  .panel-mobile-top nav button.on { border-color: var(--t400); background: color-mix(in srgb, var(--t400) 14%, transparent); color: #fff; font-weight: 600; }
}

/* Login */
.login-wrap {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 24px clamp(20px, 6vw, 96px);
}
.login-3d {
  position: fixed; top: 0; bottom: 0; right: 0; width: 58%;
}
@media (max-width: 899px) { .login-3d { display: none; } }
.login-form {
  position: relative;
  width: min(420px, 100%);
  padding: clamp(28px, 5vw, 44px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid var(--divider);
  border-top: 3px solid var(--o400);
  border-radius: var(--radius-modal);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 18px;
}
.login-form h1 {
  font-size: 44px; line-height: .98; letter-spacing: -0.035em;
  font-weight: 300; color: var(--t200); margin: 0;
}
.login-form h1 strong { font-weight: 700; color: #fff; }
.login-form .kicker { margin-bottom: 10px; color: var(--o300); }
.login-error { margin: 0; font-size: 13px; color: var(--o300); }

.action-row { display: flex; gap: 4px; flex-wrap: wrap; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }

.sticky-save {
  position: sticky; bottom: 0; background: var(--bg);
  padding: 14px 0; border-top: 1px solid var(--divider);
  display: flex; flex-wrap: wrap; gap: 10px;
}
