:root {
    color-scheme: dark;
    --bg: #000;
    --surface: #1c1c1e;
    --field: #2c2c2e;
    --border: rgba(255, 255, 255, .08);
    --line: #38383a;
    --text: #f5f5f7;
    --muted: #8e8e93;
    --blue: #0a84ff;
    --blue-hover: #409cff;
}

* { box-sizing: border-box; }

html {
    color-scheme: dark only;
    background: var(--bg);
    overflow-x: clip;
    overflow-y: visible;
    max-width: 100%;
}

body.id-page {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: visible;
    color: var(--text);
    background: radial-gradient(circle at top, #161618 0, #000 52%);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.id-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 max(40px, env(safe-area-inset-bottom));
}

.id-shell > :not(.id-nav) {
    padding-top: 16px;
}

.id-shell {
    display: grid;
    grid-template-columns: 212px minmax(0, 1fr);
    gap: 8px 28px;
    align-items: start;
}

.id-shell.is-guest { grid-template-columns: minmax(0, 1fr); }

.id-flash {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
}

.id-flash p { margin: 0; }

.id-flash.is-error {
    color: #ff9f9a;
    background: #3a1717;
    border: 1px solid rgba(255, 69, 58, .28);
}

.id-flash.is-ok {
    color: #8ee6a6;
    background: #16351f;
    border: 1px solid rgba(48, 209, 88, .28);
}

.id-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.id-profile {
    grid-template-areas:
        "side head"
        "side main";
}

.id-profile .id-left,
.id-profile .id-hero { display: contents; }

.id-profile .id-side {
    grid-area: side;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
}

.id-photo-card {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(28, 28, 30, .94);
}

.id-map {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #1a1c1f;
    aspect-ratio: 1200 / 560;
}

.id-map .mapw { height: 100%; border-radius: 13px; }

.id-map-eye-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    margin: 0;
}

