@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #f6f7fb;
  --bg-accent: #e7f2fb;
  --surface: #ffffff;
  --surface-strong: #ffe9f0;
  --ink: #0b2b4a;
  --muted: #51667a;
  --accent: #e6094c;
  --accent-2: #0076a8;
  --border: #d7e3ee;
  --shadow: 0 14px 32px rgba(11, 43, 74, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffffff 0%, var(--bg) 45%, var(--bg-accent) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(0, 118, 168, 0.14), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(230, 9, 76, 0.16), transparent 50%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(246, 247, 251, 0.6));
  pointer-events: none;
  z-index: -1;
}

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

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 10;
  animation: floatIn 0.6s ease;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand a {
  font-family: "Fraunces", serif;
  font-size: 24px;
  letter-spacing: 0.5px;
}

.tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  font-weight: 600;
  color: var(--accent);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
}

.lang-switch select {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 12px;
}

.content {
  margin-top: 28px;
}

.hero h1,
.property-header h1,
.article-header h1 {
  font-family: "Fraunces", serif;
  font-size: 36px;
  margin-bottom: 8px;
}

.hero .section-title {
  font-size: 34px;
}

.section-title {
  font-family: "Fraunces", serif;
  font-size: 34px;
  margin: 0 0 8px;
}

.section-divider {
  margin: 28px 0;
  border-top: 1px dashed rgba(11, 43, 74, 0.2);
}

.hero-search {
  max-width: 360px;
}

.hero-search input {
  width: 100%;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.hero + .card-grid {
  margin-top: 18px;
}

.hero-row .muted {
  margin: 0;
}

@media (max-width: 720px) {
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    width: 100%;
    max-width: 100%;
  }
}

.muted {
  color: var(--muted);
}

.muted.small {
  font-size: 12px;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeUp 0.5s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(31, 42, 39, 0.16);
}

.stats-grid {
  display: grid;
  gap: 18px;
}

