:root {
  --seal-shell-top-height: 82px;
  --seal-bg: #e8e6e2;
  --seal-surface: #ffffff;
  --seal-surface-muted: #f5f2ec;
  --seal-sidebar: #292726;
  --seal-sidebar-border: rgba(255, 255, 255, 0.08);
  --seal-text: #36312f;
  --seal-text-soft: #7d756f;
  --seal-line: #ddd7d0;
  --seal-primary: #0db6b2;
  --seal-primary-deep: #0a8f8d;
  --seal-danger: #f26b61;
  --seal-dark-button: #5a524d;
  --seal-nav-text: #8f8882;
  --seal-nav-text-active: #f1ece6;
  --seal-nav-icon: #68615c;
  --seal-nav-icon-active: #a39b95;
  --seal-shadow: 0 12px 30px rgba(37, 28, 20, 0.08);
  --seal-radius-lg: 22px;
  --seal-radius-md: 16px;
  --seal-radius-sm: 10px;
}

html {
  font-size: 15px;
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: "IBM Plex Sans", "Trebuchet MS", sans-serif;
  background: var(--seal-bg);
  color: var(--seal-text);
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.seal-app {
  display: grid;
  grid-template-columns: 72px 248px 1fr;
  height: 100vh;
}

.seal-app[data-sidebar-collapsed="true"] {
  grid-template-columns: 72px 1fr;
}

.seal-app[data-sidebar-collapsed="true"] > .seal-sidebar {
  display: none;
}

.seal-module-rail__divider {
  width: 60%;
  height: 1px;
  margin: 0.25rem auto 0;
  background: rgba(255, 255, 255, 0.08);
}

.seal-module-rail__sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.2s ease;
}

.seal-module-rail__sidebar-toggle i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.seal-module-rail__sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.seal-app[data-sidebar-collapsed="true"] .seal-module-rail__sidebar-toggle i {
  transform: rotate(180deg);
}

.seal-module-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  background: linear-gradient(180deg, #232120 0%, #1d1b1a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0 0.75rem 1rem;
}

.seal-module-rail__top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--seal-shell-top-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.seal-module-rail__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.seal-logo {
  display: block;
  object-fit: contain;
}

.seal-logo--rail {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.seal-module-rail__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.seal-module-rail__item {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.seal-module-rail__item i {
  font-size: 0.95rem;
}

.seal-module-rail__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.seal-module-rail__item--active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.seal-module-rail__admin {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-bottom: 0.75rem;
}

.seal-module-rail__admin-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.seal-module-rail__admin-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.seal-module-rail__admin-toggle[aria-pressed="true"] {
  background: linear-gradient(145deg, var(--seal-primary) 0%, var(--seal-primary-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(13, 182, 178, 0.32);
}

.seal-module-rail__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.seal-sidebar [data-scope] { display: none; }
.seal-sidebar[data-nav-mode="seal"] [data-scope~="seal"],
.seal-sidebar[data-nav-mode="identity"] [data-scope~="identity"],
.seal-sidebar[data-nav-mode="wifi"] [data-scope~="wifi"],
.seal-sidebar[data-nav-mode="admin"] [data-scope~="admin"] {
  display: block;
}

.seal-module-account {
  position: relative;
  width: 100%;
}

.seal-module-account__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
  list-style: none;
}

.seal-module-account__summary::-webkit-details-marker {
  display: none;
}

.seal-module-account__icon,
.seal-module-rail__icon-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.seal-module-account__icon:hover,
.seal-module-rail__icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.seal-language-chip {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.86);
  transition: all 0.18s ease;
}

.seal-language-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.seal-language-chip__flag {
  font-size: 1rem;
  line-height: 1;
}

.seal-module-account__tooltip {
  position: absolute;
  bottom: 0;
  left: calc(100% + 12px);
  display: none;
  z-index: 50;
  min-width: 190px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 0.4rem;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(22, 15, 12, 0.2);
}

.seal-module-account[open] .seal-module-account__tooltip {
  display: flex;
  flex-direction: column;
}

.seal-module-account__link {
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  color: #564f4a;
  font-size: 0.88rem;
  white-space: nowrap;
}

.seal-module-account__link:hover {
  background: #f4efea;
}

.seal-sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #2e2a29 0%, #262322 100%);
  color: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.seal-sidebar__brand {
  display: flex;
  align-items: center;
  height: var(--seal-shell-top-height);
  padding: 0 1.2rem;
  border-bottom: 1px solid var(--seal-sidebar-border);
  box-sizing: border-box;
}

.seal-sidebar__module {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.seal-sidebar__module-kicker {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seal-sidebar__module strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.seal-sidebar__module small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
}

.seal-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.seal-brand__mark {
  position: relative;
  width: 38px;
  height: 24px;
}

.seal-brand__dot {
  position: absolute;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff6a61 0%, #ea4e46 100%);
}

.seal-brand__dot--left {
  left: 0;
}

.seal-brand__dot--right {
  right: 0;
  opacity: 0.92;
}

.seal-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.seal-brand__text strong {
  font-size: 1rem;
  font-weight: 700;
}

.seal-brand__text small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seal-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.75rem 1.25rem;
}

.seal-nav__group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.seal-nav__group[open] .seal-nav__chevron {
  transform: rotate(0deg);
}

.seal-nav__group:not([open]) .seal-nav__chevron {
  transform: rotate(-90deg);
}

.seal-nav__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  padding: 0.15rem 0.55rem 0.1rem;
}

.seal-nav__summary::-webkit-details-marker {
  display: none;
}

.seal-nav__caption {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seal-nav__chevron {
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.8rem;
  transition: transform 0.18s ease;
}

.seal-nav__items {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.seal-nav__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.58rem 0.8rem;
  color: var(--seal-nav-text);
  font-size: 0.93rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.seal-nav .seal-nav__item,
.seal-nav .seal-nav__item:visited,
.seal-nav .seal-nav__item:hover,
.seal-nav .seal-nav__item:active,
.seal-nav .seal-nav__item:focus {
  color: var(--seal-nav-text) !important;
  text-decoration: none !important;
}

.seal-nav .seal-nav__item:hover {
  background: transparent;
  color: #b0a8a1 !important;
}

.seal-nav .seal-nav__item--active {
  background: transparent;
  border-color: transparent;
  color: var(--seal-nav-text-active) !important;
  font-weight: 700;
}

.seal-nav__item:focus,
.seal-nav__item:focus-visible,
.seal-nav__summary:focus,
.seal-nav__summary:focus-visible {
  outline: none;
  box-shadow: none;
}

.seal-nav .seal-nav__item--active,
.seal-nav .seal-nav__item--active:visited,
.seal-nav .seal-nav__item--active:hover,
.seal-nav .seal-nav__item--active:active,
.seal-nav .seal-nav__item--active:focus {
  color: var(--seal-nav-text-active) !important;
}

.seal-nav__icon {
  display: inline-flex;
  width: 18px;
  justify-content: center;
  color: var(--seal-nav-icon);
  font-size: 0.9rem;
}

.seal-nav__item--active .seal-nav__icon,
.seal-nav__item:hover .seal-nav__icon {
  color: var(--seal-nav-icon-active);
}

.seal-sidebar__meta {
  padding: 0.35rem 1.3rem 0.9rem;
  color: rgba(255, 255, 255, 0.24);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.seal-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.seal-topbar__search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(640px, 100%);
  border: 1px solid rgba(80, 67, 58, 0.08);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--seal-shadow);
}

.seal-topbar__search--page {
  width: min(720px, 100%);
}

.seal-topbar__search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--seal-text);
}

.seal-topbar__search input::placeholder {
  color: #948a83;
}

.seal-topbar__search-icon {
  color: #9c938d;
}

.seal-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.seal-topbar__ghost,
.seal-topbar__primary,
.seal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.seal-topbar__ghost,
.seal-button--ghost {
  border-color: rgba(13, 182, 178, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--seal-primary-deep);
}

.seal-topbar__primary,
.seal-button--primary {
  background: linear-gradient(145deg, var(--seal-primary) 0%, var(--seal-primary-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 182, 178, 0.24);
}

.seal-button--dark {
  background: var(--seal-dark-button);
  color: #fff;
}

.seal-button--danger {
  background: #b4322a;
  color: #fff;
  box-shadow: 0 10px 22px rgba(180, 50, 42, 0.24);
}

.seal-button--danger:hover {
  background: #8f2721;
}

.seal-button--icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 0.95rem;
}

.seal-button--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

.seal-button--sm i {
  font-size: 0.78rem;
}

.seal-button:disabled,
.seal-button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.seal-user-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  padding: 0.45rem 0.55rem 0.45rem 0.45rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--seal-shadow);
}

.seal-user-pill__avatar {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e9e3dc;
  color: #534b46;
  font-size: 0.8rem;
  font-weight: 700;
}

.seal-user-pill__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.seal-user-pill__meta strong {
  font-size: 0.88rem;
}

.seal-user-pill__meta small {
  color: var(--seal-text-soft);
  font-size: 0.75rem;
}

.seal-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 1.1rem 1.25rem 1.25rem;
  overflow-y: auto;
}

.seal-page:has(.list-template),
.seal-page:has(.detail-template),
.seal-page:has(.wizard-template) {
  overflow: hidden;
}

.seal-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.seal-page__heading {
  min-width: 0;
}

.seal-page__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.seal-page__context {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(13, 182, 178, 0.18);
  border-radius: 999px;
  background: rgba(13, 182, 178, 0.06);
  color: var(--seal-text);
  font-size: 0.8rem;
}

.seal-page__context-value {
  font-weight: 700;
  color: var(--seal-primary-deep);
  white-space: nowrap;
}

.seal-page__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--seal-primary-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.seal-page__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.seal-page__subtitle {
  max-width: 880px;
  margin: 0.45rem 0 0;
  color: var(--seal-text-soft);
  font-size: 0.98rem;
}

.seal-page__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.seal-page__toolbar:empty {
  display: none;
}

.seal-page__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
  align-self: flex-end;
}

