:root{--sun:#ffb703;--sun2:#fb8500;--ink:#172033;--muted:#6b7280;--bg:#fffaf0;--card:#ffffff;--line:rgba(23,32,51,.1);--blue:#2563eb}*{box-sizing:border-box}body{font-family:'Noto Sans JP',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:linear-gradient(180deg,#fffaf0 0,#fff 42%,#f8fafc 100%);color:var(--ink)}.fw-black{font-weight:900}.site-header{background:rgba(255,255,255,.82);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.navbar{padding:16px 0}.brand-mark{width:38px;height:38px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--sun),var(--sun2));color:#fff;box-shadow:0 12px 30px rgba(251,133,0,.32)}.brand-mark.large{width:70px;height:70px;border-radius:24px;font-size:2rem}.brand-mark.small{width:30px;height:30px;border-radius:11px}.nav-link{font-weight:700;color:#334155}.btn-gradient{border:0;color:#fff!important;font-weight:800;border-radius:999px;background:linear-gradient(135deg,var(--sun),var(--sun2));box-shadow:0 14px 30px rgba(251,133,0,.28)}.shadow-soft{box-shadow:0 18px 45px rgba(15,23,42,.09)}.hero-section{position:relative;padding:110px 0 80px;overflow:hidden}.hero-orb{position:absolute;border-radius:999px;filter:blur(4px);opacity:.5}.hero-orb-one{width:360px;height:360px;background:radial-gradient(circle,var(--sun),transparent 65%);top:-120px;right:7%}.hero-orb-two{width:240px;height:240px;background:radial-gradient(circle,#60a5fa,transparent 68%);bottom:20px;left:4%}.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border-radius:999px;background:rgba(255,183,3,.14);color:#b45309;font-size:.82rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.text-gradient{background:linear-gradient(135deg,var(--sun2),#e11d48);-webkit-background-clip:text;background-clip:text;color:transparent}.surface-card{position:relative;border:1px solid var(--line);background:rgba(255,255,255,.9);box-shadow:0 22px 70px rgba(15,23,42,.08);border-radius:28px}.hero-panel{padding:34px;overflow:hidden}.match-glow{position:absolute;inset:auto -60px -60px auto;width:220px;height:220px;background:radial-gradient(circle,rgba(255,183,3,.34),transparent 68%)}.ai-line{display:flex;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.ai-line strong{color:#0f766e}.stats-section{padding:0 0 40px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;text-align:center;box-shadow:0 14px 40px rgba(15,23,42,.06)}.stat-card span{display:block;font-size:2rem;font-weight:900;color:var(--sun2)}.stat-card p{margin:0;color:var(--muted);font-weight:700}.page-section{padding:76px 0}.section-heading{margin-bottom:26px}.section-heading h2{font-weight:900;font-size:2rem;margin-top:12px}.project-card,.engineer-card{padding:26px;transition:.2s ease}.project-card:hover,.engineer-card:hover{transform:translateY(-4px);box-shadow:0 28px 90px rgba(15,23,42,.12)}.chip{display:inline-flex;gap:6px;align-items:center;border-radius:999px;padding:7px 11px;font-size:.78rem;font-weight:800}.chip-warm{background:rgba(255,183,3,.16);color:#a16207}.chip-dark{background:#111827;color:#fff}.tag{display:inline-flex;border-radius:999px;padding:7px 11px;background:#fff7ed;color:#c2410c;font-weight:800;font-size:.78rem;border:1px solid rgba(251,146,60,.25)}.tag-blue{background:#eff6ff;color:#1d4ed8;border-color:rgba(37,99,235,.18)}.avatar-sun{width:52px;height:52px;border-radius:18px;background:linear-gradient(135deg,#fde68a,#fb923c);display:flex;align-items:center;justify-content:center;font-weight:900;color:#7c2d12}.page-hero{padding:70px 0;background:radial-gradient(circle at top right,rgba(255,183,3,.3),transparent 30%),linear-gradient(135deg,#fff7ed,#eff6ff)}.page-hero.compact h1{font-weight:900;font-size:2.6rem}.page-hero p{color:var(--muted);font-size:1.1rem;max-width:800px}.search-box{display:flex;gap:12px;max-width:760px}.mini-box{background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:18px}.mini-box span{display:block;color:var(--muted);font-size:.82rem;font-weight:700}.mini-box strong{font-size:1.05rem}.sticky-card{position:sticky;top:100px}.match-mini{display:flex;align-items:center;gap:12px;padding:14px;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:18px;margin-bottom:10px;background:#fff}.match-mini small{display:block;color:var(--muted)}.score-pill{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;border-radius:999px;background:linear-gradient(135deg,var(--sun),var(--sun2));color:#fff;font-weight:900}.score-pill.large{min-width:52px;height:52px}.score-row{display:flex;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line)}.question-box{white-space:pre-wrap;border-radius:18px;background:#0f172a;color:#e2e8f0;padding:20px}.footer-section{background:#fff;border-top:1px solid rgba(15,23,42,.06)}.footer-nav-area{padding:56px 0 52px}.footer-nav-list{list-style:none;margin:0;padding:0}.footer-nav-list li{margin:0 0 14px}.footer-nav-list a{color:#0f172a;text-decoration:none;font-size:.95rem;font-weight:500;letter-spacing:.01em;transition:.18s ease}.footer-nav-list a:hover{color:var(--sun2);padding-left:3px}.footer-bottom-bar{background:#f1f1f1;color:#64748b;padding:18px 0}.footer-brand-mini{display:flex;align-items:center;gap:10px;color:#0f172a}.footer-brand-mini .brand-mark.small{width:28px;height:28px;border-radius:10px;font-size:.88rem}@media(max-width:768px){.hero-section{padding:70px 0 50px}.display-4{font-size:2.35rem}.search-box{display:block}.search-box .btn{margin-top:12px;width:100%}.page-hero.compact h1{font-size:2rem}.footer-nav-area{padding:38px 0 28px}.footer-nav-list li{margin-bottom:12px}.footer-bottom-bar{text-align:center}.footer-brand-mini{justify-content:center}}
.privacy-note{display:flex;align-items:center;gap:8px;border-radius:16px;background:#f8fafc;border:1px dashed rgba(37,99,235,.28);color:#1e40af;font-weight:800;font-size:.84rem;padding:11px 13px}.privacy-alert{display:flex;align-items:center;gap:12px;border:1px solid rgba(37,99,235,.18);background:linear-gradient(135deg,#eff6ff,#fff7ed);border-radius:20px;color:#1f2937}.privacy-alert span{color:#64748b}.privacy-check{border:1px solid var(--line);background:#f8fafc;border-radius:18px;padding:16px 16px 16px 44px}.privacy-check .form-check-input{margin-left:-28px}

/* Header brand two-line tagline */
.brand-text-wrap{display:flex;flex-direction:column;line-height:1.18}.brand-title{font-weight:900;font-size:1.18rem;color:#111827;letter-spacing:-.02em}.brand-tagline{margin-top:3px;font-size:.72rem;font-weight:800;color:#64748b;letter-spacing:.01em}.navbar-brand{text-decoration:none}.navbar-brand:hover .brand-title{color:#0f172a}

/* Current page navigation highlight */
.site-header .nav-link{position:relative;padding:.65rem 1rem;border-radius:999px;font-weight:800;color:#1f2937;transition:color .22s ease,background .22s ease,box-shadow .22s ease,transform .22s ease}.site-header .nav-link:hover{color:#f59e0b;background:rgba(255,247,237,.9);transform:translateY(-1px)}.site-header .nav-link.active-nav{color:#d97706;background:#fff7ed;box-shadow:0 10px 26px rgba(245,158,11,.22)}.site-header .nav-link.active-nav::after{content:"";position:absolute;left:50%;bottom:5px;width:22px;height:3px;border-radius:999px;background:linear-gradient(90deg,#f59e0b,#f97316);transform:translateX(-50%)}.site-header .btn-gradient.active-nav{box-shadow:0 12px 30px rgba(249,115,22,.42);transform:translateY(-1px)}

@media(max-width:768px){.brand-title{font-size:1.02rem}.brand-tagline{font-size:.66rem}.site-header .nav-link.active-nav::after{display:none}.site-header .nav-link{margin:.2rem 0}}

/* Database-backed project pagination */
.pagination .page-link{min-width:48px;text-align:center;color:#c2410c;font-weight:800;background:#fff}.pagination .page-link:hover{color:#9a3412;background:#fff7ed}.pagination .page-item.active .page-link{color:#fff;background:linear-gradient(135deg,var(--sun),var(--sun2));box-shadow:0 10px 24px rgba(251,133,0,.25)}.pagination .page-item.disabled .page-link{color:#94a3b8;background:#f8fafc}

/* Detailed project create / confirm / detail pages */
.project-form-page{padding-top:56px}.project-form-section{padding:34px;margin-bottom:28px}.project-form-heading{display:flex;align-items:flex-start;gap:16px;padding-bottom:24px;margin-bottom:28px;border-bottom:1px solid var(--line)}.project-form-heading h2{font-size:1.35rem;font-weight:900;margin:0 0 5px}.project-form-heading p{color:var(--muted);margin:0}.project-form-step{flex:0 0 auto;width:46px;height:46px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--sun),var(--sun2));color:#fff;font-weight:900;box-shadow:0 10px 24px rgba(251,133,0,.25)}.required-mark{display:inline-flex;margin-left:5px;padding:2px 7px;border-radius:999px;background:#fff1f2;color:#e11d48;font-size:.68rem;font-weight:900;vertical-align:middle}.select-card{display:flex;align-items:flex-start;gap:13px;height:100%;padding:19px;border:1px solid rgba(15,23,42,.13);border-radius:20px;background:#f8fafc;cursor:pointer;transition:.18s ease}.select-card:hover{border-color:rgba(251,133,0,.45);background:#fffaf0;transform:translateY(-1px)}.select-card input{margin-top:5px;accent-color:var(--sun2)}.select-card span{display:flex;flex-direction:column;gap:3px}.select-card strong{font-size:1rem}.select-card small{color:var(--muted)}.compensation-choice label{display:inline-flex;align-items:center;gap:7px;font-weight:800}.compensation-choice input{accent-color:var(--sun2)}.project-long-text{line-height:1.8}.project-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding-top:12px}.confirm-hero-card,.confirm-section{padding:34px;margin-bottom:26px}.confirm-hero-card h2{font-size:1.8rem}.confirm-position{font-size:1.05rem;font-weight:800;color:#334155}.confirm-compensation{min-width:220px;padding:18px 22px;border-radius:20px;background:linear-gradient(135deg,#fff7ed,#fffbeb);border:1px solid rgba(251,146,60,.22)}.confirm-compensation small{display:block;color:var(--muted);font-weight:800}.confirm-compensation strong{display:block;margin-top:4px;font-size:1.35rem;color:#c2410c}.confirm-meta-grid,.confirm-definition-grid,.detail-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.confirm-meta-grid>div,.confirm-definition-grid>div,.detail-summary-grid>div{padding:16px;border-radius:17px;background:#f8fafc;border:1px solid var(--line)}.confirm-meta-grid span,.confirm-definition-grid span,.detail-summary-grid span{display:block;color:var(--muted);font-size:.78rem;font-weight:800;margin-bottom:4px}.confirm-meta-grid strong,.confirm-definition-grid strong,.detail-summary-grid strong{display:block}.confirm-meta-grid small{display:block;color:#64748b;margin-top:3px}.confirm-section>h3{font-size:1.35rem;font-weight:900;margin-bottom:22px}.confirm-block{padding:20px;border-radius:20px;background:#f8fafc;border:1px solid var(--line)}.confirm-block+.confirm-block{margin-top:18px}.confirm-block h4{font-size:1rem;font-weight:900;margin-bottom:12px;color:#0f172a}.confirm-text,.detail-rich-text{white-space:pre-wrap;line-height:1.9;color:#334155}.project-detail-hero h1{max-width:1050px}.project-detail-compensation{margin-top:18px;font-size:1.7rem;font-weight:900;color:#c2410c}.project-detail-position{margin:8px 0 0!important;font-size:1.2rem!important;font-weight:800;color:#1e293b!important}.detail-summary-card,.detail-content-card{padding:30px;margin-bottom:24px}.detail-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-summary-grid.compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-inline-note{margin-top:16px;padding:14px 16px;border-radius:16px;background:#fff7ed;color:#7c2d12}.detail-content-card>h2{font-size:1.35rem;font-weight:900;padding-bottom:15px;margin-bottom:20px;border-bottom:1px solid var(--line)}.detail-subsection+.detail-subsection{margin-top:26px;padding-top:24px;border-top:1px dashed rgba(15,23,42,.12)}.detail-subsection h3{font-size:1rem;font-weight:900;margin-bottom:12px}.form-control,.form-select{border-radius:13px;border-color:rgba(15,23,42,.14);padding:.76rem .9rem}.form-control:focus,.form-select:focus{border-color:rgba(251,133,0,.65);box-shadow:0 0 0 .2rem rgba(251,133,0,.12)}.input-group>.form-control{border-radius:13px 0 0 13px}.input-group>.input-group-text{border-radius:0 13px 13px 0;background:#fff7ed;color:#9a3412;font-weight:800;border-color:rgba(15,23,42,.14)}
@media(max-width:991px){.confirm-meta-grid,.confirm-definition-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-summary-grid.compact-grid{grid-template-columns:1fr}.confirm-compensation{width:100%}}
@media(max-width:768px){.project-form-section,.confirm-hero-card,.confirm-section,.detail-summary-card,.detail-content-card{padding:22px}.project-form-heading{gap:12px}.project-form-actions{flex-direction:column-reverse;align-items:stretch}.project-form-actions .btn{width:100%}.confirm-meta-grid,.confirm-definition-grid,.detail-summary-grid{grid-template-columns:1fr}.confirm-hero-card h2{font-size:1.35rem}}

/* IT project publishing form v1.2 */
.field-icon{display:inline-flex;align-items:center;justify-content:center;width:1.45rem;height:1.45rem;margin-right:.35rem;border-radius:.45rem;background:#fff7ed;color:#ea580c;font-size:.82rem;vertical-align:-.18rem}.section-title-icon{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin-right:.55rem;border-radius:.7rem;background:#fff7ed;color:#ea580c;font-size:1rem;vertical-align:-.35rem}.form-hint{margin-top:.45rem;color:#64748b;font-size:.78rem}.choice-row{display:flex;gap:.75rem;align-items:center}.choice-row.flex-wrap{flex-wrap:wrap}.choice-pill{display:inline-flex;align-items:center;gap:.5rem;padding:.72rem .95rem;border:1px solid rgba(15,23,42,.12);border-radius:14px;background:#f8fafc;font-weight:800;cursor:pointer;transition:.18s ease}.choice-pill:hover{border-color:rgba(251,133,0,.45);background:#fffaf0}.choice-pill input{accent-color:var(--sun2)}.checkbox-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem}.check-card{display:flex;align-items:center;gap:.55rem;padding:.8rem .9rem;border:1px solid rgba(15,23,42,.12);border-radius:14px;background:#f8fafc;font-weight:800;cursor:pointer;transition:.18s ease}.check-card:hover{border-color:rgba(251,133,0,.45);background:#fffaf0}.check-card input{accent-color:var(--sun2)}.conditional-panel{display:none}.conditional-panel.is-visible{display:block}.ai-toggle-card{display:flex;align-items:flex-start;gap:.8rem;padding:1rem 1.1rem;border:1px solid rgba(251,146,60,.25);border-radius:18px;background:linear-gradient(135deg,#fff7ed,#fffbeb);cursor:pointer}.ai-toggle-card input{margin-top:.25rem;accent-color:var(--sun2)}.ai-toggle-card span{display:flex;flex-direction:column;gap:.15rem}.ai-toggle-card small{color:#64748b}.project-card{display:flex;flex-direction:column}.project-card-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.75rem}.publish-complete-page{padding-top:90px}.publish-complete-card{max-width:980px;margin:0 auto;padding:64px 54px}.publish-complete-icon{width:92px;height:92px;margin:0 auto 24px;border-radius:30px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--sun),var(--sun2));color:#fff;font-size:3rem;box-shadow:0 24px 55px rgba(251,133,0,.3)}.publish-complete-card h1{margin:18px 0 14px;font-size:2.5rem;font-weight:900}.publish-complete-summary{margin-top:38px;padding:28px;border-radius:24px;border:1px solid var(--line);background:#f8fafc}.publish-complete-summary h2{font-size:1.45rem;font-weight:900}.confirm-definition-grid{margin-top:1rem}.detail-summary-grid>div strong{overflow-wrap:anywhere}
@media(max-width:1199px){.checkbox-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:768px){.checkbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.choice-row{align-items:stretch;flex-direction:column}.choice-row.flex-wrap{flex-direction:row}.choice-row.vertical-sm{flex-direction:row}.publish-complete-card{padding:42px 22px}.publish-complete-card h1{font-size:2rem}}
@media(max-width:480px){.checkbox-grid{grid-template-columns:1fr}.choice-row.flex-wrap,.choice-row.vertical-sm{flex-direction:column}}

/* Project create page: section jump rail */
.project-create-container {
    position: relative;
}

.project-scroll-section {
    scroll-margin-top: 118px;
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.project-scroll-section:target {
    border-color: rgba(251, 133, 0, .32);
    box-shadow: 0 24px 76px rgba(251, 133, 0, .12);
}

.project-section-rail {
    --project-progress: 0%;
    --project-header-offset: 88px;
    z-index: 1025;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.project-section-rail-track {
    position: absolute;
    left: 32px;
    right: 32px;
    top: 50%;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
    transform: translateY(-50%);
    pointer-events: none;
}

.project-section-rail-progress {
    display: block;
    width: var(--project-progress);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sun), var(--sun2));
    box-shadow: 0 0 14px rgba(251, 133, 0, .45);
    transition: width .3s ease, height .3s ease;
}

.project-section-nav-item {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 15px;
    color: #64748b;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .07);
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.project-section-nav-item:hover,
.project-section-nav-item:focus-visible {
    color: #c2410c;
    border-color: rgba(251, 133, 0, .42);
    background: #fff7ed;
    box-shadow: 0 11px 28px rgba(251, 133, 0, .18);
    transform: translateY(-2px);
    outline: none;
}

.project-section-nav-item.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
    box-shadow: 0 13px 30px rgba(251, 133, 0, .34);
    transform: scale(1.08);
}

.project-section-nav-item.is-active::after {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: -1;
    border: 1px solid rgba(251, 133, 0, .26);
    border-radius: 20px;
    animation: project-nav-pulse 2.2s ease-out infinite;
}

.project-section-nav-item.has-error::before {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e11d48;
    box-shadow: 0 3px 9px rgba(225, 29, 72, .35);
}

.project-section-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.project-section-nav-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 11px);
    width: max-content;
    max-width: 190px;
    padding: 7px 10px;
    border-radius: 10px;
    color: #fff;
    background: #172033;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .01em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 5px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .2);
}

.project-section-nav-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    border: 5px solid transparent;
    border-top-color: #172033;
    transform: translateX(-50%);
}

.project-section-nav-item:hover .project-section-nav-tooltip,
.project-section-nav-item:focus-visible .project-section-nav-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.project-section-mobile-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 18px;
    color: #9a3412;
    font-size: .82rem;
    font-weight: 900;
}

.project-section-mobile-status i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
}

