      :root {
        color-scheme: light;
        --bg: #f5f6f8;
        --card: #ffffff;
        --text: #1d2025;
        --muted: #5a616d;
        --accent: #1f6feb;
        --border: #e2e6ee;
        --page-bg: radial-gradient(circle at top, #ffffff 0%, #eef1f6 40%, #e6eaf1 100%);
        --surface: #f7f9fc;
        --surface-muted: #f1f3f7;
        --chip: #ffffff;
        --chat-me: #e9f3ff;
        --chat-me-border: #cfe3ff;
        --status-bg: #eef2ff;
        --status-text: #2b3a67;
        --icon-bg: #f7f9fc;
      }
      body.theme-dark {
        color-scheme: dark;
        --bg: #0f1116;
        --card: #171a21;
        --text: #f4f6f8;
        --muted: #a2a9b5;
        --accent: #5ea1ff;
        --border: #2a313d;
        --page-bg: radial-gradient(circle at top, #1b2230 0%, #11161f 45%, #0b0f16 100%);
        --surface: #121721;
        --surface-muted: #0e141d;
        --chip: #1b2230;
        --chat-me: #14243a;
        --chat-me-border: #244369;
        --status-bg: #1b2a44;
        --status-text: #c1d5ff;
        --icon-bg: #141a25;
      }
      * {
        box-sizing: border-box;
      }
      body {
        margin: 0;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        background: var(--page-bg);
        color: var(--text);
      }
      .site-header {
        padding: 18px 16px 12px;
        background: linear-gradient(140deg, rgba(31, 111, 235, 0.14), rgba(255, 255, 255, 0.1) 45%), var(--page-bg);
        border-bottom: 1px solid var(--border);
        animation: fade-in 0.8s ease-out both;
        margin-bottom: 15px;
        position: sticky;
        top: 0;
        z-index: 100;
        transition: transform 0.12s linear;
        will-change: transform;
      }
      .header-inner {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 14px;
      }
      .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }
      .brand {
        display: flex;
      }
      .brand-link {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: inherit;
      }
      .brand-text {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }
      .brand h1 {
        margin: 0;
        font-size: 34px;
        letter-spacing: 0.6px;
      }
      .brand p {
        margin: 0;
        color: var(--muted);
      }
      .site-logo {
        width: 90px;
        /* height: 44px; */
        border-radius: 12px;
        border: 1px solid var(--border);
        background: var(--card);
        padding: 6px;
        object-fit: contain;
      }
      .site-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
      }
      .site-nav a,
      .site-nav button,
      .site-nav .nav-balance {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--card);
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
      }
      .site-nav a:hover,
      .site-nav button:hover {
        border-color: var(--accent);
        color: var(--accent);
      }
      .site-nav .link-button {
        background: var(--card);
      }
      .nav-balance {
        background: var(--surface);
        color: var(--muted);
      }
      .nav-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent);
        display: inline-block;
        margin-left: 6px;
        box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.2);
      }
      .nav-toggle {
        display: none;
        border: 1px solid var(--border);
        background: var(--card);
        color: var(--text);
        border-radius: 999px;
        padding: 8px 14px;
        font-weight: 600;
        cursor: pointer;
      }
      @media (min-width: 721px) {
        .header-inner {
          flex-direction: row;
          align-items: center;
          justify-content: space-between;
        }
        .header-top {
          flex: 0 0 auto;
        }
        .site-nav {
          justify-content: flex-end;
        }
      }
      main {
        max-width: 960px;
        margin: 0 auto 48px;
        padding: 0 16px;
      }
      main.main-wide {
        max-width: 1200px;
      }
      .card {
        background: var(--card);
        border-radius: 16px;
        padding: 24px;
        border: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(28, 36, 49, 0.08);
        animation: rise-in 0.9s ease-out both;
      }
      .card[data-card-link] {
        cursor: pointer;
      }
      .profile-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
        height: 100%;
        width: 100%;
        max-width: 100%;
        min-height: 520px;
        justify-self: stretch;
      }
      .profile-card.is-dragging {
        opacity: 0.5;
        transform: scale(0.98);
      }
      .drag-handle {
        margin-left: auto;
        border: 1px dashed var(--border);
        background: var(--surface);
        color: var(--muted);
        padding: 4px 8px;
        border-radius: 8px;
        font-size: 14px;
        line-height: 1;
        cursor: grab;
      }
      .drag-handle:active {
        cursor: grabbing;
      }
      .profile-card .card-body {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
      }
      .profile-card .card-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 18px;
        font-weight: 700;
      }
      .profile-card p {
        margin: 0;
      }
      .profile-card .card-actions {
        margin-top: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
      }
      form p {
        margin: 0 0 16px;
      }
      .filters {
        margin-bottom: 16px;
      }
      .filters-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
      }
      .filters-check label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
      }
      .filters-check input[type="checkbox"] {
        margin: 0;
      }
      .filters-check {
        display: flex;
        align-items: center;
        padding-top: 6px;
      }
      .filters-services {
        grid-column: 1 / -1;
      }
      .filters-services-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
      }
      .filters-services-row select {
        flex: 1 1 220px;
      }
      .filters-hidden {
        display: none;
      }
      .filters-selected {
        margin-top: 10px;
        min-height: 44px;
        padding: 10px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: var(--surface);
      }
      .services-picker {
        margin-bottom: 12px;
      }
      .filters-selected-item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 4px 6px 4px 0;
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--chip);
        font-size: 13px;
        font-weight: 600;
      }
      .filters-selected-item button {
        background: none;
        border: none;
        padding: 0;
        color: var(--accent);
        font-size: 16px;
        cursor: pointer;
      }
      .filters .actions {
        justify-content: flex-start;
      }
      .pagination {
        margin-top: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
      }
      .pagination .button-link {
        white-space: nowrap;
      }
      .pagination-pages {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
        justify-content: center;
      }
      .pagination-link {
        padding: 6px 12px;
      }
      .pagination-current {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        padding: 6px 12px;
        border-radius: 999px;
        border: 1px solid var(--accent);
        color: #ffffff;
        background: var(--accent);
        font-weight: 700;
        font-size: 13px;
      }
      .pagination-ellipsis {
        color: var(--muted);
        font-weight: 600;
        padding: 0 4px;
      }
      .pagination-info {
        color: var(--muted);
        font-weight: 600;
      }
      label {
        display: block;
        font-weight: 600;
        margin-bottom: 6px;
      }
      input:not([type="checkbox"]):not([type="radio"]),
      textarea,
      select {
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--border);
        font-size: 15px;
        font-family: inherit;
        background: var(--card);
        color: var(--text);
      }
      input[type="file"] {
        padding: 8px 0;
      }
      input[type="checkbox"] {
        margin-right: 6px;
      }
      form ul {
        list-style: none;
        padding: 0;
        margin: 0 0 16px;
      }
      form li {
        margin-bottom: 8px;
      }
      .photo-inputs {
        display: grid;
        gap: 8px;
      }
      .additional-services {
        margin-top: 12px;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: var(--surface);
      }
      .additional-services-header h3 {
        margin: 0 0 6px;
        font-size: 18px;
      }
      .additional-services-list {
        display: grid;
        gap: 12px;
        margin-top: 12px;
      }
      .additional-service-row {
        display: grid;
        grid-template-columns: minmax(180px, 2fr) minmax(140px, 1fr) auto;
        gap: 12px;
        align-items: end;
      }
      .additional-service-delete {
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
      }
      .additional-service-delete input[type="checkbox"] {
        display: none;
      }
      .additional-remove {
        width: 28px;
        height: 28px;
        padding: 0;
        border-radius: 50%;
        border: none;
        background: #e23b3b;
        color: #ffffff;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 16px rgba(226, 59, 59, 0.35);
      }
      .additional-remove:hover {
        background: #c92f2f;
      }
      .additional-service-row.is-removed {
        display: none;
      }
      @media (max-width: 720px) {
        .additional-service-row {
          grid-template-columns: 1fr;
        }
      }
      textarea {
        resize: vertical;
      }
      .actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
      }
      .actions form {
        margin: 0;
      }
      .actions-inline {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        margin-top: 12px;
      }
      .actions-inline .button-link[disabled] {
        opacity: 0.6;
        cursor: not-allowed;
      }
      .order-buttons {
        display: inline-flex;
        gap: 6px;
        align-items: center;
      }
      .order-button {
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text);
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
      }
      .order-button:hover {
        border-color: var(--accent);
        color: var(--accent);
      }
      .actions-inline form {
        margin: 0;
      }
      button {
        background: var(--accent);
        color: #ffffff;
        border: none;
        border-radius: 999px;
        padding: 12px 24px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
      }
      .button-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        border-radius: 999px;
        border: 1px solid var(--accent);
        color: var(--accent);
        text-decoration: none;
        font-weight: 600;
        background: transparent;
        cursor: pointer;
      }
      .button-small {
        padding: 6px 14px;
        font-size: 13px;
      }
      .link {
        color: var(--accent);
        text-decoration: none;
        font-weight: 600;
      }
      .icon-links {
        display: inline-flex;
        gap: 12px;
        margin-left: 12px;
        vertical-align: middle;
      }
      .icon-link {
        width: 36px;
        height: 36px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--icon-bg);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--accent);
        text-decoration: none;
      }
      .icon-link svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
      }
      .icon-link img {
        width: 22px;
        height: 22px;
        display: block;
        object-fit: contain;
      }
      .link-button {
        background: none;
        border: none;
        color: var(--accent);
        font-weight: 600;
        padding: 0;
        cursor: pointer;
      }
      .link-button[disabled] {
        color: var(--muted);
        cursor: not-allowed;
        opacity: 0.7;
      }
      .badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
        margin-left: 8px;
        border: 1px solid var(--border);
      }
      .badge-verified {
        background: #e7f6ec;
        color: #146c2e;
        border-color: #ccead6;
      }
      .notification-card {
        position: relative;
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
      }
      .notification-dot {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.2);
      }
      .notification-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: auto;
        flex-wrap: wrap;
      }
      .notification-delete {
        position: static;
        margin: 0;
      }
      .site-about {
        margin-top: 16px;
        line-height: 1.6;
        padding: 50px;
      }
      .site-footer {
        margin-top: 24px;
        padding: 20px 16px 32px;
        border-top: 1px solid var(--border);
        background: var(--surface);
      }
      .footer-inner {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        gap: 10px;
      }
      .footer-brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
      }
      .footer-brand .site-logo {
        width: 44px;
        padding: 4px;
      }
      .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
      }
      .footer-contacts {
        display: grid;
        gap: 4px;
      }
      .footer-contacts .footer-title {
        font-weight: 700;
      }
      .footer-contacts a {
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
      }
      .footer-contacts a:hover {
        color: var(--accent);
      }
      .footer-links a {
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
      }
      .footer-links a:hover {
        color: var(--accent);
      }
      .chat-shell {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: 60vh;
        overflow-y: auto;
        padding: 12px;
        margin-bottom: 16px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
      }
      .chat-message {
        max-width: 70%;
        padding: 10px 14px;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: var(--card);
        align-self: flex-start;
      }
      .chat-message.me {
        align-self: flex-end;
        background: var(--chat-me);
        border-color: var(--chat-me-border);
      }
      .chat-meta {
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 6px;
      }
      .chat-name {
        font-weight: 700;
      }
      .chat-name--auth {
        color: var(--accent);
      }
      .chat-name--guest {
        color: var(--muted);
        font-weight: 600;
      }
      .chat-time {
        color: var(--muted);
      }
      .chat-delete {
        margin-left: 6px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: transparent;
        color: var(--muted);
        font-size: 12px;
        line-height: 18px;
        cursor: pointer;
        padding: 0;
      }
      .chat-delete:hover {
        color: var(--accent);
        border-color: var(--accent);
      }
      .chat-guest-fields {
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 12px;
        border: 1px dashed var(--border);
        background: var(--surface);
      }
      .grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
      }
      .profile-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        justify-content: start;
        align-items: stretch;
        grid-auto-rows: 1fr;
      }
      .index-layout {
        display: grid;
        grid-template-columns: minmax(260px, 36%) 1fr;
        gap: 16px;
        align-items: start;
      }
      @media (max-width: 900px) {
        .index-layout {
          grid-template-columns: 1fr;
          grid-auto-flow: row;
        }
        .index-layout > section:first-child {
          order: 2;
        }
        .index-layout > section:last-child {
          order: 1;
        }
      }
      .cover {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 12px;
        border: 1px solid var(--border);
        background: var(--surface-muted);
      }
      .cover-full {
        height: auto;
        max-height: 520px;
        object-fit: contain;
      }
      .profile-hero {
        display: flex;
        gap: 24px;
        align-items: flex-start;
      }
      .profile-hero-info {
        flex: 1;
        min-width: 0;
      }
      .profile-hero .cover-full {
        width: 320px;
        max-width: 100%;
        margin-bottom: 0;
        flex-shrink: 0;
      }
      .profile-block {
        margin-top: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
      }
      .profile-block-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 6px;
      }
      .profile-block-value {
        font-weight: 600;
        font-size: 15px;
      }
      .profile-rows {
        display: flex;
        flex-direction: column;
        margin-top: 6px;
      }
      .profile-row {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
      }
      .profile-row:last-child {
        border-bottom: none;
      }
      .profile-row .label {
        color: var(--text);
        font-weight: 500;
      }
      .profile-row .value {
        text-align: right;
        font-weight: 700;
        max-width: 100%;
        flex: 1 1 0;
        min-width: 0;
        word-break: break-word;
      }
      .profile-row .label {
        flex: 1 1 0;
        min-width: 0;
      }
      .profile-row .value.phone-link {
        color: inherit;
        text-decoration: none;
      }
      .profile-row .value.phone-link:hover {
        color: var(--accent);
      }
      .profile-row .value.price {
        color: #e23b3b;
        font-weight: 700;
      }
      .profile-section {
        margin-top: 18px;
      }
      .profile-section-title {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 8px;
      }
      .profile-section-body {
        color: var(--text);
        line-height: 1.5;
      }
      @media (max-width: 720px) {
        .profile-hero {
          flex-direction: column;
        }
        .profile-hero .cover-full {
          width: 100%;
        }
        .profile-hero-info,
        .profile-rows,
        .profile-row {
          width: 100%;
        }
      }
      .photo-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 8px;
        margin-top: 12px;
      }
      .photo-grid img {
        width: 100%;
        /* height: 180px; */
        object-fit: contain;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--surface-muted);
      }
      .photo-grid video {
        width: 100%;
        height: 180px;
        object-fit: contain;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--surface-muted);
      }
      .photo-item {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .photo-delete-input {
        display: none;
      }
      .photo-remove {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        padding: 0;
        border-radius: 50%;
        border: none;
        background: #e23b3b;
        color: #ffffff;
        font-size: 18px;
        line-height: 1;
        box-sizing: border-box;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 16px rgba(226, 59, 59, 0.35);
      }
      .photo-remove:hover {
        background: #c92f2f;
      }
      .photo-item.is-marked img {
        filter: brightness(0.6);
      }
      .photo-item.is-marked .photo-remove {
        opacity: 0.6;
      }
      .review-list {
        display: grid;
        gap: 12px;
        margin-bottom: 16px;
      }
      .review-item {
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: var(--card);
      }
      .review-item > .button-link,
      .review-item > .review-reply-form {
        margin-top: 8px;
      }
      .review-replies {
        margin-top: 12px;
        padding-left: 12px;
        border-left: 2px solid var(--border);
        display: grid;
        gap: 8px;
      }
      .review-reply {
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--surface);
      }
      .review-reply > .button-link,
      .review-reply > .review-reply-form {
        margin-top: 8px;
      }
      .review-children {
        margin-top: 10px;
        padding-left: 12px;
        border-left: 2px dashed var(--border);
        display: grid;
        gap: 8px;
      }
      .review-child {
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--surface-muted);
      }
      .review-reply-form {
        margin-top: 12px;
      }
      .is-hidden {
        display: none;
      }
      .muted {
        color: var(--muted);
      }
      .lightbox {
        position: fixed;
        inset: 0;
        background: rgba(9, 12, 18, 0.75);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        padding: 24px;
      }
      .lightbox.open {
        display: flex;
      }
      .lightbox-image {
        max-width: min(92vw, 960px);
        max-height: 90vh;
        width: auto;
        height: auto;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: #0f1116;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
      }
      .lightbox-close {
        position: absolute;
        top: 24px;
        right: 24px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        background: rgba(15, 17, 22, 0.7);
        color: #ffffff;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
      }
      .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        color: #1d2025;
        font-size: 20px;
        font-weight: 700;
        cursor: pointer;
      }
      .lightbox-prev {
        left: 20px;
      }
      .lightbox-next {
        right: 20px;
      }
      .flash {
        margin-bottom: 16px;
        padding: 12px 16px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text);
      }
      .status {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
        background: var(--status-bg);
        color: var(--status-text);
      }
      .error {
        color: #b42318;
        display: block;
        margin-top: 6px;
        font-size: 13px;
      }
      .help-text {
        color: var(--muted);
        display: block;
        margin-top: 6px;
        font-size: 13px;
      }
      .required {
        color: #b42318;
        margin-left: 4px;
      }
      @media (max-width: 900px) {
        main {
          padding: 0 14px;
        }
        .profile-card {
          max-width: 100%;
          width: 100%;
        }
        .index-layout {
          gap: 12px;
        }
        .chat-shell {
          max-height: 50vh;
        }
      }
      @media (max-width: 720px) {
        .site-header {
          height: 66px;
          padding: 6px 12px;
          position: fixed;
          left: 0;
          right: 0;
          margin-bottom: 0;
        }
        .header-inner {
          gap: 0px;
          height: 100%;
          justify-content: center;
        }
        .header-top {
          height: 100%;
          align-items: center;
        }
        .site-logo {
          width: 56px;
          padding: 4px;
        }
        .site-nav {
          gap: 8px;
        }
        .site-nav a,
        .site-nav button,
        .site-nav .nav-balance {
          font-size: 13px;
          padding: 7px 12px;
        }
        .nav-toggle {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          gap: 6px;
          padding: 6px 12px;
        }
        .site-nav {
          flex-direction: column;
          align-items: stretch;
          gap: 10px;
          width: auto;
          max-width: calc(100vw - 24px);
          padding: 0;
          border: 1px solid transparent;
          border-radius: 14px;
          background: var(--surface);
          max-height: 0;
          opacity: 0;
          transform: translateY(-6px);
          overflow: hidden;
          pointer-events: none;
          position: absolute;
          top: calc(100% + 6px);
          left: 12px;
          right: 12px;
          box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
          transition: max-height 0.35s ease, opacity 0.2s ease, transform 0.2s ease,
            padding 0.2s ease, border-color 0.2s ease;
        }
        body.theme-dark .site-nav {
          background: #121a26;
          border-color: #2a313d;
          box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
        }
        .site-nav.is-open {
          display: flex;
          padding: 12px;
          border-color: var(--border);
          max-height: 70vh;
          opacity: 1;
          transform: translateY(0);
          pointer-events: auto;
        }
        main {
          margin-bottom: 32px;
          padding: 0 12px;
          padding-top: var(--header-offset, 0px);
        }
        .notification-card {
          padding: 14px 14px 8px;
        }
        .card {
          padding: 18px;
        }
        .cover {
          height: 180px;
        }
        .chat-message {
          max-width: 100%;
        }
        .chat-shell {
          max-height: 45vh;
        }
        .actions {
          flex-direction: column;
          align-items: stretch;
        }
        .actions button,
        .actions .button-link {
          width: 100%;
        }
        .card-actions {
          flex-direction: column;
          align-items: stretch;
        }
      }
      @media (max-width: 600px) {
        .site-nav {
          padding: 10px;
        }
        .grid,
        .profile-grid {
          grid-template-columns: 1fr;
        }
        .profile-card {
          max-width: 100%;
          width: 100%;
        }
        .photo-grid {
          grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        }
      }
      @keyframes fade-in {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
      @keyframes rise-in {
        from {
          opacity: 0;
          transform: translateY(16px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
    