.empty-template {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-template__hero,
.empty-template__card,
.empty-template__canvas {
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  background: var(--seal-surface);
  box-shadow: var(--seal-shadow);
}

.empty-template__hero {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 1rem;
  padding: 1.4rem;
}

.empty-template__badge {
  display: inline-flex;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(13, 182, 178, 0.12);
  color: var(--seal-primary-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.empty-template__hero-copy h2 {
  margin: 0 0 0.55rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.empty-template__hero-copy p {
  margin: 0;
  max-width: 780px;
  color: var(--seal-text-soft);
  line-height: 1.7;
}

.empty-template__hero-meta {
  display: grid;
  gap: 0.85rem;
}

.empty-template__meta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--seal-line);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #fff 0%, #fbf9f6 100%);
}

.empty-template__meta-card span {
  margin-bottom: 0.35rem;
  color: var(--seal-text-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.empty-template__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.empty-template__card {
  padding: 1.3rem;
}

.empty-template__card--accent {
  background: linear-gradient(145deg, rgba(13, 182, 178, 0.14) 0%, rgba(255, 255, 255, 1) 68%);
}

.empty-template__card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.empty-template__card p,
.empty-template__card li {
  color: var(--seal-text-soft);
  line-height: 1.7;
}

.empty-template__card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.empty-template__canvas {
  padding: 1.35rem;
}

.empty-template__canvas-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.empty-template__canvas-kicker {
  color: var(--seal-primary-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-template__canvas-header h3 {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
}

.empty-template__canvas-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.empty-template__canvas-body {
  border: 1px dashed #d7cfc8;
  border-radius: 20px;
  padding: 1.2rem;
  background: linear-gradient(180deg, #f9f7f3 0%, #f2ede7 100%);
}

.empty-template__placeholder {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--seal-text-soft);
  text-align: center;
}

.empty-template__placeholder-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(13, 182, 178, 0.12);
  color: var(--seal-primary-deep);
  font-size: 1.6rem;
}

.empty-template__placeholder h4 {
  margin: 0;
  color: var(--seal-text);
  font-size: 1.05rem;
}

.empty-template__placeholder p {
  max-width: 480px;
  margin: 0;
}

.list-template {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 1rem;
}

.detail-template {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 1rem;
}

.detail-template__scroll-indicator {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--seal-primary) 0%, var(--seal-primary-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 182, 178, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 15;
  animation: sealScrollBounce 1.6s ease-in-out infinite;
  transition: opacity 0.25s ease, transform 0.2s ease;
}

.detail-template__scroll-indicator[hidden] {
  display: none;
}

.detail-template__scroll-indicator:hover {
  transform: scale(1.06);
}

@keyframes sealScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.detail-template__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 1.5rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
}

.detail-template__identity {
  min-width: 0;
}

.detail-template__badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.detail-template__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 182, 178, 0.08);
  color: var(--seal-primary-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-template__description {
  margin: 0;
  color: var(--seal-text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 720px;
}

.detail-template__kpis {
  display: flex;
  gap: 1.2rem;
  align-items: stretch;
  padding-left: 1.5rem;
  border-left: 1px solid #ece5dd;
}

.detail-template__kpi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 7rem;
}

.detail-template__kpi-label {
  color: var(--seal-text-soft);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-template__kpi-value {
  color: var(--seal-text);
  font-size: 1.2rem;
  font-weight: 700;
}

.detail-template__tabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.3rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: 14px;
  box-shadow: var(--seal-shadow);
  align-self: flex-start;
  max-width: 100%;
  overflow-x: auto;
}

.detail-template__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--seal-text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.detail-template__tab:hover {
  background: rgba(13, 182, 178, 0.08);
  color: var(--seal-primary-deep);
}

.detail-template__tab--active {
  background: linear-gradient(145deg, var(--seal-primary) 0%, var(--seal-primary-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 182, 178, 0.24);
}

.detail-template__tab--active:hover {
  background: linear-gradient(145deg, var(--seal-primary) 0%, var(--seal-primary-deep) 100%);
  color: #fff;
}

.detail-template__tab i {
  font-size: 0.82rem;
}

.detail-template__panels {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-right: -0.25rem;
  padding-right: 0.25rem;
}

.detail-template__panel[hidden] {
  display: none;
}

.detail-template__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
}

.detail-template__card {
  padding: 1.2rem 1.4rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
}

.detail-template__card-title {
  margin: 0 0 0.9rem;
  color: var(--seal-text);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-template__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.detail-template__input-suffix {
  display: inline-flex;
  align-items: stretch;
  width: 100%;
  max-width: 28rem;
  border: 1px solid #d8d0c8;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.detail-template__input-suffix:focus-within {
  border-color: var(--seal-primary);
  box-shadow: 0 0 0 3px rgba(13, 182, 178, 0.16);
}

.detail-template__input-suffix > input.detail-template__field-input {
  flex: 1;
  min-width: 0;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 0.75rem;
}

.detail-template__input-suffix > input.detail-template__field-input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}

.detail-template__input-suffix-text {
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  background: rgba(70, 55, 45, 0.05);
  color: var(--seal-text-soft);
  font-size: 0.88rem;
  border-left: 1px solid #ece5dd;
  white-space: nowrap;
  font-family: "JetBrains Mono", "Menlo", monospace;
}

.detail-template__input-suffix-text[hidden] {
  display: none;
}

[data-domain-view-suffix] {
  color: var(--seal-text-soft);
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 0.9em;
}

[data-domain-view-suffix][hidden] {
  display: none;
}

.detail-template__card-header .detail-template__card-title {
  margin: 0;
}

.detail-template__card[data-card-disabled="true"] .detail-template__field-list {
  opacity: 0.55;
  pointer-events: none;
}

.detail-template__field-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
}

.detail-template__field {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #f1ebe3;
}

.detail-template__field:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-template__field dt {
  color: var(--seal-text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
}

.detail-template__field dd {
  margin: 0;
  color: var(--seal-text);
  font-size: 0.92rem;
}

.detail-template__field code {
  padding: 0.15rem 0.45rem;
  background: rgba(70, 55, 45, 0.06);
  border-radius: 6px;
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 0.85rem;
}

/* Zorunlu alan yıldızı */
.detail-template__required {
  color: #b4322a;
  font-weight: 700;
  margin-left: 0.15rem;
  cursor: help;
}

/* Field hata durumu */
.detail-template__field-error {
  display: block;
  margin-top: 0.4rem;
  color: #b4322a;
  font-size: 0.82rem;
  font-weight: 500;
}

.detail-template__field-error[hidden] {
  display: none;
}

.detail-template__field.has-error input.detail-template__field-input,
.detail-template__field.has-error textarea.detail-template__field-input,
.detail-template__field.has-error input.detail-template__password-input,
.detail-template__field.has-error input[data-money-amount],
.detail-template__field.has-error [data-autocomplete-input] {
  border-color: #b4322a;
  box-shadow: 0 0 0 3px rgba(180, 50, 42, 0.12);
}

.detail-template__field.has-error .seal-select__trigger,
.detail-template__field.has-error .seal-radio-group,
.detail-template__field.has-error .seal-check,
.detail-template__field.has-error .seal-switch__slider,
.detail-template__field.has-error .detail-template__tags {
  border-color: #b4322a;
  box-shadow: 0 0 0 3px rgba(180, 50, 42, 0.12);
}

/* Native input/textarea tabanlı field-input'lar için temel stil.
   seal-select / seal-radio-group / seal-check wrapper'ları bu stili miras almaz;
   kendi component stillerini kullanır. */
input.detail-template__field-input,
textarea.detail-template__field-input {
  width: 100%;
  max-width: 28rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d8d0c8;
  border-radius: 10px;
  background: #fff;
  color: var(--seal-text);
  font-family: inherit;
  font-size: 0.92rem;
}

input.detail-template__field-input:focus,
textarea.detail-template__field-input:focus {
  outline: none;
  border-color: var(--seal-primary);
  box-shadow: 0 0 0 3px rgba(13, 182, 178, 0.16);
}

.detail-template[data-mode="view"] .detail-template__field-input {
  display: none;
}

.detail-template__card--full {
  grid-column: 1 / -1;
}

.detail-template__grid--halves {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.detail-template__number--narrow {
  max-width: 7rem;
}

.detail-template__field-list--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
}

.detail-template__field-list--2col .detail-template__field {
  border-bottom: 0;
  padding-bottom: 0.45rem;
}

.detail-template__field-list--8-4 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

@media (max-width: 1080px) {
  .detail-template__field-list--2col {
    grid-template-columns: 1fr;
  }
}

.detail-template__textarea {
  min-height: 5.5rem;
  line-height: 1.5;
  resize: vertical;
}

.detail-template__number {
  max-width: 10rem;
}

.detail-template__password {
  position: relative;
  max-width: 22rem;
}

.detail-template__password-input {
  width: 100%;
  padding-right: 2.6rem !important;
  font-family: "JetBrains Mono", "Menlo", monospace;
  letter-spacing: 0.02em;
}

.detail-template__password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--seal-text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.detail-template__password-toggle:hover {
  background: rgba(13, 182, 178, 0.1);
  color: var(--seal-primary-deep);
}

/* Toggle / Switch */
.seal-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  user-select: none;
}

.seal-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seal-switch__slider {
  position: relative;
  width: 2.6rem;
  height: 1.4rem;
  background: #d8d0c8;
  border-radius: 999px;
  transition: background 0.18s ease;
  flex-shrink: 0;
}

.seal-switch__slider::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease;
}

.seal-switch input:checked ~ .seal-switch__slider {
  background: var(--seal-primary);
}

.seal-switch input:checked ~ .seal-switch__slider::after {
  transform: translateX(1.2rem);
}

.seal-switch input[disabled] ~ .seal-switch__slider {
  opacity: 0.45;
  cursor: not-allowed;
}
.seal-switch--disabled {
  cursor: not-allowed;
}

.seal-switch__label {
  color: var(--seal-text-soft);
  font-size: 0.86rem;
}

/* URL */
.detail-template__url-link {
  color: var(--seal-primary-deep);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(13, 182, 178, 0.4);
  text-underline-offset: 3px;
}

.detail-template__url-link:hover {
  text-decoration-color: var(--seal-primary-deep);
}

/* Autocomplete */
.detail-template__autocomplete {
  position: relative;
  max-width: 22rem;
}

.detail-template__autocomplete-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 220px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(70, 55, 45, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(30, 20, 10, 0.14);
  overflow-y: auto;
}

.detail-template__autocomplete-panel[hidden] {
  display: none;
}

.detail-template__autocomplete-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--seal-text);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.detail-template__autocomplete-option i {
  color: var(--seal-text-soft);
  width: 1rem;
}

.detail-template__autocomplete-option:hover,
.detail-template__autocomplete-option[data-active="true"] {
  background: rgba(13, 182, 178, 0.08);
  color: var(--seal-primary-deep);
}

.detail-template__autocomplete-option[data-active="true"] i {
  color: var(--seal-primary-deep);
}

/* Tags / Chip input */
.detail-template__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  max-width: 28rem;
  min-height: 2.6rem;
  background: #fff;
  border: 1px solid #d8d0c8;
  border-radius: 14px;
  cursor: text;
}

.detail-template__tags:focus-within {
  border-color: var(--seal-primary);
  box-shadow: 0 0 0 3px rgba(13, 182, 178, 0.16);
}

.detail-template__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  background: rgba(13, 182, 178, 0.12);
  color: var(--seal-primary-deep);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.detail-template__tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 50%;
  opacity: 0.7;
}

.detail-template__tag-remove:hover {
  opacity: 1;
  background: rgba(13, 182, 178, 0.2);
}

.detail-template__tag-input {
  flex: 1;
  min-width: 6rem;
  border: 0;
  outline: 0;
  padding: 0.2rem;
  font-family: inherit;
  font-size: 0.9rem;
  background: transparent;
  color: var(--seal-text);
}

/* File upload */
.detail-template__file {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.detail-template__file-label {
  color: var(--seal-text-soft);
  font-size: 0.88rem;
}

/* Color picker */
.detail-template__color-dot {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.detail-template__color-code {
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 0.85rem;
}

.detail-template__color {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  max-width: 20rem;
}

.detail-template__color-picker {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid #d8d0c8;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.detail-template__color-picker::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.detail-template__color-picker::-webkit-color-swatch {
  border: 0;
  border-radius: 6px;
}

.detail-template__color-hex {
  flex: 1;
  max-width: 11rem;
  font-family: "JetBrains Mono", "Menlo", monospace;
  text-transform: uppercase;
}

/* Range slider */
.detail-template__range {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 24rem;
  width: 100%;
}

.detail-template__range-slider {
  flex: 1;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #ece5dd;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.detail-template__range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--seal-primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(13, 182, 178, 0.4);
  cursor: pointer;
}

.detail-template__range-slider::-moz-range-thumb {
  width: 1.1rem;
  height: 1.1rem;
  background: var(--seal-primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(13, 182, 178, 0.4);
  cursor: pointer;
}

.detail-template__range-value {
  min-width: 3rem;
  text-align: right;
  font-weight: 600;
  color: var(--seal-primary-deep);
  font-size: 0.95rem;
}

/* Flatpickr marka override */
.flatpickr-calendar {
  font-family: "IBM Plex Sans", "Trebuchet MS", sans-serif !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 34px rgba(30, 20, 10, 0.14) !important;
  border: 1px solid rgba(70, 55, 45, 0.12) !important;
  background: var(--seal-surface) !important;
  padding: 0.35rem !important;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
  display: none !important;
}

.flatpickr-months {
  padding: 0.4rem 0.25rem 0.2rem !important;
}

.flatpickr-month {
  color: var(--seal-text) !important;
  height: auto !important;
}

.flatpickr-current-month {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0 !important;
}

.flatpickr-current-month .numInputWrapper {
  width: auto !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: 600 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  color: var(--seal-text-soft) !important;
  padding: 0.4rem !important;
  border-radius: 8px !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: rgba(13, 182, 178, 0.08) !important;
  color: var(--seal-primary-deep) !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: currentColor !important;
}

.flatpickr-weekdays {
  background: transparent !important;
  padding: 0.35rem 0 !important;
}

.flatpickr-weekday {
  color: var(--seal-text-soft) !important;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.flatpickr-day {
  color: var(--seal-text) !important;
  border-radius: 8px !important;
  font-size: 0.88rem !important;
  border: 0 !important;
  transition: background 0.12s ease, color 0.12s ease !important;
  max-width: 38px;
  height: 34px;
  line-height: 34px;
}

.flatpickr-day:hover {
  background: rgba(13, 182, 178, 0.1) !important;
  color: var(--seal-primary-deep) !important;
}

.flatpickr-day.today {
  border: 1px solid var(--seal-primary-deep) !important;
  color: var(--seal-primary-deep) !important;
  font-weight: 600 !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--seal-primary) !important;
  border-color: var(--seal-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(13, 182, 178, 0.3) !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: rgba(70, 55, 45, 0.3) !important;
}

.flatpickr-day.disabled,
.flatpickr-day.flatpickr-disabled {
  color: rgba(70, 55, 45, 0.2) !important;
}

/* Time picker */
.flatpickr-time {
  border-top: 1px solid #ece5dd !important;
  margin-top: 0.3rem !important;
  padding-top: 0.35rem !important;
}

.flatpickr-time input {
  color: var(--seal-text) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
  color: var(--seal-text-soft) !important;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time .flatpickr-am-pm:focus {
  background: rgba(13, 182, 178, 0.08) !important;
}

.numInputWrapper span.arrowUp:after {
  border-bottom-color: var(--seal-text-soft) !important;
}

.numInputWrapper span.arrowDown:after {
  border-top-color: var(--seal-text-soft) !important;
}

.numInputWrapper:hover span.arrowUp:after {
  border-bottom-color: var(--seal-primary-deep) !important;
}

.numInputWrapper:hover span.arrowDown:after {
  border-top-color: var(--seal-primary-deep) !important;
}

.detail-template__money {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  max-width: 22rem;
}

.detail-template__money-amount {
  flex: 1;
  min-width: 0;
}

.detail-template__money-currency {
  width: 6.5rem;
  flex-shrink: 0;
}

/* seal-select wrapper'ı field-input olarak kullanıldığında width limitle. */
.detail-template__field-input.seal-select {
  max-width: 22rem;
}

/* seal-radio-group field-input olarak — doğal genişlik */
.detail-template__field-input.seal-radio-group {
  width: auto;
  max-width: 100%;
  display: inline-flex;
}

/* seal-check field-input olarak — doğal genişlik */
.detail-template__field-input.seal-check {
  width: auto;
  max-width: 100%;
}

.detail-template[data-mode="edit"] .detail-template__field[data-editable="true"] .detail-template__field-value {
  display: none;
}

/* Edit mode'da düzenlenemez (data-editable="false") alanların input'u gizli;
   sadece statik değer (.field-value) gözükür → tenant admin için kapsam/storage/arama.
   !important: seal-radio-group / seal-select gibi specific display kurallarını override etmek için. */
.detail-template[data-mode="edit"] .detail-template__field[data-editable="false"] .detail-template__field-input,
.detail-template[data-mode="edit"] .detail-template__field[data-editable="false"] .detail-template__input-suffix {
  display: none !important;
}

.detail-template[data-mode="edit"] .detail-template__tabs {
  pointer-events: none;
  opacity: 0.55;
}

.detail-template[data-mode="edit"] {
  position: relative;
}

.detail-template[data-mode="edit"] .detail-template__card {
  border-color: rgba(13, 182, 178, 0.3);
  box-shadow: 0 0 0 3px rgba(13, 182, 178, 0.06), var(--seal-shadow);
}

.detail-template__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 3rem 1.5rem;
  background: var(--seal-surface);
  border: 1px dashed rgba(70, 55, 45, 0.18);
  border-radius: var(--seal-radius-lg);
  text-align: center;
}

/* Alt tablo (subtable) — detay sayfasındaki kayda bağlı iç tablolar */
.detail-template__subtable-shell {
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
  overflow: hidden;
}

.detail-template__subtable-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1ebe3;
}

.detail-template__subtable-title {
  margin: 0;
  color: var(--seal-text);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-template__subtable-body {
  overflow-x: auto;
}

.detail-template__subtable thead th {
  position: static;
  background: transparent;
  padding: 0.65rem 1rem;
}

.detail-template__subtable tbody td {
  padding: 0.55rem 1rem;
  vertical-align: middle;
}

.detail-template__subtable .seal-table__col-actions {
  position: static;
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  background: transparent;
  box-shadow: none;
  padding-right: 0.5rem !important;
}

.detail-template__subtable-empty {
  text-align: center;
  padding: 2.2rem 1rem !important;
  color: var(--seal-text-soft);
  font-size: 0.9rem;
  font-style: italic;
}

.detail-template__help {
  margin: 0.5rem 1.25rem 0;
  color: var(--seal-text-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

.detail-template__config-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  margin-left: 0.75rem;
}

.detail-template__kpi-badge {
  margin-left: 0.4rem;
  vertical-align: middle;
}

.detail-template__activity-filters {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #f1ebe3;
}

.seal-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.seal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: rgba(70, 55, 45, 0.06);
  color: var(--seal-text);
  font-size: 0.78rem;
  font-weight: 500;
}

.seal-tag code {
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--seal-text);
}

.seal-tag--warning {
  background: rgba(210, 130, 30, 0.14);
  color: #7a4a11;
}

.seal-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seal-check-group .seal-check {
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
}

.seal-check__hint {
  color: var(--seal-text-soft);
  font-size: 0.78rem;
  font-weight: 400;
}

.seal-modal__dialog--wide {
  max-width: 820px;
}

.seal-field__hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--seal-text-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* ===== Ports page ===== */
.ports-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 1.2rem;
}

.ports-page > .list-template {
  flex: 1 1 auto;
  min-height: 0;
}

.ports-page__summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
}

.ports-page__summary-item--split {
  grid-column: span 2;
}

.ports-page__config-push {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.ports-page__push-notice {
  margin: 0;
}

.seal-alert--info {
  background: rgba(13, 95, 160, 0.08);
  color: #145581;
  border: 1px solid rgba(13, 95, 160, 0.22);
}

/* Alerts page */
.alerts-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 1.2rem;
}

.alerts-page > .list-template {
  flex: 1 1 auto;
  min-height: 0;
}

.alerts-row__title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 420px;
}

