* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1c1e21;
    min-height: 100vh;
    background: #f0f2f5;
    padding: 40px 0;
}
main {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    padding: 24px 32px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}
.photo {
    flex: 0 0 auto;
    align-self: flex-start;
}
.photo img {
    width: 220px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: block;
}
.menu {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.menu a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    color: #050505;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #e4e6eb;
}
.menu a:hover {
    background: #e7f0fd;
    color: #0a66c2;
}
.menu a.active {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
}
.context {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-width: 0;
}
.context h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0a66c2;
}
.context h3 {
    font-size: 15px;
    font-weight: 600;
    color: #0a66c2;
    margin: 18px 0 8px;
}
.context p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}
.context ul {
    margin: 8px 0 8px 20px;
    font-size: 15px;
    line-height: 1.6;
}
.context li {
    margin-bottom: 6px;
}
.context a {
    color: #0a66c2;
}
.project {
    margin-bottom: 14px;
}
.project .name {
    font-weight: 600;
    color: #0a66c2;
    text-decoration: none;
}
.project .name:hover {
    text-decoration: underline;
}
.project p {
    margin: 2px 0 0;
}
.context h3.group {
    font-size: 17px;
    font-weight: 600;
    color: #1c1e21;
    margin: 24px 0 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e4e6eb;
}
.context h3.group:first-of-type {
    margin-top: 8px;
}
.context .group-desc {
    font-size: 14px;
    color: #65676b;
    margin: 0 0 14px;
    line-height: 1.5;
}
.dl {
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f7f8fa;
    border: 1px solid #e4e6eb;
    border-radius: 10px;
}
.dl .name {
    font-weight: 600;
    font-size: 15px;
}
.dl p {
    margin: 4px 0 8px;
}
a.btn {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 6px 14px;
    background: #0a66c2;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
a.btn:hover {
    background: #084d92;
    color: #ffffff;
}
.note {
    margin-top: 20px;
    padding: 12px 16px;
    background: #fff8e6;
    border-left: 4px solid #f5a623;
    border-radius: 6px;
    font-size: 14px;
}
.gate {
    max-width: 440px;
    margin: 150px auto;
}
.gate .hidden {
    display: none;
}
.gate .file {
    font-size: 15px;
    color: #65676b;
    margin-bottom: 12px;
    word-break: break-all;
}
.gate .status {
    font-size: 14px;
    margin-bottom: 18px;
}
.gate .status b {
    color: #1a7f37;
}
.track {
    position: relative;
    height: 36px;
    background: #e4e6eb;
    border-radius: 18px;
    overflow: hidden;
    touch-action: none;
}
.fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 32px;
    background: #0a66c2;
    border-radius: 18px;
}
.handle {
    position: absolute;
    top: 2px;
    left: 0;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 2px solid #0a66c2;
    border-radius: 50%;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a66c2;
    font-size: 14px;
    font-weight: 700;
    user-select: none;
}
.handle:active {
    cursor: grabbing;
}
.hint {
    font-size: 13px;
    color: #65676b;
    margin-top: 8px;
}
@media (max-width: 768px) {
    main {
        flex-direction: column;
        padding: 16px;
    }
    .photo {
        flex: none;
    }
    .photo img {
        width: 100%;
    }
}
#morph3d {
    display: block;
}
.lang-switch {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.lang-switch a {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #0a66c2;
    background: #ffffff;
    border: 1px solid #e4e6eb;
}
.lang-switch a:hover {
    background: #e7f0fd;
    color: #0a66c2;
}
.lang-switch a.active {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
}
