@font-face {
    font-family: "Inter";
    src: url("https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0I5nvwUgHU.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
    font-family: "Inter";
    src: url("https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0I5nvwU.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.profile-breadcrumb {
    padding: 20px 40px 0;
    font-size: 12px;
    color: #888;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.profile-breadcrumb span {
    margin: 0 6px;
}

.profile-page-header {
    padding: 16px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 0;
    border-bottom: 0;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px 40px;
    align-items: start;
    font-family: 'Inter', sans-serif;
}

.sidebar {
    position: sticky;
    top: 24px;
    background: #fff;
    /*border: 1px solid #e0e0e0;*/
}

.sidebar-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s, border-color 0.15s;
}

.sidebar-nav a:last-child {
    border-bottom: none;
}

.sidebar-nav a:hover {
    background: #fafafa;
    color: #111;
}

.sidebar-nav a.active {
    border-left-color: #FFE600;
    background: #fffde7;
    color: #111;
    font-weight: 700;
}

.main-content {
    padding-left: 28px;
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.hint-row {
    font-size: 12px;
    color: #999;
    text-align: right;
    line-height: 1;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 28px 32px;
}
.journal-index .card,
.user-view .card {
    padding: 0;
    border: 0;
}
.card-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #111;
}

.card-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.5;
}

.section-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #FFE600;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
    color: #111;
}

.section-badge.private {
    background: #f0f0f0;
    color: #888;
}

.field {
    margin-bottom: 16px;
}

.field-label,
.field label {
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #111;
}

.field-label .req,
.field label .req {
    color: #111;
}

.field-label .opt,
.field label .opt {
    color: #aaa;
    font-weight: 400;
    font-size: 11px;
}

.field .form-group {
    margin-bottom: 0;
}

.field-input,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="password"],
.field select,
.field textarea,
.profile-layout input.form-control,
.profile-layout select.form-control,
.profile-layout textarea.form-control {
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #d0d0d0;
    color: #111;
    font-family: 'Inter', sans-serif;
    outline: none;
    border-radius: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.field-input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.profile-layout input.form-control:focus,
.profile-layout select.form-control:focus,
.profile-layout textarea.form-control:focus {
    border-color: #111;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #bbb;
}

.field-input--disabled,
.field input[disabled],
.profile-layout input[disabled] {
    background: #f8f8f8 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    border-color: #e0e0e0 !important;
}

.field textarea {
    resize: vertical;
    min-height: 100px;
}

.field-hint {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

.field .help-block,
.field .help-block-error {
    font-size: 11px;
    color: #e53535;
    margin-top: 3px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #e53535;
}

.field-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.avatar-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.avatar-img {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #bbb;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-info p {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    line-height: 1.5;
}

.btn-upload {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid #111;
    background: #fff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-family: 'Inter';
    display: inline-block;
}

.btn-upload:hover {
    background: #f5f5f5;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
textarea.form-control {
    resize: vertical !important;
}
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    cursor: pointer;
    padding: 6px 12px;
    border: 1px solid #d0d0d0;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.checkbox-item:has(input:checked) {
    border-color: #111;
    background: #fffde7;
}

.checkbox-item input {
    width: auto;
    margin: 0;
    cursor: pointer;
    /*accent-color: #111;*/
}

.checkbox-single {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    color: #111;
}

.checkbox-single input {
    width: auto;
    margin: 0;
    cursor: pointer;
    /*accent-color: #111;*/
}

.form-actions-inline {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
}

.btn-profile-save {
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 48px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-profile-save:hover {
    background: #333;
}

.btn-profile-cancel {
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 16px 48px;
    border: 1px solid #111;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-profile-cancel:hover {
    background: #f5f5f5;
}

@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
        padding: 0 0 40px;
    }

    .sidebar {
        position: static;
    }

    .main-content {
        padding-left: 0;
        padding-right: 0;
        padding-top: 16px;
    }

    .field-grid-2 {
        grid-template-columns: 1fr;
    }

    .form-actions-inline {
        flex-direction: column;
    }

    .btn-profile-save,
    .btn-profile-cancel {
        width: 100%;
        text-align: center;
    }
}

.card-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 20px 0;
}

.uploadcrop-profile .uploadcrop > .form-group,
.uploadcrop-profile input[type="file"],
.uploadcrop-profile #preview-pane {
    display: none !important;
}
body.user-profile .bottom-anchors-block,
body.user-profile .footer_top {
    display: none;
}