@keyframes project-nav-pulse {
    0% { opacity: .8; transform: scale(.92); }
    70%, 100% { opacity: 0; transform: scale(1.18); }
}

/* Wide screens: true left-side vertical rail */
@media (min-width: 1500px) {
    .project-section-rail {
        position: fixed;
        left: max(18px, calc((100vw - 1320px) / 2 - 78px));
        top: calc(50% + 34px);
        flex-direction: column;
        gap: 14px;
        width: 62px;
        padding: 17px 8px;
        border-radius: 31px;
        transform: translateY(-50%);
    }

    .project-section-rail-track {
        left: 50%;
        right: auto;
        top: 36px;
        bottom: 36px;
        width: 3px;
        height: auto;
        transform: translateX(-50%);
    }

    .project-section-rail-progress {
        width: 100%;
        height: var(--project-progress);
        background: linear-gradient(180deg, var(--sun), var(--sun2));
        transition: height .3s ease;
    }

    .project-section-nav-tooltip {
        left: calc(100% + 13px);
        bottom: auto;
        top: 50%;
        transform: translate(-5px, -50%);
    }

    .project-section-nav-tooltip::after {
        left: auto;
        right: 100%;
        top: 50%;
        border-top-color: transparent;
        border-right-color: #172033;
        transform: translateY(-50%);
    }

    .project-section-nav-item:hover .project-section-nav-tooltip,
    .project-section-nav-item:focus-visible .project-section-nav-tooltip,
    .project-section-nav-item.is-active .project-section-nav-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translate(0, -50%);
    }

    .project-section-nav-item.is-active .project-section-nav-tooltip {
        color: #9a3412;
        background: #fff7ed;
        border: 1px solid rgba(251, 133, 0, .2);
        box-shadow: 0 12px 30px rgba(251, 133, 0, .15);
    }

    .project-section-nav-item.is-active .project-section-nav-tooltip::after {
        border-right-color: #fff7ed;
    }
}