.id-map-eye {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.id-map-eye:hover { background: rgba(0, 0, 0, .72); }

.id-map.is-off {
    display: flex;
    justify-content: flex-end;
    overflow: visible;
    aspect-ratio: auto;
    border: 0;
    background: transparent;
}

.id-map.is-off .id-map-eye-form { position: static; }

.id-map.is-off .id-map-eye {
    border: 1px solid var(--border);
    background: rgba(28, 28, 30, .94);
    color: var(--muted);
    box-shadow: none;
}

.id-wishes {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(28, 28, 30, .94);
}

.id-wishes-title {
    display: block;
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.id-wishes-title:hover { color: var(--blue-hover); }

.id-wishes .id-empty { font-size: 13px; }

.id-wish-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.id-wish-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
}

.id-wish-link img {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 8px;
    background: #111;
}

.id-wish-link span {
    display: -webkit-box;
    overflow: hidden;
    min-width: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.id-profile .id-head { grid-area: head; margin-bottom: 0; }

.id-profile .id-main { grid-area: main; }

.id-profile { position: relative; }

.id-profile .id-edit-box { margin-top: 8px; }

.id-profile .id-edit-box > summary { list-style: none; }

.id-profile .id-edit-box > summary::-webkit-details-marker { display: none; }

.id-left,
.id-box,
.id-head {
    border: 1px solid var(--border);
    background: rgba(28, 28, 30, .94);
}

.id-left {
    padding: 10px;
    border-radius: 14px;
}

.id-photo {
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #111;
}

.id-photo img,
.id-photo span {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-photo span {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 64px;
    font-weight: 700;
    background: #2c2c2e;
}

.id-friend-add input {
    width: 100%;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    background: var(--field);
    font: inherit;
    font-size: 12px;
}

.id-friend-add button {
    border: 0;
    color: #fff;
    background: var(--blue);
    font-weight: 600;
    cursor: pointer;
}

.id-friend-add button:hover { background: var(--blue-hover); }

.id-photo-tools { margin-top: 8px; }

.id-photo-form { margin: 0; }

.id-btn {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: #2c2c2e;
    color: var(--blue);
    font-size: 11.05px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.id-btn:hover { color: var(--blue-hover); background: #3a3a3c; }

.id-btn input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.id-link-btn {
    display: block;
    width: 100%;
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.id-link-btn:hover { color: #ff453a; }

.id-mini {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.id-mini-title {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.id-mini a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.id-mini a:hover { color: var(--blue-hover); }

.id-mini-meta { margin-top: 4px; color: var(--muted); }

.id-main { min-width: 0; }

.id-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 14px;
}

.id-head h1 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    font-size: clamp(26px, 5vw, 34px);
    letter-spacing: -.05em;
    line-height: 1.1;
}

.id-name { min-width: 0; }

.id-verified {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    outline: none;
    anchor-name: --verified;
}

.id-verified-icon { display: block; }

.id-verified-tip {
    position: fixed;
    position-anchor: --verified;
    position-area: right center;
    position-try-fallbacks: flip-inline;
    z-index: 20;
    width: max-content;
    max-width: min(220px, calc(100vw - 16px));
    margin: 0 0 0 10px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #2c2c2e;
    color: #f5f5f7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.id-verified:hover .id-verified-tip,
.id-verified:focus .id-verified-tip,
.id-verified:focus-visible .id-verified-tip {
    opacity: 1;
    visibility: visible;
}

.id-verify-form { margin: 8px 0 0; }

.id-verify-toggle {
    padding: 0;
    border: 0;
    background: none;
    color: #0a84ff;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0;
    cursor: pointer;
}

.id-verify-toggle:hover { color: #409cff; }

.id-status {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    font-style: italic;
}

.id-status.is-empty { opacity: .7; }

button.id-status {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-style: italic;
    text-align: left;
    cursor: text;
}

.id-status-input {
    display: none;
    width: 100%;
    margin: 8px 0 0;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    font-style: italic;
    outline: none;
}

.id-status-form.is-editing .id-status { display: none; }

.id-status-form.is-editing .id-status-input { display: block; }

.id-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.id-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text);
    background: #2c2c2e;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    text-decoration: none;
}

.id-contact:hover { background: #3a3a3c; }

button.id-contact {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.id-contact-message {
    color: #fff;
    background: rgba(10, 132, 255, .22);
}

.id-photo-card .id-contact-message {
    display: grid;
    grid-template-columns: 16px max-content;
    justify-content: center;
    align-items: center;
    column-gap: 6px;
    width: 100%;
    min-height: 36px;
    margin-top: 8px;
    padding: 8px 10px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #0a84ff;
    color: #fff;
    font-size: 11.05px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-align: left;
}

.id-photo-card .id-contact-message span {
    width: max-content;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: normal;
}

.id-profile .id-photo-card .id-contact-message svg {
    width: 16px;
    height: 16px;
}

.id-profile .id-photo-card .id-contact-message:hover { background: #409cff; }

.id-username {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.id-contact-message:hover { background: rgba(10, 132, 255, .34); }

.id-modal {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: 20px;
    overflow: auto;
    background: rgba(0, 0, 0, .55);
}

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

.id-modal-card {
    width: min(480px, 100%);
    margin: 8vh auto 40px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #1c1c1e;
}

.id-modal-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: -.03em;
}

.id-modal-card textarea {
    width: 100%;
    min-height: 140px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: var(--field);
    font: inherit;
    font-size: 16px;
    resize: vertical;
}

.id-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.id-modal-actions .id-save,
.id-modal-actions .id-modal-cancel {
    width: 124px;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.id-modal-cancel {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.id-modal-ok,
.id-modal-err {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.id-modal-ok { color: #30d158; background: rgba(48, 209, 88, .12); }

.id-modal-err { color: #ff9f9a; background: #3a1717; }

.id-hp { position: absolute; left: -9999px; }

.id-contact svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.id-contact-editor { display: grid; gap: 8px; }

.id-contact-editor-title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.id-contact-rows { display: grid; gap: 8px; }

.id-contact-row {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) 36px;
    grid-template-areas: "label url remove";
    gap: 8px;
    align-items: center;
}

.id-contact-row input[name="contact_label[]"],
.id-fact-row input[name="fact_label[]"] { grid-area: label; }

.id-contact-row input[name="contact_url[]"],
.id-fact-row input[name="fact_value[]"] { grid-area: url; }

.id-fact-editor { display: grid; gap: 8px; }

.id-fact-rows { display: grid; gap: 8px; }

.id-fact-row {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) 36px;
    grid-template-areas: "label url remove";
    gap: 8px;
    align-items: center;
}

.id-contact-remove { grid-area: remove; }

.id-contact-remove,
.id-contact-add {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
}

.id-contact-remove {
    width: 36px;
    height: 36px;
    font-size: 18px;
    line-height: 1;
}

.id-contact-add {
    justify-self: start;
    padding: 8px 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

.id-settings {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.id-settings:hover { color: var(--blue-hover); }

.id-box {
    margin-bottom: 14px;
    padding: 14px 16px 16px;
    border-radius: 14px;
}

.id-box-title {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

details.id-box > summary {
    cursor: pointer;
    list-style: none;
}

details.id-box > summary::-webkit-details-marker { display: none; }

.id-info {
    width: 100%;
    border-collapse: collapse;
}

.id-info th,
.id-info td {
    padding: 6px 0;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.4;
}

.id-info th {
    width: 38%;
    padding-right: 12px;
    color: var(--muted);
    font-weight: 500;
    text-align: left;
}

.id-info a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.id-info a:hover { color: var(--blue-hover); }

.id-relation-hint,
.id-relation-wait {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.id-relation-ask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.id-relation-ask p {
    flex: 1 1 180px;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.id-relation-ask a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.id-relation-ask form { margin: 0; }

.id-relation-ask .id-save,
.id-relation-ask .id-modal-cancel {
    height: 36px;
    margin: 0;
    padding: 0 12px;
}

.id-empty {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.id-edit { margin-top: 4px; }

@media (min-width: 861px) {
    .id-profile .id-map {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        justify-self: stretch;
        width: auto;
        margin-top: calc(var(--id-photo-span, 272px) + 14px);
    }

    .id-profile .id-wishes {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        justify-self: stretch;
        width: auto;
        margin-top: calc(var(--id-photo-span, 272px) + 14px + var(--id-map-span, 0px));
    }

    .id-profile .id-edit-box > summary { width: 100%; }

    .id-profile .id-edit-box[open] .id-edit {
        position: absolute;
        z-index: 5;
        top: var(--id-edit-top, 0px);
        left: calc(220px + 14px);
        width: calc(100% - 220px - 14px);
        max-height: min(680px, calc(100dvh - 96px));
        margin: 0;
        padding: 14px 16px 16px;
        overflow: auto;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #1c1c1e;
        box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    }
}

.id-edit-icon { display: none; }

.id-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 12px;
}

.id-fields .id-span { grid-column: 1 / -1; }

.id-fields label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    color: var(--muted);
    font-size: 12px;
}

.id-fields input,
.id-fields select,
.id-fields textarea,
.id-wall-form textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    color: var(--text);
    background: var(--field);
    font: inherit;
    font-size: 15px;
}

.id-fields input[type="date"] {
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-right: 36px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

.id-fields input[type="date"]::-webkit-date-and-time-value,
.id-fields input[type="date"]::-webkit-datetime-edit {
    min-width: 0;
    padding: 0;
    text-align: left;
}

.id-fields input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    width: 36px;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.id-fields label:has(input[type="date"]) {
    overflow: hidden;
}

.id-fields textarea,
.id-wall-form textarea { resize: vertical; }

.id-fields input:focus,
.id-fields select:focus,
.id-fields textarea:focus,
.id-wall-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, .16);
}

.id-save {
    margin-top: 12px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--blue);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.id-save:hover { background: var(--blue-hover); }

.id-wall-form textarea { min-height: 76px; }

.id-wall-note {
    margin: 8px 0 0;
    color: #ffb4b4;
    font-size: 13px;
}

.id-wall-progress {
    height: 4px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 99px;
    background: #2c2c2e;
}

.id-wall-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a84ff, #64d2ff);
    transition: width .18s linear;
}

.id-wall-progress.is-busy .id-wall-progress-bar {
    width: 38%;
    animation: id-wall-progress 1.05s ease-in-out infinite;
}

@keyframes id-wall-progress {
    0% { transform: translateX(-130%); }
    100% { transform: translateX(280%); }
}

.id-wall-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.id-wall-bar .id-save { margin-top: 0; }

.id-post-body p a {
    color: var(--blue);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.id-post-body p a:hover { color: var(--blue-hover); text-decoration: none; }

.id-wall-photo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.id-wall-photo input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.id-wall-photo:hover { color: var(--blue-hover); }

.id-wall-preview {
    position: relative;
    width: min(100%, 280px);
    margin-top: 10px;
}

.id-wall-preview img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    background: #2c2c2e;
}

.id-wall-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, .62);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.id-post-photo {
    display: block;
    width: min(100%, 420px);
    margin-top: 8px;
}

.id-post-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #2c2c2e;
}

.id-wall {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.id-post {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.id-post-ava {
    overflow: hidden;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: #2c2c2e;
}

.id-post-ava img,
.id-post-ava span {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-post-ava span {
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
}

.id-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 4px;
}

.id-post-meta a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.id-post-meta a:hover { color: var(--blue-hover); }

.id-post-meta span {
    color: var(--muted);
    font-size: 12px;
}

.id-post-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.id-post-body .id-link-btn {
    width: auto;
    margin-top: 6px;
    text-align: left;
}

.id-post-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.id-post-actions .id-link-btn { margin-top: 0; }

.id-post-votes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.id-vote {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    color: #f5f5f7;
    background: #2c2c2e;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.id-vote.is-like.is-on {
    color: #0a84ff;
    background: rgba(10, 132, 255, .18);
}

.id-vote.is-dislike.is-on {
    color: #ff453a;
    background: rgba(255, 69, 58, .16);
}

.id-like-add {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.id-like-add input {
    width: 64px;
    min-width: 0;
    padding: 5px 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: var(--field);
    font: inherit;
    font-size: 13px;
}

.id-like-add input[name="likes"] { color: #0a84ff; }

.id-like-add input[name="dislikes"] { color: #ff453a; }

.id-like-add button {
    padding: 5px 8px;
    border: 0;
    border-radius: 8px;
    color: #0a84ff;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.id-like-add button:hover { color: #409cff; }

.id-like-add button[value="remove"] { color: #ff9f9a; }

.id-like-add button[value="remove"]:hover { color: #ff453a; }

.id-post-delete { margin-left: auto; }

.id-friend-add {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.id-friend-add button {
    flex: 0 0 auto;
    width: auto;
    padding: 7px 12px;
}

.id-friends { display: grid; gap: 10px; }

.id-friend {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.id-friend a.id-post-ava { color: inherit; text-decoration: none; }

.id-friend-name {
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.id-friend-name:hover { color: var(--blue-hover); }

.id-friend .id-link-btn {
    width: auto;
    margin: 0;
}

@media (max-width: 860px) {
    html, body.id-page {
        overflow-x: clip;
        overflow-y: visible;
        max-width: 100%;
        overscroll-behavior-x: none;
        touch-action: pan-y;
    }

    body.id-page .site-header-wrap,
    body.id-page .site-header,
    .id-shell,
    .id-layout,
    .id-profile,
    .id-main,
    .id-box,
    .id-post-body {
        min-width: 0;
        max-width: 100%;
    }

    .id-wrap {
        zoom: 1;
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding: 12px 12px 0;
    }

    .id-shell { grid-template-columns: 1fr; gap: 14px; }

    .id-shell { gap: 0; }

    .id-head h1,
    .id-status,
    .id-post-body p { overflow-wrap: anywhere; }

    .id-status-input,
    .id-fields input,
    .id-fields select,
    .id-fields textarea,
    .id-wall-form textarea,
    .id-friend-add input { font-size: 16px; }

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

    .id-profile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .id-profile .id-hero,
    .id-profile .id-main { width: 100%; }

    .id-profile .id-left,
    .id-profile .id-main { display: contents; }

    .id-profile .id-hero { order: 1; }

    .id-profile .id-main > .id-box:first-child { order: 2; }

    .id-profile .id-map { order: 3; width: 100%; margin-top: 0; }

    .id-profile .id-wishes { order: 4; width: 100%; }

    .id-profile #wall { order: 5; }

    .id-profile .id-hero {
        display: grid;
        grid-template-columns: clamp(96px, 28vw, 112px) minmax(0, 1fr);
        grid-template-areas: "photo name";
        gap: 10px 12px;
        align-items: start;
        margin: 0;
        padding: 14px 16px 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(28, 28, 30, .94);
    }

    .id-profile .id-photo-card .id-contact-message {
        margin-top: 0;
        font-size: 11.05px;
    }

    .id-profile .id-photo-card .id-contact-message span { overflow-wrap: normal; }

    .id-profile .id-username { margin-top: 2px; font-size: 13px; }

    .id-profile .id-main > .id-box { margin-bottom: 0; width: 100%; }

    .id-profile .id-side { display: contents; }

    .id-profile .id-photo-card { display: contents; }

    .id-profile .id-photo { grid-area: photo; width: 100%; }

    .id-profile .id-photo-card > .id-contact-message,
    .id-profile .id-edit-box {
        grid-column: 1 / -1;
        width: 100%;
    }

    .id-profile .id-wishes { margin-top: 0; }

    .id-profile .id-photo-tools { display: none; }

    .id-profile .id-photo-tools .id-btn {
        padding: 7px 6px;
        border-radius: 8px;
        font-size: 11px;
        line-height: 1.25;
    }

    .id-profile .id-photo-tools .id-link-btn {
        margin-top: 6px;
        font-size: 11px;
        text-align: center;
    }

    .id-profile .id-head {
        grid-area: name;
        align-self: start;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
    }

    .id-profile .id-head h1 {
        display: block;
        font-size: clamp(19px, 5.4vw, 22px);
        line-height: 1.15;
    }

    .id-profile .id-name { display: inline; }

    .id-profile .id-verified {
        display: inline-flex;
        width: 18px;
        height: 18px;
        margin: 0 0 0 6px;
        vertical-align: -3px;
    }

    .id-profile .id-verified-icon {
        width: 18px;
        height: 18px;
    }

    .id-verified-tip {
        position-area: left center;
        margin: 0 8px 0 0;
        white-space: normal;
    }

    .id-profile .id-status { margin: 6px 0 0; font-size: 14px; }

    .id-status-input { margin-top: 6px; font-size: 16px; }

    .id-profile .id-contacts { margin-top: 8px; gap: 6px; }

    .id-profile .id-contact {
        max-width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }

    .id-profile .id-contact span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .id-profile .id-contact-social {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        gap: 0;
        border-radius: 12px;
    }

    .id-profile .id-contact-social span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .id-profile .id-contact-social svg {
        width: 18px;
        height: 18px;
    }

    .id-profile .id-contact-site svg { display: none; }

    .id-profile .id-contact-site { gap: 0; }

    .id-info {
        table-layout: fixed;
    }

    .id-info th,
    .id-info td { overflow-wrap: anywhere; }

    .id-contact-row,
    .id-fact-row {
        grid-template-columns: minmax(0, 1fr) 36px;
        grid-template-areas:
            "label remove"
            "url url";
    }

    .id-profile .id-edit-box {
        position: static;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .id-edit-box > summary {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 8px 10px;
        border: 0;
        border-radius: 8px;
        background: #2c2c2e;
        box-shadow: none;
        color: var(--blue);
        font-size: 11.05px;
        font-weight: 600;
        line-height: 1.25;
        letter-spacing: 0;
        text-align: center;
        text-transform: none;
        white-space: normal;
    }

    .id-edit-label {
        position: static;
        display: block;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .id-edit-icon { display: none; }

    .id-edit-box[open] .id-edit {
        position: fixed;
        z-index: 39;
        top: calc(var(--id-bar, 72px) + 12px);
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        max-width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
        max-height: calc(100dvh - var(--id-bar, 72px) - 76px);
        margin: 0;
        padding: 14px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-x: none;
        touch-action: pan-y;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #1c1c1e;
        box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    }

    .id-friend-add { flex-direction: column; }

    .id-fields {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
    }

    .id-fields > *,
    .id-contact-row,
    .id-fact-row,
    .id-fields input,
    .id-fields select,
    .id-fields textarea {
        min-width: 0;
        max-width: 100%;
    }

    .id-head { flex-direction: column; }
}

@media (max-width: 420px) {
    .id-wrap { width: 100%; }

    .id-profile .id-hero {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 8px 10px;
        padding: 12px;
    }

    .id-profile .id-head h1 { font-size: 19px; }

    .id-profile .id-contact {
        padding: 7px 10px;
        font-size: 12px;
    }

    .id-profile .id-contact-social { padding: 0; }

    .id-box,
    .id-wishes { padding: 12px; }

    .id-post {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 8px;
    }

    .id-post-ava {
        width: 36px;
        height: 36px;
    }

    .id-post-delete { margin-left: 0; }
}