.alerts-row__source {
  color: var(--seal-text-soft);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.alerts-row__time {
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
  font-size: 0.8rem;
  color: var(--seal-text-soft);
  letter-spacing: 0.02em;
}

.audit-row__actor {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.audit-diff {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 520px;
}

.audit-diff li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.audit-diff__field {
  font-weight: 600;
  color: var(--seal-text);
  min-width: 120px;
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
  font-size: 0.78rem;
}

.audit-diff__old {
  color: #a13a3a;
  text-decoration: line-through;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(180, 50, 42, 0.08);
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
}

.audit-diff__new {
  color: #1a7a4e;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(13, 160, 90, 0.1);
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
}

.audit-diff i {
  color: var(--seal-text-soft);
  font-size: 0.7rem;
}

/* ===== Live session badge ===== */
.sessions-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(70, 55, 45, 0.06);
  color: var(--seal-text-soft);
}

.sessions-live-badge[data-live="on"] {
  background: rgba(26, 122, 78, 0.12);
  color: #1a7a4e;
}

.sessions-live-badge[data-live="off"] {
  background: rgba(180, 50, 42, 0.1);
  color: #b4322a;
}

.sessions-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #b8b0a4;
  animation: sessionsLivePulse 1.4s ease-in-out infinite;
}

.sessions-live-badge[data-live="on"] .sessions-live-dot { background: #1a7a4e; }
.sessions-live-badge[data-live="off"] .sessions-live-dot { background: #b4322a; animation: none; }

@keyframes sessionsLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.sessions-live-cell {
  transition: background 0.3s ease;
}

.sessions-live-cell[data-flash="1"] {
  background: rgba(26, 122, 78, 0.18);
}

/* ===== System Map ===== */
.sysmap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 1rem;
}

.sysmap__legend {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.7rem 1.1rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.sysmap__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--seal-text);
}

.sysmap__legend-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
}

.sysmap__legend-dot--active { background: #1a7a4e; }
.sysmap__legend-dot--idle { background: #c89a2a; }
.sysmap__legend-dot--stale { background: #b4322a; }

.sysmap__legend-stats {
  margin-left: auto;
  color: var(--seal-text-soft);
  font-size: 0.82rem;
}

.sysmap__legend-broken {
  color: #b4322a;
  font-weight: 600;
  margin-left: 0.3rem;
}

/* Canvas: relative konumlandırma, SVG absolute overlay */
.sysmap__canvas {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1.4rem 1.4rem 2rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
}

/* SVG — canvas tüm boyutunu kaplar, node'ların altında kalır */
.sysmap__lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.sysmap__lines line {
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.sysmap__lines line.sysmap-line--active { stroke: #1a7a4e; }
.sysmap__lines line.sysmap-line--idle { stroke: #c89a2a; stroke-dasharray: 4 3; }
.sysmap__lines line.sysmap-line--stale { stroke: #b4322a; stroke-dasharray: 6 4; }

/* Broken-only filtre: sağlıklı bağlantıları geriye at */
.sysmap[data-filter="broken"] .sysmap__lines line.sysmap-line--active { opacity: 0.12; }
.sysmap[data-filter="broken"] .sysmap__lines line.sysmap-line--idle { opacity: 0.35; }
.sysmap[data-filter="broken"] .sysmap-node:not(.sysmap-node--down):not(.sysmap-node--warn) { opacity: 0.35; }

/* Katmanlar — sol tarafta dikey katman etiketi + sağda yatay node satırı; aralarında ayraç çizgisi.
   Label HTML'de data-layer-label attribute'üyle gelir, ::before content olarak okunur. */
.sysmap__layer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.4rem 0 1.4rem 70px;
  border-bottom: 1px dashed rgba(70, 55, 45, 0.18);
}
.sysmap__layer:last-child { border-bottom: none; }

/* Sistem haritası içinde node'lar daha kompakt — bağlantı çizgileri okunabilir kalsın */
.sysmap__layer .sysmap-node {
  min-width: 170px;
  max-width: 220px;
  padding: 0.5rem 0.65rem;
}
.sysmap__layer .sysmap-node__title { font-size: 0.82rem; }
.sysmap__layer .sysmap-node__sub { font-size: 0.7rem; }
.sysmap__layer .sysmap-node__icon { width: 1.7rem; height: 1.7rem; }

.sysmap__layer-label {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--seal-text);
  background: rgba(70, 55, 45, 0.04);
  border-right: 2px solid rgba(70, 55, 45, 0.2);
  user-select: none;
}

.sysmap__layer--domain { padding-top: 0.4rem; }
.sysmap__layer--agents { padding-bottom: 0.6rem; }

/* Node kartı */
.sysmap-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 190px;
  max-width: 260px;
  padding: 0.65rem 0.8rem;
  background: #fff;
  border: 1px solid #e3dbd1;
  border-radius: 12px;
  text-decoration: none;
  color: var(--seal-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.sysmap-node:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 20, 10, 0.1);
  border-color: var(--seal-primary);
}

.sysmap-node__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(70, 55, 45, 0.06);
  color: var(--seal-text);
}

.sysmap-node__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sysmap-node__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--seal-text);
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.sysmap-node__title code {
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
  font-weight: 700;
}

.sysmap-node__sub {
  font-size: 0.76rem;
  color: var(--seal-text-soft);
  line-height: 1.3;
}

.sysmap-node__sub code {
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
  font-size: 0.74rem;
}

.sysmap-node__chip {
  margin-top: 0.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(13, 95, 160, 0.1);
  color: #0d5fa0;
  font-size: 0.72rem;
  font-weight: 600;
  width: fit-content;
}

.sysmap-node__badge {
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  background: rgba(13, 95, 160, 0.14);
  color: #0d5fa0;
  font-size: 0.7rem;
  font-weight: 600;
}

.sysmap-node__status {
  display: none;
}

/* Sağlık varyantları */
.sysmap-node--domain {
  background: linear-gradient(180deg, rgba(70, 55, 45, 0.04), #fff);
  border-color: rgba(70, 55, 45, 0.18);
  min-width: 280px;
}

.sysmap-node--ok {
  border-left: 4px solid #1a7a4e;
}

.sysmap-node--warn {
  border-left: 4px solid #c89a2a;
}

.sysmap-node--down {
  border-left: 4px solid #b4322a;
  background: rgba(180, 50, 42, 0.04);
}

.sysmap-node--muted {
  border-left: 4px solid #c9bfb3;
  color: var(--seal-text-soft);
}

.sysmap-node--direct .sysmap-node__icon {
  background: rgba(13, 95, 160, 0.12);
  color: #0d5fa0;
}

/* === Tip-bazlı renk/şekil farkı === */
/* Port: mavi tema, "fiş" şekli — sol kenarda dikey bant */
.sysmap-node--port {
  background: #f3f8ff;
  border-color: #b9d0ee;
}
.sysmap-node--port::before {
  content: "";
  position: absolute;
  left: -1px; top: 8px; bottom: 8px; width: 4px;
  background: #2c5dbe;
  border-radius: 0 3px 3px 0;
}
.sysmap-node--port .sysmap-node__icon {
  background: #2c5dbe;
  color: #fff;
  border-radius: 8px;
}

/* Gateway: turuncu tema, hexagonal kenarlı (köşelerden tıraşlanmış) */
.sysmap-node--gateway {
  background: #fff7ed;
  border-color: #f0c896;
  border-radius: 18px 6px 18px 6px;
}
.sysmap-node--gateway .sysmap-node__icon {
  background: #c45a1f;
  color: #fff;
  border-radius: 50%;
  width: 2.2rem; height: 2.2rem;
}

/* Agent: mor tema, daha küçük yuvarlak ikon — uydu */
.sysmap-node--agent {
  background: #faf5ff;
  border-color: #d4baef;
  border-radius: 10px;
}
.sysmap-node--agent .sysmap-node__icon {
  background: #7e3fb8;
  color: #fff;
  border-radius: 50%;
}
/* Direct agent — mavi accent override (mor üzerinde mavi badge) */
.sysmap-node--agent.sysmap-node--direct {
  background: #f3f8ff;
  border-color: #b9d0ee;
}
.sysmap-node--agent.sysmap-node--direct .sysmap-node__icon {
  background: #0d5fa0;
}

/* Sağlık göstergeleri tip rengi tarafından override edilmesin diye border-left kalın olarak ön plan */
.sysmap-node--port,
.sysmap-node--gateway,
.sysmap-node--agent {
  border-left-width: 4px;
}

.ports-page__summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ports-page__summary-label {
  color: var(--seal-text-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ports-page__summary-value {
  color: var(--seal-text);
  font-size: 1rem;
  font-weight: 600;
}

@media (max-width: 820px) {
  .ports-page__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ports-page__summary-item--split {
    grid-column: span 2;
  }
}

.ports-row__port {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.ports-row__port-number {
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--seal-text);
  letter-spacing: 0.02em;
}

.ports-row__muted {
  color: var(--seal-text-soft);
  font-style: italic;
  font-size: 0.85rem;
}

.ports-row__policy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.ports-row__policy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(70, 55, 45, 0.06);
  color: var(--seal-text);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.ports-row__policy-chip i {
  font-size: 0.7rem;
  opacity: 0.75;
}

.ports-row__policy-chip--seal {
  background: rgba(13, 160, 120, 0.12);
  color: #0f7a5f;
}

.ports-row__policy-chip--warning {
  background: rgba(210, 130, 30, 0.14);
  color: #935511;
}

.ports-row__policy-chip--muted {
  background: rgba(70, 55, 45, 0.04);
  color: var(--seal-text-soft);
}

.ports-row__policy-chip--channel {
  background: rgba(13, 95, 160, 0.1);
  color: #0d5fa0;
  font-weight: 600;
}

/* Nested modal (kanal düzenleme — drawer üstünde).
   Specificity'i arttırmak için iki class chained — `.seal-modal { z-index: 150 }`
   kuralı bu dosyada daha sonra tanımlandığı için tek class ile override edilemiyor;
   double-class ile (0,2,0) > (0,1,0) wins. */
.seal-modal.seal-modal--nested {
  z-index: 260;  /* drawer 210'un üstünde, seal-select__panel 320 altında */
}

.seal-switch--compact .seal-switch__slider {
  width: 2.1rem;
  height: 1.15rem;
}

.seal-switch--compact .seal-switch__slider::after {
  width: 0.85rem;
  height: 0.85rem;
  top: 0.15rem;
  left: 0.15rem;
}

.seal-switch--compact input:checked ~ .seal-switch__slider::after {
  transform: translateX(0.95rem);
}

/* ===== Drawer ===== */
.seal-drawer {
  position: fixed;
  inset: 0;
  z-index: 210;
}

.seal-drawer[hidden] {
  display: none;
}

.seal-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 14, 0.35);
  opacity: 0;
  animation: sealModalFade 0.18s ease forwards;
}

.seal-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--seal-surface);
  box-shadow: -12px 0 32px rgba(24, 18, 14, 0.16);
  opacity: 0;
  animation: sealDrawerIn 0.22s ease forwards;
}

/* transform YOK — position:fixed dropdown panelleri için containing block yaratmamak lazım */
@keyframes sealDrawerIn {
  to { opacity: 1; }
}

.seal-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid #f1ebe3;
}

.seal-drawer__title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.seal-drawer__eyebrow {
  color: var(--seal-text-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.seal-drawer__title {
  margin: 0;
  color: var(--seal-text);
  font-size: 1.1rem;
}

.seal-drawer__title code {
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
}

.seal-drawer__close {
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--seal-text-soft);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
}

.seal-drawer__close:hover {
  background: rgba(70, 55, 45, 0.06);
  color: var(--seal-text);
}

.seal-drawer__tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #f1ebe3;
}

.seal-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.2rem 1.3rem;
}

.seal-drawer__field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.seal-drawer__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.9rem 1.3rem;
  border-top: 1px solid #f1ebe3;
  background: rgba(70, 55, 45, 0.02);
}

.seal-field--switch {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.seal-field--switch .seal-field__label {
  margin: 0;
}

/* ===== Chip list + inline form ===== */
.seal-chip-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.seal-chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: rgba(70, 55, 45, 0.06);
  color: var(--seal-text);
  font-size: 0.82rem;
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
}

.seal-chip-list li button {
  border: none;
  background: transparent;
  color: var(--seal-text-soft);
  cursor: pointer;
  padding: 0;
  font-size: 0.72rem;
}