/* Laptop and tablet: compact sticky horizontal rail */
@media (max-width: 1499px) {
    .project-section-rail {
        position: sticky;
        top: calc(var(--project-header-offset) + 10px);
        width: max-content;
        max-width: 100%;
        margin: -28px auto 26px;
        overflow: visible;
    }
}

@media (max-width: 767px) {
    .project-form-page {
        padding-top: 40px;
    }

    .project-section-rail {
        gap: 8px;
        width: 100%;
        padding: 8px 10px;
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
        justify-content: space-between;
    }

    .project-section-rail::-webkit-scrollbar {
        display: none;
    }

    .project-section-rail-track {
        left: 28px;
        right: 28px;
    }

    .project-section-nav-item {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        border-radius: 13px;
    }

    .project-section-nav-tooltip {
        display: none;
    }

    .project-section-mobile-status {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-section-nav-item,
    .project-section-rail-progress,
    .project-scroll-section {
        transition: none;
    }

    .project-section-nav-item.is-active::after {
        animation: none;
    }
}

/* Home AI matching sample card */
.match-sample-header{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.match-sample-label{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:rgba(255,183,3,.14);color:#b45309;font-size:.78rem;font-weight:900;letter-spacing:.04em}.match-sample-status{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border:1px solid rgba(100,116,139,.18);border-radius:999px;background:#f8fafc;color:#64748b;font-size:.66rem;font-weight:900;letter-spacing:.1em}.match-score-label{margin-bottom:3px;color:#64748b;font-size:.82rem;font-weight:800}.hero-panel .ai-line{position:relative;z-index:1}.hero-panel .ai-line span{display:inline-flex;align-items:center;color:#1e293b;font-weight:700}.hero-panel .ai-line span i{color:#ea580c}.match-sample-footer{position:relative;z-index:1;margin-top:22px;padding:15px 16px;border-radius:16px;background:linear-gradient(135deg,#fff7ed,#fffbeb);border:1px solid rgba(251,146,60,.2);color:#7c2d12;font-size:.82rem;font-weight:700;line-height:1.65}.match-sample-note{padding-top:10px;border-top:1px dashed rgba(124,45,18,.18);color:#64748b;font-size:.72rem;font-weight:500;line-height:1.6}@media(max-width:768px){.match-sample-header{align-items:flex-start}.hero-panel{padding:25px}.hero-panel .brand-mark.large{width:58px;height:58px;border-radius:20px;font-size:1.6rem}.hero-panel .ai-line{font-size:.9rem}}

.project-scroll-section.is-current {
    border-color: rgba(251, 133, 0, .24);
    box-shadow: 0 26px 78px rgba(15, 23, 42, .08), 0 0 0 1px rgba(251, 133, 0, .04);
}

/* AI project document import v1.3 */
.ai-import-launch-button {
    min-width: 250px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(251, 133, 0, .2);
    border-radius: 20px;
    color: #7c2d12;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 45px rgba(251, 133, 0, .16);
    backdrop-filter: blur(12px);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ai-import-launch-button:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 133, 0, .45);
    color: #9a3412;
    box-shadow: 0 24px 55px rgba(251, 133, 0, .24);
}

.ai-import-launch-button strong,
.ai-import-launch-button small {
    display: block;
}

.ai-import-launch-button strong {
    font-size: 1.05rem;
    font-weight: 900;
}

.ai-import-launch-button small {
    margin-top: 2px;
    color: #64748b;
    font-size: .72rem;
    font-weight: 700;
}

.ai-import-launch-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
    box-shadow: 0 12px 25px rgba(251, 133, 0, .28);
}

.ai-import-modal .modal-dialog {
    max-width: 1040px;
}

.ai-import-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 30px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 36px 120px rgba(15, 23, 42, .22);
}