.stats-card h3 {
  margin-top: 0;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.stats-table th,
.stats-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.stats-table th {
  font-weight: 600;
  color: var(--ink);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.import-preview-card .import-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.import-preview tr.is-error td {
  background: rgba(230, 9, 76, 0.06);
}

.import-preview .content-cell {
  max-height: 120px;
  overflow: auto;
  white-space: pre-line;
}

.import-errors {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #b10a3a;
}

.status-ok {
  font-weight: 600;
  color: #1a7f37;
}

.bar-chart {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 3fr) 48px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-label {
  font-weight: 400;
  color: var(--ink);
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 118, 168, 0.1);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.bar-value {
  text-align: right;
  font-weight: 600;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid rgba(230, 9, 76, 0.18);
  color: var(--ink);
  font-size: 12px;
  margin-top: 10px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill-row + .meta {
  margin-top: 8px;
}

.pill--type {
  background: rgba(0, 118, 168, 0.14);
  border-color: rgba(0, 118, 168, 0.3);
  color: var(--accent-2);
}

.pill--group {
  background: rgba(26, 127, 55, 0.16);
  border-color: rgba(26, 127, 55, 0.35);
  color: #1a7f37;
}

.pill--resort {
  background: rgba(230, 9, 76, 0.14);
  border-color: rgba(230, 9, 76, 0.3);
  color: var(--accent);
}

.pill--catalog {
  background: rgba(11, 43, 74, 0.12);
  border-color: rgba(11, 43, 74, 0.3);
  color: var(--ink);
}

.pill--category {
  background: rgba(255, 187, 51, 0.18);
  border-color: rgba(255, 187, 51, 0.5);
  color: #8a5b00;
}

.property-header,
.article-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.actions {
  display: flex;
  gap: 12px;
}

.back-link {
  align-self: flex-start;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  margin-bottom: 10px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 20px rgba(230, 9, 76, 0.25);
}

.button.secondary {
  background: rgba(0, 118, 168, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(0, 118, 168, 0.35);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(0, 118, 168, 0.2);
  transform: translateY(-1px);
}

.button:hover,
button:hover {
  transform: translateY(-2px);
}

.ghost {
  color: var(--accent);
  background: transparent;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.ghost:hover {
  background: rgba(230, 9, 76, 0.08);
}

.search-bar {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.search-bar input {
  flex: 1;
}

.split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.sidebar {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.sidebar-search {
  margin: 12px 0 6px;
}

.sidebar-search input {
  width: 100%;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  margin: 6px 0;
  font-size: 13px;
  transition: all 0.2s ease;
}

.sidebar-filters {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(11, 43, 74, 0.2);
}

.sidebar-section {
  margin-top: 16px;
}

.sidebar-section h4 {
  margin: 12px 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.sidebar-filters h4 {
  margin: 12px 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.filter-form .field {
  margin-bottom: 8px;
}

.filter-form .button {
  width: 100%;
}

.filter-actions {
  display: grid;
  gap: 8px;
}

.filter-actions .button,
.filter-actions .ghost {
  width: 100%;
  min-height: 40px;
  text-align: center;
}

.chip.active,
.chip:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.list-item--compact {
  padding: 14px;
  box-shadow: none;
}

.tree {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.tree-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.tree-node summary,
.tree-header {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.tree-node summary::-webkit-details-marker {
  display: none;
}

.tree-node summary::marker {
  content: "";
}

.tree-header {
  cursor: default;
}

.tree-title {
  font-size: 16px;
}

.tree-count {
  margin-left: auto;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.6);
}

.tree-children {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px dashed rgba(11, 43, 74, 0.18);
  display: grid;
  gap: 12px;
}

.tree-property {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.tree-property--resort summary .tree-title {
  color: var(--accent);
}

.list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.summary {
  color: var(--muted);
}

.list-title,
.list-title a {
  text-transform: uppercase;
}

.list-title {
  margin: 0 0 4px;
}

.content-preview {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(11, 43, 74, 0.18);
}

.content-label {
  display: inline-block;
}

.content-text {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.list-item.is-expanded .content-text {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.content-more {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

.content-more.is-visible {
  display: inline-flex;
}

.list-item.is-expanded .content-more {
  display: none;
}

.content-more:hover {
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.meta-row + .meta-row {
  margin-top: 6px;
}

.meta.service-meta,
.meta.detail-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(11, 43, 74, 0.18);
  font-size: 12px;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 10px;
  color: var(--muted);
}

.title-label {
  display: inline-block;
  margin-bottom: 2px;
}

.meta-strong {
  font-weight: 600;
}

.meta-sep {
  margin: 0 6px;
  color: rgba(81, 102, 122, 0.6);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-published {
  background: rgba(26, 127, 55, 0.16);
  border-color: rgba(26, 127, 55, 0.4);
  color: #1a7f37;
}

.status-draft {
  background: rgba(255, 187, 51, 0.2);
  border-color: rgba(255, 187, 51, 0.6);
  color: #8a5b00;
}

.meta-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.attachment-icon {
  width: 14px;
  height: 14px;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  line-height: 1.6;
}

.attachments {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.attachments-inline {
  margin-top: 12px;
}

.attachments-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.attachments-header h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.attachment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.attachment-item {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 6px;
}

.attachment-name {
  font-weight: 600;
  color: var(--ink);
}

.attachment-description {
  color: var(--muted);
  white-space: pre-line;
}

.attachment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.attachment-download {
  padding: 4px 10px;
  font-size: 12px;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
}

.choices__inner {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 6px 10px;
  font-size: 14px;
}

.choices {
  width: 100%;
}

.choices__list--single {
  padding: 4px 0;
}

.choices__input--cloned {
  margin: 0;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.choices__item--choice.is-highlighted {
  background: rgba(230, 9, 76, 0.12);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 100, 0.18);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.form-errors {
  background: rgba(230, 9, 76, 0.12);
  border: 1px solid rgba(230, 9, 76, 0.3);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.error {
  color: #b10a3a;
  font-size: 12px;
}

.attachment-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: center;
  margin-bottom: 12px;
}

.attachment-existing {
  grid-column: 1 / -1;
}

.attachment-row--existing {
  grid-template-columns: 1fr;
}

.attachment-existing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.bulk-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  margin-bottom: 20px;
}

.bulk-right {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bulk-right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bulk-article-fields {
  margin-top: 16px;
}

.bulk-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.bulk-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
}

.bulk-item input {
  margin-top: 2px;
}

.bulk-name {
  font-weight: 600;
}

.bulk-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.empty {
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
}

@media (max-width: 980px) {
  .bulk-layout {
    grid-template-columns: 1fr;
  }
}

body.login {
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 252, 245, 0.95), rgba(244, 246, 251, 0.65) 35%),
    radial-gradient(circle at 80% 10%, rgba(231, 242, 251, 0.7), transparent 45%),
    linear-gradient(120deg, #f7f9fc 10%, #e7f2fb 100%);
}

body.login::before {
  background-image:
    radial-gradient(circle at 15% 15%, rgba(0, 118, 168, 0.2), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(230, 9, 76, 0.2), transparent 50%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(246, 247, 251, 0.6));
}

body.login .topbar {
  display: none;
}

body.login .page {
  max-width: 1280px;
  padding: 40px 32px 48px;
}

body.login .content {
  margin-top: 0;
}

.login-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: stretch;
}

.login-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 238, 223, 0.7));
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 24px 55px rgba(31, 42, 39, 0.16);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeUp 0.7s ease;
}

.login-hero::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(31, 111, 100, 0.2), transparent 65%);
}

.login-hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  bottom: -80px;
  left: -40px;
  background: radial-gradient(circle, rgba(196, 106, 45, 0.2), transparent 65%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 1;
}

.brand-mark {
  font-family: "Fraunces", serif;
  font-size: 22px;
  letter-spacing: 0.6px;
}

.brand-pill {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 118, 168, 0.12);
  border: 1px solid rgba(0, 118, 168, 0.2);
  color: var(--accent);
}

.login-copy h1 {
  font-family: "Fraunces", serif;
  font-size: 40px;
  margin: 0 0 10px;
  z-index: 1;
  position: relative;
}

.login-highlights {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  z-index: 1;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 20px rgba(31, 42, 39, 0.08);
}

.highlight-title {
  font-weight: 600;
}

.highlight-sub {
  color: var(--muted);
  font-size: 13px;
}

.login-preview {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 26px rgba(31, 42, 39, 0.1);
  z-index: 1;
}

.preview-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(217, 211, 198, 0.6);
  padding: 8px 0;
  font-size: 14px;
}

.preview-row:last-child {
  border-bottom: none;
}

.preview-title {
  font-weight: 500;
}

.preview-value {
  color: var(--muted);
}

.login-form-card {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.7s ease;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 26px 50px rgba(31, 42, 39, 0.16);
  width: 100%;
}

.login-kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 11px;
  color: var(--accent-2);
}

.login-card h2 {
  font-family: "Fraunces", serif;
  font-size: 30px;
  margin: 12px 0 8px;
}

.login-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form input {
  background: #fdf8f1;
  border: 1px solid rgba(217, 211, 198, 0.8);
}

.login-form .form-actions {
  margin-top: 6px;
}

.login-form .button {
  width: 100%;
}

.login-help {
  margin-top: 18px;
  font-size: 13px;
}

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

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: 1fr;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-form-card {
    order: -1;
  }

  .topbar {
    position: static;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .property-header,
  .article-header {
    flex-direction: column;
  }

  .search-bar {
    flex-direction: column;
  }

  .login-copy h1 {
    font-size: 32px;
  }
}
.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.message {
  background: rgba(0, 118, 168, 0.12);
  border: 1px solid rgba(0, 118, 168, 0.25);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-main {
  flex: 1;
}

.list-actions .inline-edit {
  width: auto;
}

.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.inline-edit {
  width: 100%;
}

.inline-edit summary {
  list-style: none;
  cursor: pointer;
}

.inline-edit summary::-webkit-details-marker {
  display: none;
}

.inline-edit summary::marker {
  content: "";
}

.inline-edit-body {
  margin-top: 12px;
}

.inline-edit-panel {
  width: 100%;
}

.inline-delete {
  margin: 0;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
}

.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11, 43, 74, 0.14);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

.icon-button.danger {
  color: #b10a3a;
  border-color: #b10a3a;
  background: #ffffff;
}

.icon-button.edit {
  color: #1a7f37;
  border-color: #1a7f37;
  background: #ffffff;
}

.icon-button.info {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: #ffffff;
}

.icon-button.add {
  color: var(--accent-2);
  border-color: var(--accent-2);
  background: rgba(0, 118, 168, 0.08);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 43, 74, 0.35);
}

.modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: min(90vw, 900px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 16px;
  overflow: auto;
}

.audit-log {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.audit-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 160px 150px;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  align-items: start;
}

.audit-header {
  color: var(--ink);
  font-weight: 600;
}

.audit-field {
  color: var(--ink);
  font-weight: 600;
}

.audit-value {
  background: rgba(231, 242, 251, 0.5);
  border-radius: 10px;
  padding: 6px 8px;
  color: var(--ink);
}

@media (max-width: 960px) {
  .audit-row {
    grid-template-columns: 1fr;
  }
}

.inline-form {
  background: rgba(255, 255, 255, 0.92);
}

.inline-form .form-grid {
  grid-template-columns: 1fr;
}

.readonly-value {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.readonly-block {
  white-space: pre-line;
}

.perm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent-2);
  background: rgba(0, 118, 168, 0.12);
}

.perm-icon svg {
  width: 14px;
  height: 14px;
}

.perm-icon.can-edit {
  color: #1a7f37;
  background: rgba(26, 127, 55, 0.16);
  border-color: rgba(26, 127, 55, 0.4);
}

.perm-icon.read-only {
  color: var(--muted);
  background: rgba(81, 102, 122, 0.08);
}

.login-aside {
  display: flex;
}