.seal-chip-list li button:hover {
  color: #b4322a;
}

.seal-chip-list:empty {
  display: none;
}

.seal-inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.seal-inline-form .seal-field__control {
  flex: 1 1 auto;
  min-width: 0;
}

.seal-inline-form__btn {
  flex-shrink: 0;
  flex-grow: 0;
  white-space: nowrap;
}

/* Radio block variant — açıklama altta, dikey stack */
.seal-radio-group--stacked {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.seal-radio--block {
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e3dbd1;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.seal-radio--block:has(input:checked) {
  border-color: var(--seal-primary);
  background: rgba(var(--seal-primary-rgb, 70, 55, 45), 0.04);
}

.seal-radio__content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.seal-radio__hint {
  color: var(--seal-text-soft);
  font-size: 0.78rem;
  font-weight: 400;
}

/* Disabled field (sealing kapalı → freq disabled vb.) */
.seal-field[data-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
.seal-field[data-disabled="true"] .seal-field__control,
.seal-field[data-disabled="true"] .seal-select__trigger {
  cursor: not-allowed;
}

/* ===== Alert ===== */
.seal-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.seal-alert--warning {
  background: rgba(210, 130, 30, 0.12);
  color: #7a4a11;
  border: 1px solid rgba(210, 130, 30, 0.25);
}

.seal-alert i {
  font-size: 1rem;
  margin-top: 0.15rem;
}

/* Wizard template — multi-step form şablonu */
.wizard-template {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 1rem;
}

.wizard-template__steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.3rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
}

.wizard-template__step {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0.5rem;
  flex-shrink: 0;
}

.wizard-template__step-index {
  position: relative;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: #ece5dd;
  color: var(--seal-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wizard-template__step-index i {
  display: none;
  font-size: 0.8rem;
}

.wizard-template__step--active .wizard-template__step-index {
  background: linear-gradient(145deg, var(--seal-primary) 0%, var(--seal-primary-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(13, 182, 178, 0.35);
}

.wizard-template__step--completed .wizard-template__step-index {
  background: #1e8c4b;
  color: #fff;
}

.wizard-template__step--completed .wizard-template__step-index span {
  display: none;
}

.wizard-template__step--completed .wizard-template__step-index i {
  display: inline-block;
}

.wizard-template__step-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.2;
  min-width: 0;
}

.wizard-template__step-text strong {
  color: var(--seal-text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.wizard-template__step--active .wizard-template__step-text strong {
  color: var(--seal-text);
  font-weight: 700;
}

.wizard-template__step--completed .wizard-template__step-text strong {
  color: var(--seal-text);
}

.wizard-template__step-text small {
  color: var(--seal-text-soft);
  font-size: 0.76rem;
}

.wizard-template__step-divider {
  flex: 1;
  min-width: 1.5rem;
  height: 2px;
  background: #ece5dd;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.wizard-template__step-divider--completed {
  background: #1e8c4b;
}

.wizard-template__body {
  flex: 1;
  min-height: 0;
  padding: 1.5rem 1.7rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
  overflow-y: auto;
}

.wizard-template__panel[hidden] {
  display: none;
}

.wizard-template__panel {
  animation: wizardFadeIn 0.2s ease;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-template__panel-title {
  margin: 0 0 0.35rem;
  color: var(--seal-text);
  font-size: 1.15rem;
  font-weight: 700;
}

.wizard-template__panel-subtitle {
  margin: 0 0 1.4rem;
  color: var(--seal-text-soft);
  font-size: 0.92rem;
}

.wizard-template__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.wizard-template__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1.3rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
}

.wizard-template__progress {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
  max-width: 18rem;
}

.wizard-template__progress-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--seal-text-soft);
}

.wizard-template__progress-bar {
  height: 6px;
  background: #ece5dd;
  border-radius: 999px;
  overflow: hidden;
}

.wizard-template__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--seal-primary) 0%, var(--seal-primary-deep) 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 25%;
}

.wizard-template__footer-nav {
  display: flex;
  gap: 0.55rem;
}

.wizard-template__summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wizard-template__summary-card {
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: 12px;
}

.wizard-template__summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.wizard-template__summary-title {
  margin: 0;
  color: var(--seal-text);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wizard-template__summary-edit {
  border: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: transparent;
  color: var(--seal-primary-deep);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.wizard-template__summary-edit:hover {
  background: rgba(13, 182, 178, 0.08);
}

.wizard-template__summary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
}

.wizard-template__summary-list > div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.65rem;
  font-size: 0.88rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f1ebe3;
}

.wizard-template__summary-list dt {
  margin: 0;
  color: var(--seal-text-soft);
  font-weight: 600;
}

.wizard-template__summary-list dd {
  margin: 0;
  color: var(--seal-text);
  word-break: break-word;
}

@media (max-width: 1080px) {
  .wizard-template__fields,
  .wizard-template__summary-list {
    grid-template-columns: 1fr;
  }

  .wizard-template__step-text small {
    display: none;
  }
}

@media (max-width: 860px) {
  .wizard-template__steps {
    overflow-x: auto;
  }
}

/* Modal — genel kullanım (aktivite form, vb.) */
.seal-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.seal-modal[hidden] {
  display: none;
}

.seal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 10, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.seal-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--seal-surface);
  border-radius: var(--seal-radius-lg);
  box-shadow: 0 24px 60px rgba(30, 20, 10, 0.3);
  animation: sealModalFade 0.15s ease forwards;
  overflow: hidden;
}

@keyframes sealModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.seal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid #f1ebe3;
}

.seal-modal__title {
  margin: 0;
  color: var(--seal-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.seal-modal__close {
  border: 0;
  background: transparent;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  color: var(--seal-text-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.seal-modal__close:hover {
  background: rgba(70, 55, 45, 0.06);
  color: var(--seal-text);
}

.seal-modal__body {
  padding: 1.2rem 1.3rem;
  overflow-y: auto;
}

.seal-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.seal-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.seal-field--full {
  grid-column: 1 / -1;
}

.seal-modal__divider {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(70, 55, 45, 0.12);
  margin: 0.4rem 0 0.2rem;
}

.seal-modal__grid > .seal-modal__row-name-toggle {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(68px, 1fr);
  gap: 0.9rem;
  align-items: start;
  grid-column: 1 / -1;
}

.seal-switch--block {
  display: inline-flex;
  margin-top: 0.3rem;
}

/* ---------- NAS auto-discovery nested rows ---------- */
.seal-table__expand {
  border: 0;
  background: transparent;
  padding: 0 0.3rem 0 0;
  cursor: pointer;
  color: var(--seal-text-soft, #6b5e52);
}
.seal-table__expand i {
  transition: transform 0.15s ease;
}
.seal-table__expand[aria-expanded="false"] i {
  transform: rotate(-90deg);
}

.nas-child-row {
  background: rgba(245, 240, 232, 0.35);
}

.nas-child-row--pending {
  background: rgba(253, 240, 210, 0.35);
}

.nas-child-row__title {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nas-child-row__pipe {
  color: rgba(70, 55, 45, 0.35);
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
}

.nas-child-row.is-collapsed {
  display: none;
}

/* ---------- Reply Attribute editor ---------- */
.replyattrs-editor {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.replyattrs-editor__empty {
  color: rgba(70, 55, 45, 0.5);
  font-size: 0.88rem;
  padding: 0.4rem 0;
}

.replyattrs-editor__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 80px minmax(0, 1.5fr) minmax(0, 2fr) 36px;
  gap: 0.4rem;
  align-items: center;
}

/* ---------- Zone chip ---------- */
.identity-zone-chip {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
  .seal-modal__grid > .seal-modal__row-name-toggle {
    grid-template-columns: 1fr;
  }
}

.seal-field__with-affix {
  position: relative;
}

.seal-field__with-affix > .seal-field__control {
  padding-right: 2.4rem;
  width: 100%;
}

.seal-field__affix {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--seal-text-muted, #6b5e52);
  border-radius: 6px;
  cursor: pointer;
}

.seal-field__affix:hover {
  background: rgba(70, 55, 45, 0.06);
  color: var(--seal-primary-deep);
}

.seal-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.9rem 1.3rem;
  border-top: 1px solid #f1ebe3;
  background: rgba(70, 55, 45, 0.02);
}

.seal-modal input.has-error,
.seal-modal textarea.has-error,
.seal-modal select.has-error {
  border-color: #b4322a;
  box-shadow: 0 0 0 3px rgba(180, 50, 42, 0.12);
}

@media (max-width: 640px) {
  .seal-modal__grid {
    grid-template-columns: 1fr;
  }
}

.seal-regkey {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.seal-regkey code {
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
  font-size: 0.85rem;
  color: var(--seal-text);
  letter-spacing: 0.02em;
}

.seal-regkey--field {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.seal-regkey--field .seal-field__control {
  flex: 1 1 auto;
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
  background: rgba(70, 55, 45, 0.04);
  letter-spacing: 0.03em;
}

.seal-regkey__copy.is-copied i::before {
  content: "\f00c";
  color: var(--seal-accent);
}

.seal-regkey__compact {
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
  font-size: 0.78rem;
  color: var(--seal-text-soft);
  letter-spacing: 0.02em;
}

.seal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(var(--seal-primary-rgb, 70, 55, 45), 0.08);
  color: var(--seal-primary-deep, var(--seal-text));
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.seal-pill i {
  font-size: 0.72rem;
  opacity: 0.7;
}

.seal-pill--soft {
  background: rgba(70, 55, 45, 0.05);
  color: var(--seal-text-soft);
}

.detail-template__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 2rem;
  border: 1px dashed rgba(70, 55, 45, 0.18);
  border-radius: var(--seal-radius-lg);
  background: var(--seal-surface);
  color: var(--seal-text);
  text-align: center;
}

.detail-template__placeholder i {
  font-size: 2.2rem;
  color: var(--seal-text-soft);
  opacity: 0.55;
}

.detail-template__placeholder h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.detail-template__placeholder p {
  margin: 0;
  max-width: 620px;
  color: var(--seal-text-soft);
  line-height: 1.55;
  font-size: 0.95rem;
}

.detail-template__empty i {
  font-size: 1.8rem;
  color: var(--seal-text-soft);
  opacity: 0.6;
}

.detail-template__empty p {
  margin: 0;
  color: var(--seal-text-soft);
  font-size: 0.95rem;
}

.list-template__filters,
.list-template__toolbar,
.list-template__table-shell,
.list-template__footer {
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  background: var(--seal-surface);
  box-shadow: var(--seal-shadow);
}

.list-template__filters {
  padding: 1.2rem;
}

.list-template__filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.list-template__filter-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.list-template__advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--seal-primary-deep);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.list-template__advanced-toggle:hover {
  color: var(--seal-primary);
}

.list-template__advanced-count {
  min-width: 1.6rem;
  padding-inline: 0.5rem;
}

.list-template__advanced-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ece5dd;
}

.list-template__advanced-panel[hidden] {
  display: none;
}

.list-template__filter-grid--advanced {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.list-template__advanced-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  gap: 0.6rem;
}

.seal-table tbody tr.is-filter-hidden {
  display: none;
}

.seal-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.seal-field__label {
  color: var(--seal-text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.seal-field__control {
  width: 100%;
  border: 1px solid #d8d0c8;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: #fff;
  color: var(--seal-text);
  font-family: inherit;
  font-size: 0.92rem;
}

.seal-select {
  position: relative;
  display: block;
}

.seal-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.seal-select__trigger:hover {
  border-color: #bfb4a7;
}

.seal-select[data-open] .seal-select__trigger {
  border-color: var(--seal-primary);
  box-shadow: 0 0 0 3px rgba(13, 182, 178, 0.12);
}

.seal-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--seal-text);
}

.seal-select__value--placeholder {
  color: var(--seal-text-soft);
  font-weight: 400;
}

.seal-select__caret {
  flex-shrink: 0;
  color: var(--seal-text-soft);
  font-size: 0.72rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.seal-select[data-open] .seal-select__caret {
  transform: rotate(180deg);
  color: var(--seal-primary-deep);
}

.seal-select__panel {
  position: fixed;
  z-index: 320;  /* modal (z:200) + drawer (z:210) üstünde */
  min-width: 220px;
  max-height: 420px;   /* gruplandırılmış uzun listeler (~11+ öğe) için yeterli alan */
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(70, 55, 45, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(30, 20, 10, 0.14);
  overflow-y: auto;
}

.seal-select__panel[hidden] {
  display: none;
}

.seal-select__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--seal-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.seal-select__option:hover {
  background: rgba(13, 182, 178, 0.08);
}

.seal-select__option[aria-selected="true"] {
  background: rgba(13, 182, 178, 0.14);
  color: var(--seal-primary-deep);
  font-weight: 600;
}

.seal-select__option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--seal-primary);
  cursor: pointer;
}

.seal-radio-group {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid #d8d0c8;
  border-radius: 14px;
  background: #fff;
  min-height: calc(0.92rem * 1.5 + 1.6rem + 2px);
}

.seal-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--seal-text);
  user-select: none;
}

.seal-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seal-radio__indicator {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #c9bfb3;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.seal-radio input:checked + .seal-radio__indicator {
  border-color: var(--seal-primary);
}

.seal-radio input:checked + .seal-radio__indicator::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--seal-primary);
}

.seal-radio input:focus-visible + .seal-radio__indicator {
  box-shadow: 0 0 0 3px rgba(13, 182, 178, 0.18);
}

.seal-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid #d8d0c8;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  color: var(--seal-text);
  font-size: 0.9rem;
  user-select: none;
  transition: border-color 0.15s ease;
}

.seal-check:hover {
  border-color: #bfb4a7;
}

.seal-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seal-check__box {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  border: 2px solid #c9bfb3;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.7rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.seal-check input:checked ~ .seal-check__box {
  background: var(--seal-primary);
  border-color: var(--seal-primary);
  color: #fff;
}

.seal-check input:focus-visible ~ .seal-check__box {
  box-shadow: 0 0 0 3px rgba(13, 182, 178, 0.18);
}

.list-template__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.list-template__stats,
.list-template__toolbar-actions,
.list-template__pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.list-template__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.list-template__stat span,
.list-template__footer span {
  color: var(--seal-text-soft);
  font-size: 0.82rem;
}