.ai-import-modal .modal-header,
.ai-import-modal .modal-body,
.ai-import-modal .modal-footer {
    padding-left: 34px;
    padding-right: 34px;
}

.ai-import-modal .modal-header {
    padding-top: 28px;
    padding-bottom: 12px;
}

.ai-import-modal .modal-body {
    padding-top: 20px;
    padding-bottom: 26px;
}

.ai-import-modal .modal-footer {
    padding-top: 4px;
    padding-bottom: 28px;
}

.ai-import-modal-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
    box-shadow: 0 14px 30px rgba(251, 133, 0, .28);
}

.ai-import-kicker {
    display: block;
    color: #ea580c;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.ai-import-modal .modal-title {
    margin-top: 2px;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 900;
}

.ai-import-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.ai-import-intro h3,
.ai-import-result-summary h3,
.ai-import-progress-panel h3 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 900;
}

.ai-import-intro p,
.ai-import-progress-panel p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.ai-import-security {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: .74rem;
    font-weight: 900;
}

.ai-import-dropzone {
    min-height: 255px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 34px;
    border: 2px dashed rgba(251, 133, 0, .32);
    border-radius: 26px;
    color: #334155;
    background: radial-gradient(circle at top, rgba(255, 183, 3, .12), transparent 48%), #fffdf8;
    cursor: pointer;
    transition: .2s ease;
}

.ai-import-dropzone:hover,
.ai-import-dropzone.is-dragging {
    transform: translateY(-2px);
    border-color: var(--sun2);
    background: radial-gradient(circle at top, rgba(255, 183, 3, .2), transparent 52%), #fffaf0;
    box-shadow: 0 20px 55px rgba(251, 133, 0, .12);
}

.ai-import-dropzone.has-file {
    min-height: 175px;
}

.ai-import-dropzone strong {
    font-size: 1.08rem;
    font-weight: 900;
}

.ai-import-dropzone > span:not(.ai-import-drop-icon) {
    color: #64748b;
}

.ai-import-dropzone small {
    margin-top: 4px;
    color: #94a3b8;
    font-weight: 700;
}

.ai-import-drop-icon {
    width: 66px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: #ea580c;
    font-size: 2rem;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, .2);
}

.ai-import-selected-file {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 18px;
    background: #f8fafc;
}

.ai-import-selected-file strong,
.ai-import-selected-file small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-import-selected-file strong {
    color: #0f172a;
    font-weight: 900;
}

.ai-import-selected-file small {
    margin-top: 2px;
    color: #64748b;
}

.ai-import-file-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ea580c;
    background: #fff7ed;
    font-size: 1.2rem;
}

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

.ai-import-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 16px;
    color: #475569;
    background: #f8fafc;
    font-size: .8rem;
    line-height: 1.6;
}

.ai-import-privacy-note i {
    margin-top: 2px;
    color: #2563eb;
}

.ai-import-progress-panel {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ai-import-orbit {
    position: relative;
    width: 118px;
    height: 118px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
    box-shadow: 0 26px 65px rgba(251, 133, 0, .3);
}

.ai-import-orbit span {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(251, 133, 0, .22);
    border-radius: 999px;
    animation: aiOrbit 2.4s linear infinite;
}

.ai-import-orbit span:nth-child(2) {
    inset: -25px;
    animation-duration: 3.2s;
    animation-direction: reverse;
}

.ai-import-orbit span:nth-child(3) {
    inset: -38px;
    animation-duration: 4s;
}

.ai-import-orbit span::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--sun2);
    box-shadow: 0 0 18px rgba(251, 133, 0, .7);
}

@keyframes aiOrbit {
    to { transform: rotate(360deg); }
}

.ai-import-progress-track {
    width: min(520px, 90%);
    height: 8px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f5f9;
}

.ai-import-progress-track span {
    display: block;
    width: 18%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sun), var(--sun2));
    transition: width .55s ease;
}

.ai-import-progress-steps {
    width: min(650px, 100%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 26px;
}

.ai-import-progress-steps span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: .73rem;
    font-weight: 800;
    transition: .2s ease;
}

.ai-import-progress-steps span i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f5f9;
}

.ai-import-progress-steps span.is-active {
    color: #c2410c;
}

.ai-import-progress-steps span.is-active i {
    color: #ea580c;
    background: #fff7ed;
}

.ai-import-progress-steps span.is-current i {
    box-shadow: 0 0 0 5px rgba(251, 133, 0, .09);
}

.ai-import-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border: 1px solid rgba(251, 146, 60, .2);
}

.ai-import-result-summary > div:first-child {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-import-result-summary h3 {
    margin-bottom: 2px;
}

.ai-import-result-summary p {
    color: #64748b;
    font-size: .8rem;
}

.ai-import-complete-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    font-size: 1.55rem;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 14px 30px rgba(5, 150, 105, .2);
}

.ai-import-result-counts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ai-import-result-counts span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: .74rem;
    font-weight: 800;
}

.ai-import-result-counts span.warning {
    color: #b45309;
    background: #fffbeb;
}

.ai-import-result-counts span.muted {
    color: #64748b;
    background: #f1f5f9;
}

.ai-import-warning-list {
    margin-top: 14px;
}

.ai-import-warning-list > div {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 13px;
    color: #92400e;
    background: #fffbeb;
    font-size: .78rem;
}

.ai-import-result-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 12px;
}

.ai-import-result-toolbar strong,
.ai-import-result-toolbar small {
    display: block;
}

.ai-import-result-toolbar strong {
    color: #0f172a;
    font-weight: 900;
}

.ai-import-result-toolbar small {
    margin-top: 2px;
    color: #64748b;
    font-size: .76rem;
}

.ai-import-field-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ai-import-field-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 17px;
    background: #fff;
    cursor: pointer;
    transition: .18s ease;
}