.list-template__stat strong {
  font-size: 1.05rem;
}

.list-template__table-shell {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.seal-table {
  width: 100%;
  border-collapse: collapse;
}

.seal-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 1rem 1.2rem;
  background: var(--seal-surface);
  border-bottom: 1px solid #ece5dd;
  color: var(--seal-text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seal-table__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.seal-table__sort:hover .seal-table__sort-icon {
  color: var(--seal-primary-deep);
}

.seal-table__sort-icon {
  font-size: 0.75rem;
  color: #c9bfb3;
  transition: color 0.15s ease;
}

.seal-table__sort[data-sort-direction] .seal-table__sort-icon {
  color: var(--seal-primary-deep);
}

.seal-table tbody td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #f1ebe3;
  color: var(--seal-text);
  font-size: 0.94rem;
}

.seal-table tbody tr:last-child td {
  border-bottom: 0;
}

.seal-table__align-right {
  text-align: right;
}

.seal-table__link {
  color: var(--seal-primary-deep);
  font-weight: 600;
}

.seal-table__cell-stacked {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.25;
}

.seal-table__cell-primary {
  color: var(--seal-text);
  font-weight: 500;
}

.seal-table__cell-secondary {
  color: var(--seal-text-soft);
  font-size: 0.78rem;
  font-weight: 400;
}

.seal-table__cell-truncate {
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.seal-tooltip-bubble {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  max-width: 320px;
  padding: 0.55rem 0.75rem;
  background: #2a1d14;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(20, 10, 5, 0.28);
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.seal-tooltip-bubble[data-visible] {
  opacity: 1;
  transform: translateY(0);
}

.seal-tooltip-bubble::after {
  content: "";
  position: absolute;
  left: var(--seal-tooltip-arrow, 50%);
  border: 6px solid transparent;
}

.seal-tooltip-bubble[data-position="top"]::after {
  top: 100%;
  margin-left: -6px;
  border-top-color: #2a1d14;
}

.seal-tooltip-bubble[data-position="bottom"]::after {
  bottom: 100%;
  margin-left: -6px;
  border-bottom-color: #2a1d14;
}

.seal-confirm {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.seal-confirm[hidden] {
  display: none;
}

.seal-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 10, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: sealConfirmFade 0.15s ease forwards;
}

.seal-confirm__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.6rem 1.5rem 1.3rem;
  background: var(--seal-surface);
  border-radius: var(--seal-radius-lg);
  box-shadow: 0 24px 60px rgba(30, 20, 10, 0.25);
  text-align: center;
  animation: sealConfirmPop 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.15) forwards;
}

@keyframes sealConfirmFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sealConfirmPop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.seal-confirm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: rgba(180, 50, 42, 0.13);
  color: #b4322a;
  font-size: 1.3rem;
}

.seal-confirm--default .seal-confirm__icon {
  background: rgba(13, 182, 178, 0.13);
  color: var(--seal-primary-deep);
}

.seal-confirm__title {
  margin: 0 0 0.45rem;
  color: var(--seal-text);
  font-size: 1.15rem;
  font-weight: 700;
}

.seal-confirm__message {
  margin: 0 0 1.3rem;
  color: var(--seal-text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.seal-confirm__actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}

.seal-table__col-icon {
  width: 104px;
  min-width: 104px;
  max-width: 104px;
  padding-left: 1rem !important;
  padding-right: 0.6rem !important;
  white-space: nowrap;
}

.seal-table__col-actions {
  position: sticky;
  right: 0;
  z-index: 1;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  padding-right: 0.9rem !important;
  text-align: right;
  white-space: nowrap;
  background: var(--seal-surface);
  box-shadow: -6px 0 8px -6px rgba(0, 0, 0, 0.08);
}

.seal-table thead .seal-table__col-actions {
  z-index: 3;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  padding-right: 0.35rem !important;
  text-align: right;
}

.seal-table__column-settings {
  display: inline-flex;
  position: relative;
}

.seal-table__column-settings > .seal-table__icon-link {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 1rem;
}

.seal-table__column-settings-panel {
  position: fixed;
  z-index: 60;
  min-width: 220px;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid rgba(70, 55, 45, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(30, 20, 10, 0.14);
  color: var(--seal-text);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
}

.seal-table__column-settings-panel[hidden] {
  display: none;
}

.seal-table__column-settings-title {
  padding: 0.4rem 0.7rem 0.5rem;
  color: var(--seal-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seal-table__column-settings-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.seal-table__column-settings-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: var(--seal-text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease;
}

.seal-table__column-settings-item:hover {
  background: rgba(13, 182, 178, 0.08);
}

.seal-table__column-settings-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--seal-primary);
  cursor: pointer;
}

.seal-table__row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.seal-table__more {
  position: relative;
  display: inline-flex;
}

.seal-table__more-menu {
  position: fixed;
  z-index: 60;
  min-width: 200px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(70, 55, 45, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(30, 20, 10, 0.14);
}

.seal-table__more-menu[hidden] {
  display: none;
}

.seal-table__more-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--seal-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.seal-table__more-item:hover {
  background: rgba(13, 182, 178, 0.08);
  color: var(--seal-primary-deep);
}

.seal-table__more-item i {
  width: 1rem;
  color: var(--seal-text-soft);
  text-align: center;
}

.seal-table__more-item:hover i {
  color: var(--seal-primary-deep);
}

.seal-table__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--seal-primary-deep);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.seal-table__icon-link:hover {
  background: rgba(13, 182, 178, 0.12);
}

.seal-table__icon-link--danger {
  color: #b4322a;
}

.seal-table__icon-link--danger:hover {
  background: rgba(180, 50, 42, 0.12);
  color: #8f2721;
}

.seal-table__icon-link--success {
  color: #1e8c4b;
}

.seal-table__icon-link--success:hover {
  background: rgba(41, 177, 93, 0.14);
  color: #176e3b;
}

.seal-table__col-pin {
  width: 3rem;
  text-align: center;
}

.seal-table__pin-link {
  color: #b2aba4;
}

.seal-table__pin-link:hover {
  background: rgba(74, 130, 255, 0.12);
  color: #4d79d8;
}

.seal-table__pin-link.is-active {
  color: #c53d36;
}

.seal-table__pin-link.is-active:hover {
  background: rgba(197, 61, 54, 0.14);
  color: #aa2f29;
}

.seal-table tr.is-active-customer {
  background: rgba(197, 61, 54, 0.03);
}

.seal-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.seal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.seal-badge--success {
  background: rgba(41, 177, 93, 0.13);
  color: #1e8c4b;
}

.seal-badge--warning {
  background: rgba(245, 171, 36, 0.14);
  color: #a96c0c;
}

.seal-badge--neutral {
  background: rgba(96, 111, 127, 0.15);
  color: #5c6976;
}

.seal-badge--danger {
  background: rgba(214, 51, 78, 0.13);
  color: #b9264c;
}

.seal-badge--info {
  background: rgba(13, 110, 253, 0.13);
  color: #0a58ca;
}

.list-template__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

@media (max-width: 1280px) {
  .empty-template__grid {
    grid-template-columns: 1fr;
  }

  .empty-template__hero {
    grid-template-columns: 1fr;
  }

  .list-template__filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-template__filter-grid--advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-template__summary {
    grid-template-columns: 1fr;
  }

  .detail-template__kpis {
    padding-left: 0;
    border-left: 0;
    padding-top: 1rem;
    border-top: 1px solid #ece5dd;
  }

  .detail-template__grid {
    grid-template-columns: 1fr;
  }
}

/* Dar ekranda otomatik daraltma kaldırıldı; ekran menüsü modül rail'indeki
   sidebar-toggle ile elle açılıp kapatılır. Kapalıyken .seal-app[data-sidebar-collapsed="true"]
   sınıfı ile ekran menüsü tamamen gizlenir, modül rail görünür kalır. */

@media (max-width: 860px) {
  html,
  body {
    height: auto;
  }

  body {
    overflow: auto;
  }

  .seal-app,
  .seal-main {
    height: auto;
  }

  .seal-main {
    overflow: visible;
    min-height: 100vh;
  }

  .seal-page,
  .seal-page:has(.list-template),
  .seal-page:has(.detail-template) {
    overflow: visible;
    flex: initial;
  }

  .list-template,
  .list-template__table-shell {
    flex: initial;
    min-height: auto;
  }

  .list-template__table-shell {
    overflow: visible;
  }

  .seal-table thead th {
    position: static;
  }

  .detail-template,
  .detail-template__panels {
    flex: initial;
    min-height: auto;
  }

  .detail-template__panels {
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
  }

  .seal-app {
    grid-template-columns: 1fr;
  }

  .seal-module-rail,
  .seal-sidebar {
    display: none;
  }

  .seal-topbar,
  .seal-page,
  .seal-page__header,
  .seal-page__toolbar,
  .empty-template__canvas-header {
    flex-direction: column;
  }

  .seal-topbar__search {
    width: 100%;
  }

  .seal-topbar__actions,
  .seal-page__actions,
  .list-template__toolbar,
  .list-template__footer,
  .list-template__stats,
  .list-template__toolbar-actions,
  .list-template__pagination,
  .empty-template__canvas-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .list-template__filter-grid {
    grid-template-columns: 1fr;
  }

  .list-template__filter-grid--advanced {
    grid-template-columns: 1fr;
  }
}

/* ---------- Identity · Logs quick filter chips ---------- */
.logs-quick-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed rgba(70, 55, 45, 0.14);
}

.logs-quick-filter__btn {
  border-radius: 999px;
}

.logs-quick-filter__btn.is-active {
  background: var(--seal-primary);
  color: #fff;
  border-color: var(--seal-primary);
  box-shadow: 0 2px 6px rgba(180, 50, 42, 0.18);
}

.logs-quick-filter__btn.is-active i {
  color: #fff;
}

/* ---------- Identity · Source/Sync cell (users + groups) ---------- */
.identity-source-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.identity-source-cell__connector {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--seal-primary-deep);
}

.identity-source-cell__sync,
.identity-source-cell__override {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
}

.identity-source-cell__override {
  border: 1px solid rgba(138, 106, 31, 0.3);
  background: rgba(253, 240, 210, 0.45);
  color: #8a6a1f;
  border-radius: 999px;
}

.identity-sync-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

/* ========== Wifi Auth Settings — service cards ========== */
.auth-card {
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
  margin-bottom: 1rem;
  transition: opacity 0.15s ease;
}

.auth-card[data-enabled="false"] {
  opacity: 0.55;
}

.auth-card[data-enabled="false"]:hover {
  opacity: 0.75;
}

.auth-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(70, 55, 45, 0.08);
  gap: 1rem;
}

.auth-card[data-enabled="false"] .auth-card__header {
  border-bottom-color: transparent;
}

.auth-card__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.auth-card__title > i {
  color: var(--seal-primary-deep);
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.auth-card__title > div {
  min-width: 0;
}

.auth-card__title h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--seal-text);
  line-height: 1.2;
}

.auth-card__title small {
  display: block;
  color: var(--seal-text-soft);
  font-weight: 400;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.auth-card__body {
  padding: 1.1rem 1.2rem;
  border: 0;
  margin: 0;
}

.auth-card__body[disabled] {
  cursor: not-allowed;
}

.auth-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.auth-card__field--full {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .auth-card__grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Wifi Portal Designer (Page + Section + Block) ========== */
/* === 3 kolon designer düzeni === */
.portal-designer {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 340px;
  gap: 1rem;
  align-items: start;
}

/* === Sol ray: Portal switcher === */
.portal-switcher {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.portal-switcher__select {
  width: 100%;
}

.portal-switcher__add {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--seal-primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}

.portal-switcher__add:hover {
  background: var(--seal-primary-deep);
}

.portal-switcher__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.2rem 0.8rem;
  border-bottom: 1px solid rgba(70, 55, 45, 0.08);
  margin-bottom: 0.6rem;
}

.portal-switcher__meta .seal-badge,
.portal-switcher__meta .seal-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
}

.portal-designer__rail {
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
  padding: 0.8rem;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

/* === Sol rail: ağaç === */
.portal-tree {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.portal-tree__section-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--seal-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.7rem 0.4rem 0.25rem;
}

.portal-tree__root {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.83rem;
  color: var(--seal-text);
  cursor: pointer;
}

.portal-tree__root:hover {
  background: rgba(70, 55, 45, 0.04);
}

.portal-tree__root.is-selected {
  background: rgba(180, 50, 42, 0.08);
  border-color: rgba(180, 50, 42, 0.25);
  color: var(--seal-primary-deep);
}

.portal-tree__root i {
  width: 18px;
}

.portal-tree__pages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.portal-tree__page {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

.portal-tree__page-head {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  gap: 0.2rem;
}

.portal-tree__page-toggle {
  background: transparent;
  border: 0;
  color: var(--seal-text-soft);
  cursor: pointer;
  font-size: 0.7rem;
  transition: transform 0.15s;
  padding: 4px;
}

.portal-tree__page.is-expanded .portal-tree__page-toggle {
  transform: rotate(90deg);
}

.portal-tree__page-label {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  min-width: 0;
  text-align: left;
}

.portal-tree__page-label:hover {
  background: rgba(70, 55, 45, 0.04);
}

.portal-tree__page.is-selected > .portal-tree__page-head .portal-tree__page-label {
  background: rgba(180, 50, 42, 0.08);
  border-color: rgba(180, 50, 42, 0.25);
}

.portal-tree__page-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(180, 50, 42, 0.12);
  color: var(--seal-primary-deep);
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.72rem;
  font-family: var(--seal-font-mono, "Monaco", monospace);
}

.portal-tree__page.is-selected .portal-tree__page-order {
  background: var(--seal-primary);
  color: #fff;
}

.portal-tree__page-name {
  font-size: 0.85rem;
  color: var(--seal-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-tree__page-count {
  font-size: 0.72rem;
  color: var(--seal-text-soft);
  padding: 0.1rem 0.4rem;
  background: rgba(70, 55, 45, 0.08);
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}

.portal-tree__page-more {
  background: transparent;
  border: 0;
  color: var(--seal-text-soft);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.portal-tree__page-more:hover {
  background: rgba(70, 55, 45, 0.08);
  color: var(--seal-text);
}

/* Sayfa → Section → Blok hiyerarşisi */
.portal-tree__sections {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.4rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.portal-tree__page.is-expanded .portal-tree__sections {
  display: flex;
}

.portal-tree__section {
  display: flex;
  flex-direction: column;
  position: relative;
}

.portal-tree__section::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(70, 55, 45, 0.15);
}

.portal-tree__section-head {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 0.2rem;
}

.portal-tree__section-toggle {
  background: transparent;
  border: 0;
  color: var(--seal-text-soft);
  cursor: pointer;
  font-size: 0.65rem;
  transition: transform 0.15s;
  padding: 4px;
}

.portal-tree__section.is-expanded .portal-tree__section-toggle {
  transform: rotate(90deg);
}

.portal-tree__section-label-btn {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}

.portal-tree__section-label-btn:hover {
  background: rgba(70, 55, 45, 0.04);
}

.portal-tree__section.is-selected .portal-tree__section-label-btn {
  background: rgba(180, 50, 42, 0.08);
  border-color: rgba(180, 50, 42, 0.2);
}

.portal-tree__section-trigger {
  color: var(--seal-text-soft);
  font-size: 0.72rem;
}

.portal-tree__section.is-selected .portal-tree__section-trigger {
  color: var(--seal-primary-deep);
}

.portal-tree__section-name {
  font-size: 0.8rem;
  color: var(--seal-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-tree__blocks {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.2rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.15rem;
}

.portal-tree__section.is-expanded .portal-tree__blocks {
  display: flex;
}

.portal-tree__block {
  position: relative;
}

.portal-tree__block::before {
  content: "";
  position: absolute;
  left: -0.6rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(70, 55, 45, 0.15);
}

.portal-tree__block-btn {
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.portal-tree__block-btn:hover {
  background: rgba(70, 55, 45, 0.04);
}

.portal-tree__block.is-selected .portal-tree__block-btn {
  background: rgba(180, 50, 42, 0.08);
  border-color: rgba(180, 50, 42, 0.2);
}

.portal-tree__block.is-disabled .portal-tree__block-btn {
  opacity: 0.45;
}

.portal-tree__block-icon {
  color: var(--seal-text-soft);
  font-size: 0.82rem;
}

.portal-tree__block.is-selected .portal-tree__block-icon {
  color: var(--seal-primary-deep);
}

.portal-tree__block-name {
  font-size: 0.78rem;
  color: var(--seal-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-tree__block-grip {
  color: rgba(70, 55, 45, 0.35);
  cursor: grab;
  font-size: 0.75rem;
}

/* Drag-drop feedback */
.portal-tree__block.is-dragging,
.portal-tree__section.is-dragging,
.portal-tree__page.is-dragging {
  opacity: 0.45;
  outline: 2px dashed var(--seal-primary);
}

.portal-tree__block.is-drop-before::before,
.portal-tree__section.is-drop-before::after,
.portal-tree__page.is-drop-before::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 3px;
  background: var(--seal-primary);
  border-radius: 2px;
  z-index: 5;
}

.portal-tree__block.is-drop-after::after,
.portal-tree__section.is-drop-after::after,
.portal-tree__page.is-drop-after::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--seal-primary);
  border-radius: 2px;
  z-index: 5;
}

.portal-tree__block,
.portal-tree__page,
.portal-tree__section {
  position: relative;
}

.portal-tree__add-block,
.portal-tree__add-page,
.portal-tree__add-section {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px dashed rgba(180, 50, 42, 0.35);
  color: var(--seal-primary-deep);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  margin-top: 0.25rem;
}

.portal-tree__add-block {
  margin-left: 1.2rem;
  font-size: 0.7rem;
}

.portal-tree__add-section {
  margin-left: 1.4rem;
  font-size: 0.7rem;
}

.portal-tree__add-block:hover,
.portal-tree__add-page:hover,
.portal-tree__add-section:hover {
  background: rgba(180, 50, 42, 0.06);
}

.portal-tree__add-page {
  justify-content: center;
  width: 100%;
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* === Orta canvas === */
.portal-canvas {
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
  overflow: hidden;
  min-height: 620px;
}

.portal-canvas__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(70, 55, 45, 0.08);
  gap: 0.8rem;
  flex-wrap: wrap;
}

.portal-canvas__section-select {
  min-width: 220px;
  margin-left: 0.5rem;
}

.portal-canvas__lang-select {
  min-width: 120px;
  margin-left: auto;
}

.portal-canvas__stage {
  padding: 1.5rem;
  background: linear-gradient(145deg, #f7f2ea, #ede5da);
  min-height: 560px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Tema değişkenleri — portal & tema panelinden override edilir */
  --portal-primary: #b4322a;
  --portal-accent: #5a4d42;
  --portal-text: #2a2620;
  --portal-font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.portal-device__screen {
  color: var(--portal-text);
  font-family: var(--portal-font);
}

.portal-canvas__page.is-hidden {
  display: none;
}

/* === Mobil / PC mockup (modern, çerçevesiz) === */
.portal-device {
  display: flex;
  justify-content: center;
}

/* Modern iPhone: ince bezel, yüksek aspect, dynamic island */
.portal-device__frame {
  position: relative;
  background: #0a0a0a;
  border-radius: 52px;
  padding: 7px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 14px 36px rgba(0, 0, 0, 0.28);
  transition: width 0.2s, height 0.2s, border-radius 0.2s;
  width: 340px;
  height: 720px;
}

.portal-canvas__stage[data-device="pc"] .portal-device__frame {
  width: 860px;
  height: 520px;
  border-radius: 14px;
  padding: 5px;
}

.portal-device__dynamic-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

.portal-canvas__stage[data-device="pc"] .portal-device__dynamic-island {
  display: none;
}

.portal-device__home {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  z-index: 3;
}

.portal-canvas__stage[data-device="pc"] .portal-device__home {
  display: none;
}

.portal-device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 46px;
  overflow: hidden;
  background: #fff;
}

.portal-canvas__stage[data-device="pc"] .portal-device__screen {
  border-radius: 9px;
}

.portal-device__screen--overlay-card .portal-device__content {
  background: rgba(255, 255, 255, 0.92);
  margin: 2rem 0.8rem;
  border-radius: 14px;
  max-height: calc(100% - 4rem);
  position: relative;
  z-index: 3;
}

.portal-device__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.portal-device__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Section — her biri bir katman, pinned CSS order ile sabitlenir */
.portal-device__section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  position: relative;
}

.portal-device__section.is-hidden {
  display: none;
}

.portal-device__section--initial,
.portal-device__section--reveal,
.portal-device__section--navigation {
  flex: 1;
  order: 0;
}

.portal-device__section--pinned-top {
  order: -100;
  flex: 0 0 auto;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
  padding: 0.6rem 1.2rem;
}

.portal-device__section--pinned-bottom {
  order: 100;
  flex: 0 0 auto;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  padding: 0.6rem 1.2rem;
  margin-top: auto;
}

/* Pinned section'larda trigger chip gizlenmesin ama küçük olsun */
.portal-device__section--pinned-top .portal-device__trigger-chip,
.portal-device__section--pinned-bottom .portal-device__trigger-chip {
  position: absolute;
  top: 2px;
  right: 6px;
  left: auto;
  padding: 2px 6px;
  font-size: 0.58rem;
}

.portal-device__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: auto;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--seal-text-soft);
  font-size: 0.85rem;
}

.portal-device__empty i {
  font-size: 2rem;
  opacity: 0.5;
}

/* Trigger chip — her section'ın başında küçük etiket */
.portal-device__trigger-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.03em;
  align-self: flex-start;
  pointer-events: none;
}

/* === Canvas bloklar (özet görünüm) === */
.portal-block {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  transition: outline 0.12s;
}

.portal-block.is-disabled {
  opacity: 0.45;
}

.portal-block:hover {
  outline: 2px dashed rgba(180, 50, 42, 0.35);
  outline-offset: 2px;
}

.portal-block.is-selected {
  outline: 2px solid var(--seal-primary);
  outline-offset: 2px;
}

.portal-block__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--seal-primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.62rem;
  display: none;
  align-items: center;
  gap: 3px;
  z-index: 3;
  letter-spacing: 0.02em;
}

.portal-block.is-selected .portal-block__badge {
  display: inline-flex;
}

/* Her blok tipi için canvas render */
.portal-block__logo {
  display: flex;
  align-items: center;
  padding: 0.4rem 0;
}

.portal-block__logo-img {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.portal-block__logo-img.is-placeholder {
  border: 1px dashed rgba(0, 0, 0, 0.25);
}

.portal-block__logo--sm .portal-block__logo-img { width: 40px; height: 40px; font-size: 1rem; }
.portal-block__logo--md .portal-block__logo-img { width: 70px; height: 70px; font-size: 1.3rem; }
.portal-block__logo--lg .portal-block__logo-img { width: 100px; height: 100px; font-size: 1.8rem; }
.portal-block__logo--xl .portal-block__logo-img { width: 140px; height: 140px; font-size: 2.3rem; }

.portal-block__heading {
  font-weight: 700;
  color: var(--portal-text);
  line-height: 1.2;
}

.portal-block__heading--h1 { font-size: 1.55rem; }
.portal-block__heading--h2 { font-size: 1.25rem; }
.portal-block__heading--h3 { font-size: 1.05rem; }

.portal-block__paragraph {
  font-size: 0.85rem;
  color: var(--seal-text-soft);
  line-height: 1.45;
}

.portal-block__image,
.portal-block__video,
.portal-block__form,
.portal-block__engagement,
.portal-block__html {
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--seal-text-soft);
  font-size: 0.78rem;
}

.portal-block__image i,
.portal-block__video i,
.portal-block__engagement i {
  font-size: 1.3rem;
  color: var(--seal-primary-deep);
}

.portal-block__image--third { width: 33%; margin: 0 auto; }
.portal-block__image--half { width: 50%; margin: 0 auto; }
.portal-block__image--full { width: 100%; }

.portal-block__spacer--sm { height: 8px; }
.portal-block__spacer--md { height: 16px; }
.portal-block__spacer--lg { height: 28px; }
.portal-block__spacer--xl { height: 48px; }

.portal-block__divider--solid { border-top: 1px solid rgba(0, 0, 0, 0.15); }
.portal-block__divider--dashed { border-top: 1px dashed rgba(0, 0, 0, 0.2); }
.portal-block__divider--dotted { border-top: 2px dotted rgba(0, 0, 0, 0.2); }

.portal-block__auth {
  display: flex;
  gap: 0.5rem;
}

.portal-block__auth--stacked { flex-direction: column; }
.portal-block__auth--inline { flex-direction: row; flex-wrap: wrap; }
.portal-block__auth--icons { flex-direction: row; justify-content: center; gap: 0.8rem; }

.portal-block__auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  font-size: 0.8rem;
  color: var(--seal-text);
}

.portal-block__auth--stacked .portal-block__auth-btn { width: 100%; }

.portal-block__auth--icons .portal-block__auth-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.portal-block__auth--icons .portal-block__auth-btn span {
  display: none;
}

.portal-block__consent {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-block__consent-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--seal-text-soft);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-block__consent-items {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--seal-text);
}

.portal-block__consent-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.portal-block__consent-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.portal-block__consent--link-modal .portal-block__consent-item span:last-child {
  text-decoration: underline;
  color: var(--seal-primary-deep);
}

.portal-block__button {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 140px;
  text-align: center;
}

.portal-block__button--primary { background: var(--portal-primary); color: #fff; }
.portal-block__button--secondary { background: #fff; color: var(--portal-primary); border: 1.5px solid var(--portal-primary); }
.portal-block__button--ghost { background: transparent; color: var(--portal-primary); border: 1px dashed var(--portal-primary); }

/* Buton boyutları */
.portal-block__button--sm { padding: 0.45rem 1rem; font-size: 0.78rem; min-width: 100px; }
.portal-block__button--md { padding: 0.7rem 1.5rem; font-size: 0.9rem; min-width: 140px; }
.portal-block__button--lg { padding: 0.85rem 2rem; font-size: 1rem; min-width: 180px; }
.portal-block__button--full { padding: 0.8rem 1rem; font-size: 0.95rem; width: 100%; display: block; }

/* Paragraf font boyutları */
.portal-block__paragraph--sm { font-size: 0.72rem; }
.portal-block__paragraph--md { font-size: 0.85rem; }
.portal-block__paragraph--lg { font-size: 0.98rem; }
.portal-block__paragraph--xl { font-size: 1.1rem; }

.portal-block__social {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.portal-block__social-icon {
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.portal-block__lang {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.72rem;
}

.portal-block__lang-pill {
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  color: var(--seal-text);
}

.portal-block__otp {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.portal-block__otp-cell {
  width: 32px;
  height: 40px;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  background: #fff;
}

/* === Form Designer (Form Şablonları) === */
.form-preview {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
}

.form-preview__header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.form-preview__header strong {
  font-size: 0.95rem;
  color: var(--portal-text);
}

.form-preview__header small {
  font-size: 0.72rem;
  color: var(--seal-text-soft);
  line-height: 1.35;
}

.form-preview__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.5rem;
}

.form-preview__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border-color 0.12s, background 0.12s;
}

.form-preview__field:hover {
  background: rgba(180, 50, 42, 0.04);
  border-color: rgba(180, 50, 42, 0.3);
}

.form-preview__field.is-selected {
  border-color: var(--seal-primary);
  background: rgba(180, 50, 42, 0.06);
}

.form-preview__field.is-disabled {
  opacity: 0.45;
}

.form-preview__field--w50 { flex: 0 0 calc(50% - 0.25rem); }
.form-preview__field--w100 { flex: 0 0 100%; }

.form-preview__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--portal-text);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-preview__req {
  color: #b4322a;
  font-weight: 700;
}

.form-preview__input {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  color: var(--seal-text-soft);
  min-height: 32px;
}

.form-preview__input-prefix {
  color: var(--seal-text);
  font-weight: 600;
  padding-right: 0.4rem;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.form-preview__input-prefix-icon {
  color: rgba(0, 0, 0, 0.35);
}

.form-preview__input-ph {
  font-style: italic;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.75rem;
}

.form-preview__textarea {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  min-height: 54px;
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.4);
  font-style: italic;
}

.form-preview__select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  color: var(--seal-text);
  min-height: 32px;
}

.form-preview__select i {
  color: rgba(0, 0, 0, 0.35);
  font-size: 0.7rem;
}

.form-preview__radios {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.3rem 0;
}

.form-preview__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--seal-text);
  cursor: default;
}