.ai-import-field-item:hover {
    border-color: rgba(251, 133, 0, .36);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.ai-import-field-item.is-inferred {
    border-color: rgba(245, 158, 11, .25);
    background: #fffdf5;
}

.ai-import-field-item .form-check-input {
    margin-top: 4px;
    flex: 0 0 auto;
    accent-color: var(--sun2);
}

.ai-import-field-main {
    min-width: 0;
    flex: 1;
}

.ai-import-field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ai-import-field-heading strong {
    color: #334155;
    font-size: .82rem;
    font-weight: 900;
}

.ai-import-confidence {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: .64rem;
    font-weight: 900;
}

.ai-import-confidence.warning {
    color: #b45309;
    background: #fef3c7;
}

.ai-import-field-value {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-top: 7px;
    color: #0f172a;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.ai-import-field-main small {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    color: #94a3b8;
    font-size: .68rem;
    overflow-wrap: anywhere;
}

.ai-field-container {
    position: relative;
}

.ai-field-applied {
    /* AI入力・手入力を見た目で区別しない */
    border-color: rgba(15, 23, 42, .14);
    background-color: #fff;
    box-shadow: none;
}

.ai-field-badge {
    position: absolute;
    top: -8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid rgba(251, 146, 60, .25);
    box-shadow: 0 6px 16px rgba(251, 133, 0, .12);
    font-size: .62rem;
    font-weight: 900;
}

.ai-field-needs-review .ai-field-badge {
    color: #92400e;
    background: #fef3c7;
}

.project-section-nav-item.has-ai-filled::before,
.project-section-nav-item.has-ai-review::before {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, .35);
}

.project-section-nav-item.has-ai-review::before {
    background: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .35);
}

.ai-import-toast {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1090;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(480px, calc(100vw - 32px));
    padding: 14px 18px;
    border-radius: 18px;
    color: #fff;
    background: #0f172a;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .3);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: .25s ease;
    font-weight: 800;
}

.ai-import-toast i {
    color: #34d399;
}

.ai-import-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .ai-import-launch-button {
        width: 100%;
        min-width: 0;
    }

    .ai-import-modal .modal-dialog {
        margin: 8px;
    }

    .ai-import-modal .modal-content {
        border-radius: 24px;
    }

    .ai-import-modal .modal-header,
    .ai-import-modal .modal-body,
    .ai-import-modal .modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ai-import-intro,
    .ai-import-result-summary,
    .ai-import-result-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ai-import-security {
        align-self: flex-start;
    }

    .ai-import-dropzone {
        min-height: 220px;
        padding: 24px 16px;
        text-align: center;
    }

    .ai-import-progress-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-import-result-counts {
        justify-content: flex-start;
    }

    .ai-import-field-list {
        grid-template-columns: 1fr;
    }

    .ai-import-modal .modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .ai-import-modal .modal-footer .btn {
        width: 100%;
    }

    .ai-import-toast {
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-import-orbit span {
        animation: none;
    }

    .ai-import-launch-button,
    .ai-import-dropzone,
    .ai-import-field-item,
    .ai-import-toast {
        transition: none;
    }
}


/* Project create field value state v1.3.1
   値ありは白、未入力は淡いオレンジで統一する。 */
.project-form-page .form-control,
.project-form-page .form-select {
    background-color: #fff;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.project-form-page .form-control.is-empty-field,
.project-form-page .form-select.is-empty-field {
    border-color: rgba(251, 133, 0, .38);
    background-color: #fff8ed !important;
    box-shadow: inset 0 0 0 1px rgba(251, 133, 0, .03);
}

.project-form-page .form-control.has-field-value,
.project-form-page .form-select.has-field-value,
.project-form-page .ai-field-applied.has-field-value {
    border-color: rgba(15, 23, 42, .14) !important;
    background-color: #fff !important;
    box-shadow: none !important;
}

.project-form-page .form-control:focus,
.project-form-page .form-select:focus,
.project-form-page .form-control.is-empty-field:focus,
.project-form-page .form-select.is-empty-field:focus {
    border-color: rgba(251, 133, 0, .65) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 .2rem rgba(251, 133, 0, .12) !important;
}

/* AIの出所情報は内部に保持しつつ、フォーム上の装飾は表示しない。 */
.project-form-page .ai-field-badge {
    display: none !important;
}

.project-section-nav-item.has-ai-filled::before,
.project-section-nav-item.has-ai-review::before {
    display: none !important;
}

/* 検証エラーは未入力色より優先して赤で表示する。 */
.project-form-page .input-validation-error,
.project-form-page .form-control.input-validation-error,
.project-form-page .form-select.input-validation-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: none !important;
}

/* Project create confirmation validation v1.3.2 */
.project-validation-summary {
    border: 1px solid rgba(220, 38, 38, .2);
    border-radius: 20px;
    background: linear-gradient(135deg, #fff7f7, #fff);
    box-shadow: 0 14px 36px rgba(185, 28, 28, .08);
    color: #991b1b;
    padding: 18px 20px;
}

.project-validation-summary.validation-summary-valid {
    display: none;
}

.project-validation-summary-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.project-validation-summary-heading i {
    color: #dc2626;
    font-size: 1.1rem;
}

.project-validation-summary ul {
    margin: 0;
    padding-left: 1.35rem;
}

.project-validation-summary li + li {
    margin-top: 5px;
}

.form-control.client-validation-error,
.form-select.client-validation-error,
.choice-pill input.client-validation-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 .2rem rgba(220, 38, 38, .1) !important;
}

.choice-pill:has(input.client-validation-error) {
    border-color: #dc2626;
    background: #fff7f7;
}

@media (max-width: 768px) {
    .project-validation-summary {
        padding: 15px 16px;
    }
}

/* Database-backed project list v1.3.4 */
.project-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem .75rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}

.project-card-meta > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #475569;
    font-size: .76rem;
    font-weight: 700;
}

.project-card-meta i {
    flex: 0 0 auto;
    color: #ea580c;
}

.project-card-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-new-chip {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid rgba(5, 150, 105, .18);
}

.project-more-tag {
    background: #f8fafc;
    color: #64748b;
    border-color: rgba(100, 116, 139, .18);
}

@media (max-width: 480px) {
    .project-card-meta {
        grid-template-columns: 1fr;
    }
}

/* Project detail/public information cleanup v1.4 */
.project-company-card {
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,237,.88));
}

.project-public-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 8px 4px 0;
    color: #64748b;
    font-size: .8rem;
}

.project-public-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-public-meta i {
    color: var(--sun2);
}

/* Company My Page project management */
.my-project-management {
    padding: 34px;
}

.my-project-management-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.my-project-management-header h2 {
    margin: 14px 0 8px;
    font-size: 1.65rem;
    font-weight: 900;
}

.my-project-management-header p {
    margin: 0;
    color: var(--muted);
}

.my-project-list {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.my-project-item {
    display: grid;
    grid-template-columns: minmax(230px, 1.15fr) minmax(420px, 2fr) auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(15,23,42,.045);
}

.my-project-main h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 900;
}

.my-project-number {
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
}

.my-project-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: .72rem;
    font-weight: 900;
}

.my-project-status.status-0 {
    background: #f1f5f9;
    color: #475569;
}

.my-project-status.status-2,
.my-project-status.status-3 {
    background: #fff7ed;
    color: #c2410c;
}

.my-project-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.my-project-metrics > div {
    min-width: 0;
    padding: 11px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,.07);
}

.my-project-metrics span,
.my-project-metrics strong {
    display: block;
}

.my-project-metrics span {
    margin-bottom: 3px;
    color: #64748b;
    font-size: .7rem;
    font-weight: 800;
}

.my-project-metrics strong {
    overflow-wrap: anywhere;
    font-size: .82rem;
}

.my-project-actions {
    white-space: nowrap;
}

.my-project-empty {
    padding: 56px 20px 30px;
    text-align: center;
}

.my-project-empty > span {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #fff7ed;
    color: var(--sun2);
    font-size: 1.7rem;
}

.my-project-empty h3 {
    font-weight: 900;
}

.my-project-empty p {
    color: var(--muted);
}

@media(max-width:1199px) {
    .my-project-item {
        grid-template-columns: 1fr;
    }

    .my-project-actions {
        white-space: normal;
    }
}