.form-preview__radio-dot {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  flex-shrink: 0;
}

.form-preview__checkbox,
.form-preview__consent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--seal-text);
  cursor: default;
}

.form-preview__check-box {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  flex-shrink: 0;
}

.form-preview__consent a {
  color: var(--portal-primary);
  text-decoration: underline;
}

.form-preview__help {
  font-size: 0.66rem;
  color: var(--seal-text-soft);
  line-height: 1.25;
}

.form-preview__submit {
  margin-top: 0.6rem;
  background: var(--portal-primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.75;
}

/* ========== Genel Ayarlar (Wifi Settings) ========== */

/* --- Dokümanlar tab --- */
.gs-docs__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(70, 55, 45, 0.08);
}

.gs-docs__toolbar-info strong {
  font-size: 1.4rem;
  color: var(--seal-primary-deep);
  margin-right: 0.3rem;
}

.gs-docs__toolbar-info small {
  font-size: 0.82rem;
  color: var(--seal-text-soft);
}

.gs-docs__toolbar-actions {
  display: flex;
  gap: 0.5rem;
}

.gs-docs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.9rem;
}

.gs-doc {
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.1);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gs-doc:hover {
  border-color: rgba(180, 50, 42, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.gs-doc.is-draft {
  background: repeating-linear-gradient(-45deg, var(--seal-surface), var(--seal-surface) 10px, rgba(0, 0, 0, 0.015) 10px, rgba(0, 0, 0, 0.015) 20px);
}

.gs-doc__head {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.gs-doc__icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 50, 42, 0.1);
  color: var(--seal-primary-deep);
  border-radius: 8px;
  font-size: 1.05rem;
}

.gs-doc__icon--marketing { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.gs-doc__icon--kvkk { background: rgba(217, 119, 6, 0.12); color: #d97706; }

.gs-doc__title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gs-doc__title strong {
  font-size: 0.9rem;
  color: var(--seal-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-doc__title small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  font-family: var(--seal-font-mono, "Monaco", monospace);
}

.gs-doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.gs-doc__preview {
  flex: 1;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  background: rgba(70, 55, 45, 0.03);
  border-radius: 6px;
  border-left: 2px solid rgba(180, 50, 42, 0.35);
}

.gs-doc__preview small {
  font-size: 0.74rem;
  color: var(--seal-text-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gs-doc__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(70, 55, 45, 0.08);
}

.gs-doc__usage {
  display: flex;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--seal-text-soft);
}

.gs-doc__usage span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.gs-doc__actions {
  display: flex;
  gap: 0.15rem;
}

/* --- Diller tab --- */
.gs-langs__table {
  width: 100%;
  margin-top: 1rem;
}

.gs-langs__table tr.is-disabled {
  opacity: 0.55;
}

.gs-langs__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
  background: rgba(70, 55, 45, 0.08);
  border: 1px solid rgba(70, 55, 45, 0.15);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--seal-text);
}

.gs-langs__coverage {
  display: flex;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--seal-text-soft);
}

.gs-langs__coverage span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- Log Forwarding tab --- */
.gs-logs__section {
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--seal-shadow);
}

.gs-logs__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(70, 55, 45, 0.08);
}

.gs-logs__section-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--seal-text);
}

.gs-logs__section-head h3 i {
  color: var(--seal-primary-deep);
}

.gs-logs__section-head small {
  display: block;
  color: var(--seal-text-soft);
  font-size: 0.76rem;
  margin-top: 0.2rem;
}

.gs-logs__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* --- Otomatik Yasaklama tab --- */
.gs-rules__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(70, 55, 45, 0.08);
}

.gs-rules__toolbar-info strong {
  font-size: 1.4rem;
  color: var(--seal-primary-deep);
  margin-right: 0.3rem;
}

.gs-rules__toolbar-info small {
  font-size: 0.82rem;
  color: var(--seal-text-soft);
}

.gs-rules__table {
  width: 100%;
}

.gs-rules__table tr.is-disabled {
  opacity: 0.55;
}

.gs-rules__name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.gs-rules__name i {
  color: var(--seal-primary-deep);
  font-size: 0.85rem;
}

.gs-rules__threshold {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}

.gs-rules__threshold strong {
  font-size: 1.05rem;
  color: var(--seal-text);
}

.gs-rules__threshold small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  font-family: var(--seal-font-mono, "Monaco", monospace);
}

.gs-doc-modal__editor {
  font-family: var(--seal-font-mono, "Monaco", "Menlo", monospace);
  font-size: 0.8rem;
  line-height: 1.5;
  min-height: 300px;
}

/* ========== Wifi · Operasyon ortak stilleri ========== */
.qr-inline-usage {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 140px;
}

.qr-inline-usage__bar {
  height: 6px;
  background: rgba(70, 55, 45, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.qr-inline-usage__fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #84cc16);
  border-radius: 3px;
}

.qr-inline-usage small {
  font-size: 0.72rem;
  color: var(--seal-text-soft);
}

.qr-inline-usage small strong {
  color: var(--seal-text);
}

.ops-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ops-kpi-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: 10px;
  box-shadow: var(--seal-shadow);
}

.ops-kpi-card > i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 50, 42, 0.1);
  color: var(--seal-primary-deep);
  border-radius: 8px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ops-kpi-card--success > i { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.ops-kpi-card--warning > i { background: rgba(234, 179, 8, 0.15); color: #ca8a04; }
.ops-kpi-card--danger > i { background: rgba(220, 38, 38, 0.1); color: #dc2626; }

.ops-kpi-card > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ops-kpi-card strong {
  font-size: 1.15rem;
  color: var(--seal-text);
  font-weight: 700;
  line-height: 1.1;
}

.ops-kpi-card small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.ops-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.ops-filter-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  background: rgba(70, 55, 45, 0.03);
  border: 1px solid rgba(70, 55, 45, 0.12);
  border-radius: 6px;
  flex: 1;
  min-width: 240px;
}

.ops-filter-input i {
  color: var(--seal-text-soft);
  font-size: 0.85rem;
}

.ops-filter-input input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--seal-text);
}

.ops-chip-filters {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  background: transparent;
  border: 1px solid rgba(70, 55, 45, 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--seal-text);
  cursor: pointer;
  font-weight: 500;
}

.ops-chip span {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  background: rgba(70, 55, 45, 0.1);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
}

.ops-chip.is-active {
  background: var(--seal-primary);
  color: #fff;
  border-color: var(--seal-primary);
}

.ops-chip.is-active span {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ops-chip:hover:not(.is-active) {
  background: rgba(180, 50, 42, 0.05);
  border-color: rgba(180, 50, 42, 0.3);
}

/* Ortak tablo satır stili */
.ops-table tbody tr {
  cursor: default;
  transition: background 0.1s;
}

.ops-table tbody tr:hover {
  background: rgba(70, 55, 45, 0.02);
}

.ops-table tbody tr.is-hidden { display: none; }

.ops-table tbody tr.is-expired,
.ops-table tbody tr.is-disabled {
  opacity: 0.55;
}

.ops-cell-person {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ops-cell-person > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ops-cell-person strong {
  font-size: 0.82rem;
  color: var(--seal-text);
}

.ops-cell-person small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ops-cell-contact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.76rem;
  color: var(--seal-text);
}

.ops-cell-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ops-cell-contact i {
  color: var(--seal-text-soft);
  font-size: 0.72rem;
}

.ops-avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 50, 42, 0.12);
  color: var(--seal-primary-deep);
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ops-avatar--guest { background: rgba(180, 50, 42, 0.12); color: var(--seal-primary-deep); }
.ops-avatar--sponsor { background: rgba(22, 163, 74, 0.15); color: #16a34a; }

.ops-target-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(70, 55, 45, 0.08);
  color: var(--seal-text);
  border-radius: 6px;
  font-size: 0.82rem;
}

.ops-room {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: rgba(70, 55, 45, 0.05);
  border-radius: 6px;
  width: fit-content;
}

.ops-room strong {
  font-family: var(--seal-font-mono, "Monaco", monospace);
  font-size: 0.9rem;
}

.ops-room i {
  color: var(--seal-text-soft);
  font-size: 0.78rem;
}

.ops-orphan {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #dc2626;
  font-weight: 600;
  font-size: 0.8rem;
}

.ops-orphan i { color: #dc2626; }

.ops-history {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ops-history strong {
  font-size: 0.9rem;
  color: var(--seal-primary-deep);
}

.ops-history small {
  font-size: 0.68rem;
  color: var(--seal-text-soft);
}

.ops-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 3rem 1rem;
  color: var(--seal-text-soft);
  text-align: center;
}

.ops-empty i {
  font-size: 2.5rem;
  opacity: 0.4;
}

/* QR kart grid'i */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 0.9rem;
}

.qr-card {
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.1);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.qr-card:hover {
  border-color: rgba(180, 50, 42, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.qr-card.is-archived { opacity: 0.55; }
.qr-card.is-hidden { display: none; }

.qr-card__head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.qr-card__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 50, 42, 0.1);
  color: var(--seal-primary-deep);
  border-radius: 8px;
  font-size: 1.1rem;
}

.qr-card__title strong {
  display: block;
  font-size: 0.88rem;
  color: var(--seal-text);
  margin-bottom: 0.1rem;
}

.qr-card__title small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
}

.qr-card__title code {
  font-size: 0.7rem;
  padding: 0 0.2rem;
  background: rgba(70, 55, 45, 0.08);
  border-radius: 3px;
}

.qr-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(70, 55, 45, 0.08);
  border-bottom: 1px solid rgba(70, 55, 45, 0.08);
}

.qr-card__meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.qr-card__meta small {
  font-size: 0.66rem;
  color: var(--seal-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.qr-card__meta strong {
  font-size: 0.78rem;
  color: var(--seal-text);
}

.qr-card__usage {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qr-card__usage-bar {
  flex: 1;
  height: 6px;
  background: rgba(70, 55, 45, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.qr-card__usage-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #84cc16);
  border-radius: 3px;
  transition: width 0.3s;
}

.qr-card__usage-stat {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.78rem;
}

.qr-card__usage-stat strong {
  color: var(--seal-text);
  font-weight: 700;
}

.qr-card__usage-stat small {
  color: var(--seal-text-soft);
  font-size: 0.7rem;
}

.qr-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.4rem;
}

.qr-card__foot small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
}

.qr-card__actions {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

/* Sortable header */
.ops-table--sortable th[data-sort-key] {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.2rem;
}

.ops-table--sortable th[data-sort-key]:hover {
  background: rgba(180, 50, 42, 0.04);
}

.ops-table--sortable th[data-sort-key]::after {
  content: "\f0dc";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: rgba(70, 55, 45, 0.25);
  transition: color 0.15s;
}

.ops-table--sortable th[data-sort-direction="asc"]::after {
  content: "\f0de";
  color: var(--seal-primary);
}

.ops-table--sortable th[data-sort-direction="desc"]::after {
  content: "\f0dd";
  color: var(--seal-primary);
}

/* Pager */
.ops-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  margin-top: -1px;
}

.ops-pager__info {
  font-size: 0.78rem;
  color: var(--seal-text-soft);
}

.ops-pager__info strong {
  color: var(--seal-text);
  font-weight: 700;
}

.ops-pager__controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ops-pager__size {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.76rem;
  color: var(--seal-text-soft);
  margin-right: 0.5rem;
}

.ops-pager__size select {
  padding: 0.2rem 0.4rem;
  border: 1px solid rgba(70, 55, 45, 0.18);
  border-radius: 4px;
  font-size: 0.78rem;
  background: var(--seal-surface);
  color: var(--seal-text);
}

.ops-pager__btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(70, 55, 45, 0.15);
  border-radius: 5px;
  color: var(--seal-text);
  cursor: pointer;
  font-size: 0.72rem;
}

.ops-pager__btn:hover:not(:disabled) {
  background: rgba(180, 50, 42, 0.05);
  border-color: rgba(180, 50, 42, 0.3);
  color: var(--seal-primary-deep);
}

.ops-pager__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ops-pager__pages {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.ops-pager__page {
  min-width: 28px;
  height: 28px;
  padding: 0 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(70, 55, 45, 0.15);
  border-radius: 5px;
  font-size: 0.76rem;
  color: var(--seal-text);
  cursor: pointer;
}

.ops-pager__page:hover:not(.is-active) {
  background: rgba(180, 50, 42, 0.05);
  border-color: rgba(180, 50, 42, 0.3);
}

.ops-pager__page.is-active {
  background: var(--seal-primary);
  color: #fff;
  border-color: var(--seal-primary);
  font-weight: 700;
}

.ops-pager__gap {
  padding: 0 0.25rem;
  color: var(--seal-text-soft);
  font-size: 0.72rem;
}

.ops-table-wrap {
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--seal-shadow);
}

.ops-table-wrap .seal-table {
  margin: 0;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

/* Drawer (slide from right) */
.ops-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.ops-drawer[hidden] { display: none; }

.ops-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.ops-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 560px;
  max-width: 100vw;
  background: var(--seal-surface);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  animation: opsDrawerIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes opsDrawerIn {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.ops-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(70, 55, 45, 0.1);
}

.ops-drawer__header-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.ops-avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 1rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ops-drawer__header-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ops-drawer__header-info strong {
  font-size: 1.02rem;
  color: var(--seal-text);
  font-weight: 700;
}

.ops-drawer__header-info small {
  font-size: 0.78rem;
  color: var(--seal-text-soft);
}

.ops-drawer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.ops-drawer__panels {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
}

.ops-drawer__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid rgba(70, 55, 45, 0.1);
  background: rgba(70, 55, 45, 0.02);
}

.ops-drawer__overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

.ops-drawer__stat {
  padding: 0.55rem 0.7rem;
  background: rgba(70, 55, 45, 0.04);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ops-drawer__stat small {
  font-size: 0.68rem;
  color: var(--seal-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ops-drawer__stat strong {
  font-size: 0.95rem;
  color: var(--seal-text);
  font-weight: 600;
}

.ops-drawer__devices,
.ops-drawer__visits {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ops-drawer__device {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.7rem;
  background: rgba(70, 55, 45, 0.03);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: 8px;
}

.ops-drawer__device.is-current {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.04);
}

.ops-drawer__device-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 50, 42, 0.1);
  color: var(--seal-primary-deep);
  border-radius: 8px;
}

.ops-drawer__device-body strong {
  display: block;
  font-size: 0.85rem;
  color: var(--seal-text);
  margin-bottom: 0.15rem;
}

.ops-drawer__device-body code {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  display: block;
}

.ops-drawer__device-body small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
}

.ops-drawer__device-meta {
  text-align: right;
  font-size: 0.75rem;
}

.ops-drawer__device-meta strong { color: var(--seal-primary-deep); }

.ops-drawer__visit {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: rgba(70, 55, 45, 0.03);
  border-left: 3px solid var(--seal-primary);
  border-radius: 4px;
}

.ops-drawer__visit-time {
  font-family: var(--seal-font-mono, monospace);
  font-size: 0.72rem;
  color: var(--seal-text-soft);
  line-height: 1.3;
}

.ops-drawer__visit-body strong {
  display: block;
  font-size: 0.82rem;
  color: var(--seal-text);
}

.ops-drawer__visit-body small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
}