@media(max-width:768px) {
    .my-project-management {
        padding: 22px;
    }

    .my-project-management-header {
        align-items: stretch;
        flex-direction: column;
    }

    .my-project-management-header .btn {
        width: 100%;
    }

    .my-project-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-public-meta {
        flex-direction: column;
        gap: 7px;
    }
}

@media(max-width:480px) {
    .my-project-metrics {
        grid-template-columns: 1fr;
    }
}

/* My Page left navigation layout v1.4.1 */
.mypage-page {
    position: relative;
    padding: 48px 0 84px;
    background:
        radial-gradient(circle at 92% 2%, rgba(255, 183, 3, .16), transparent 24%),
        linear-gradient(180deg, #fffaf2 0, #f8fafc 42%, #fff 100%);
}

.mypage-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.mypage-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 16px;
}

.mypage-member-card,
.mypage-side-nav {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 52px rgba(15,23,42,.07);
}

.mypage-member-card {
    padding: 25px;
}

.mypage-member-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 19px;
    color: #fff;
    font-size: 1.45rem;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
    box-shadow: 0 16px 34px rgba(251,133,0,.27);
}

.mypage-member-label,
.mypage-member-name span {
    display: block;
    color: #64748b;
    font-size: .75rem;
    font-weight: 800;
}

.mypage-member-card h2 {
    margin: 4px 0 19px;
    font-size: 1.35rem;
    font-weight: 900;
}

.mypage-member-name {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.mypage-member-name strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: #0f172a;
}

.mypage-side-nav {
    padding: 14px;
}

.mypage-side-nav-title {
    padding: 8px 10px 10px;
    color: #94a3b8;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mypage-nav-link {
    position: relative;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 3px 0;
    padding: 12px 13px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #334155;
    text-decoration: none;
    text-align: left;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.mypage-nav-link i {
    width: 22px;
    flex: 0 0 22px;
    color: #94a3b8;
    text-align: center;
    font-size: 1rem;
    transition: .18s ease;
}

.mypage-nav-link:hover {
    color: #c2410c;
    background: #fff7ed;
    transform: translateX(2px);
}

.mypage-nav-link:hover i {
    color: #ea580c;
}

.mypage-nav-link.is-active {
    color: #9a3412;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    box-shadow: inset 0 0 0 1px rgba(251,146,60,.18);
}

.mypage-nav-link.is-active::after {
    content: "";
    position: absolute;
    right: 10px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--sun2);
    box-shadow: 0 0 0 5px rgba(251,133,0,.1);
}

.mypage-nav-link.is-active i {
    color: #ea580c;
}

.mypage-nav-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
    box-shadow: 0 12px 28px rgba(251,133,0,.22);
}

.mypage-nav-primary i,
.mypage-nav-primary:hover i {
    color: #fff;
}

.mypage-nav-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #ffb703, #f97316);
    box-shadow: 0 16px 34px rgba(251,133,0,.3);
}

.mypage-nav-divider {
    height: 1px;
    margin: 10px 8px;
    background: var(--line);
}

.mypage-nav-logout {
    color: #64748b;
}

.mypage-nav-logout:hover {
    color: #b91c1c;
    background: #fff1f2;
}

.mypage-nav-logout:hover i {
    color: #dc2626;
}

.mypage-main {
    min-width: 0;
    display: grid;
    gap: 22px;
}

#mypage-overview,
#project-management {
    scroll-margin-top: 112px;
}

.mypage-welcome-card {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 20%, rgba(255,183,3,.22), transparent 28%),
        rgba(255,255,255,.94);
}

.mypage-welcome-card h1 {
    margin: 18px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 900;
}

.mypage-welcome-card p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.mypage-welcome-mark {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    color: #fff;
    font-size: 2.65rem;
    background: linear-gradient(135deg, var(--sun), var(--sun2));
    box-shadow: 0 24px 55px rgba(251,133,0,.28);
    transform: rotate(5deg);
}

.mypage-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mypage-summary-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15,23,42,.05);
}

.mypage-summary-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff7ed;
    color: #ea580c;
}

.mypage-summary-card small,
.mypage-summary-card strong {
    display: block;
}

.mypage-summary-card small {
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
}

.mypage-summary-card strong {
    margin-top: 2px;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 900;
}

.mypage-action-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,237,.92));
}

.mypage-action-kicker {
    color: #ea580c;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mypage-action-strip h2 {
    margin: 5px 0 5px;
    font-size: 1.35rem;
    font-weight: 900;
}

.mypage-action-strip p {
    margin: 0;
    color: var(--muted);
}

.mypage-se-actions {
    display: grid;
    gap: 16px;
}

.mypage-feature-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 26px 28px;
    color: var(--ink);
    text-decoration: none;
    transition: .2s ease;
}

.mypage-feature-card:hover {
    color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 0 26px 74px rgba(15,23,42,.11);
}

.mypage-feature-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    color: #ea580c;
    background: #fff7ed;
    font-size: 1.35rem;
}

.mypage-feature-card small {
    color: #ea580c;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mypage-feature-card h2 {
    margin: 5px 0 5px;
    font-size: 1.25rem;
    font-weight: 900;
}

.mypage-feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.mypage-feature-arrow {
    color: #cbd5e1;
    font-size: 1.35rem;
    transition: .2s ease;
}

.mypage-feature-card:hover .mypage-feature-arrow {
    color: #ea580c;
    transform: translateX(4px);
}

@media (max-width: 1199px) {
    .mypage-layout {
        grid-template-columns: 245px minmax(0, 1fr);
        gap: 20px;
    }

    .mypage-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .mypage-page {
        padding-top: 28px;
    }

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

    .mypage-sidebar {
        position: static;
        grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
    }

    .mypage-side-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 4px;
    }

    .mypage-side-nav-title,
    .mypage-nav-divider {
        grid-column: 1 / -1;
    }

    .mypage-nav-link {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .mypage-page {
        padding: 20px 0 56px;
    }

    .mypage-sidebar {
        grid-template-columns: 1fr;
    }

    .mypage-member-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 14px;
        align-items: center;
    }

    .mypage-member-icon {
        grid-row: 1 / span 3;
        margin: 0;
    }

    .mypage-member-card h2 {
        margin: 2px 0 0;
    }

    .mypage-member-name {
        grid-column: 1 / -1;
        margin-top: 15px;
    }

    .mypage-side-nav {
        grid-template-columns: 1fr;
    }

    .mypage-welcome-card {
        min-height: 0;
        padding: 27px 24px;
    }

    .mypage-welcome-mark {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        border-radius: 21px;
        font-size: 1.8rem;
    }

    .mypage-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mypage-action-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .mypage-action-strip .btn {
        width: 100%;
    }

    .mypage-feature-card {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 22px;
    }

    .mypage-feature-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .mypage-summary-grid {
        grid-template-columns: 1fr;
    }

    .mypage-welcome-mark {
        display: none;
    }
}

/* My Page account tools, project viewers and messaging v1.4.2 */
.mypage-nav-count {
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: .68rem;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(239,68,68,.25);
}

#project-viewers,
#viewed-projects {
    scroll-margin-top: 112px;
}

.my-project-empty.compact {
    padding-top: 38px;
}

.mypage-viewer-list,
.mypage-history-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.mypage-viewer-item {
    display: grid;
    grid-template-columns: auto minmax(150px, .8fr) minmax(220px, 1.25fr) minmax(150px, .7fr) auto;
    gap: 18px;
    align-items: center;
    padding: 19px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition: .18s ease;
}

.mypage-viewer-item:hover {
    border-color: rgba(251,133,0,.28);
    box-shadow: 0 18px 45px rgba(15,23,42,.07);
    transform: translateY(-1px);
}

.mypage-viewer-avatar {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ea580c;
    background: #fff7ed;
    font-size: 1.2rem;
}