.ops-drawer__visit-meta {
  text-align: right;
  font-size: 0.75rem;
}

.ops-drawer__consent {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ops-drawer__consent-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: rgba(70, 55, 45, 0.03);
  border-radius: 8px;
  font-size: 0.82rem;
}

.ops-drawer__consent-row i {
  color: #16a34a;
}

.ops-drawer__consent-row small {
  font-size: 0.72rem;
  color: var(--seal-text-soft);
  margin-left: auto;
}

.ops-drawer__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--seal-text-soft);
  font-size: 0.85rem;
}

/* Blacklist drawer body (kv list) */
.ops-drawer__kv {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ops-drawer__kv-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: rgba(70, 55, 45, 0.03);
  border-radius: 6px;
  font-size: 0.82rem;
}

.ops-drawer__kv-row small {
  font-size: 0.72rem;
  color: var(--seal-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ops-drawer__kv-row strong {
  color: var(--seal-text);
}

.seal-button--danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.seal-button--danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* ========== Wifi · SSID ========== */
.ssid-summary {
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.ssid-summary__head {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(70, 55, 45, 0.08);
  margin-bottom: 0.9rem;
}

.ssid-summary__switcher {
  width: 100%;
}

.ssid-summary__head-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.ssid-summary__kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.ssid-kpi {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: rgba(70, 55, 45, 0.03);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: 8px;
}

.ssid-kpi__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(180, 50, 42, 0.1);
  color: var(--seal-primary-deep);
  border-radius: 6px;
  font-size: 0.9rem;
}

.ssid-kpi__data {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ssid-kpi__data strong {
  font-size: 1.1rem;
  color: var(--seal-text);
  font-weight: 700;
  line-height: 1.1;
}

.ssid-kpi__data small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Port chips */
.ssid-ports {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  background: rgba(70, 55, 45, 0.03);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: 8px;
}

.ssid-port {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--seal-font-mono, "Monaco", monospace);
}

.ssid-port--shared {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.ssid-port--dedicated {
  background: rgba(180, 50, 42, 0.08);
  color: var(--seal-primary-deep);
  border: 1px solid rgba(180, 50, 42, 0.3);
}

.ssid-port--add {
  background: transparent;
  border: 1px dashed rgba(180, 50, 42, 0.45);
  color: var(--seal-primary-deep);
  cursor: pointer;
}

.ssid-port--add:hover {
  background: rgba(180, 50, 42, 0.06);
}

.ssid-port__remove {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  opacity: 0.55;
  padding: 0 0 0 0.2rem;
  font-size: 0.7rem;
}

.ssid-port__remove:hover {
  opacity: 1;
}

/* Broadcast mode kart radyolar */
.ssid-broadcast-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.ssid-broadcast-mode {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 0.6rem;
  row-gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid rgba(70, 55, 45, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.ssid-broadcast-mode input { display: none; }

.ssid-broadcast-mode:has(input:checked),
.ssid-broadcast-mode.is-selected {
  border-color: var(--seal-primary);
  background: rgba(180, 50, 42, 0.06);
}

.ssid-broadcast-mode i {
  grid-row: 1 / 3;
  align-self: start;
  margin-top: 4px;
  color: var(--seal-primary-deep);
  font-size: 1.1rem;
}

.ssid-broadcast-mode strong {
  font-size: 0.85rem;
  color: var(--seal-text);
}

.ssid-broadcast-mode small {
  grid-column: 2;
  font-size: 0.72rem;
  color: var(--seal-text-soft);
  line-height: 1.35;
}

/* Broadcast target list */
.ssid-broadcast-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.4rem;
}

.ssid-broadcast-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(70, 55, 45, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.ssid-broadcast-item input { display: none; }

.ssid-broadcast-item__check {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(70, 55, 45, 0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.7rem;
}

.ssid-broadcast-item:has(input:checked),
.ssid-broadcast-item.is-selected {
  border-color: var(--seal-primary);
  background: rgba(180, 50, 42, 0.06);
}

.ssid-broadcast-item:has(input:checked) .ssid-broadcast-item__check,
.ssid-broadcast-item.is-selected .ssid-broadcast-item__check {
  background: var(--seal-primary);
  border-color: var(--seal-primary);
  color: #fff;
}

.ssid-broadcast-item__name {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ssid-broadcast-item__name strong {
  font-size: 0.85rem;
  color: var(--seal-text);
}

.ssid-broadcast-item__name small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
}

.ssid-broadcast-aps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.5rem;
  background: rgba(70, 55, 45, 0.03);
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.ssid-broadcast-summary {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  background: rgba(180, 50, 42, 0.05);
  border: 1px solid rgba(180, 50, 42, 0.2);
  border-radius: 8px;
  margin-top: 1rem;
}

.ssid-broadcast-summary div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ssid-broadcast-summary strong {
  font-size: 1.1rem;
  color: var(--seal-primary-deep);
}

.ssid-broadcast-summary small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Auth note card */
.ssid-auth-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 8px;
  margin-top: 1rem;
}

.ssid-auth-note i {
  color: #ca8a04;
  font-size: 1rem;
  margin-top: 2px;
}

.ssid-auth-note strong {
  display: block;
  font-size: 0.85rem;
  color: var(--seal-text);
  margin-bottom: 0.15rem;
}

.ssid-auth-note small {
  font-size: 0.75rem;
  color: var(--seal-text-soft);
  line-height: 1.4;
}

.seal-check-group--wide {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 900px) {
  .ssid-summary__head {
    grid-template-columns: 1fr;
  }
}

/* Built-in validation info card */
.form-validation {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem 0.8rem;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 8px;
}

.form-validation__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #16a34a;
}

.form-validation__header i {
  font-size: 0.85rem;
}

.form-validation__header strong {
  font-weight: 600;
}

.form-validation small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  line-height: 1.35;
}

/* Form block props meta */
.portal-props__form-preview-meta {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  background: rgba(180, 50, 42, 0.05);
  border: 1px solid rgba(180, 50, 42, 0.18);
  border-radius: 8px;
  font-size: 0.8rem;
}

.portal-props__form-preview-meta strong {
  color: var(--seal-primary-deep);
  font-size: 0.95rem;
  display: block;
}

.portal-props__form-preview-meta small {
  color: var(--seal-text-soft);
  font-size: 0.7rem;
}

/* JS ile eklenmiş bloklar için generic placeholder */
.portal-block__new-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(180, 50, 42, 0.35);
  border-radius: 8px;
  color: var(--seal-primary-deep);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Info Form — auth metoduna göre adapte olan magic block */
.portal-block__info-form {
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(180, 50, 42, 0.35);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.portal-block__info-form-hint {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--seal-primary-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.portal-block__info-form-field {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  font-size: 0.78rem;
  color: var(--seal-text-soft);
}

/* === Sağ properties panel === */
.portal-props {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portal-props__panel {
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.08);
  border-radius: var(--seal-radius-lg);
  box-shadow: var(--seal-shadow);
}

.portal-props__panel.is-hidden {
  display: none;
}

.portal-props__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(70, 55, 45, 0.08);
}

.portal-props__header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--seal-text);
  flex: 1;
}

.portal-props__header > i {
  color: var(--seal-primary-deep);
  font-size: 0.95rem;
}

.portal-props__body {
  border: 0;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.portal-props__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.portal-props__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--seal-text-soft);
  font-size: 0.85rem;
}

.portal-props__lang-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(70, 55, 45, 0.08);
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
}

.portal-props__lang-tab {
  border: 0;
  background: transparent;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--seal-text-soft);
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.portal-props__lang-tab.is-active {
  background: var(--seal-primary);
  color: #fff;
}

.portal-props__lang-panel.is-hidden {
  display: none;
}

/* Section trigger seçici — kart radyolar */
.portal-props__trigger-cards {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.portal-props__trigger-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 0.55rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid rgba(70, 55, 45, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.portal-props__trigger-card input {
  display: none;
}

.portal-props__trigger-card.is-selected,
.portal-props__trigger-card:has(input:checked) {
  border-color: var(--seal-primary);
  background: rgba(180, 50, 42, 0.06);
}

.portal-props__trigger-card i {
  color: var(--seal-primary-deep);
  grid-row: 1 / 3;
  align-self: start;
  margin-top: 3px;
}

.portal-props__trigger-card strong {
  font-size: 0.82rem;
  color: var(--seal-text);
}

.portal-props__trigger-card small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  line-height: 1.3;
  grid-column: 2;
}

/* Auth methods — sıralanabilir + toggle'lı liste */
.portal-props__method-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid rgba(70, 55, 45, 0.1);
  border-radius: 8px;
  padding: 0.4rem;
  background: rgba(70, 55, 45, 0.02);
}

.portal-props__method-item {
  display: grid;
  grid-template-columns: 18px 22px 18px 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  background: #fff;
  border: 1px solid rgba(70, 55, 45, 0.1);
  border-radius: 6px;
  cursor: grab;
  font-size: 0.8rem;
  color: var(--seal-text);
  transition: border-color 0.12s, opacity 0.12s;
  position: relative;
}

.portal-props__method-item:hover {
  border-color: rgba(180, 50, 42, 0.35);
}

.portal-props__method-item.is-checked {
  border-color: rgba(180, 50, 42, 0.4);
  background: rgba(180, 50, 42, 0.03);
}

.portal-props__method-item:not(.is-checked) {
  opacity: 0.55;
}

.portal-props__method-item.is-dragging {
  opacity: 0.35;
  outline: 2px dashed var(--seal-primary);
}

.portal-props__method-item.is-drop-before::before,
.portal-props__method-item.is-drop-after::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--seal-primary);
  border-radius: 2px;
}
.portal-props__method-item.is-drop-before::before { top: -3px; }
.portal-props__method-item.is-drop-after::after { bottom: -3px; }

.portal-props__method-grip {
  color: rgba(70, 55, 45, 0.35);
  cursor: grab;
  font-size: 0.75rem;
}

.portal-props__method-check {
  padding: 0;
}

.portal-props__method-icon {
  color: var(--seal-primary-deep);
  font-size: 0.9rem;
}

/* Info form — sağ panel açıklama kartı */
.portal-props__info-form-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  background: rgba(180, 50, 42, 0.06);
  border: 1px solid rgba(180, 50, 42, 0.2);
  border-radius: 8px;
}

.portal-props__info-form-hint i {
  color: var(--seal-primary-deep);
  font-size: 1rem;
  margin-top: 2px;
}

.portal-props__info-form-hint strong {
  display: block;
  font-size: 0.82rem;
  color: var(--seal-text);
  margin-bottom: 0.15rem;
}

.portal-props__info-form-hint small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  line-height: 1.35;
}

/* Consent mode seçici — kart radyolar */
.portal-props__consent-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.portal-props__consent-mode {
  border: 1.5px solid rgba(70, 55, 45, 0.12);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-props__consent-mode input {
  display: none;
}

.portal-props__consent-mode.is-selected,
.portal-props__consent-mode:has(input:checked) {
  border-color: var(--seal-primary);
  background: rgba(180, 50, 42, 0.06);
}

.portal-props__consent-mode-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--seal-text);
}

.portal-props__consent-mode-head i {
  color: var(--seal-primary-deep);
}

.portal-props__consent-mode small {
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  line-height: 1.3;
}

/* === Block palette popover === */
.portal-palette {
  position: fixed;
  background: var(--seal-surface);
  border: 1px solid rgba(70, 55, 45, 0.12);
  border-radius: var(--seal-radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  width: 320px;
  padding: 0.8rem;
  z-index: 1000;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.portal-palette[hidden] {
  display: none;
}

.portal-palette__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(70, 55, 45, 0.08);
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
}

.portal-palette__group {
  margin-bottom: 0.7rem;
}

.portal-palette__group h4 {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  color: var(--seal-text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portal-palette__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.portal-palette__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(70, 55, 45, 0.1);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--seal-text);
  text-align: left;
}

.portal-palette__item:hover {
  background: rgba(180, 50, 42, 0.06);
  border-color: rgba(180, 50, 42, 0.35);
}

.portal-palette__item i {
  color: var(--seal-primary-deep);
  width: 14px;
}

/* === Preview modal (aynen kaldı) === */
.portal-preview-modal {
  max-width: 90vw;
  width: 1100px;
}

.portal-preview-modal__body {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(145deg, #f3edf9, #ebe5e0);
}

.portal-preview-modal__device {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.portal-preview-modal__device-label {
  font-size: 0.8rem;
  color: var(--seal-text-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.portal-preview-modal__frame {
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.portal-preview-modal__frame--mobile {
  width: 320px;
  height: 600px;
  border-radius: 28px;
  border: 10px solid #2a2620;
}

.portal-preview-modal__frame--pc {
  width: 640px;
  height: 420px;
  border-radius: 10px;
  border: 3px solid #2a2620;
}

.portal-preview-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  text-align: center;
}

@media (max-width: 1200px) {
  .portal-designer {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .portal-props {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 900px) {
  .portal-designer {
    grid-template-columns: 1fr;
  }
  .portal-designer__rail,
  .portal-props {
    position: static;
  }
}