.mypage-viewer-person,
.mypage-viewer-project,
.mypage-viewer-date {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mypage-viewer-person strong,
.mypage-viewer-project strong,
.mypage-viewer-date strong {
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: .88rem;
}

.mypage-viewer-person span,
.mypage-viewer-project span,
.mypage-viewer-date span,
.mypage-viewer-person small,
.mypage-viewer-project small,
.mypage-viewer-date small {
    color: #64748b;
    font-size: .72rem;
}

.mypage-viewer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.mypage-viewer-actions form {
    margin: 0;
}

.mypage-history-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 15px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: .18s ease;
}

.mypage-history-item:hover {
    color: var(--ink);
    border-color: rgba(251,133,0,.3);
    background: #fffdf8;
    transform: translateX(2px);
}

.mypage-history-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ea580c;
    background: #fff7ed;
}

.mypage-history-main,
.mypage-history-date {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mypage-history-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mypage-history-main small,
.mypage-history-date,
.mypage-history-date small {
    color: #64748b;
    font-size: .75rem;
}

.mypage-history-date {
    text-align: right;
}

.mypage-settings-card {
    padding: 36px;
}

.mypage-settings-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.mypage-settings-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    color: #fff;
    background: linear-gradient(135deg,var(--sun),var(--sun2));
    box-shadow: 0 15px 32px rgba(251,133,0,.24);
    font-size: 1.35rem;
}

.mypage-settings-heading h1 {
    margin: 13px 0 7px;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 900;
}

.mypage-settings-heading p {
    margin: 0;
    color: var(--muted);
}

.mypage-settings-form {
    margin-top: 28px;
}

.mypage-form-section {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fbfcfe;
}

.mypage-form-section + .mypage-form-section {
    margin-top: 20px;
}

.mypage-form-section h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    font-size: 1.12rem;
    font-weight: 900;
}

.mypage-form-section h2 i {
    color: #ea580c;
}

.mypage-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

.mypage-profile-note,
.mypage-security-hint {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 20px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg,#eff6ff,#fff7ed);
    border: 1px solid rgba(37,99,235,.12);
}

.mypage-profile-note > i,
.mypage-security-hint > i {
    color: #2563eb;
    font-size: 1.1rem;
}

.mypage-profile-note strong,
.mypage-profile-note p {
    display: block;
}

.mypage-profile-note p {
    margin: 4px 0 8px;
    color: #64748b;
}

.mypage-password-card {
    max-width: 900px;
}

.messages-shell {
    overflow: hidden;
}

.messages-heading {
    padding: 30px 32px 24px;
    border-bottom: 1px solid var(--line);
}

.messages-heading h1 {
    margin: 13px 0 7px;
    font-size: 2rem;
    font-weight: 900;
}

.messages-heading p {
    margin: 0;
    color: var(--muted);
}

.messages-layout {
    min-height: 650px;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
}

.messages-conversations {
    border-right: 1px solid var(--line);
    background: #fbfcfe;
    overflow-y: auto;
}

.message-conversation {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 17px 16px;
    border-bottom: 1px solid rgba(15,23,42,.06);
    color: var(--ink);
    text-decoration: none;
    transition: .16s ease;
}

.message-conversation:hover,
.message-conversation.is-active {
    color: var(--ink);
    background: #fff7ed;
}

.message-conversation.is-active::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(var(--sun),var(--sun2));
}

.message-conversation-avatar {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ea580c;
    background: #fff;
    border: 1px solid rgba(251,146,60,.18);
}

.message-conversation-content {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.message-conversation-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.message-conversation-top strong,
.message-conversation-top time,
.message-conversation-content small,
.message-conversation-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-conversation-top time,
.message-conversation-content small,
.message-conversation-preview {
    color: #64748b;
    font-size: .69rem;
}

.message-unread {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #fff;
    background: var(--sun2);
    font-size: .68rem;
    font-weight: 900;
}

.messages-empty-list,
.messages-thread-empty {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 35px;
    color: #64748b;
    text-align: center;
}

.messages-empty-list > i,
.messages-thread-empty > span {
    font-size: 2.25rem;
    color: #fb923c;
}

.messages-thread {
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #fff;
}

.messages-thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.messages-thread-header strong,
.messages-thread-header span {
    display: block;
}

.messages-thread-header span {
    margin-top: 3px;
    color: #64748b;
    font-size: .78rem;
}

.messages-body {
    min-height: 420px;
    max-height: 540px;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg,#f8fafc,#fff);
}

.message-bubble-row {
    display: flex;
    margin-bottom: 14px;
}

.message-bubble-row.is-mine {
    justify-content: flex-end;
}

.message-bubble {
    max-width: min(76%, 620px);
    padding: 12px 14px;
    border-radius: 17px 17px 17px 5px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(15,23,42,.045);
}

.message-bubble-row.is-mine .message-bubble {
    color: #7c2d12;
    background: #fff7ed;
    border-color: rgba(251,146,60,.2);
    border-radius: 17px 17px 5px 17px;
}

.message-sender {
    margin-bottom: 4px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
}

.message-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.message-bubble time {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: .65rem;
    text-align: right;
}

.messages-first-note {
    padding: 18px;
    color: #64748b;
    text-align: center;
}

.messages-composer {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
}

.messages-composer textarea {
    width: 100%;
    resize: vertical;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 15px;
    outline: 0;
}

.messages-composer textarea:focus {
    border-color: rgba(251,133,0,.65);
    box-shadow: 0 0 0 .2rem rgba(251,133,0,.1);
}

.project-contact-box {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg,#fff7ed,#fffbeb);
    border: 1px solid rgba(251,146,60,.2);
}

.project-contact-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg,var(--sun),var(--sun2));
}

.project-contact-box strong {
    font-size: 1rem;
}

.project-contact-box p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: .78rem;
    line-height: 1.55;
}

@media(max-width:1199px) {
    .mypage-viewer-item {
        grid-template-columns: auto minmax(150px, .8fr) minmax(220px, 1.2fr);
    }

    .mypage-viewer-date,
    .mypage-viewer-actions {
        grid-column: 2 / -1;
    }

    .mypage-viewer-actions {
        justify-content: flex-start;
    }

    .messages-layout {
        grid-template-columns: 290px minmax(0,1fr);
    }
}

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

    .messages-conversations {
        max-height: 320px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media(max-width:767px) {
    .mypage-viewer-item {
        grid-template-columns: auto minmax(0,1fr);
    }

    .mypage-viewer-project,
    .mypage-viewer-date,
    .mypage-viewer-actions {
        grid-column: 1 / -1;
    }

    .mypage-history-item {
        grid-template-columns: auto minmax(0,1fr) auto;
    }

    .mypage-history-date {
        grid-column: 2 / -1;
        text-align: left;
    }

    .mypage-settings-card {
        padding: 23px;
    }

    .mypage-settings-heading {
        gap: 13px;
    }

    .mypage-settings-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
    }

    .mypage-form-section {
        padding: 19px;
    }

    .mypage-settings-actions {
        flex-direction: column-reverse;
    }

    .mypage-settings-actions .btn {
        width: 100%;
    }

    .messages-heading {
        padding: 23px;
    }

    .messages-thread-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .messages-body {
        padding: 16px;
    }

    .message-bubble {
        max-width: 88%;
    }

    .messages-composer {
        grid-template-columns: 1fr;
    }

    .messages-composer .btn {
        width: 100%;
    }
}

/* Project list search filters v1.4.4 */
.project-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    align-items: stretch;
    gap: 12px;
    max-width: 1040px;
}

.project-search-fields {
    min-width: 0;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 0;
    filter: drop-shadow(0 10px 28px rgba(15, 23, 42, .04));
}

.project-search-box .form-control,
.project-search-box .form-select,
.project-search-box .project-search-button {
    min-height: 76px;
}

.project-search-box .form-control,
.project-search-box .form-select {
    background-color: rgba(255, 255, 255, .96);
}

.project-search-select {
    min-width: 0;
    position: relative;
    z-index: 1;
    border-radius: 16px 0 0 16px;
    border-right: 0;
    color: #334155;
    font-weight: 800;
    cursor: pointer;
}

.project-search-input {
    min-width: 0;
    position: relative;
    border-radius: 0 16px 16px 0;
}

.project-search-select:focus,
.project-search-input:focus {
    z-index: 2;
}

.project-search-select:focus {
    border-right: 1px solid rgba(251, 133, 0, .65);
}

.project-search-button {
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-right: 30px !important;
    padding-left: 30px !important;
    white-space: nowrap;
}

.project-search-button i,
.project-search-button span {
    flex: 0 0 auto;
}

@media (max-width: 991px) {
    .project-search-box {
        grid-template-columns: minmax(0, 1fr) 155px;
    }

    .project-search-fields {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .project-search-button {
        min-width: 155px;
    }
}

@media (max-width: 767px) {
    .project-search-box {
        display: grid;
        grid-template-columns: 1fr;
        max-width: none;
    }

    .project-search-fields {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .project-search-box .form-control,
    .project-search-box .form-select,
    .project-search-box .project-search-button {
        min-height: 58px;
    }

    .project-search-box .project-search-button {
        width: 100%;
    }

    .project-search-box .btn {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .project-search-fields {
        grid-template-columns: 145px minmax(0, 1fr);
    }

    .project-search-select,
    .project-search-input {
        font-size: .95rem;
    }
}

/* ============================================================
   中文注释：右侧太阳笑脸助手 v1.0
   - 页面加载 3 秒后从右边探出
   - 点击太阳展开引导面板
   - 不依赖图片，太阳图形完全由 CSS 绘制
   ============================================================ */
.sun-assistant {
    position: fixed;
    right: 0;
    bottom: 104px;
    z-index: 1060;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(125px);
    transition: transform .65s cubic-bezier(.2, .9, .25, 1.18), opacity .35s ease;
}

/* 中文注释：显示时仍保留一小部分在屏幕外，形成“探头”效果。 */
.sun-assistant.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(24px);
}

.sun-assistant.is-open {
    transform: translateX(-18px);
}

/* 中文注释：太阳按钮外层。 */
.sun-assistant-face {
    position: relative;
    width: 94px;
    height: 94px;
    flex: 0 0 94px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 18px 24px rgba(251, 133, 0, .3));
    transition: transform .22s ease, filter .22s ease;
}

.sun-assistant-face:hover {
    transform: rotate(-5deg) scale(1.06);
    filter: drop-shadow(0 22px 28px rgba(251, 133, 0, .38));
}

.sun-assistant-face:focus-visible {
    outline: 4px solid rgba(251, 133, 0, .28);
    outline-offset: 5px;
}

/* 中文注释：太阳光芒会缓慢旋转。 */
.sun-rays {
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        #ffb703 0deg 10deg,
        transparent 10deg 28deg
    );
    animation: sun-assistant-rays 14s linear infinite;
}

/* 中文注释：太阳脸主体。 */
.sun-face {
    position: absolute;
    inset: 15px;
    display: block;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, #fff9c4 0 5%, transparent 6%),
        linear-gradient(135deg, #ffd84d, #ff9700);
    box-shadow:
        inset -7px -9px 14px rgba(234, 88, 12, .15),
        inset 5px 6px 10px rgba(255, 255, 255, .34);
}

.sun-eye {
    position: absolute;
    top: 25px;
    width: 7px;
    height: 10px;
    border-radius: 999px;
    background: #7c2d12;
    transform-origin: center;
    animation: sun-assistant-blink 4.2s infinite;
}

.sun-eye-left { left: 19px; }
.sun-eye-right { right: 19px; }

.sun-cheek {
    position: absolute;
    top: 39px;
    width: 10px;
    height: 6px;
    border-radius: 50%;
    background: rgba(244, 63, 94, .32);
}

.sun-cheek-left { left: 10px; }
.sun-cheek-right { right: 10px; }

.sun-mouth {
    position: absolute;
    left: 50%;
    top: 37px;
    width: 24px;
    height: 15px;
    border-bottom: 4px solid #7c2d12;
    border-radius: 0 0 999px 999px;
    transform: translateX(-50%);
}

/* 中文注释：点击太阳后，从右侧展开的操作面板。 */
.sun-assistant-panel {
    position: relative;
    width: 310px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 24px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 25px 75px rgba(15, 23, 42, .18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(24px) scale(.96);
    transform-origin: right bottom;
    transition: opacity .22s ease, visibility .22s ease, transform .3s cubic-bezier(.2, .9, .25, 1.15);
}

.sun-assistant.is-open .sun-assistant-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.sun-assistant-panel::after {
    content: "";
    position: absolute;
    right: -10px;
    bottom: 30px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, .08);
    border-right: 1px solid rgba(15, 23, 42, .08);
    transform: rotate(45deg);
}

.sun-assistant-kicker {
    display: block;
    margin-bottom: 7px;
    color: #ea580c;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.sun-assistant-panel strong {
    display: block;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 900;
}

.sun-assistant-panel p {
    margin: 8px 0 17px;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.7;
}

.sun-assistant-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.sun-assistant-sub-link {
    color: #c2410c;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.sun-assistant-sub-link:hover {
    color: #9a3412;
    text-decoration: underline;
}

/* 中文注释：只有面板打开时显示关闭按钮。 */
.sun-assistant-close {
    position: absolute;
    top: -13px;
    right: 20px;
    z-index: 4;
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 50%;
    color: #64748b;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease, color .2s ease, background .2s ease;
}

.sun-assistant.is-open .sun-assistant-close {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sun-assistant-close:hover {
    color: #dc2626;
    background: #fff1f2;
}

/* 中文注释：首次探出时轻轻摆动一下。 */
.sun-assistant.is-visible:not(.is-open) .sun-assistant-face {
    animation: sun-assistant-wave .85s ease 1;
}

@keyframes sun-assistant-rays {
    to { transform: rotate(360deg); }
}

@keyframes sun-assistant-blink {
    0%, 44%, 48%, 100% { transform: scaleY(1); }
    46% { transform: scaleY(.12); }
}

@keyframes sun-assistant-wave {
    0% { transform: translateX(45px) rotate(16deg); }
    55% { transform: translateX(-6px) rotate(-9deg); }
    75% { transform: translateX(2px) rotate(5deg); }
    100% { transform: translateX(0) rotate(0); }
}

/* 中文注释：手机端缩小太阳，并让提示面板适应屏幕宽度。 */
@media (max-width: 767px) {
    .sun-assistant {
        bottom: 82px;
    }

    .sun-assistant.is-visible {
        transform: translateX(31px);
    }

    .sun-assistant.is-open {
        right: 12px;
        left: 12px;
        justify-content: flex-end;
        transform: none;
    }

    .sun-assistant-face {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
    }

    .sun-face { inset: 13px; }
    .sun-eye { top: 21px; }
    .sun-mouth { top: 32px; }
    .sun-cheek { top: 34px; }

    .sun-assistant-panel {
        position: absolute;
        right: 65px;
        bottom: 8px;
        width: min(295px, calc(100vw - 105px));
        padding: 18px;
    }

    .sun-assistant-panel::after {
        bottom: 25px;
    }

    .sun-assistant-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sun-assistant-actions .btn {
        width: 100%;
    }

    .sun-assistant-sub-link {
        text-align: center;
    }
}

/* 中文注释：尊重系统“减少动态效果”的无障碍设置。 */
@media (prefers-reduced-motion: reduce) {
    .sun-assistant,
    .sun-assistant-face,
    .sun-assistant-panel,
    .sun-rays,
    .sun-eye {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .sun-assistant { display: none !important; }
}

